@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&family=Open+Sans:wght@400;600&display=swap');

body {
    min-height: 100vh;
    margin: auto;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    background-color: black;
    overflow-x: hidden;
}

.top-section
{
    position: relative;
}

.main-text
{
    padding: 50px;
    color: white;
    text-align: center;
}

.main-text-below
{
    margin-top: 60px;
    color: white;
    text-align: center;
}

.main-text-title
{
    font-size: clamp(2rem, 10vw, 4rem);
    line-height: 1.1;
    font-weight: bold;
}

.main-text-title a
{
    text-decoration: none;
}

.main-image
{
    min-width: 200px;
    width: 500px;
    max-width: min( 90%, 350px );
    aspect-ratio: 1.29;
    margin-top: 40px;
    text-align: center;
}

.main-image-below
{
    margin-top: 0px;
}

.main-text-subtitle
{
    font-size: clamp(1.2rem, 3vw, 1.6rem);
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.sign-up-button,
.join-button,
.submit-info-button,
.close-button
{
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    margin: auto;
    display: block;
    position: relative;
    margin-top: 50px;
    margin-bottom: 0px;
    padding: 12px 12px;
    font-size: clamp(1.3rem, 2vw, 1.4rem);
    cursor: pointer;
    background-image: linear-gradient(to right,#e052a0,#f15c41);
    color: white;
    border: none;
    border-radius: 2px;
    width: fit-content;
}

.close-button
{
    padding: 5px 40px;
}

.sign-up-button:hover,
.join-button:hover,
.submit-info-button:hover,
.close-button:hover
{
    background-image: linear-gradient(to right,#3ec8e0,#526af4);
}

.main-page-headline
{
    font-family:'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    font-size: larger;
    text-align: center;
    margin: auto;
    margin-top: 0px;
    margin-bottom: 90px;
    max-width: min( 90%, 500px );
    color: white;
    line-height: 1.5;
}

.intro-callout
{
    background-color: #444;
    color: white;
    z-index: 1;
    position: absolute;
    top: -50px;
    left: 400px;
    padding: 10px;
    text-align: center;
    border-radius: 2px;
    line-height: 1.4;
}

.toc-topic-group
{
    /* background-color: pink; */
    margin: auto;
    width: min( 700px, 90% );
}

.toc-topic
{
    position: relative;
    margin-top: 30px;
    margin-bottom: 30px;
    padding-bottom: 10px;
    width: 100%;
    /* background-color: #E8E8E8; */
    color: white;
    background-color: #222;
    border-radius: 5px;
    cursor: pointer;
    border-bottom: 3px solid #444;
    
    transition: background-color 0.4s ease;
}

.toc-topic:hover
{
    background-color: #333;
    /* transform: scale(1.02); */
}

.toc-topic-intro
{
    margin-top: 120px;
}

.toc-topic-expand-details
{
    display: block;
    margin-top: 10px;
    margin-left: 10px;
    width: 25px;
    height: 25px;
    cursor: pointer;
    transition: transform 0.1s ease;
    opacity: 0.5;
}

.toc-topic-expand-details.open
{
    transform: rotate( 90deg );
}

.infinity
{
    position: absolute;
    top: 10px;
    right: 10px;
    width: 20px;
}

.infinity-inline
{
    position: relative;
    top: 2px;
    width: 20px;
}

.toc-exercise
{
    display: none;
    position: relative;
    width: 85%;
    margin-left: 15%;
    margin-right: 0px;
    padding-bottom: 0px;
    transition: opacity 0.3s ease-in-out;
}

.exercise-ball-h
{
    position: absolute;
    top: 60px;
    left: -5px;
    width: 10px;
    height: 10px;
    background-color: #BBB;
    border-radius: 10px;
    transition: background-color 0.4s ease;
}

.exercise-ball-v
{
    position: absolute;
    top: -5px;
    left: -3px;
    width: 10px;
    height: 10px;
    background-color: #BBB;
    transition: background-color 0.4s ease;
    border-radius: 10px;
}

.exercise-stick-h
{
    position: absolute;
    top: 3px;
    left: calc( -1 * 5vw );
    width: 5vw;
    height: 4px;
    background-color: #BBB;
    transition: background-color 0.4s ease;
}

.exercise-stick-v
{
    position: absolute;
    top: -10px;
    left: 0px;
    width: 4px;
    height: 10px;
    background-color: #BBB;
    transition: background-color 0.4s ease;
}

.toc-topic:hover .exercise-ball-h,
.toc-topic:hover .exercise-ball-v,
.toc-topic:hover .exercise-stick-h,
.toc-topic:hover .exercise-stick-v
{
    background-color: white;
    z-index: 10;
}

.toc-topic-image
{
    display: inline-block;
}

.toc-topic-image-icon
{
    width: 150px;
    height: 150px;
    border-radius: 10px;
    margin-left: 15px;
    margin-top: 15px;
}

.toc-topic-image-icon-tall
{
    height: 300px;
}

.toc-exercise .toc-topic-image-icon
{
    width: 100px;
    height: 100px;
}

.toc-topic-title
{
    vertical-align: top;
    display: inline-block;
    padding: 10px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    font-size: x-large;
    max-width: calc( 100% - 220px );
    /* background-color: pink; */
    line-height: 32px;
}

.toc-exercise .toc-topic-title
{
    margin-top: 0px;
    max-width: calc( 100% - 140px );
}

.toc-topic-contents,
.toc-exercise .toc-topic-contents
{
    margin-top: 10px;
    padding-right: 10px;
}

.toc-exercise .toc-topic-contents
{
    max-width: 100%;
}

.toc-topic-contents
{
    text-transform: none;
    max-width: calc( 100% - 200px );
    font-family: sans-serif;
    font-size: medium;
    font-weight: normal;
    line-height: 24px;
}

.toc-topic-contents-moved
{
    padding-left: 0px;
    width: 510px;
    max-width: calc( 100vw - 35vw - 60px );
}

/* the contents moves to the title if there is space */
.toc-exercise .toc-topic-contents-moved
{
}

.toc-exercise .toc-topic-contents
{
    font-size: medium;
}

/* ***************************************************** */

.chapter-title
{
    font-family:'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    font-size: 30px;
    font-weight: bold;
    text-align: center;
    margin: auto;
    margin-top: 0px;
    padding-top: 30px;
    max-width: 90%;
    padding-bottom: 0px;
    color: white;
    border-top: 2px solid white;
}

.chapter-image
{
    min-width: 200px;
    width: 500px;
    max-width: min( 90%, 350px );
    display: block;
    margin: auto;
    margin-top: 40px;
    margin-bottom: 50px;
}

.section
{
    color: white;
    margin: auto;
    margin-top: 30px;
    max-width: 650px;
    padding-left: 20px;
    padding-right: 20px;
}

.section li
{
    margin-bottom: 10px;
}

li > ul
{
    margin-top: 10px;
}

.section-title
{
    font-family:'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 15px;
}

.section-paragraph
{
    margin-bottom: 15px;
    font-size: 18px;
    line-height: 26px;
}

.code
{
    font-family: 'Courier New', Courier, monospace;
    background-color: #585858;
    padding: 2px 4px;
    font-weight: bold;
    font-size: 14px;
    position: relative;
    top: -1px;
}

.code-block
{
    overflow-x: auto;
    tab-size: 4;
    padding: 10px;
    border: 2px solid gray;
    border-radius: 10px;
    font-size: 14px;
}

.author-picture
{
    width: 250px;
    max-width: 50%;
    float: left;
    margin-right: 15px;
    margin-bottom: 0px;
}

/* ***************************************************** */

.signup-header
{
    font-family:'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    font-size: x-large;
    text-align: center;
    margin: auto;
    margin-top: 0px;
    margin-bottom: 30px;
    font-weight: bold;
    max-width: calc( min( 90%, 500px ) );
    padding: 10px;
    color: white;
}

.signup-section
{
    margin-top: 30px;
    text-align: center;
    margin: auto;
    max-width: calc( min( 90%, 500px ) );
    color: white;
}

.signup-section-details
{
    color: black;
}

.user-details-area
{
    text-align: center;
    margin: auto;
    padding: 20px 10px;
    max-width: calc( min( 90%, 600px ) );
    background-color: white;
}

.details-entry
{
    margin: auto;
    text-align: left;
    width: fit-content;
    padding: 10px;
    padding-top: 0px;
}

.details-label,
.details-label-small
{
    text-align: center;
    font-size: large;
    font-weight: bold;
    margin-top: 30px;
    margin-bottom: 20px;
}

.details-label-small
{
    font-size: medium;
    font-weight: normal;
    line-height: 22px;
}

.check-box
{
    position: relative;
    margin-top: 10px;
    font-size: large;
    user-select: none;
}

.check-box-label
{
    display: inline-block;
    cursor: pointer;
    margin-left: 34px;
}

input[type="text"] {
    width: 90%;
    max-width: 300px;
}

input[type="checkbox"] {
    position: absolute;
    width: 20px;
    height: 20px;
    accent-color: darkblue;
    cursor: pointer;
    top: -3px;
    left: 0px;
}

.email-entry
{
    margin: auto;
    margin-top: 30px;
    width: 90%;
    max-width: 400px;
    text-align: center;
}

.details-text-entry
{
    padding: 4px 4px;
    font-size: medium;
    margin-top: 3px;
    width: 95%;
}

.details-first-name,
.details-email
{
    width: 95%;
}

select
{
    padding: 4px 2px;
    margin-top: 3px;
    font-size: 18px;
}

.signup-body
{
    padding-left: 10px;
    padding-right: 10px;
}

.signup-body .main-text
{
    padding: 30px 50px;
}

.thank-you-area
{
    font-size: large;
    margin: auto;
    padding: 20px 30px;
    margin-top: 40px;
    margin-bottom: 40px;
    max-width: 90%;
    text-align: center;
    border-top: 2px solid white;
    border-bottom: 2px solid white;
    border-radius: 10px;
    line-height: 1.3;
    color: white;
}

.logo
{
    display: block;
    width: 30%;
    margin: auto;
    margin-top: 30px;
}

.main-image-logo
{
    display: block;
    width: 30%;
}

.Footer
{
    color: white;
    margin: auto;
    margin-top: 50px;
    margin-bottom: 30px;
    text-align: center;
    max-width: 80%;
}

a
{
    color: white;
}

.hidden
{
    display: none !important;
}

.Content
{
    margin: 20px;
    margin-bottom: 30px;
    color: white;
}

.LegalHeading
{
    font-weight: bold;;
}

/***********************************************************/

.message-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.message-box {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    min-width: 250px;
    max-width: 400px;
    margin: 20px;
}

.message-box p {
    margin-bottom: 20px;
    font-size: 1.2em;
    color: #333;
}

/*
.close-button {
    background-color: #0056b3;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.2s ease;
}
*/

/***********************************************************/

sub, sup {
  font-size: 75%; /* Adjust font size as needed, typically smaller */
  line-height: 0;
  vertical-align: baseline; /* Align to the parent's baseline */
  position: relative;
}

sup {
  top: -0.5em; /* Move superscript up relative to its baseline */
}

sub {
  bottom: -0.25em; /* Move subscript down relative to its baseline */
}

/***********************************************************/

/* For WebKit browsers (Chrome, Safari, Edge) */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px white inset !important;
    /* Change 'white' to your desired background color */
    -webkit-text-fill-color: black !important;
    /* Optional: change text color as well */
    transition: background-color 5000s ease-in-out 0s;
    /* Optional: This can help "hide" the transition the browser applies */
}

/* For browsers supporting the standard :autofill pseudo-class (Firefox, modern browsers) */
input:autofill,
input:autofill:hover,
input:autofill:focus,
input:autofill:active {
    box-shadow: 0 0 0 1000px white inset !important;
    /* Change 'white' to your desired background color */
    color: black !important;
    /* Optional: change text color as well */
    transition: background-color 5000s ease-in-out 0s;
}

/***********************************************************/

@media (max-width: 767px) {
    .main-page-headline
    {
        margin-bottom: 0px;
    }
    .intro-callout
    {
        position: relative;
        top: 0px;
        left: 0px;
        text-align: center;
        margin-bottom: 10px;
    }
    .toc-topic-intro
    {
        margin-top: 40px;
    }
    .toc-topic-contents
    {
        width: unset;
        max-width: 90%;
        margin-left: 10px;
        margin-right: 20px;
        margin-bottom: 10px;
    }
    .toc-topic-contents-moved
    {
        margin-left: 0px;
    }
}

@media (max-width: 599px) {
    .code
    {
        font-size: 12px;
    }
    .code-block
    {
        font-size: 12px;
        line-height: 1.5;
    }
    .section-paragraph
    {
        margin-bottom: 15px;
        font-size: 16px;
        line-height: 24px;
    }
}

@media (max-width: 499px) {
    .toc-topic-title
    {
        width: calc( 100% - 210px );
        /* background-color: pink; */
    }
    
    .toc-topic-title .toc-topic-contents-moved
    {
        width: 100%;
        /* background-color: pink; */
    }
    
    .toc-exercise .toc-topic-title
    {
        width: calc( 100% - 150px );
    }
    
    .toc-topic-intro
    {
        margin-top: 0px;
    }
    
    .infinity
    {
        top: 8px;
        width: 20px;
    }
}

@media (max-width: 399px) {
    .toc-topic-title
    {
        display: block;
        width: unset;
        max-width: 85%;
    }
    .toc-exercise .toc-topic-title
    {
        width: unset;
        max-width: 85%;
    }
    .toc-topic-contents
    {
        width: unset;
        max-width: 85%;
    }
}
