html {
    background: #fff;
    background-image: url("../1x/Background.png");
    background-size: cover;
    font-family: sans-serif;
}

th {
    font-family: sans-serif;
    font-weight: 500;
    text-align: center;
}

.nav a {
    text-decoration: none;
}

.H h2 {
    font-weight: 300;
    margin: auto;
}

h2 {
    font-weight: 300;
    margin-top: 0px;
}
h3 {
    font-weight: 400;
    text-align: center;
}

p {
    font-size: large;
}

#about {
    visibility: collapse;
}

#toolbox {
    visibility: collapse;
}

.menu td:hover {
    cursor: pointer;
}

.menu a {
    text-decoration: none;
    color: #000;
}

.splash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #fff;
    background-image: url("../1x/Background.png");
    z-index: 200;
    color: #000;
    text-align: center;
    line-height: 100vh;
}

.splash.display-none {
    position: fixed;
    opacity: 0;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #fff;
    z-index: -10;
    color: #000;
    text-align: center;
    line-height: 100vh;
}

.H th {
    border-radius: 20px 20px 0px 0px;
    width: 20%;
}

.coding button:hover, .webD button:hover, .research button:hover {
    cursor: pointer;
}

@keyframes fadeIn {
    to{
        opacity: 1;
    }
}

@keyframes fadeOut {
    75% {opacity: 1;}
    to{
        opacity: 0;
    }
}

.fadeOut {
    opacity: 1;
    animation: fadeOut 2s ease-in forwards;
}

.fadeIn {
    opacity: 0;
    animation: fadeIn 1s ease-in forwards;
}

.spinning {
    animation: spin 10s linear infinite;
    max-height: 35px;
    margin: 20px;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.gallery-item {
  position: relative;
  width: calc(25%-40);
  height: auto;
  margin: 10px;
  cursor: pointer;
  transition: transform 0.5s ease;
}

.gallery-item:hover {
  transform: scale(1.05);
}

/* The Modal (background) */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease;
}

/* Modal content (image) */
.modal-content {
  position: relative;
  height: auto;
  max-width: 90%;
  max-height: 90%;
  border-radius: 5px;
  overflow: hidden;
  animation: zoomIn 0.5s;
}

@keyframes zoomIn {
  from {transform: scale(0.6);}
  to {transform: scale(1);}
}

.modal.show {
  display: flex;
  opacity: 1;
}

/* Close button */
.close {
  position: absolute;
  top: 10px;
  right: 15px;
  color: #ffffff;
  font-size: 35px;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.3s;
}

/* Caption of modal image */
.caption {
  position: absolute;
  bottom: 15px;
  width: 100%;
  text-align: center;
  color: #ffffff;
  font-size: 24px;
}

@media screen and (max-width: 768px) {
  .gallery-item {
     width: calc(50% - 20px);
  }
}

@media screen and (max-width: 480px) {
  .gallery-item  {
    width: calc(100% - 20px);
  }
}