:root {
    --primary-color: #222831;
    --seondary-color: #393e46;
    --background-color: #eeeeee;
    --prepertary-color: #ff6633;
    --header-height: 4.75rem;
    --max-width: 64rem; /* 1024px */
    --font-base: 16px;
}

html{
    font-size: 100%;
}

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

a{
    transition: color 0.3s;
}

a:hover{
    color: var(--prepertary-color);
}

p, li{
    font-weight: 400;
    font-size: 14px;
    line-height: 1.5;
}

/* body */
body{
    background-color: var(--background-color);
    color: var(--primary-color);
    width: 100%;
    margin: 0;
    padding: 0;
    display: block;
    font-family: "Inter", serif;
    font-optical-sizing: auto;
    font-size: 1rem;
    font-style: normal;
    text-align: justify;
}

/*header*/
#header{
    width: 100vw;
    height: var(--header-height);
    position: sticky;
    background-color: var(--primary-color);
    align-items: center;
    color: var(--background-color);
    top:0;
    z-index: 1000;

}

.header-container{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding-bottom: 12px;
    padding-top: 12px;
    margin: 0 auto;
    max-width: var(--max-width);
    width: 100%;
    height: 100%;
}

.icon-container{
    width: 204px;
    height: 48px;
}

.icon-container > a >img{
    height: 100%;
}

#nav-bar{
    display: flex;
    flex-direction: row;
    list-style: none;
    top:0;
    padding-top: 12px;
    padding-bottom: 12px;
}

.nav-link{
    margin-left: 24px;
    font-weight: 600;
    text-decoration: none;
    color: var(--background-color);
}

.nav-link > a:hover{
    color: var(--prepertary-color);
}

/*main*/
#title{
    margin-bottom: 12px;
    letter-spacing: 1.5px;
}

main{
    margin-left: auto;
    margin-right: auto;
    margin-top: 0;
    margin-bottom: auto;
    width: 100%;
    max-width: var(--max-width);
}

section{
    margin-bottom: 1.5rem;
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
}

#download{
    padding: 7rem 0;
    border-radius:0 0 7px 7px;
    display: grid;
    justify-content: center;
    text-align: center;
    height: 440px;
    row-gap: 0px;
    background-color: #E6E2D5;
}

.title-container{
    height: 48px;
}

#download h1{
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.download-button-container{
    width: 100%;
    height: 52px;
}

.download-button-container > a > img{
    height: 100%;
    filter: drop-shadow(1px 2px 3px #9d9d9d);
}

.download-source-container{
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    padding-left: 30px;
}

.download-source-container > :first-child{
    padding-right: 12px;
}

.download-source-container > :last-child{
    padding-left: 12px;
}

#features > ul{
    padding-left: 8px;
    font-size: 14px;
    margin-left: 8px;
}

.inner-list{
    margin-left: 12px;
}

#newsletter{
    display: grid;
    justify-content: center;
    margin-top: 48px;
}

#label{
    margin-bottom: 12px;
}

#input-submit{
    margin-left: 12px;
}


/*footer*/
footer{
    max-width: var(--max-width);
    padding: 0;
    margin: auto;
    height: 7em;
    background-color: var(--primary-color);
    color:var(--background-color);
    border-radius: 5px 5px 0 0;
    color: var(--background-color);
}

.nav-footer{
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    font-weight: 600;
    text-decoration: none;
    list-style: none;
    height: 100%;
    padding-top: 1em;
    padding-bottom: 1em;
    border-bottom: solid var(--background-color) 1px;
}

.footer-logo-container{
    display: flex;
    flex-direction: row;
    width: 96px;
    justify-content: space-around;
    padding-top: 4px;
    padding-bottom: 4px;
}

.logo-container{
    width: 1.125rem;
    height: 1.125rem;
    margin-right: 1em;
}

.logo-container > a > img{
    height: 100%;
}

.footer-link{
    height: 1.5rem;
    color: var(--background-color); 
    text-decoration: none;
}

.footer-link{
    text-decoration: none;
    font-weight: 600;
    color: var(--background-color);
}

.footer-link > a:hover{
    text-decoration: none;
    font-weight: 600;
    color: var(--prepertary-color);
}

.copyright{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    font-size: 0.6875em;
    align-items: center;
}

.copyright > div > h2{
    font-size: 0.875em;
    font-weight: 200;
}

@media only screen and (max-width: 1024px){

    :root{
        --max-width: 54rem;
    }

    .nav-footer{
        flex-direction: row;
        justify-content: space-around;
    }
}

@media only screen and (max-width: 768px) {
    :root{
        --max-width: 43.375rem;
    }

    #download > div > h1{
        font-size: 1.75em;
        font-weight: 700;
        margin-bottom: 0px;
    }

    iframe{
        margin-left: 4.188rem;
        margin-right: 4.188rem;
    }

    .nav-footer{
        flex-direction: row;
        justify-content: space-around;
    }
}

@media only screen and (max-width: 480px) {
    :root{
        --max-width: 28.125rem;
    }

    .nav-link{
        margin-left: 0.875rem;
        font-size: 0.875rem;
        font-weight: 600;
        text-decoration: none;
        color: var(--background-color);
    }

    #download > div > h1{
        font-size: 1.75em;
        font-weight: 700;
        
    }

    iframe{
     width: 22.5rem;
     height: 15rem;
     margin-left: 2.813rem;
     margin-right: 2.813rem;
    }

    .nav-footer{
        flex-direction: row;
        justify-content: space-around;
    }

    .footer-link{
        font-size: 14px;
    }
}

@media only screen and (max-width: 360px) {
    :root{
        --max-width: 20rem;
        --header-height: 48px;
    }


    p, li{
        font-weight: 400;
        font-size: 0.6875em;
        line-height: 1.5;
    }

    h1{
        font-size: 1em;
        font-weight: 750;  
    }

    h2{
        font-size: 0.875em;
        font-weight: 600;
    }

    /* header*/
    .header-container{
        align-items: center;
    }
    .icon-container{
        width: 7.5rem;
        height: 1rem;
    }

    .nav-link{
        margin-left: 0.875em;
        font-size: 0.75em;
        font-weight: 600;
        text-decoration: none;
        color: var(--background-color);
    }
    
    #nav-bar {
        padding-top: 0.25rem;
        padding-bottom: 0.25rem;
    }

    /* body*/
    #download{
        height: 22.5rem;
    }

    #download > div > h1{
        font-size: 1.125em;
        font-weight: 700;
    }

    .download-button-container{
        width: 15rem;
        height: 3.25rem;
        margin: auto;

    }
    
    .download-button-container > a > img{
        height: auto;
        width: 100%;
        filter: drop-shadow(1px 2px 3px #9d9d9d);
    }

    iframe{
       max-width: var(--max-width);
       width: 100%;
       height: auto;
       margin-left: 0;
       margin-right: 0;
    }

    label{
        font-size: 0.75em;
    }
    #label{
        text-align: center;
    }

    /* footer*/
    .nav-footer{
        padding-top: 1rem;
        padding-bottom: 0.75rem;
    }

    .nav-footer{
        flex-direction: row;
        justify-content: space-around;
    }

    .footer-link{
        font-size: 0.6875em;
    }

    .copyright > div > h2{
        font-size: 0.625em;
        font-weight: 200;
    }

    .logo-container{
        width: 0.875rem;
        height: 0.875rem;
        margin-right: 0.125rem;
    }
}