* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-size: 14px;
  line-height: 1.3;
  font-family: "Nanum Gothic Coding", monospace;
  font-weight: 400;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2em;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
  color: #fff;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "MedievalSharp", cursive;
}

h2 {
  font-size: 4em;
  margin-bottom: 0.5em;
}

/************************ TO TOP BUTTON ************************/

#myBtn {
  transform: scale(0);
  transition: transform 0.3s ease-in;
  position: fixed;
  bottom: 20px;
  right: 30px;
  z-index: 99;
  font-size: 18px;
  border: none;
  outline: none;
  background-color: rgba(255, 0, 0, 0.3);
  color: white;
  cursor: pointer;
  border-radius: 50%;
  line-height: 1.5;
  width: 40px;
  height: 40px;
}

#myBtn.active {
  transform: scale(1);
}

#myBtn::before {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  content: "\f062";
}

#myBtn:hover {
  background-color: rgba(255, 0, 0, 1);
}

/************************ Links ************************/
.links li {
  list-style: none;
}

.links li a {
  text-decoration: none;
  color: #fff;
  font-size: 2em;
}

.links li a:hover {
  color: #ff0000;
}

.links li a.active {
  color: #ff0000;
  text-shadow: 1px 1px 2px #fff;
}

/************************ Header ************************/
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: #000;
  padding: 1em 0;
}

.navbar {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s ease;
}

#navbar {
  background: rgba(0, 0, 0, 0.5);
}

#navbar.active {
  background: #000;
}

.navbar .logo img {
  display: block;
  width: 100%;
  transition: all 0.3s ease;
  max-width: 80px;
}

#navbar.active .logo img {
  max-width: 60px;
}

.navbar .links {
  display: flex;
  gap: 2em;
  font-family: "MedievalSharp", cursive;
}

.navbar .toggle-btn {
  color: #fff;
  font-size: 1.5em;
  cursor: pointer;
  display: none;
}

/************************ Dropdown Menu ************************/
.dropdown-menu {
  display: none;
  position: absolute;
  right: 2em;
  top: calc(100% + 1em);
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  border-top-right-radius: 0;
  backdrop-filter: blur(15px);
  transform: scale(0);
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  padding: 1em;
}

.dropdown-menu.open {
  transform: scale(1);
}

.dropdown-menu li {
  list-style: none;
  padding: 0.7em;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dropdown-menu li a {
  text-decoration: none;
  color: #fff;
  font-size: 1.5em;
  font-family: "MedievalSharp", cursive;
}

/************************ Shape ************************/
svg {
  overflow: hidden;
}

.bottom-wave {
  position: absolute;
  content: "";
  bottom: -7px;
  z-index: 1;
  width: 100%;
}

.bottom-wave path {
  fill: #000;
}

.top-wave {
  position: absolute;
  width: 100%;
  content: "";
  z-index: 1;
  top: -5px;
}

.top-wave path {
  fill: #000;
}

/************************ Footer ************************/
footer {
  padding: 4em 0;
  background: #000;
  font-family: "MedievalSharp", cursive;
}

footer p {
  text-indent: 0;
}

.inner-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1em;
  margin-bottom: 2em;
}

footer .logo {
  margin-bottom: 1em;
}

.copyright {
  font-size: 1.3em;
  text-align: center;
}

.footer-half {
  width: calc(33% - 0.5em);
}

.footer-half img {
  display: block;
  width: 100%;
  max-width: 70px;
}

.footer-half .logo img {
  max-width: 90px;
}

.footer-symbol {
  margin: 0 auto;
}

.social-links {
  display: flex;
  justify-content: right;
  gap: 5em;
  font-size: 1em;
  text-decoration: none;
}

/************************ Media Query ************************/
@media screen and (max-width: 992px) {
  .navbar .links {
    display: none;
  }

  .navbar .toggle-btn {
    display: block;
  }

  .dropdown-menu {
    display: block;
  }
}

@media screen and (max-width: 768px) {
  .inner-footer {
    text-align: center;
    justify-content: center;
    flex-wrap: wrap-reverse;
    gap: 2em;
  }

  .footer-half {
    width: 100%;
  }

  .footer-half img {
    margin: 0 auto;
  }

  .footer-half .logo img {
    max-width: 120px;
  }

  .social-links {
    justify-content: center;
  }
}

@media screen and (max-width: 576px) {
  .dropdown-menu {
    left: 2em;
    width: unset;
  }

  .copyright {
    font-size: 1em;
  }
}
