body {
    background: rgb(58, 58, 58);
    color: white;
    font-family: Helvetica New, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
}

/* HEADER */

header {
    background-color: rgb(83, 83, 83);
    background-image: url("img/forest.jpg");
    background-size: cover;
    background-position: 0% 35% ;
    padding: 20px;
    height: 400px;
    text-align: center;
}

header a {
    color: black;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 20px;
    margin-top: 40px;
    /* transition: font-size 0.5s; */
    transition: all 0.25s ease-in-out;
}

header .mobile {
    display: none
}

header .logo a {
    background-image: url("img/logo.png");
    background-size: 200px;
    background-repeat: no-repeat;
    display: inline-block;
    position: relative;
    top: -40px;
    text-indent: -9999px;
    width: 200px;
    height: 120px;
}



nav ul {
    margin: 0;
    padding:0;
    list-style-type: none;
}

nav li {
    display: inline-block;
    margin-right: 20px;
}

/* RESONSIVE RULES */

@media (any-pointer: coarse) {
    body::-webkit-scrollbar {
        display: none;
    }
    
    body {
        -ms-overflow-style: none;  /* IE and Edge */
        scrollbar-width: none;  /* Firefox */
    }
}

@media screen and (max-width: 740px) {
    body::-webkit-scrollbar {
        display: none;
    }
    
    body {
        -ms-overflow-style: none;  /* IE and Edge */
        scrollbar-width: none;  /* Firefox */
    }
    
    header {
        height: 250px;
    }

    header a {
        font-size: 15px;
    }

    header .mobile {
        display: inline-block;
    }
    header .logo {
        display: block;
    }
    header .desktop{
        display: none;
    }
}

/* CARS */

.cars {
    background: rgb(14, 14, 14);
    color: gray;
    padding: 20px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

.cars figure {
    margin: auto;
    text-align: center;
    text-transform: uppercase;
    width: 30%;
    min-width: 400px;
    padding: 20px;
    padding-top: 0px;
}


.cars figcaption {
    padding: 10px;
}

.cars figure img{
    background: rgb(46, 46, 46);
    border: 1px solid grey;
    border-radius: 10px;
    box-shadow:rgb(58, 58, 58) 0 0 10px;
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: all 0.25s ease-in-out;;
}

/* RESONSIVE RULES */
@media screen and (max-width: 740px) {

    .cars{
        display: block;

    }
    .cars figure {
        width:auto;
        max-width: 400px;
        min-width: 0px;
        object-fit: cover;
    }
}

/* FOOTER */

footer {
    background: black;
    color: gray;
    font-size: 12px;
    text-align: center;
    padding: 20px 20px;
}

/* HOVER  */

@media screen and (min-width: 741px) {
    header a.navi:hover {
        /* transform: scale(1.5,1.5); */
        font-size: 22px;
        position: relative;
        color: rgb(116, 1, 1);
        /* background-color: red; */
    }
    
    header a.navi::after {
        display: block;
        content: attr(title);
        font-size: 22px;
        height: 0;
        overflow: hidden;
        visibility: hidden;
    }

    .cars figure img:hover {
        transform: scale(1.05,1.05);
    }
    

}