/*
          Body & Universal
*/

body {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif,
    "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  overflow-x: hidden;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
  /* scroll-snap-type: mandatory; */
}

button {
  height: fit-content;
}

.button:active {
  transform: scale(0.95);
}

a {
  text-decoration: none;
  color: var(--text-color);
}

#landing-page-msg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  padding: min(1em, 1.778vw);
  font-size: min(1em, 1.778vw);
  color: black;
  background: hsla(0, 100%, 100%, 0.6);
  box-shadow: 0 0 20px 0 #ffffff77;
  font-weight: 700;
  max-width: 720px;
}

.dark #landing-page-msg {
  color: white;
  background: hsla(0, 0%, 0%, 0.4);
  box-shadow: 0 0 20px 0 #00000077;
}

.dark #landing-page-msg input {
  outline: none;
  border-block-start: none;
  border-inline-start: none;
  border-inline-end: none;
  caret-color: yellow;
  color: gold;
}


/*
          Header & navbar logo, buttons
*/

.header {
  position: fixed;
  display: flex;
  height: var(--navbar-height);
  width: 100%;
  z-index: 100;
  background-color: var(--navbar-bkgrnd);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
}

.nav-buttons {
  display: flex;
  height: 70%;
}

.nav-logo svg {
  height: 75%;
  top: -7px;
  position: relative;
  fill: var(--text-color);
  width: fit-content;
}

.dark .nav-logo a {
  height: 90%;
}

.dark .nav-logo img {
  filter: invert(100%);
  -webkit-filter: invert(100%);
  padding-left: 10px;
  height: 100%;
}

.nav-items {
  display: flex;
  align-items: center;
  list-style: none;
  margin-top: 12px;
  margin-left: 20px;
  z-index: 10;
}

.nav-link {
  position: relative;
  margin: 0 15px;
  font-weight: 500;
  color: var(--text-color);
  letter-spacing: 1px;
  line-height: 1;
  cursor: pointer;
}

.nav-link:before {
  position: absolute;
  content: "";
  width: 0;
  height: 100%;
  border-bottom: 2px solid var(--hover-color);
  transition: width 0.3s;
  transform-origin: center;
  margin: auto;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
}

.nav-link:hover {
  color: var(--hover-color);
}

.nav-link:hover:before {
  width: 100%;
}

/* This applies to the login button in the top navbar */
.nav .button {
  border: 2px solid var(--text-color);
  background: var(--form-btn-bkgrnd);
  border-radius: 6px;
  padding: 3px 18px;
  margin-right: 10px;
  cursor: pointer;
  color: var(--text-color);
  font-weight: 700;
  font-size: 16px;
}

/* This applies to the login button in the dropdown menu */
#dropLoginBtn,
#dropLogoutBtn {
  display: none;
}

/*
          burger, mode-toggle, close form button & display username
*/

.burger-container {
  position: relative;
  width: calc(var(--navbar-height) * 0.7);
  height: calc(var(--navbar-height) * 0.7);
  top: 5px;
  right: 10px;
  display: none;
}

.modeToggleBtn,
svg.close-form-btn {
  position: absolute;
  fill: var(--text-color);
  cursor: pointer;
  width: 20px;
  z-index: 1;
}

.modeToggleBtn {
  top: calc(var(--navbar-height) + 11px);
  right: 20px;
}

.form_container .modeToggleBtn {
  top: 10px;
  left: 20px;
}

.modeToggleBtn svg {
  fill: white;
  height: fit-content;
  width: 100%;
}

.form_container .modeToggleBtn svg {
  fill: black;
}

.dark .form_container .modeToggleBtn svg {
  fill: white;
}

svg.close-form-btn {
  top: 8px;
  right: 18px;
  width: 24px;
}

/*
          Pages (sections)
*/

#error-page,
section {
  position: relative;
  height: 100vh;
  min-height: max-content;
  background: var(--bkgrnd-linear-grad);
}

/* .landing-pages {
  scroll-snap-align: y;
} */

#home-page {
  position: relative;
  /* width: 100%; */
  background-image: url("../_img/background.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

#error-page {
  background: black;
}

/*
          forms
*/

.form_container {
  position: relative;
  top: 100px;
  left: 50%;
  transform: translate(-50%) scale(0.3);
  z-index: 10;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 4px 4px 4px 4px rgba(0, 0, 0, 0.1);
  width: 400px;
  max-width: 90%;
  height: 540px;
  max-height: calc(100vh - (var(--navbar-height) + 90px));
  color: var(--text-color);
  background-color: var(--navbar-bkgrnd);
  scroll-behavior: smooth;
  /* padding-bottom: calc(var(--navbar-height) + 200px); */
  /* box-sizing: content-box; */

  transition: 0.5s;
  pointer-events: none;
  opacity: 0;
  /* opacity: 1; */
  overflow-y: auto;
}

.form_container.contact-me {
  transform: translate(-50%);
  opacity: 1;
}

.form_container.reset_pwd {
  transform: translate(-50%) scale(1);
  pointer-events: auto !important;
  opacity: 1 !important;
}

#email_form {
  pointer-events: auto;
}

#email_form > div:last-of-type {
  /* position: absolute;
  bottom: 0; 
  left: 0;
  width: fit-content;
  margin: auto;
  right: 0;*/
  text-align: center;
  letter-spacing: 1px;
  margin: 15px 0;
}

#email_form > div:last-of-type div {
  margin-bottom: 7px;
}

#email_form h1 {
  text-align: center;
}

#email_form textarea {
  width: 100%;
  height: 70px;
  min-height: 70px;
  max-height: 200px;
  max-width: 100%;
  min-width: 100%;
  padding-top: 10px;
}

.showForms {
  pointer-events: auto !important;
  opacity: 1 !important;
}

.form_container.showForms {
  transform: translate(-50%) scale(1);
}

#login_form,
#signup_form,
#forgot_form,
#confirmation_form {
  display: none;
  min-height: 100%;
  position: relative;
  padding-bottom: 30px;
  transition: opacity 0.4s !important;
  opacity: 0;
}

.showForm {
  opacity: 1 !important;
}

.form_container h2 {
  text-align: center;
  font-size: 22px;
  margin-bottom: 7px;
}

.formMsg {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  height: 40px;
  margin-bottom: 25px;
  text-align: center;
  font-weight: 500;
}

/* This is the phone number that is displayed when not valid  */
.formMsg .margin_10px {
  margin: 10px;
}

#contact_form .formMsg {
  height: 60px;
}

#remember {
  width: 95%;
  margin: auto;
  font-size: 14px;
}

aj-checkbox {
  display: inline-block;
  width: fit-content;
}

/*
          
*/

/*
          Show / Change Form Buttons
*/

.form_container .changeFormsBtns {
  position: absolute;
  /* top: calc(100vh - var(--navbar-height) - 150px); */
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  width: 85%;
  color: var(--text-color);
  bottom: 0px;
  left: 0;
  right: 0;
  margin: 20px auto 0;
  letter-spacing: 0.5px;
}

.form_container .changeFormsBtns > * {
  cursor: pointer;
}

.form_container .changeFormsBtns > *:hover {
  text-decoration: underline;
}

/*
          Form Submit Buttons
*/

.confirm_txt_btns,
.submit-btn-container {
  height: max-content;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 50px;
}

.confirm_txt_btns {
  height: min-content;
}

.submit-btn-container.submitLogin {
  margin-top: 25px;
}

.needCode .submit-btn-container.submitLogin {
  margin-top: 10px;
}

.confirmationDeadline span {
  display: inline-block;
  width: 10px;
  overflow: none;
  text-align: center;
}

.resetExpiresMsg {
  display: block;
  font-size: 20px;
  font-weight: 700;
  margin: auto;
  white-space: nowrap;
}

#resetTimeRemainingContainer {
  max-width: 95%;
  text-align: center;
  margin: auto;
  width: max-content;
}

span.resetExpiresDeadline span {
  display: inline-block;
  width: 13px;
  text-align: center;
}

.resend-container .submit-btn-container {
  width: 35%;
}

.resetPwdExpires span {
  display: inline-block;
  text-align: center;
  width: 12px;
}

.user-profile .done_auto_logout .btn,
.confirm_txt_btns .button,
.submit-btn-container .button,
.iframe-container .btn {
  background-color: var(--form-btn-bkgrnd);
  color: var(--text-color);
  border-color: var(--text-color);
  padding: 3px 18px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  width: 50%;
  min-width: max-content;
}

.iframe-container .btn {
  text-align: center;
}

.resend-container,
.confirmationMsg {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding-left: 15px;
  width: 100%;
  margin-top: 15px;
  font-size: 14px;
  height: 70px;
}

#resend_form {
  width: fit-content;
}

.confirmationMsg {
  flex-direction: column;
  margin: 40px 0 0;
  padding: 0 5%;
  text-align: center;
  min-height: fit-content;
  font-size: 14px;
}

.hiddenInput {
  display: none;
}

.expired .hideWhenExpired {
  display: none !important;
}

.showWhenExpired {
  display: none;
}

.expired .showWhenExpired {
  display: flex;
}

.expired .showWhenExpired:not(.formMsg) {
  display: flex !important;
  width: 100%;
  height: fit-content;
  margin-top: 50px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.expired .showWhenExpired img {
  filter: invert(0);
}

.dark .expired .showWhenExpired img {
  filter: invert(1);
}

.confirm_txt_btns img,
.submit-btn-container img {
  transform: rotateY(180deg);
  height: 33px;
  display: none;
}

.dark .confirm_txt_btns.waiting img.white,
.dark .submit-btn-container.waiting img.white {
  display: inline-block;
}

.dark .confirm_txt_btns.waiting img.black,
.dark .submit-btn-container.waiting img.black {
  display: none;
}

body:not(.dark) .confirm_txt_btns.waiting img.black,
body:not(.dark) .submit-btn-container.waiting img.black {
  display: inline-block;
}

.user-profile .submit-btn-container.waiting img.black {
  display: inline-block;
  filter: invert(1);
}

.dark .user-profile .submit-btn-container.waiting img.black {
  filter: invert(1);
}

.user-profile .submit-btn-container.waiting img.white {
  display: none;
}

.waiting.confirm_txt_btns > button,
.waiting.submit-btn-container > button {
  display: none;
}

#loginBtn,
#logoutBtn,
#dropLoginBtn.active,
#dropLogoutBtn.active {
  display: none;
}

#loginBtn.active,
#logoutBtn.active {
  display: block;
}

.largerMsg {
  width: 85%;
  margin: auto;
  text-align: center;
  font-size: 18px;
}

.loginMsg {
  width: fit-content;
  margin: 30px auto 0;
  text-align: center;
}

.contact-footer {
  font-size: 15px;
}

.contact-footer span {
  white-space: nowrap;
}

.contact-footer div {
  height: 30px;
  margin-top: 3px;
}

.contact-footer img {
  height: 100%;
}

.dark .contact-footer img {
  filter: invert(100%) !important;
  -webkit-filter: invert(100%) !important;
}

@media screen and (max-width: 1000px) {
  .nav-items {
    margin-left: 1.5vw;
  }

  .nav-link {
    margin: 0 1.5vw;
  }
}

@media screen and (max-width: 755px) {
  .nav-items,
  #loginBtn.active,
  #logoutBtn.active,
  #loginBtn,
  #logoutBtn,
  #dropLoginBtn,
  #dropLogoutBtn {
    display: none;
  }

  #dropLoginBtn.active,
  #dropLogoutBtn.active {
    display: block;
  }

  .nav-items {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    top: var(--navbar-height);
    left: 0;
    right: 0;
    margin: auto;
    height: 0;
    transition-duration: 0.5s;
    transform-origin: top;
    overflow: hidden;
  }

  .burger-container {
    display: block;
  }

  .nav-link {
    margin: 0 2.857vw;
  }

  .nav-items.active {
    background: var(--navbar-bkgrnd);
    height: 250px;
  }

  .nav-link,
  .nav-link:first-child {
    margin: 10px 0 20px;
    font-size: 18px;
    text-align: center;
  }
}

@media screen and (max-width: 450px) {
  body {
    --navbar-height: 13vw;
  }

  #login_form > p,
  .resend-container,
  .confirmationMsg {
    margin-top: 3.333vw;
    font-size: 3.111vw;
    height: 15.556vw;
    padding-left: 2vw;
  }

  .submit-btn-container img {
    height: 7.778vw;
  }

  .largerMsg {
    font-size: 4vw;
  }
}

@media screen and (max-width: 400px) {
  .burger-container {
    top: 1.25vw;
    right: 2.5vw;
  }

  .showFormsBtns span {
    font-size: 3.7vw;
  }

  .form_container h2 {
    font-size: 5.5vw;
    margin-bottom: 1.75vw;
  }

  .form_container .formMsg {
    font-size: 3.75vw;
    height: 10vw;
    margin-bottom: 6.25vw;
    font-weight: 400;
  }

  .submit-btn-container .button {
    padding: 0.75vw 4.5vw;
    font-size: 3.75vw;
    border-radius: 1.5vw;
  }

  .submit-btn-container {
    height: 12.5vw;
  }

  .form_container {
    height: min-content;
    top: 25vw;
  }

  .submit-btn-container.submitLogin {
    margin-top: 6.25vw;
  }

  .needCode .submit-btn-container.submitLogin {
    margin-top: 2.5vw;
  }

  .modeToggleBtn,
  svg.close-form-btn {
    width: 5vw;
  }

  .modeToggleBtn {
    top: calc(var(--navbar-height) + 2.75vw);
    right: 5vw;
  }

  .form_container .modeToggleBtn {
    top: 2.5vw;
    left: 5vw;
  }

  svg.close-form-btn {
    top: 2vw;
    right: 4.5vw;
    width: 6vw;
  }

  .form_container .changeFormsBtns {
    font-size: 3.5vw;
    margin: 5vw auto 0;
    letter-spacing: 0.125vw;
  }
}

@media screen and (max-width: 300px) {
  aj-checkbox {
    color: red;
    font-size: 4.82vw;
  }

  .contact-footer {
    font-size: 5vw;
  }

  .formMsg {
    font-size: 5vw;
    height: 13.333vw;
    margin-bottom: 8.333vw;
  }

  #contact_form .formMsg {
    height: 20vw;
  }
}
