* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

.light {
    --text-color: #1f1f1f;
    --background-color: #e9fce9;
    --primary-color: #1ee11b;
    --primary-color-soft: #1ee11bcc; /*7be07b*/ /*70da70*/ /*7ee17b*/ /*5ee15b*/ /*21c51e*/
    --secondary-color: #616a6177;
    --secondary-color-soft: #616a6144;
    --header-footer-color: #cddbcd; /*ced8ce*/ /*c5d3c5*/
    --text-color-inverted: #e0e0e0;
    --background-color-inverted: #031603;
}

.dark {
    --text-color: #e0e0e0;
    --background-color: #031603;
    --primary-color: #21c51edd; /*21e31e*/ /*21a51e*/ /*21b51e*/
    --primary-color-soft: #21c51eaa; /*074d07*/ /*0c5d0c*/ /*116011*/ /*1d741b*/
    --secondary-color: #959d95;
    --secondary-color-soft: #959d95aa;
    --header-footer-color: #2d392d; /*273027*/ /*2c3a2c*/ /*414f41*/
    --text-color-inverted: #1f1f1f;
    --background-color-inverted: #e9fce9;
}

.prevent-select {
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: "Teko", sans-serif;
    font-optical-sizing: auto;
    text-align: center;
}

a {
    text-decoration: none;
    color: var(--text-color);
}

svg, img {
    display: block;
    width: 100%;
}

.anchor-button {
    background-color: var(--secondary-color-soft);
    border: solid var(--text-color);
}

.accent-button {
    background-color: var(--primary-color-soft);
}

.accent-color {
    color: var(--primary-color);
}

.secondary-color {
    color: var(--secondary-color);
}








header {
    position: fixed;
    width: 100%;
    top: 0;
    background-color: var(--header-footer-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.view-mode-container, .social-media-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header svg {
    max-width: 40px;
}

#header-logo {
    max-width: 50px;
    transition: transform 0.1s ease-out;
}

.social-media-container svg {
    fill: var(--text-color);
    transition: transform 0.1s ease-out;
}

.view-mode {
    fill: none;
    stroke: var(--text-color);
}

#view-mode-toggle {
    cursor: pointer;
}

#circle-animation {
    fill: var(--primary-color);
    fill-opacity: 50%;
    transition: transform 0.3s ease-out;
}





/* NEW STUFF */

#news, #summer-masterclass, #pictures {
    padding: 90px 30px 0;
    margin-bottom: -60px;
}

h4 {
    font-weight: 400;
    font-size: 1.25em;
}

#news h2 {
    padding-bottom: 40px;
}

#masterclass-offer p {
    padding: 5px 0;
}

#masterclass-more-info {
    margin-top: -100px;
}

#masterclass-apply {
    margin-top: -70px;
}

#annual-course-registration, #annual-course-registration-2, #take-a-look-photos {
    padding: 10px;
    width: unset;
    max-width: 250px;
}

#masterclass-registration {
    padding: 10px;
    margin-top: 20px;
    max-width: 250px;
    width: unset;
}

#photo-gallery {
    padding: 30px 30px 100px;
    margin: 60px auto -60px;
    max-width: 1200px;
    display: grid;
    gap: 30px;
    grid-template-columns: repeat(auto-fit, minmax(250px, 400px));
    justify-content: center;
}

#photos {
    padding: 100px 50px 0;
}











section {
    display: grid;
    justify-content: center;
    justify-items: center;
    align-content: stretch;
    align-items: stretch;
}

.wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#homepage {
    padding-top: 70px;
    height: 100svh;
}

.home-wrapper {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: space-between;
    justify-content: center;    
    gap: 4vw;
}

h1 {
    font-weight: 400;
    width: 100%;
}

h2 {
    font-weight: 500;
    color: var(--primary-color);
    font-size: 1.5em;
}

h3 {
    font-weight: 400;
    color: var(--primary-color);
    font-size: 1.2em;
}

.homepage-text {
    width: 100%;
    font-size: 1.1em;
}

.small-text {
    font-size: 0.7em;
}

.big-button {
    border-radius: 24px;
    border-width: 2px;
}

#email-anchor {
    text-decoration: underline;
}

table {
    table-layout: auto;
    width: 100%;
    max-width: 450px;
    border-spacing: 0 5px;
    padding: 0 2vw;
    vertical-align: baseline;
}

.video {
    margin: 60px auto;
}

iframe {
    border: none;
    aspect-ratio: 9 / 16;
    height: 1920px;
}




#go-to-top {
    border-bottom: none;
    border-width: 2px;
    border-radius: 9px 9px 0 0;
    padding: 0.2em 0.5em 0;
}

footer {
    width: 100%;
    background-color: var(--header-footer-color);
    border-top: 2px solid var(--text-color);
    padding: 1em;
}

.footer-text {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0 0.5em;
}

#privacy-policy {
    text-decoration: underline;
    transition: font-weight 0.1s ease-out;
}

#privacy-policy:visited {
    color: var(--text-color);
}






@media (any-hover: hover) {
    .accent-button:hover {
        background-color: var(--primary-color);
        box-shadow: 0 0 20px -5px var(--primary-color);
    }
    
    .secondary-button:hover {
        box-shadow: 0 0 20px -5px var(--secondary-color);
    }

    .social-media-container svg:hover {
        transform: scale(1.15);
        transition: transform 0.1s ease-out;
    }

    #header-logo:hover {
        transform: scale(1.075);
        transition: transform 0.1s ease-out;
    }
    
    #view-mode-toggle:hover #circle-animation {
        fill-opacity: 100%;
    }

    #email-anchor:hover {
        color: var(--text-color);
    }

    #privacy-policy:hover {
        font-weight: 500;
        transition: font-weight 0.1s ease-out;
    }
}

.accent-button:active {
    background-color: var(--primary-color);
    box-shadow: none;
}

.secondary-button:active {
    background-color: var(--secondary-color);
    box-shadow: none;
}

.social-media-container svg:active {
    transform: scale(1);
    transition: transform 0.1s ease-out;
}

#header-logo:active {
    transform: scale(1);
    transition: transform 0.1s ease-out;
}

#email-anchor:active {
    color: var(--text-color);
}





@media (orientation: portrait) {
    header {
        gap: 0 8vw;
        padding: 10px 15px;
    }

    .view-mode-container, .social-media-container {
        gap: 4px;
    }

    .social-media-container svg {
        padding: 1px;
    }

    section {
        max-width: 900px;
        margin: auto;
        grid-template-columns: 100%;
    }

    #homepage {
        grid-template-rows: minmax(0, 80vw) auto;
    }

    .animation {
        padding: 3vw 0;
        width: 100%;
    }

    .bassoon-microscope-animation {
        padding: 5vw 0;
    }

    .animation:not(#homepage-animation) {
        order: 1;
    }

    .wrapper {
        order: 2;
        padding-top: 3vw;
        gap: 3vw;
    }

    .homepage-text {
        margin: 0 0 -0.25rem;
    }

    .small-text {
        font-size: 0.87em;
    }

    .call-to-action-button {
        margin: 2vw auto;
    }

    iframe {
        height: 500px;
    }


    @media (width <= 330px) {
        body {
            font-size: 1.15rem;
        }

        section {
            padding: 60px 10vw 9vw;
        }

        #homepage {
            padding-top: 60px;
        }

        #main-logo {
            width: 45vw;
        }

        .big-button {
            width: 65vw;
            padding: 1vw 0 0.5vw;
            border-width: 1px;
        }

        .call-to-action-button {
            width: 50vw;
        }

        #go-to-top {
            border-width: 1px;
        }

        footer {
            border-width: 1px;
        }
    }
    

    @media (330px < width <= 375px) {
        body {
            font-size: 1.3rem;
        }

        section {
            padding: 65px 10vw 9vw;
        }

        #homepage {
            padding-top: 65px;
        }

        #main-logo {
            width: 50vw;
        }

        .big-button {
            width: 65vw;
            padding: 0.85vw 0 0.75vw;
        }

        .call-to-action-button {
            width: 50vw;
        }
    }
    

    @media (375px < width < 450px) {
        body {
            font-size: 1.4rem;
        }

        section {
            padding: 70px 10vw 9vw;
        }

        #main-logo {
            width: 55vw;
        }

        .big-button {
            width: 70vw;
            padding: 1.15vw 0 0.9vw;
        }

        .call-to-action-button {
            width: 50vw;
        }
    }


    @media (450px <= width < 615px) {
        body {
            font-size: 1.5rem;
        }

        section {
            padding: 70px 12vw 10vw;
        }

        .homepage-text {
            font-size: 1.2em;
        }

        #main-logo {
            width: clamp(40vw, 80%, 30vh);
        }
      
        .big-button {
            width: 45%;
            font-size: 1.4rem;
            padding: 0.85vw 0 0.75vw;
        }

        .animation {
            width: 80%;
        }

        #go-to-top {
            font-size: 1.4rem;
        }
    }


    @media (615px <= width < 1000px) {
        body {
            font-size: 1.6rem;
        }

        header {
            padding: 10px calc(10px + 2vw);
        }

        .view-mode-container {
            padding-right: 4px;
        }

        .social-media-container {
            gap: 6px;
        }

        section {
            padding: 70px 10vw 60px;
            grid-template-rows: minmax(0, 70vw) auto;
        }

        .homepage-text {
            font-size: 1.3em;
        }

        #main-logo {
            width: clamp(25vw, 50%, 30vh);
        }

        .big-button {
            width: 40%;
            padding: 0.75vw 0;
            font-size: 1.5rem;
        }

        .animation {
            width: 75%;
            padding: 2vw 0;
        }

        .small-text {
            font-size: 0.75em;
        }

        .call-to-action-button {
            margin: 0;
        }

        iframe {
            height: 700px;
        }

        #go-to-top {
            font-size: 1.3rem;
        }
        
        footer {
            margin-top: -2px;
        }
    }


    @media (width >= 1000px) {
        body {
            font-size: 1.75rem;
        }

        header {
            padding: 10px calc(10px + 2vw);
        }

        .view-mode-container {
            padding-right: 4px;
        }

        .social-media-container {
            gap: 6px;
        }

        section {
            padding: 70px 50px 90px;
            grid-template-rows: minmax(0, 70vw) auto;
        }

        .wrapper {
            padding-top: 25px;
            gap: 25px;
        }

        .home-wrapper {
            gap: 30px 40px;
        }

        .homepage-text {
            font-size: 1.4em;
        }

        #main-logo {
            width: 28vh;
        }

        .big-button {
            width: 35%;
            padding: 5px 0 4px;
        }

        .animation {
            padding: 30px 0;
            width: 70%;
        }

        .small-text {
            font-size: 0.75em;
        }

        .call-to-action-button {
            margin: 0;
        }

        .video {
            margin-top: 30px;
        }

        iframe {
            height: 800px;
        }

        #go-to-top {
            font-size: 1.4rem;
        }

        footer {
            margin-top: -2px;
        }
    }

    @media (height < 568px) {
        #homepage {
            height: unset;
            grid-template-rows: minmax(0, 50vw) auto;
        }
    }
}





@media (orientation: landscape) {
    header {
        padding: 10px calc(10px + 2vw);
    }

    .view-mode-container {
        gap: 6px;
        padding-right: 12px;
    }
    
    .social-media-container {
        gap: 12px;
    }

    section {
        grid-template-rows: 100%;
        align-content: center;
        align-items: center;
        justify-content: space-evenly;
    }

    footer, #go-to-top {
        border-width: 2px;
    }

    iframe {
        height: 800px;
    }


    @media (width < 950px) {
        body {
            font-size: min(3vw, 1.25rem);
        }
        
        header svg {
            height: 9vh;
            max-height: 35px;
        }

        #header-logo {
            height: 10vh;
            max-height: 40px;
        }

        .view-mode-container {
            gap: 6px;
            padding-right: 4px;
        }
        
        .social-media-container {
            gap: 8px;
        }

        section {
            grid-template-columns: repeat(2, minmax(0, max-content));
            padding: 60px 7vw 30px;
            gap: 4vw;
        }

        #homepage {
            grid-template-columns: minmax(0, 35vw) minmax(0, 40vw);
            padding: 60px 6vw 4vh;
            gap: 0;
            height: unset;
        }

        .home-wrapper {
            padding-top: 2vh;
            gap: 3vh 2vw;
        }

        #main-logo {
            max-width: min(40vh, 40vw);
        }

        .big-button {
            width: 18vw;
            font-size: 1.1rem;
            border-width: 0.25vw;
            padding: 0.4vw 0;
        }

        .wrapper {
            padding-top: 2vw;
            gap: 2vw;
        }

        .animation {
            max-width: 35vw;
        }

        .small-text {
            font-size: 0.85em;
        }

        .call-to-action-button {
            margin: 2vh 0;
        }

        #go-to-top {
            border-width: 0.25vw;
        }

        footer {
            border-width: 0.25vw;
        }
    }


    @media (950px <= width < 2000px) {
        body {
            font-size: min(2.1vw, 1.5rem);
        }

        section {
            grid-template-columns: repeat(2, minmax(0, max-content));
            padding: 70px;
            max-width: 1350px;
            margin: auto;
            gap: 40px;
        }

        #homepage {
            grid-template-columns: 40% 55%; 
            gap: 40px;
            padding-bottom: 40px;
        }

        .home-wrapper {
            gap: 15px 25px;
            align-content: space-evenly;
            height: 68vh;
        }

        #homepage-animation {
            height: 100%;
            padding: 40px 0;
        }

        .homepage-text {
            font-size: max(1.2em, 3vh);
        }

        #main-logo {
            max-width: min(35vh, 27vw);
            flex-grow: 1;
        }

        .big-button {
            width: min(45%, 250px);
            font-size: min(1.1em, 4vh);
            padding: 4px 0;
        }

        .wrapper {
            padding-top: 18px;
            gap: 18px;
        }

        .animation {
            width: clamp(250px, 36vw, 550px);
        }

        .small-text {
            font-size: 0.75em;
        }

        .call-to-action-button {
            margin: 15px 0;
            font-size: 1.4rem;
            max-width: 220px;
        }

        #go-to-top {
            font-size: 1.3rem;
        }

        footer {
            margin-top: -1px;
        }
    }


    @media (width >= 2000px) {
        body {
            font-size: 1.7rem;
        }

        header {
            padding: 10px calc(10px + 1vw);
        }

        section {
            grid-template-columns: repeat(2, minmax(0, max-content));
            padding: 70px;
            max-width: 1550px;
            margin: auto;
            gap: 60px;
        }

        #homepage {
            grid-template-columns: 50% 50%; 
            gap: 0;
            padding-bottom: 40px;
        }

        .home-wrapper {
            gap: 15px 25px;
            align-content: space-evenly;
            height: 70vh;
        }

        #homepage-animation { 
            height: 100%;
            width: 100%;
            padding: 80px 60px;
        }

        .homepage-text { 
            font-size: min(1.25em, 4vh);
        }

        #main-logo { 
            max-width: min(35vh, 20vw);
            flex-grow: 1;
        }

        .big-button {
            width: 300px;
            font-size: min(1.15em, 4vh);
            padding: 4px 0;
            border-width: 3px;
        }

        .wrapper {
            padding-top: 20px;
            gap: 20px;
        }

        .animation {
            width: 600px;
        }

        .call-to-action-button {
            margin: 10px 0;
            font-size: 1.65rem;
            width: 250px;
        }

        #go-to-top {
            font-size: 1.4rem;
            border-width: 3px;
        }

        footer {
            border-width: 3px;
            margin-top: -2px;
        }
    }

    @media (height < 568px) {
        #homepage {
            height: unset;
        }
    }
}