/* * {
    outline: 1px solid red !important;
} */

* {
  -webkit-tap-highlight-color: transparent;
}

html {
    box-sizing: border-box;
  }
*, *:before, *:after {
box-sizing: inherit;
}

body {
  font-family: system-ui, -apple-system, 'Noto Sans SC', 'PingFang SC';
  scroll-behavior: smooth;
  margin: 0;
}

h1, h2, h3 {
  font-family: system-ui, -apple-system, 'Noto Sans SC', 'PingFang SC';
}

a {
    color: inherit;
    text-decoration: none;

}

strong {
    color: rgb(23, 82, 131);
    font-weight: bold;
}

.lesson-cont strong {
    color: rgb(23, 82, 131);
    font-weight: 550;
}

.green-link {
    color: rgb(37, 155, 90);
    font-weight: 650;
}

.blue-link {
    color: rgb(30, 92, 143);
    font-weight: 650;
}

/* Header */

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-image: linear-gradient(rgb(196, 23, 23), rgb(212, 52, 52));
    border-bottom-left-radius: 0em;
    border-bottom-right-radius: 0em; 
    padding: 0;
    position: relative;
    width: 100%;
    margin: 0;
    /* position: fixed; */
    top: 0;
    left: 0;
    z-index: 10; 
}

.header-content {
    display: flex;
    width: 80%; 
    margin: 0 auto; 
    display: flex; 
    align-items: center;
    justify-content: space-between;
}

@media (max-width: 768px) {
    .header-content {
        width: 100%;
    }
}

.logo {
    font-size: 1.25rem;
    text-align: left;
    margin-left: 1rem;
    color: white;
    cursor: pointer;
    /* font-family: 'Montserrat'; */
    display: inline-block; 
    align-items: center;
}

.char-logo {
    font-size: 1.5rem;
    font-weight: normal;
    align-items: center;
}

.logo a {
    text-decoration: none;
}

/* Hamburger */

.hamburger-container {
    position: relative;
    display: inline-block;
    align-items: center;
}

.hamburger {
    display: inline-block;
    cursor: pointer;
    position: relative;
    z-index: 1;
    margin-right: 1rem;
    margin-left: 0.6rem;
    align-items: center;
}

.line {
    width: 2.5rem;
    height: 0.33rem;
    background-color: white;
    border-radius: 2px;
    margin: 0.25rem 0;
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.menu {
    position: absolute;
    top: 100%; /* Directly below the navbar */
    right: 0rem;
    width: auto; 
    min-width: 14rem; 
    border-radius: 0.7em;
    background-image: linear-gradient(rgb(212, 52, 52), rgb(196, 23, 23));
    color: white;
    /* Hidden state */
    transform: translateY(-20px); 
    opacity: 0;
    visibility: hidden;
    z-index: 10; 
    pointer-events: none; /* Disabled when hidden */
    /* Transition settings */
    transition: 
        transform 0.3s ease-in-out,
        opacity 0.3s ease-in-out,
        visibility 0s linear 0.3s; /* Delay visibility */
}

.menu-toggle {
    display: none;
}

.menu-toggle:checked ~ .menu { /* Active state */
    transform: translateY(0); 
    opacity: 1;
    visibility: visible;
    pointer-events: auto; /* Enable interactions */
    transition-delay: 0s;
}

.menu-toggle:checked ~ .hamburger-container .hamburger .line {
    /* background-color: white; */
    background-image: linear-gradient(90deg, white, rgb(247, 211, 9));
    /* background-image: linear-gradient(90deg, white, rgb(220, 220, 220)); */
}

.menu-toggle:hover ~ .hamburger-container .hamburger .line {
    /* background-color: white; */
    background-image: linear-gradient(90deg, white, rgb(247, 211, 9));
    /* background-image: linear-gradient(90deg, white, rgb(220, 220, 220)); */
}

.menu ul {
    list-style: none;
    padding: 0.25rem;
    margin-top: 0.25rem;
    margin-left: 1.5rem; 
 
}

.menu li {
    font-size: 1.05rem;
    padding: 0.25rem;
    margin-top: 0.25rem;
    margin-left: 0rem;
    color: white;
    transition: background-color 0.3s ease-in-out;
}

@media (max-width: 768px) {
    .menu li {
        font-size: 1.10rem;
        font-weight: 500;
    }
}

.menu li:hover {
    color: white;
    font-weight: bold;
}

.menu a { 
    text-decoration: none;
}

/* Containers */

.narrow-container {
    max-width: 90%;
    margin: 0 auto;   
}
@media (min-width: 768px) {
    .narrow-container {
        max-width: 65%;
    }
}

main {
    width: 100%;
    margin: 0;
    padding: 0;
    display: block;
}

/* Bottom button */

.button-wrap {
    text-align: center; /* This centers the inline/inline-block/inline-flex button */
    margin-bottom: 1.75rem;
}

.button {
    display: inline-flex;
    color: rgb(253, 218, 20);
    background-image: linear-gradient(rgb(192, 16, 16), rgb(223, 50, 50));
    border-width: 0;
    padding: 0.4rem 1.5rem;
    border-radius: 1.5em;
    margin: 0.5rem auto 0;
    cursor: pointer;
    text-decoration: none;
    align-items: center; /* horizontally */
    /* color: white;
    background-image: linear-gradient(rgb(21, 153, 21), green); */
}

.char-button {
    font-size: 1.7rem;
    margin-right: 0.75rem;
}

.text-button {
    font-weight: bold;
    font-size: 1.1rem;
}

#vars {
    display: none;
}

footer {
    color: rgb(23, 82, 131);
    /* font-weight: 550; */
    font-size: 0.75rem;
    display: flex;
    justify-content: center; 
    align-items: center;
    padding: 1rem;
}

footer a {
    cursor: pointer;
    margin-left: 0rem;    
}

/* Navigation */

.bottom-nav {
    margin-bottom: 2rem !important;
}

.navigation-wrapper {
    display: grid;
    justify-items: center; 
    align-items: center;
    margin: 1rem 0rem;
}

.navigation {
  display: flex;        
  justify-items: center;
  align-items: center;  
  gap: 0.5rem;      
}

:root {
    --triangle-base: 1.1rem;
    --triangle-length: 2rem;
}

.nav-back,
.nav-next {
  width: 0;              
  height: 0;              
  background-color: transparent; 
  border-style: solid;    
  border-color: transparent;
  padding: 0;             
  cursor: pointer;        
  outline: none;          
  transition: border-color 0.2s ease; 
  border-top: var(--triangle-base) solid transparent;
  border-bottom: var(--triangle-base) solid transparent;
}

.nav-back {
  /* border-right: var(--triangle-length) solid rgb(41, 102, 152);   */
  border-right: var(--triangle-length) solid rgb(60, 119, 168); 
}

.nav-next {
  /* border-left: var(--triangle-length) solid rgb(41, 102, 152);  */
  border-left: var(--triangle-length) solid rgb(60, 119, 168); 
}


.nav-back:hover,
.nav-back:focus {
  border-right-color: rgb(60, 119, 168); 
}

.nav-next:hover,
.nav-next:focus {
  border-left-color: rgb(60, 119, 168); 
}

.nav-select {
    background-color: #f0f0f0; 
    border-radius: 1.2rem;
    text-align: center;
    text-align-last: center;
    /* -webkit-appearance: none;
    appearance: none; */
    padding: 0.4rem 1rem;
    border: 1px solid #ccc; 
    font-size: 0.9rem;
    cursor: pointer;
    min-width: 14rem; 
    outline: none;
}

.nav-select option {
    background-color: #f0f0f0; 
    border-radius: 1.2rem;
    text-align: left;
    padding: 0.5rem 1rem;
    border: 1px solid #ccc; 
    font-size: 0.9rem;
    cursor: pointer;
    min-width: 14rem; 
    outline: none;
}

.nav-select {
    opacity: 1; /* Dropdown is always visible */
}

.nav-select option {
    opacity: 0; /* Options’ text starts hidden */
    transition: opacity 0.4s ease-in-out; /* Smooth fade-in effect */
}

.nav-select.loaded option {
    opacity: 1; /* Text fades in when 'loaded' class is added */
}


/* Home page */

.info-text {
    line-height: 1.75;
    text-align: center;
}

.terms-text {
    /* line-height: 1.75; */
    text-align: left;
}

.slogan {
    font-size: 1.15rem;
}

.slogan-minor {
    font-size: 1.1rem;
}

.green-slogan {
    font-size: 1.15rem;
    color: rgb(43, 160, 96);
}

.mascot-container {
    display: block;
    margin: 0.8rem auto;
    text-align: center;
}

.mascot-image {
    max-width: 14rem;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 0.85em;
    /* border-color: gold;
    border-color: rgb(170, 7, 7);
    border-width: 0.22rem;
    border-style: solid; */
}

.comeback {
    margin-top: 1rem;
}

/* Lesson overview */

.o-item {
    font-size: 1rem;
    padding: 0.4rem 1.5rem !important;
    cursor: pointer;
    /* color: rgb(69, 69, 69); 
    font-weight: 500; */
    margin: 0rem !important;
    border-radius: 1em;
    /* border: 1px solid rgb(23, 82, 131); */
    /* background-color: #ffffff; */
    /* box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08); */
}

.o-item:hover {
    color: rgb(23, 82, 131);
    font-weight: 550;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.oalt {
    /* background-color:rgb(255, 242, 242) !important; */
    background-color:rgb(231, 242, 249) !important; 
    /* background-color:rgb(228, 244, 235) !important; */
    
}

.free {
    font-size: 1rem;
    margin-left: 1.5rem !important;
    color: rgb(0, 119, 0) !important;
    font-weight: 550 !important;
    align-items: center;
}

.check2 {
    text-indent: 0rem; /* Indents the paragraph to the right */
    position: relative; /* Allows positioning of the pseudo-element */
    padding-left: 1.5rem; /* Makes space for the checkmark */
    /* font-size: 1.05rem; */
}

.check2::before {
    content: '✓'; /* Adds the checkmark symbol */
    position: absolute; /* Positions the checkmark relative to the paragraph */
    left: 0; /* Aligns the checkmark to the left */
    top: 50%; /* Positions the checkmark at 50% from the top */
    transform: translateY(-50%); /* Shifts the checkmark up by half its height to center it */
    color: green;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Scroll bar  */

@media (min-device-width: 1200px) {

    ::-webkit-scrollbar {
        width: 0.6rem;
        height: 0.6rem;
        -webkit-border-radius: 0.6em;
        border-radius: 0.6em;
    }
    ::-webkit-scrollbar-track {
        background: #f1f1f1; 
        -webkit-border-radius: 0.6em;
        border-radius: 0.6em;
    }
    ::-webkit-scrollbar-thumb {
        background: #d3d3d3; 
        border-radius: 0.6em;
        height: 0.6rem;
    }
    ::-webkit-scrollbar-thumb:hover {
        background: #cccbcb; 
    }
    ::-webkit-scrollbar-corner { 
        display: none; 
        height: 0; 
        width: 0; 
    }

    /* ::-webkit-scrollbar {
        height: 0.4rem;
        -webkit-box-shadow: inset 0 0 0.4rem rgba(0,0,0,0); 
    }
    ::-webkit-scrollbar-track {
        -webkit-box-shadow: inset 0 0 0px rgba(0,0,0,0); 
    } */
}

/* Spinner */

.spinner {
    --bordersize: 1rem;
    position: fixed;
    top: 40%;
    left: 50%;
    width: 3rem;
    height: 3rem;
    margin: 0 0 0 -2.25rem;
    border: var(--bordersize) solid white;
    border-radius: 50%;
    border-top: var(--bordersize) solid rgb(255, 154, 71);
    border-right: var(--bordersize) solid rgb(255, 154, 71);
    border-bottom: var(--bordersize) solid rgb(255, 154, 71);
    z-index: 1;
    -webkit-animation: spin 2s linear infinite;
    animation: spin 2s linear infinite;
  }

  @-webkit-keyframes spin {   /* Safari */
    0% { -webkit-transform: rotate(0deg); }
    100% { -webkit-transform: rotate(360deg); }
  }

  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }

/* Modal */

.modal {
    position: fixed;
    top: 0%;
    left: 0%;
    height: 100vh;
    width: 100%;
    opacity: 0.7;
    background-color: white;
    z-index: 1;
}

.modal-title {
    position: fixed;
    top: 25%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 3rem;
    font-weight: bold;
    color: rgb(255, 154, 71); 
    background-color: white;
    padding: 1rem 2rem;
    border-radius: 0.6em;
    opacity: 1;
    z-index: 2;
}

/* hero image */
:root {
    --hero-height: 100vh;
}

.hero {
    position: relative;
    width: 100%;
    height: var(--hero-height);
    background-color: #f0f0f0; 
    background: url('/static/img/hero-v1.webp') center/cover no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;                  /* sit above overlay */
    color: white;
    padding: 0.5 1.5rem;
    margin-bottom: 10vh; 
}

/* headline slides FROM TOP */
.hero-title {
    font-size: clamp(2rem, 4vw + 1rem, 3rem);
    font-weight: 700;
    line-height: 1.15;
    margin: 0 0.5rem 1.8rem;
    opacity: 0;
    animation: slideDown .9s .25s forwards;
}

/* subtitle slides FROM BOTTOM */
.hero-subtitle {
    margin: 1.75rem 0.5rem 0rem;
    font-size: clamp(1.4rem, 2vw + .5rem, 2.4rem);
    line-height: 1.4;
    font-weight: 500;
    opacity: 0;
    animation: slideUp .8s 1.6s forwards;
    /* color: rgb(23, 82, 131); */
}

/* subtitle slides FROM BOTTOM */
.stars-subtitle {
    margin: 1.75rem 0.5rem 0rem;
    font-size: clamp(1.1rem, 2vw + .5rem, 1.25rem);
    line-height: 1.5;
    font-weight: 500;
    opacity: 0;
    animation: slideUp .8s 1.6s forwards;
    /* color: rgb(23, 82, 131); */
}

/* make text more visible */

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.025); /* Adjust opacity as needed */
    z-index: 1; /* Below .hero-content */
}

.hero-title,
.hero-subtitle,
.stars-subtitle {
    text-shadow: 0 3px 5px rgba(0, 0, 0, 0.6);
}

/* buttons fade IN */
.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  /* align-items: center; */
  column-gap: 1rem;   /* horizontal space  */
  row-gap: 0.8rem; /* vertical space    */
  opacity: 0;
  animation: fadeIn 0.8s 1s forwards;
}

.hero-button {
    font-size: 1.05rem;
    display: inline-block;
    font-weight: 650;   
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
    color: white;
    background-image: linear-gradient(mediumaquamarine, mediumseagreen);
    border-width: 0;
    padding: 0.7rem 1.5rem;
    border-radius: 1.5em;
    margin: 0.5rem auto 0;
    cursor: pointer;
    text-decoration: none;
    align-items: center; /* horizontally */
    transition: background .3s, transform .3s;
    /* color: white;
    background-image: linear-gradient(rgb(21, 153, 21), green); */
}
.hero-button:hover     { 
    transform: translateY(-2px); 
}

/* ----------  ANIMATIONS  ---------- */
@keyframes slideDown {
  from { transform: translateY(-100%); opacity:0; }
  to   { transform: translateY(0);     opacity:1; }
}
@keyframes slideUp {
  from { transform: translateY(100%); opacity:0; }
  to   { transform: translateY(0);    opacity:1; }
}
@keyframes fadeIn {
  from { opacity:0; transform: scale(.95); }
  to   { opacity:1; transform: scale(1);    }
}

/* testimonials */
.testimonials-cont {
    max-width: 450px;
    margin: 1.3rem auto 0rem;
    padding: 0.2rem 1.2rem;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 1rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    opacity: 0;
    animation: slideUp .8s 1.6s forwards;
}

.testimonials-cont p {
    font-size: 1.05rem;
    line-height: 1.4;
    /* margin-bottom: 0.8rem; */
    position: relative;
    /* padding-left: 40px; */
}

.testimonials-cont p br + em {
    display: block;
    margin-top: 6px;
    font-style: normal;
    font-weight: bold;
    color: #444;
}

/* New lessons every week */
.newlessons-container {
    width: 100%;
    overflow: hidden;
    margin: 0 auto;  
}

.newlessons {
    display: flex;
    flex-direction: column;
    justify-content: center; /* Vertically centers the text */
    align-items: center;      /* Horizontally centers the text */
    
    padding: 2rem;
    border-radius: 1.25rem;

    background: url('/static/img/hero2-v1.webp') center/cover no-repeat;
    max-width: 100%;
    overflow: hidden;
    margin: 1rem auto;

    min-height: 50vh; /* Takes up significant vertical space on all screens */
    text-align: center; /* Optional: center the paragraph text */
    
}

.newlessons-item {
    font-size: 1.5rem;
    text-shadow: 0 4px 6px rgba(0, 0, 0, 0.6);
    margin: 0.8rem auto;
    /* text-align: left; */
    max-width: fit-content;
    color: white;
    font-weight: 600;
    opacity: 1;
    /* animation: slideDownSubscribe 1s .2s forwards; */
}

@media (max-width: 600px) {
    .newlessons-container {
        width: 100%;
    }
    .newlessons-item {
        font-size: 1.2rem;
    }
}