/*////////////////*/
/* FONTS & COLORS */
/*////////////////*/

/* @import url('https://fonts.googleapis.com/css?family=Quicksand'); */
@font-face {
    font-family: 'Quicksand';
    font-style: normal;
    font-weight: 400;
    src: local(''),
         url("../webfonts/quicksand/Quicksand-Regular.a541d4e66100.woff2") format('woff2'), /* Super Modern Browsers */
         url("../webfonts/quicksand/Quicksand-Regular.7194c41ffab5.ttf") format('truetype'), /* Safari, Android, iOS */
  }

:root {
    --main-green: #00b030;
    --main-green-text: #00a00a;
    --main-light-green: #66CC44;
    --main-dark-green: #008020;
    --main-mint-green: #66ff99;
    --main-super-light-green: #99DD77;

    --main-blue: #0020b0;
    --main-blue-hover: #0020d0;
    --main-blue-press: #001090;
    --main-medium-blue: #001040;
    --main-dark-blue: #002030;

    --main-winter-green: #009070;
    --main-light-winter-green: #5ddaa5;
    --main-dark-winter-green: #006655;
    --main-super-light-winter-green: #8fe7c7;
    --main-lemon: #ebf55a;
    --main-gold: #fbbb00;

    --main-indigo: #6000a0;
    --main-purple: #6055b0;
    --main-lavender: #a790d7;
    --main-orange: #f43404;
    --main-soft-red: #ed5644;

    --white: #fff;
    --off-white: #f6f7f7;
    --main-super-light-grey: #f0f3f1;
    --main-steel-grey: #e3e7e9;
    --main-light-grey: #e1e2e3;
    --main-medium-light-grey: #dddedf;
    --main-medium-grey: #d7d8d9;
    --main-medium-greenish-grey: #a3b3a7;
    --main-medium-steel-grey: #b0b8bb;
    --main-medium-dark-greenish-grey: #9aaaa0;
    --main-medium-dark-grey: #979899;
    --main-dark-grey: #808590;
    --main-dark-dark-grey: #676869;
    --main-dark-steel: #60707a;
    --main-dark-dark-steel: #384a55;
    --main-dark-dark-dark-steel: #253945;

    --radius: 14px;
}

@font-face {
    font-family: 'Quicksand';
    font-style: normal;
    font-weight: 400;
    src: local('Pacifico Regular');
    font-display: swap;
  }

/*/////////////////*/
/* BASICS ELEMENTS */
/*/////////////////*/

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
    scroll-padding-top: 4rem;
}
body {
    background-color: var(--white);
    font-family: 'Quicksand', 'Helvetica Neue', arial, sans-serif;
    letter-spacing: 1px;
}

h1 {
    font-size: calc(1.9rem + 1vw);
    clear: both!important;
    line-height: calc(2.8rem + 0.6vw);
    max-width: 90vw;
}
h2 {
    font-size: calc(1.6rem + 1vw);
    font-weight: 400;
    max-width: 90vw;
}
h3 {
    font-size: calc(1.1rem + 0.6vw);
    font-weight: 400;
    margin-top: 0.5em;
    max-width: 90vw;
}
@media (max-height:800px) {
    h3 {
        font-size: 1.3rem;
    }
}
h4 {
    font-size: calc(1rem + 0.5vw);
    font-weight: 400;
    max-width: 90vw;
}
h5 {
    font-size: calc(0.9rem + 0.4vw);
    max-width: 90vw;
}

a, a:hover, a:focus, a:active {
    text-decoration: none;
}
a {
    color: var(--main-blue);
}
a:hover, a:focus {
    color: var(--main-blue-hover);
}
a:active {
    color: var(--main-blue-press);
}
p a, p a:hover {
    text-decoration: underline;
}

td, td p {
    text-align: left;
}
ul {
    padding-left: 30px;
}
li {
    margin-bottom: 0.5rem
}
h3 li {
    margin-top: 1.2em;
    margin-bottom: 1.2em;
    max-width: 90vw;
}

strong {
    font-size: 103%;
}
strong.large {
    font-size: 60px;
}

/* Change text in autofill textbox */

input:-webkit-autofill {
    font-size: 1rem;
}

/*/////////////////////*/
/* GENERAL SCAFFOLDING */
/*/////////////////////*/

.header {
    min-height: calc(4vh + 2.5rem);
}
#main {
    flex: 1;
    position: relative;
    overflow: hidden;
    min-height: calc(96vh - 6.25rem);
    padding-top: calc(4vh + 2.5rem);
    background-color: var(--off-white);
    font-size: calc(0.95rem + 0.4vw);
}
@media screen and (max-width: 360px) {
    #main {
        padding-top: 84px;
    }
}
@media (min-width:1200px) {
    #main {
        font-size: 20px;
    }
}
.grokkoli-gradient {
    background-image: linear-gradient(to bottom left, #00a050, var(--main-blue-press));
}

#vertical-flex-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

/* FOOTER */

#footer {
    background-color: var(--main-super-light-grey);
    border-top: 1px solid var(--main-light-grey);
    padding: 15px 30px;
}
.footer-content {
    position: relative;
    width: 96vw;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
#footer .broccoli-image {
    position: absolute;
    right: -1%;
    bottom: 0;
    /* delete this next line when we include the "for educators" link */
    bottom: -14px;
    z-index: 20;
    pointer-events: none;
}

#footer .broccoli-image img {
    max-height: 200px;
    max-width: 200px;
    height: calc(6rem + 10vw);
    width: calc(6rem + 10vw);
}
#footer .links {
    display: flex;
}
#footer .link-group {
    display: flex;
    flex-wrap: wrap;
    margin-bottom:  10px;
}
#footer p {
    font-size: 12px;
    color: var(--main-dark-steel);
    margin-bottom: 10px;
}
#footer a {
    color: var(--main-dark-dark-grey);
    line-height: 1.2rem;
    font-size: calc(0.75rem + 0.2vw);
    margin: 0.5rem 0;
    margin-right: 2rem;
    z-index: 10;
    max-width: calc(140px + 3vw);
}
#footer a:hover {
    color: var(--main-dark-dark-dark-steel);
}
@media screen and (max-width: 800px) {
    #footer {
        padding: 30px calc(7vw + 10px);
    }
    #footer-content {
        justify-content: space-between;
        max-width: 930px;
        margin-left: auto;
        margin-right: auto;
    }
    #footer .links {
        width: 100%;
    }
    #footer .link-group  {
        flex-direction: column;
        margin-bottom: 20px;
        margin-right: calc(20px + 2vw);
    }
    #footer a {
        margin-right: 0;
        min-width: calc(70px + 5vw);
    }
}
@media screen and (max-width: 500px) {
    #footer .link-group  {
        margin-right: 10px;
    }
    #footer .links {
        flex-direction: column;
    }
    #footer a {
        max-width: 60vw;
    }
}
.hairlines #footer {
    border-width: 0.5px;
}

/*//////////////////////////*/
/* GENERAL COLOR ASSIGNMENT */
/*//////////////////////////*/

.accent-color-green {
    color: var(--main-green) !important;
    font-weight: 600;
}
.accent-color-winter-green {
    color: var(--main-winter-green) !important;
}
.accent-color-light-winter-green {
    color: var(--main-light-winter-green) !important;
}
.accent-color-mint-green {
    color: var(--main-mint-green) !important;
}

p .accent-color-green, .text .accent-color-green, li .accent-color-green {
    color: var(--main-green-text) !important;
    font-weight: 600;
}
strong.accent-color-green {
    font-weight: 700;
}

.accent-color-light-green {
    color: var(--main-light-green) !important;
    font-weight: 600;
}
.accent-color-indigo {
    color: var(--main-indigo) !important;
    font-weight: 600;
}
.accent-color-purple {
    color: var(--main-purple) !important;
    font-weight: 600;
}
.accent-color-gold {
    color: var(--main-gold) !important;
    font-weight: 600;
}
.accent-color-lemon {
    color: var(--main-lemon) !important;
    font-weight: 600;
}
.light-grey {
    color: var(--main-light-grey) !important;
    font-weight: 600;
}
.medium-dark-grey {
    color: var(--main-medium-dark-grey) !important;
}

.disabled {
    color: #aaabac;
    cursor: default;
    pointer: None;
}

.self-centered {
    display: flex;
    justify-content: center;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.underline {
    text-decoration: underline;
}

/*/////////*/
/* BUTTONS */
/*/////////*/

.btn {
    border-radius: 10rem;
    font-weight: 900;
    letter-spacing: 2px;
    font-size: 1.5rem;
    font-size: calc(1.1rem + 0.7vw);
    margin-right: 0.8rem;
    padding: 0.6rem 2rem;
    cursor: pointer;
}

.btn-grokkoli-primary {
    color: var(--white);
    background-color: var(--main-blue);
    border: 1px var(--main-blue);
}
.btn-grokkoli-primary:hover {
    color: var(--white);
    background-color: var(--main-blue-hover);
    border: 1px var(--main-blue-hover);
}
.btn-grokkoli-primary:focus, .btn-grokkoli-primary:active {
    color: var(--white);
    background-color: var(--main-blue-press);
    border: 1px var(--main-blue-press);
}
.btn-grokkoli-primary.disabled {
    color: white;
    opacity: 0.7;
}
.btn-grokkoli-primary-dull:hover, .btn-grokkoli-primary-dull:focus, .btn-grokkoli-primary-dull:active {
    color: var(--white);
    background-color: var(--main-blue);
    border: 1px var(--main-blue);
    opacity: 0.7;
}

.btn-grokkoli-primary.green-btn {
    background-color: var(--main-green-text) !important;
}
.btn-grokkoli-primary.dark-green-btn {
    background-color: var(--main-winter-green) !important;
    opacity: 1;
}
.btn-grokkoli-primary.dark-green-btn:hover {
    opacity: 1;
}

.btn-grokkoli-secondary {
    background-color: var(--main-medium-light-grey);
    border: 1px solid var(--main-medium-light-grey);
    color: var(--main-blue);
    font-weight: 600;
}
.btn-grokkoli-secondary:hover {
    background-color: var(--main-medium-grey);
    border: 1px solid var(--main-medium-grey);
    color: var(--main-blue-hover);
}
.btn-grokkoli-secondary:active {
    background-color: var(--main-light-grey);
    border: 1px solid var(--main-light-grey);
    color: var(--main-blue-press);
}
.btn-grokkoli-secondary.disabled {
    color: var(--main-blue);
    opacity: 0.7;
}

.btn-grokkoli-small {
    background-color: var(--main-medium-light-grey);
    border: 1px solid var(--main-medium-light-grey);
    color: var(--main-blue);
    font-weight: 900;
    border-radius: 10rem;
    letter-spacing: 2px;
    font-size: 0.8rem;
    margin-right: 0;
    padding: 5px 20px;
    min-width: 124px;
}
.btn-grokkoli-small:hover {
    background-color: var(--main-medium-grey);
    border: 1px solid var(--main-medium-grey);
    color: var(--main-blue-hover);
}
.btn-grokkoli-small:active {
    background-color: var(--main-light-grey);
    border: 1px solid var(--main-light-grey);
    color: var(--main-blue-press);
}

.solo-button {
    width: fit-content;
    margin: auto;
}

/*//////////////////////*/
/* OVERRIDING BOOTSTRAP */
/*//////////////////////*/

.navbar {
    padding-top: 0px;
    padding-bottom: 0px;
}
@media screen and (max-width: 475px) {
    .navbar {
        padding-left: 5px;
    }
}
@media screen and (max-width: 360px) {
    .navbar-collapse {
        min-width: 70%;
    }
}
.navbar-expand .navbar-nav {
    align-items: center;
    /* flex-direction: row-reverse; */
    flex-wrap: wrap;
}
.navbar-expand .navbar-nav .nav-link {
    text-align: end;
}

.top-bar-spacer {
    height: 50px;
    height: 3.5rem;
}

.small-spacer {
    height: 1.2rem;
}

.hairlines .navbar {
    border-width: 0.5px;
}

.navbar-brand {
    margin-top: 0.4rem;
    margin-left: 0.5rem;
    margin-right: 0.4rem;
    padding-bottom: 0.4rem;
}
.navbar-logo {
    width: 165px;
    height: 28px;
}
@media screen and (max-width: 750px) {
    .navbar-logo {
        width: calc(83px + 10.9vw);
        height: calc(14px + 1.9vw);
    }
}

.navbar li {
    margin-bottom: 0rem;
}
.navbar .navbar-nav .nav-link {
    color: var(--main-blue);
}
.navbar .navbar-nav .nav-link:hover {
    color: var(--main-blue-hover);
}
.navbar .navbar-nav .nav-link:active {
    color: var(--main-blue-press);
}

.navbar-light {
    flex-wrap: wrap;
    background-color: var(--white);
    border-bottom: 1px solid var(--main-light-grey);
}

.navbar .nav-item {
    margin-left: 1rem;
    margin-right: 0.2rem;
}
.navbar .nav-item:first-child {
    margin-left: 0.2rem;
}
@media screen and (max-width: 320px) {
  .navbar .nav-item {
    font-size: calc(0.8rem);
  }
}
@media screen and (min-width: 320px) {
  .navbar .nav-item {
    font-size: calc(0.8rem + 2.5 * ((100vw - 320px) / 700));
  }
}
@media screen and (min-width: 1200px) {
  .navbar .nav-item {
    font-size: 1rem;
  }
}

.navbar p {
    font-size: 15px;
    color: var(--main-green);
}

.navbar .dropdown-menu {
    right: 0px;
    left: unset;
    padding-top: 15px;
    padding-bottom: 15px;
    min-width: 14rem;
}
.navbar .dropdown-menu .divider {
    border-bottom: 1px solid var(--main-light-grey);
    padding-top: 10px;
    margin-bottom: 10px;
}
.navbar .dropdown-menu a {
    color: var(--main-blue);
}

.navbar .dropdown-note {
    display: block;
    font-size: 0.95rem;
    width: 100%;
    margin-bottom: 5px;
    padding: .25rem 1.5rem;
    clear: both;
    text-align: inherit;
    white-space: wrap;
    background-color: transparent;
    border: 0;
}

.centered-item {
    margin-left: auto;
    margin-right: auto;
}

.warning {
    color: var(--main-gold);
}

.error {
    color: var(--main-orange);
}

.no-wrap {
    white-space: nowrap;
}

.relative {
    position: relative;
    display: flex;
}



.password_check__overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.password_check__overlay_panel {
  background: #fff;
  border-radius: 12px;
  padding: 50px 28px;
  width: min(90vw, 420px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  text-align: center;
  position: relative;
}

.password_check__overlay_title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #1a1a1a;
  width: 70%;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.password_check__overlay_label {
  font-size: 16px;
  /* font-weight: 600; */
  margin-bottom: 12px;
  color: #333;
  width: 70%;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.password_check__overlay_input {
  width: 60%;
  padding: 10px 12px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 8px;
  outline: none;
  /* margin-top: 30px; */
}

/* Overlay password input wrapper + centered label + eye toggle */
.password_check__overlay_input_wrapper {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
}

.password_check__overlay_password_overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60%;
  transform: translate(-50%, -50%);
  text-align: center;
  pointer-events: none;
  color: #999;
  font-size: 16px;
  line-height: 1;
  transition: opacity 120ms ease;
  z-index: 1;
}

/* Show label only when empty and not focused */
.password_check__overlay_input_wrapper:has(.password_check__overlay_input:focus)
  .password_check__overlay_password_overlay {
  opacity: 0;
}
.password_check__overlay_input_wrapper:has(.password_check__overlay_input:not(:placeholder-shown))
  .password_check__overlay_password_overlay {
  opacity: 0;
}

/* Eye toggle for overlay input */
.password_check__overlay_password_toggle {
  position: absolute;
  top: 50%;
  right: calc(20% + 10px); /* aligns with right edge of the 60% wide input */
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border: none;
  padding: 0;
  cursor: pointer;
  outline: none;
  border-radius: 50%;
  background: #e9e9e9 center/18px 18px no-repeat;
  background-image: url("/static/img/eye-slash-blue.7fd62667f27c.svg"); /* was eye-slash-white.svg */
  z-index: 2;
  background-color: transparent;
}

.password_check__overlay_password_toggle:hover,
.password_check__overlay_password_toggle:focus {
  filter: brightness(0.95);
}

/* When showing password (type=text), swap to open eye */
.password_check__overlay_input[type="text"] ~ .password_check__overlay_password_toggle {
  background-image: url("/static/img/eye-blue.035bedff0901.svg"); /* was eye-white.svg */
}

.password_check__overlay_close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: #0020b077;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  border: 1px solid #0020b077;
  border-radius: 50%;
}

.password_check__overlay_close:hover,
.password_check__overlay_close:focus {
  color: #0020B0;
  border: 1px solid #0020B0;
  outline: none;
}

.password_check__overlay_submit {
  margin-top: 15px;
  width: 60%;
  padding: 10px 12px;
  font-size: 16px;
  border: none;
  border-radius: 8px;
  background: var(--main-blue);
  color: #fff;
  cursor: pointer;
}

.password_check__overlay_submit:disabled {
  opacity: 0.6;
  cursor: default;
}

/* Shake animation for invalid password */
@keyframes password-shake {
  0%   { transform: translateX(0); }
  15%  { transform: translateX(-10px); }
  30%  { transform: translateX(10px); }
  45%  { transform: translateX(-8px); }
  60%  { transform: translateX(8px); }
  75%  { transform: translateX(-4px); }
  90%  { transform: translateX(4px); }
  100% { transform: translateX(0); }
}

.password_check__overlay_panel.password_check__overlay_panel--shake {
  animation: password-shake 0.5s ease;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .password_check__overlay_panel.password_check__overlay_panel--shake {
    animation: none;
  }
}