@font-face {
    font-family: "Nissan Regular";
    src: url(nissanbrand_regular.woff);
}

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Nissan Regular";
    cursor: pointer;
}
body{
    overflow: hidden;
}


#background-video{
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: -1;
}

header{
    position:absolute;
    width: 100vw;
    display: flex;
    justify-content: space-around;
    align-items: center;
    backdrop-filter: blur(20px);
    box-shadow: 5px 5px 20px 0px black;
    animation: slidedown 1s ease-in-out forwards;
}

@keyframes slidedown{
    from{
        top: -100%;
    }

    to{
        top: 0%;
    }
}

header img{
    height: 50px;
    filter: invert(100%);
    padding: 5px 0px;
}

nav{
    width: 40vw;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}

a{
    all: unset;
    color: white;
}

.social{
    width: 15vw;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.social img{
    filter: invert(100%);
    height: 28px;
}

button{
    position: absolute;
    all: unset;
    color: white;
    font-weight: lighter;
    /* border: solid 1px; */
    border-radius: 22px;
    padding: 10px 15px;
    background-color: black;
    width: 120px;
}

.info{
    height: 50vh;
    width: 25vw;
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 28%;
    right: 0%;
    color: white;
    /* backdrop-filter: blur(10px); */
    padding: 2%;
    border-radius: 10px;
    animation: slideleft 1s ease-in-out forwards;

}

@keyframes slideleft{
    from{
        right: -100%;
    }
    to{
        right: 0%;
    }
}
.info p{
    text-align:justify;
    padding-top:5%;
}


.about-car{
    height: 35vh;
    position: absolute;
    top: 33%;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: start;
    flex-direction: column;
    padding: 2%;
    animation: slideright 1s ease-in-out forwards;
}

@keyframes slideright{
    from{
        left: -100%;
    }
    to{
        left: 0%;
    }
}

.about-car h1:hover{
    text-decoration: underline;
    text-shadow: 7px 7px 10px black;
}

footer{
    position: absolute;
    bottom: 0;
    width: 100vw;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    flex-direction: row;
    padding-bottom: 1%;
    animation: slideup 1s ease-in-out forwards;
}

@keyframes slideup{
    from{
        bottom:-100%;
    }
    to{
        bottom: 0%;
    }
}

.copyright, .author{
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
}
footer hr{
    rotate: 180deg;
    height: 50px;
    width: 3px;
    background-color: white;
}

.author{
    flex-direction: column;
}

@media screen and (max-width: 1100px){
    .info{
        position: absolute;
        top: 5%;
        width: 100%;
    }

    .info button{
        width: 120px;
    }

    .info p{
        padding-top: 2%;
    }

    .about-car{
        position: absolute;
        top: 70%;
        width: 100%;
        display: flex;
        justify-content: space-around;
        align-items: center;
        flex-direction: row;
        font-size: small;
    }
}


@media screen and (max-width: 760px ) {
    .social{
        display: none;
    }

    nav{
        width: 80%;
    }
    
}

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

    footer{
        display: flex;
        flex-direction: column;
    }

    footer hr{
        display: none;
    }

    .about-car{
        display: none;
    }

    .copyright{
        text-align: center;
    }
    
}
