/* register animatable color custom properties */
@property --sun-gradient-stop-1 {
  syntax: '<color>';
  inherits: false;
  initial-value: #d83189;
}
@property --sun-gradient-stop-2 {
  syntax: '<color>';
  inherits: false;
  initial-value: #ff3131;
}
@property --sun-gradient-stop-3 {
  syntax: '<color>';
  inherits: false;
  initial-value: #ff914d;
}

@font-face {
  font-family: 'unageo';
  src: url("../fonts/unageo/ttf/Unageo-Light.ttf");
  font-weight: 200;
}

@font-face {
  font-family: 'unageo';
  src: url("../fonts/unageo/ttf/Unageo-Regular.ttf");
  font-weight: 400;
}

@font-face {
  font-family: 'unageo';
  src: url("../fonts/unageo/ttf/Unageo-SemiBold.ttf");
  font-weight: 500;
}

@font-face {
  font-family: 'blue-winter';
  src: url("../fonts/Blue-Winter.ttf") format('truetype');
  font-weight: 900;
  font-style: normal;
}

html, body {
  width: 100%;
  height: auto;
  /* overflow-x: hidden; */
  /* overflow-y: auto;                     allow native page scroll */
  -webkit-overflow-scrolling: touch;    /* smooth momentum scroll for iOS */
  touch-action: auto;                   /* ensure touch gestures are enabled */
}

body {
  font-family: 'unageo';
  display: flex;
  flex-direction: column;
  margin: 0;
  width: 100%;
}

header {
  display: flex;
  --header-margin-bottom: 20px;
  margin-bottom: var(--header-margin-bottom);
  width: 100%;
  background-color: transparent;
  color: rgb(255, 242, 227);
  --header-height: 60px;
  height: var(--header-height);
  z-index: 9999;
}

#home-logo-button {
  width: 40%;
  height: var(--header-height);
}

header #dawn-break-header-logo {
    margin: 0;
    display: inline-flex;
    min-width: 200px;
    width: max-content;
    max-width: 100%;
    max-height: 100%;
    height: var(--header-height);
    margin-left: 11px;
    cursor: pointer;
    margin-top: -2px;
}

#navBarContainer {
  display: inline-flex;
  justify-content: end;
  width: 60%;
  padding: 0;
}

#hamburger-icon {
  display: inline-flex;
  width: 50px;
  height: 50px;
  opacity: 0;
  cursor: pointer;
}

#hamburger-icon svg {
  display: inline-flex;
  width: 100%;
  height: 100%;
}

#navBar {
  display: inline-flex;
  width: 100%;
  max-width: 530px;
}

.mobile-nav-icon-container {
  display: none;
}

#navBar li {
  display: inline-flex;
  font-size: 22px;
  font-weight: 200;
  cursor: pointer;
  margin: 0 39px;
  transform-origin: center;
  transition: all 0.5s ease-in-out;
}

#navBar li:hover {
  transform: scale(1.15);
}

#navBar li p {
  margin: 0;
}

#navBar-home {
  width: 0;
  height: 0;
  margin: 0;
  opacity: 0;
}

main {
  flex: 1 0 auto;
}

footer {
  margin-top: auto;
  height: 70px;
  width: 100%;
  color: white;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  flex-direction: row;
  background-image: linear-gradient(
    to right,
    #d83189, #ff3131, #ff914d
  );
}

.footer-p-container {
  display: inline-flex;
  flex-direction: row;
  margin: 0 25px;
  justify-content: center;
  align-items: center;
}

.footer-p-container svg {
  margin: 0 10px 0 0;
  cursor: pointer;
}

#footer-bluesky-container p {
  margin-top: 13px;
}

#bluesky-svg {
  width: 35px;
  height: 35px;
}

#instagram-svg {
  width: 41px;
  height: 41px;
}

.footer-p-container p {
  cursor: pointer;
}

#close-navBar {
  opacity: 0;
}

#close-navBar-container {
  width: 0;
  height: 0;
  opacity: 0;
}

@keyframes show-navbar-container {
  0% {
    height: var(--header-height);
  }
  100% {
    height: 100%;
  }
}

@keyframes show-navbar {
  0% {
    height: 0%;
  }
  100% {
    height: 70%;
  }
}

@keyframes hide-navbar-container {
  0% {
    height: 100%;
  }
  100% {
    height: var(--header-height);
  }
}

@keyframes hide-navbar {
  0% {
    height: 70%
  }
  100% {
    height: 0%;
  }
}

#mobile-nav-logo, .mobile-nav-icon {
  display: none;
}


@media only screen and (max-width: 900px) {
  
  header {
    --header-height: 90px;
    height: var(--header-height);
  }

  /* header #dawn-break-header-logo {
    height: var(--header-height); */
  
  #home-logo-button {
    width: 50%;
  }

  .hide-nav-container {
    animation: hide-navbar-container 0.3s linear forwards;
  }

  .hide-nav {
    animation: hide-navbar 0.3s linear forwards;
  }

  .cover-screen {
    width: 100vw;
    position: fixed;
  }

  .hide-nav {
    animation: show-navbar 0.3s linear forwards;
  }

  #close-navBar-container {
    position: absolute;
    top: 0;
    right: 10px;
    height: 70px;
    width: 70px;
    cursor: pointer;
    opacity: 1;
  }

  #close-navBar {
    position: absolute;
    top: 0;
    right: 10px;
    height: 70px;
    width: 70px;
    cursor: pointer;
    opacity: 1;
    stroke: rgb(48, 48, 48);
    fill: rgb(52, 52, 52);
  }


  #navBar {
    flex-direction: column;
    opacity: 0;
    width: 0;
    height: 0;
    padding-left:0px;
    align-items: center;
    margin-top: 0;
    justify-content: space-evenly;
    align-items: end;
  }

  .active-nav #mobile-nav-logo {
    height: 65px;
    margin-right: 2px;
    display: inline-flex;
    align-self: center;
  }

  #navBar li {
    display: inline-flex;
    font-size: 40px !important;
    font-weight: 400;
    margin-right: 20px;
    border-bottom: 1px solid rgb(87, 87, 87);
    justify-content: center;
    align-items: center;
  }

  #navBar li p {
    display: inline-flex;
    margin-top: -2px;
    margin-bottom: 0;
    color: rgb(34, 34, 34);
  }

  .mobile-nav-icon-container {
    display: inline-flex;
    height: 50px;
    width: 50px;
    margin-right: 10px;
    stroke: url(#sunGradient);
    fill: url(#sunGradient);
    margin-top: -7px;
  }

  .mobile-nav-icon-container svg {
    height: 100%;
    width: 100%;
  }

  .hide-nav li {
    display: none !important;
  }

  #hamburger-icon {
    opacity: 1;
    width: var(--header-height);
    height: var(--header-height);
  }

  #hamburger-icon svg {
    display: inline-flex;
    width: 100%;
    height: 100%;
  }

  .show-hamburger {
    opacity: 1 !important;
    margin-right: 10px;
  }

  .hide-hamburger {
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
  }

  #close-navBar-container {
    position: absolute;
    top: 0;
    height: var(--header-height);
    width: var(--header-height);
    cursor: pointer;
    opacity: 1;
  }

  .hide-nav-container #close-navBar-container {
    display: none;
  }

  .hide-nav-container {
    animation: hide-navbar-container 0.3s linear forwards;
  }

  .hide-nav {
    animation: hide-navbar 0.3s linear forwards;
  }

  .hide-nav .mobile-nav-icon-container {
    display: none;
  }

  .cover-screen {
    width: 100vw;
    position: fixed;
  }

  .active-nav-container {
    /* ensure the open animation holds its final state */
    animation: show-navbar-container 0.3s linear forwards;
    width: 100vw !important;
    max-width: 100vw !important;
    opacity: 1 !important;
    align-items: center;
    justify-content: center !important;
    background-image: linear-gradient(
      to bottom,
      #f0f0f0, #d2d2d2, #cacaca
    );
  }

  .active-nav {
    animation: show-navbar 0.3s linear forwards;
    width: 80% !important;
    max-width: 100vw !important;
    opacity: 1 !important;
    height: 70% !important;
    border-bottom: 1px solid rgb(87, 87, 87);
  }

  .hide-nav {
    animation: show-navbar 0.3s linear forwards;
  }

  .active-nav #navBar-home {
    opacity: 1;
    height: auto;
    width: auto;
  }
}


@media (max-width: 600px) and (pointer: coarse) {
  header {
    --header-height: 90px;
    height: var(--header-height);
  }

  header #dawn-break-header-logo {
    width: 100%;
  }

  footer {
    height: auto;
    justify-content: space-evenly;
    padding: 17px 0 10dvh 0;
  }

  .footer-half {
    display: inline-flex;
    flex-direction: column;
  }
} 

/* Horizontal mobile phone */
@media (max-height: 440px) and (pointer: coarse) {
  header {
    --header-height: calc(var(--vh) * 20);
  }

  .active-nav {
    height: 100% !important;
  }

  #navBar li {
    color: rgb(63, 63, 63);
    font-size: 35px !important;
  }
}

/* for portrait tablet */
@media (min-width: 601px) and (max-width: 1024px) and (pointer: coarse) {

}