@import url("root.css");
@import url("color.css");
@import url("universal.css");

html {
  scroll-behavior: smooth;
}

header {
  background: linear-gradient(
    90deg,
    rgba(28, 108, 212, 0.7) 32%,
    rgba(30, 179, 210, 0.7) 100%
  );
  padding: 1em 2em;
  padding-left: 1.5em;
  position: sticky;

  top: 0;
  width: 100%;
  left: 0;
  z-index: 99999;
  box-shadow: 0 2px 15px rgb(0, 0, 0, 0.5);
}

nav {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.branding > a {
  text-decoration: none;
}

.branding-logo {
  color: rgb(255, 187, 0);
  font-size: 2rem;
  font-weight: bolder;
  text-shadow: 1px 1px 1px rgba(28, 108, 212), 1px 2px 1px rgba(28, 108, 212),
    1px 3px 1px rgba(28, 108, 212), 1px 4px 1px rgba(28, 108, 212),
    1px 5px 1px rgba(28, 108, 212), 1px 6px 1px rgba(28, 108, 212),
    1px 7px 1px rgba(28, 108, 212), 1px 18px 6px rgba(16, 16, 16, 0.4),
    1px 22px 10px rgba(16, 16, 16, 0.2), 1px 25px 35px rgba(16, 16, 16, 0.2),
    1px 30px 60px rgba(16, 16, 16, 0.4);
}

.branding-logo:hover {
  color: rgb(218, 150, 23);
}

.container {
  position: relative;
}

.menu {
  position: absolute;
  background: white;
  top: 4em;
  left: 0;
  right: 0;
  min-height: max-content;
  transform: scaleY(0);
  border-radius: 50%;
  transform-origin: top right;
  z-index: 99999999999;
  transition: transform 300ms ease, border-radius 600ms linear;
}

.ham {
  cursor: pointer;
}

.hamburger {
  position: relative;
  width: 32px;
  height: 32px;
  left: 0;
  cursor: pointer;
  opacity: 1;
  transition: transform 300ms ease-in-out;
}

.ham-icon {
  stroke: white;
}

.close-icon {
  stroke: white;
  position: absolute;
  left: 0;
  top: 0;
  display: none;
}

.hide {
  display: none;
}

.open {
  display: block;
}

.close {
  opacity: 0;
}

/* input[type="checkbox"]:checked + .menu {
  opacity: 1;
  transform: scaleY(1);
  border-radius: 0;
} */

.transform {
  opacity: 1;
  transform: scaleY(1);
  border-radius: 0;
}

.menu li {
  list-style: none;
  cursor: pointer;
}

.menu li a {
  display: inline-block;
  text-decoration: none;
  cursor: pointer;
  padding: 0.4em 1.5em;
  font-size: 1em;
  color: var(--dark);
  width: 100%;
  outline: 1px solid rgb(0, 0, 0);
}

.has-main-dropdown {
  position: relative;
  cursor: pointer;
}

.submenu {
  position: absolute;
  left: 0;

  background: linear-gradient(
    164deg,
    rgba(28, 108, 212) 32%,
    rgba(30, 179, 210) 100%
  );
  white-space: nowrap;
  top: 0;
  border-left: 0.1em dashed var(--hoverColor);
  padding: 1.5em 1.5em;
  transform: scaleY(0);
  transform-origin: top center;
  transition: transform 300ms ease;
}

.submenu > li > a {
  padding: 0.4em 1.5em;
  font-size: 1em;
  width: 100%;
  outline: 1px solid rgb(255, 217, 0);
  color: white;
}

.submenu .submenu {
  top: 0;
  left: 0;
  border-left: 0.1em dashed var(--hoverColor);
}

.menu > li:hover > a,
.submenu > li:hover > a {
  text-decoration: underline;
  background-color: transparent;
}

.arrow {
  width: 0.5em;
  height: 0.5em;
  display: inline-block;
  vertical-align: middle;
  border-left: 0.15em solid currentColor;
  border-bottom: 0.15em solid currentColor;
  transform: rotate(-45deg);
  margin-left: 0.2rem;
  margin-top: -0.25em;
  transition: transform 100ms ease-in-out;
}

.has-dropdown-hover > a + .submenu {
  transform: scaleY(1);
  position: relative;
}

.has-dropdown-hover > a .arrow {
  transform: rotate(-135deg);
}

.main-menu {
  display: flex;
  gap: 10px;
  list-style: none;
  margin-right: auto;
  padding: 0 1.5rem;
  border-radius: 5px;
}

.btn-menu {
  text-decoration: none;
  text-align: center;
  color: white;
  font-size: 15px;
  background: linear-gradient(
    90deg,
    rgba(28, 108, 212) 32%,
    rgba(30, 179, 210) 100%
  );
  padding: 0.4rem;
  border-radius: 100px;
  box-shadow: inset 0 0 15px rgb(0, 0, 0, 1), 0 0px 8px rgb(0, 0, 0, 0.5);
  transform: all 1s;
  text-align: center;
  cursor: pointer;
}
@media (max-width: 1123px) {
  .main-menu {
    gap: 8px;
  }

  .btn-menu {
    font-size: 12px;
    padding: 0.2;
  }
}

@media (max-width: 973px) {
  .main-menu {
    gap: 6px;
  }

  .btn-menu {
    font-size: 10px;
    padding: 0.1;
  }
}

.main-menu li a:hover {
  background: linear-gradient(
    90deg,
    rgba(30, 179, 210) 32%,
    rgba(28, 108, 212) 100%
  );
}

.extend-menu-icon {
  display: none;
}

.extend-close-icon {
  display: none;
}

@media (max-width: 900px) {
  .main-menu {
    display: flex;
    gap: 10px;
    list-style: none;
    margin-right: auto;
    padding: 1rem 0.5rem;
    top: 30%;
    left: 0;
    transform: translate(-115%, 0);
    z-index: 9999999;
    background-color: rgb(255, 255, 255, 0.5);
    position: fixed;
    flex-direction: column;
    border-radius: 0px 5px 5px 0;
    width: auto;
    transition: all 1s;
    overflow-y: scroll;
    height: 300px;
  }

  .main-menu li {
    width: 100%;
  }

  .btn-menu {
    display: inline-block;
    text-decoration: none;
    color: white;
    font-size: 14px;
    width: 100%;
    background: linear-gradient(
      90deg,
      rgba(28, 108, 212) 32%,
      rgba(30, 179, 210) 100%
    );
    padding: 0.3rem;
    border-radius: 100px;
    box-shadow: inset 0 0 15px rgb(0, 0, 0, 1), 0 0px 8px rgb(0, 0, 0, 0.5);
    transform: all 5s;
    text-align: center;
    cursor: pointer;
  }

  .main-menu li a:hover {
    background: linear-gradient(
      90deg,
      rgba(30, 179, 210) 32%,
      rgba(28, 108, 212) 100%
    );
  }

  .extend-menu {
    background: linear-gradient(
      90deg,
      rgba(30, 179, 210) 32%,
      rgba(28, 108, 212) 100%
    );
    width: 32px;
    height: 32px;
    box-shadow: inset 0 0 10px rgb(0, 0, 0, 0.5), 0 3px 5px rgb(0, 0, 0, 0.3);
    position: fixed;
    top: 25%;
    left: 0;
    z-index: 99999;
    border-radius: 5px;
    cursor: pointer;
    transition: all 1s;
  }

  .extend-menu-icon {
    stroke: white;
    width: 32px;
    height: 32px;
    display: block;
  }

  .show-main-menu {
    transform: translate(0, 0);
  }

  .close-main-menu {
    left: 0;
  }

  .opacity {
    opacity: 0;
  }

  .extend-close-icon {
    stroke: white;
    display: none;
    position: absolute;
    top: 0;
    right: 0;
  }

  .display {
    display: block;
  }
}
