@font-face {
    font-family: Ferrari Sans;
    src: url(img/Ferrari-Sans-Light.ttf);
    font-weight: 100;
}
@font-face {
    font-family: Ferrari Sans;
    src: url(img/Ferrari-SansMedium.ttf);
    font-weight: 300;
}

*{
    box-sizing: border-box;
}

html, body, .main{
    height: 100%;
    width: 100%;
    margin: 0;background: black;
}

.main{
    display: flex;
    flex-direction: column;
    background: url(img/EXPLORE_FERRARI_WEBPAGE_BKG_01.jpg);
    background-size: cover;
    color: white;
    max-height: 100%;
    font-family: "Ferrari Sans";
    font-weight: normal;
    color: white;
}


.header{
    background-color: black;
    width: 100%;
    height: 60px;
    display: grid;
    grid-template-columns: 20% 60% 20%;
    grid-template-rows: 100%;
    align-items: center;
    padding: 0 2%;
    font-weight: normal;
    font-size: 14px;
}

.title{
    align-self: center;
    justify-self: center;
    margin: 0 auto;
    font-size: 1.55vw;
}
.logo{
    height: 65%;
    width: auto;
}

.learn-more{
    margin-left: auto;
    height: 100%;
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: flex-end;
}
.learn-more img{
    height: 70%;
    margin-left: 3%;
    cursor: pointer;
}


.content{
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
}
.iframe-container{
    width: 64%;
    justify-content: center;
    display: flex;
}


.footer{
    flex: 1;
    height: 0;
    max-height: 150px;
    margin-top: auto;
    font-weight: 100;
    text-transform: uppercase;
    font-size: 1.2vw;
    text-align: center;
}

.learn-more-footer{
    font-size: .9vw;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0 8.5%;
}
.learn-more-footer img{
    height: 40px;
    margin-left: .5%;
    cursor: pointer;
}
.footer-mobile{
    display: none;
    align-items: center;
    justify-content: center;
    position: absolute;
    width: 100%;
    flex: 1;
    bottom: 8%;
}
.footer-mobile img{
    width: 8%;
}


/* TABLET PORTRAIT */
@media screen and (max-width: 1024px) and (orientation: portrait){
    .header, .footer{
        display: none;
    }
    .heading{
        width: 80%;
        font-size: 2vw;
        margin: 1.5em 0;
    }
    .iframe-container{
        height: 100vh;
        width: 100%;
    }
    .footer-mobile{
        display: flex;
    }
    .footer-mobile img{
        width: 4%;
    }
    
}

/* MOBILE PORTRAIT */
@media screen and (max-width: 480px) and (orientation: portrait){
    .header, .sidebar, .footer{
        display: none;
    }
    .main{
        background: black;
    }
    .iframe-container, .content{
        height: 100%;
        width: 100%;
        margin-left: 0;
    }
    .footer-mobile{
        display: flex;
    }
    .footer-mobile img{
        width: 8%;
    }
}

/* MOBILE/TABLET/FRAME LANDSCAPE */
@media screen and (max-width: 1400px) and (orientation: landscape){
    .header, .sidebar, .footer{
        display: none;
    }
    .main{
        background: black;
    }
    .iframe-container, .content{
        width: 100%;
        height: 100%;
        margin-left: 0;
    }
    .iframe-container{
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}