body {
  margin: 0;
  padding: 0;
  background-image: url('img/MainBackground.jpg');
  background-size: 1000px;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

header {
  background-color: skyblue;
  padding: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#logo a {
  text-decoration: none;
}

#logo h1 {
  margin: 0;
  color: rgb(7, 1, 91);
}

#menu {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
}
#menu a {
  text-decoration: none;
}

main.contents {
  text-align: center;
  padding: 60px 20px;
  background-color: rgba(255, 255, 255, 0.7);
  margin: 40px;
  border-radius: 20px;
}

main h1 {
  color: rgb(7, 1, 91);
}

main p {
  font-size: 20px;
}
#clock {
  display: inline-block;
  margin: 30px auto 10px;
  padding: 4px 10px;
  background-color: rgba(173, 216, 230, 0.7);
  color: navy;
  font-size: 14px;
  font-weight: 500;
  border-radius: 10px;
  box-shadow: 0 0 4px rgba(135, 206, 235, 0.6);
  text-align: center;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}
.animation {
  animation-duration: 3s;
  animation-name: slidein;
}

@keyframes slidein {
  from {
    transform: translateX(-100%);
  }

  to {
    transform: translateX(0%);
  }
}

#tech-section {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin: 100px auto;
  flex-wrap: wrap;
}

.tech-section {
  display: flex;
  justify-content: space-around;
  gap: 20px;
  padding: 60px 20px;
  background-color: #f0f8ff00;
}

.tech-box {
  width: 250px;
  background-color: rgba(255, 255, 255, 0.7);
  padding: 20px;
  border-radius: 20px;
  box-shadow: 0 5px 15px rgba(0, 128, 255, 0.2);
  text-align: center;
  opacity: 1;
  transform: translateY(0);
  transition: all 1s ease-in-out;
}

.tech-box.hidden {
  opacity: 0;
  transform: translateY(50px);
}

/*반응형 메뉴바 */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
  }

  #menu {
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
  }
}
