@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

*, *::before, *::after {
    box-sizing: border-box;
}

:root {
    font-size: 62.5%; /* changes 16 to 10 pixels */
    color-scheme: light dark;

    --elate-green: #007078;
    --darker-green: #0D3639;
    

    --light-summ-bg: #dfdfdf;
    --light-dets-bg: #cccccc;
    --light-bg: #FFF;
    --light-text: #000;
    --light-subtext: #665;
    --light-grey: #888;


    --dark-summ-bg: #333;
    --dark-dets-bg: #222;
    --dark-bg: #252525;
    --dark-text: #FFF;    
    --dark-subtext: #888;
}

html,
body {
    font-family: 'Montserrat', 'Inter';
    font-size: 1.6rem;
    font-weight: 600;
    color: light-dark(var(--light-text), var(--dark-text));
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body, h1, h2, h3, h4, h5, h6, p {
    margin: 0;
    padding: 0;
}

body {
    background: light-dark(var(--light-bg), var(--dark-bg));
}


/*------------------------------------ end minimal css reset -----------------------------------*/

a {
    color: var(--elate-green);
}

.sect-title:nth-of-type(1) { 
    margin-top: 2rem;
}

.sect-title {
    margin: .5rem 0;
}

header { 
    color: var(--dark-text);
    background: var(--darker-green);
    border-radius: 0 0 2rem 2rem;
    padding: 2rem;
    z-index: 1;
}

span {
    color: var(--elate-green);
    font-weight: 850;
}

body p { 
    font-weight: 600;
}

li, ul { 
    all: unset;
    font-size: 1.8rem;
    margin: .75rem 0;
    display: block;
}

.content {
    margin: 1rem;
}

.smaller { 
    margin-top: -1rem;
    font-size: 1.4rem;
    color: light-dark(var(--light-subtext), var(--dark-subtext));
    margin-left: 3rem;  
}

.smaller a { 
    color: var(--elate-green);
    text-decoration: underline;
    cursor: pointer;
}

.fa-circle-info {
    position: relative;
    top: 1.5rem;
    left: -2rem;
}

summary {
    padding: 1rem;
    display: block;
    color: light-dark(var(--light-text), var(--dark-text));
    background: light-dark(var(--light-summ-bg), var(--dark-summ-bg));
    padding-left: 2.2rem;
    position: relative;
    cursor: pointer;
    user-select: none;
}

details {
    width: 80%;
    margin: 0 auto ;
    color: light-dark(var(--light-text), var(--dark-text));
    background: light-dark(var(--light-dets-bg), var(--dark-dets-bg));
    margin-bottom: .5rem;
    box-shadow: 0 .1rem 1rem -.5rem rgba(0,0,0,.4);
    border-radius: 5px;
    overflow: hidden;
}



/* triangle */
summary:before {
    content: '';
    border-width: .7rem;
    border-style: solid;
    border-color: transparent transparent transparent light-dark(var(--light-text), var(--dark-text));
    position: absolute;
    top: 1.3rem;
    left: 1rem;
    transform: rotate(0);
    transform-origin: .2rem 50%;
    transition: .25s transform ease;
}
  
  /* THE MAGIC 🧙‍♀️ */
details[open] > summary:before {
    transform: rotate(90deg);
}
  
  
details summary::-webkit-details-marker {
    display: none;
}

details > *:not(summary) { 
    margin: .8rem;
}

details > .pushedout {
    margin-top: .5rem;  
    margin-left: 1rem;
}

details > .pushedout:nth-of-type(3) {
    margin-top: .5rem;  
    margin-left: 1rem;
    font-size: 1.375rem;
}

button {
    text-transform: uppercase;
    padding: 2rem 3rem; 
    font-size: 1.8rem;
    font-weight: 600;
    background: var(--elate-green);
    border: none;
    border-radius: .75rem;
    color: #FFF !important;
    cursor: pointer;
}

.cta {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin: 2rem;
}

.cta > p { 
    font-size: 1.8rem;
    font-weight: 700;
}

.cta > * {
    margin: 1rem;
}

.overlay { 
    display: none;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    position: fixed;
    padding: 2rem;
    margin: .75rem;
    border-radius: 1rem;
    margin-top: 20dvh;
    flex-direction: column;
    height: fit-content;
    width: fit-content;
    background: light-dark(var(--dark-dets-bg), var(--light-summ-bg));
    z-index: 999;
    color: light-dark(var(--dark-text), var(--light-text));
}

.overlay p:nth-of-type(1) {
    color: var(--elate-green);
    font-size: 3rem;
    font-weight: 850;
    margin-bottom: 2rem;
}

.overlay p { 
    margin-bottom: 1rem;
    font-size: 1.8rem;
    font-weight: 600;
    text-align: center;
}

.overlay i {
    position: absolute;
    top: 2rem;
    right: 2rem;
}

#errorText { 
    display: none;
    color: red;
    font-size: 1.6rem;
    font-weight: 600;
    margin-top: 1rem;
}

.flex-btn {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    width: fit-content;
    height: fit-content;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}  

footer {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    bottom: 0;
    left: 0;
    text-align: center;
    width: 100%;
    height: fit-content;
    margin: 5rem 0;
    margin-left: 1rem;
}

@media screen and (min-width: 768px) {
    .overlay {
        margin-left: 25dvw;
    }
    
}

