@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@400;500;700&display=swap');

:root{
    --text-light: #434343;
    --text-dark: #000000;
    --color-primary: #413AFD;
    --logo-size: 40px;
    --logo-size-footer: 26px;
    --background-dark: black;
    --mockup-scale-factor: 1;

    --fade-in-time-screenshot: 0.8s;
    --fade-in-time-heading: 0.8s;
    --fade-in-time-description: 0.8s;


    scroll-behavior: smooth;
}

*{
    margin:0;
    padding:0;
}


html{
    overflow-x: hidden;
    position: relative;
}

body{
    font-family: 'Nunito', sans-serif;
    overflow-x: hidden;
}

h1, h2, h3{
    font-family: 'Raleway', 'sans-serif';
}

.page1, .page2, .page3, .page4, .page5, .page6, .page7, .page8, .page9, .page10{
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8vh 10%;
    position: relative;
    margin-bottom: 5em;
}

.page1{
    margin:0;
    justify-content: center;
    padding: 10%;
    padding-top: 0;
    margin-top: 70px;
    margin-top: max(70px, 20vw);
    margin-bottom: 100px;
}

.page9, .page10{
    height: 100vh;
    justify-content: center;
}

nav{
    width: 100%;
    position: relative;
    top: 3vh;
}

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

.nav-links{
    position: fixed;
    top: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: calc(100vh - 50px - 30px);
    background-color: white;
    justify-content: space-evenly;
    transform: translateX(100%);
    transition: transform 0.3s ease-out;
    z-index: 9;
    padding-top: calc(50px + 2*2vh);
    padding-bottom: 30px;
}

.nav-active{
    transform: translateX(0%);
    transition: transform 0.3s ease-out;
}

.nav-link{
    list-style: none;
    cursor: pointer;
}

.nav-link.current a{
    color: var(--color-primary);
}

.nav-link.current::after{
    content: "";
    display: block;
    background-color: var(--color-primary);
    height: 1px;
    width: 120%;
    transform: translateX(-10%);
    margin: 0 auto;
}

.nav-logo-wrapper{
    display: flex;
    flex-direction: row;
    align-items: center;
}

.nav-logo{
    list-style: none;
}

.nav-logo:first-child{
    margin-right: 1em;
}

.nav-logo img{
    width: 2rem;
    height: 2rem;
}

.nav-language-switcher{
    display: flex;
    flex-direction: row;
}

.nav-language-icon img{
    width: 50px;
    padding: 5px;
}

.nav-toggle-wrapper{
    width: 100%;
    background: white;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    display: block;
}

.nav-toggle-button{
    width: 50px;
    height: 50px;
    padding: 2vh;
    transition: all 0.3s ease-out;
}

.nav-active + .nav-toggle-wrapper .nav-toggle-button{
    transform: rotate(90deg);
    transition: all 0.3s ease-out;
}

.burger{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    height: 4vh;
    width: 100%;
    justify-content: space-between;
    z-index: 100;
    position: fixed;
    top: 0;
    left: 0;
    padding: 2vh;
    background:white;
}

.burger div{
    height: 3px;
    background-color: var(--color-primary);
}

.burger .line1{
    width: 38px;
}

.burger .line2{
    width: 19px;
}

.burger .line3{
    width: 27px;
}

.text-regular{
    font-size: 1rem;
    font-weight: 400;
    line-height: 160%;
    color: var(--text-light);
    margin-top: 2.4vh;
    line-height: 30px;
}

.text-strong{
    font-size: 1rem;
    font-weight: 700;
    line-height: 160%;
    color: var(--text-light);
    margin-top: 2.4vh;
}

.text-dark{
    color: var(--text-light);
}

main{
    scroll-behavior: smooth;
}

.heading{
    color: var(--color-primary);
    font-weight: 700;
    font-size: 2.25rem;
    line-height: 164%;
}

.sub-heading{
    color: var(--text-dark);
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 164%;
    margin-top: 3.7vh;
}

.mockup{
    grid-row: 3;
    height: 90%;
    display: none;
}

.hidden{
    display: none;
}

.download-area{
    display: flex;
    margin-top: 50px;
    flex-direction: column;
    align-items: flex-start;
}

.download-area .icon-wrapper{
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    gap: 20px;
    margin-top: 10px;
}

.download-area p{
    font-size: 1.125rem;
    color: var(--text-light);
}

.download-area img{
    height: 40px;
}

.download-area a{
    color: #434343;
}

.feature-heading{
    font-family: 'Raleway', 'sans-serif';
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    grid-row: 2;
    margin-bottom: 25px;
    width: 100%;
    text-align: left;
    opacity: 0;
    transition: var(--fade-in-time-heading) all ease-out;
    transform: translateY(50px);
}

.feature-heading a, .feature-heading a:visited{
    color: var(--color-primary);
}

.feature-heading.fade-in{
    opacity: 1;
    transform: translateY(0);

}

.feature-description{
    font-size: 1rem;
    color: var(--text-light);
    grid-row: 3;
    align-self: start;
    line-height: 164.9%;
    opacity: 0;
    transition: var(--fade-in-time-description) all ease-out;
    transform: translateY(50px);
}

.feature-description.fade-in{
    opacity: 1;
    transform: translateY(0);
}

.screenshot{
    max-height: 400px;
    transform: translateY(50%);
    opacity: 0;
    margin-top: 3em;
}

.screenshot.fade-in{
    transform: translateY(0%);
    opacity: 1;
    transition: all var(--fade-in-time-screenshot) ease-out;
}

.circle-right{
    position: absolute;
    right: 0;
    bottom: 0;
    transform: translateX(90%) translateY(60%);
    overflow: hidden;
}

.circle-left{
    position: absolute;
    left: 0;
    bottom: 0;
    transform: translateX(-90%) translateY(60%);
    overflow: hidden;
}

.download-area-bottom{
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    max-width: 400px;
    gap: 1em;
}

.download-area-bottom img{
    height: 3.125rem;
    margin-top: 2em;
}

.download-android, .download-apple{
    display: flex;
    flex-direction: column;
    align-items: center;
}

.download-area-bottom p{
    text-align: center;
    font-size: 1rem;
}

.email-link{
    color: var(--color-primary);
}

footer{
    background: linear-gradient(var(--color-primary), hsl(242, 98%, 51%));
    color: white;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 100px;
}

.footer-heading{
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.footer-subheading{
    font-weight: 700;
    margin-bottom: 6px;
}

.footer-text{
    text-align: center;
}

footer a{
    color: white;
    margin-top: 12px;
}

@media only screen and (min-width: 1000px){
    html{
        font-size: 20px;
    }

    body{
        max-width: 1920px;
        margin: 0 auto;
        position: relative;
        box-shadow: 0 4px 10px rgba(0,0,0,0.25);
    }

    .page1{
        padding: 0;
        flex-direction: row;
        justify-content: flex-start;
        align-items: flex-start;
        padding-top: 170px;
        padding-bottom: 0;
        max-width: 1920px;
        margin-left: auto;
        margin-right: auto;
        margin-top: 200px; /* 150px is the height of the nav */
        height: auto;
        padding: 0 10%;
    }

    .landing-text-area{
        align-self: center;
        margin-left: 0;
        width: 50%;
        margin-right: 5%;
        margin-top: 0;
    }

    .mockup{
        display: block;
        width: 80%;
    }
    
    .page2, .page3, .page4, .page5, .page6, .page7, .page8{
        height: 100vh;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        padding: 0 10%;
        max-width: 1920px;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 1.5em;
    }

    .page9{
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .page9 .feature-heading{
        grid-row:1;
        justify-self: center;
        font-size: 2rem;
        text-align: center;
    }

    .feature-text{
        display: flex;
        flex-direction: column;
        width: 50%;
        margin-right: 10%;
    }

    .feature-heading{
        margin-bottom: 2em;
    }

    
    #questions-page .feature-heading, #download-page .feature-heading{
        display: block;
        width: 100%;
        text-align: center;
    }

    .screenshot{
        max-height: 60%;
        margin: 0;
        width: auto;
    }


    .nav-toggle-wrapper{
        display: none;
    }

    nav{
        position: fixed;
        top: 0;
        left:0;
        right: 0;
        margin: 0 auto;
        width: 100%;
        max-width: 1920px;
        height: 150px;
        transform: translateX(0%);
        background-image: url("de/assets/images/wave\(2\)\ 1.svg");
        background-position: right bottom;
        object-fit: contain;
        background-repeat: no-repeat;
        z-index: 10;
        transition: all 0.3s ease-out;
    }

    nav.nav-collapsed{
        background-position: 100%  -20px;
        height: 80px;
        transition: all 0.3s ease-out;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    nav.nav-collapsed .nav-links{
        margin-top: 20px;
        transition: all 0.3s ease-out;
    }
    
    .nav-links{
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        width: 80%;
        margin-top: 40px;
        margin-left: 10%;
        height: auto;
        justify-content: space-between;
        transform: translateX(0%);
        background-color: transparent;
        transition: all 0.3s ease-out;
        padding-top: 0;
    }

    .nav-link{
        padding: 0;
        color: white;
        flex-shrink: 0;
        overflow: hidden;
    }

    .nav-link:first-child{
        padding-left: 0;
    }

    .circle-left, .circle-right{
        display: none;
    }

    nav a{
        color: white;
    }

    .nav-link.current a{
        color: white;
    }
    
    .nav-link::after{
        content: "";
        display: block;
        background-color: transparent;
        height: 1px;
        width: 100%;
        margin: 0 auto;
        transition: all 0.3s ease-out;
    }

    .nav-link:hover::after{
        background-color: white;
        transition: all 0.3s ease-out;
    }

    .nav-link.current::after{
        background-color: white;
        width: 100%;
        transform: translateX(0%);
    }

    .nav-logo-wrapper{
        flex-direction: row;
    }

    .nav-logo{
        list-style: none;
    }

    .nav-logo:first-child{
        margin: 0;
        margin-right: 2em;
    }

    .nav-logo img{
        filter: brightness(0) invert(1);
        width: 1.5rem;
        height: 1.5rem;
    }

    .nav-language-switcher{
        display: flex;
        flex-direction: column;
        margin-top: -5px;
    }

    .nav-language-switcher:hover{
        background: white;
        border-radius: 10%;
        overflow: hidden;
    }

    .nav-language-switcher:hover .nav-language-icon{
        display: block !important;
    }

    .nav-language-icon img{
        width: 50px;
        padding: 5px;
    }

    .nav-language-icon:hover{
        background: #e6e6e6;
    }

    .nav-language-icon.secondary{
        display: none;
    }

    .download-area-bottom{
        flex-wrap: nowrap;
        max-width: 1000px;
    }

    .download-area-bottom img:nth-child(2){
        margin-left: 2em;
    }
}