body{
    font-family:sans-serif;
    background-color: white;
    margin: 0;
    overflow-x: hidden;
}


header{
    background-color: #E63946;
    padding: 5px;
    margin-top: -70px;
    box-shadow: 0px 4px 8px rgb(153, 153, 153);
}

header h1{
    font-size: 40px;
    position: relative;
    top: 60px;
    left: 25px;
    transition: 0.3s;
    display: inline-block;
}

header h1:hover{
    transform: scale(1.2);
    color: white;
    cursor: pointer;
    span{
        color: black;
    }
}

header span{
    color: white;
}

header span:hover{
    color: black;
    transition: 0.2s;
}

header nav ul{
    font-size: 19px;
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    gap: 15px;
}

header nav ul li a{
    font-weight: bold;
    text-decoration: none;
    color: black;
    transition: 0.3s;
    display: inline-block;
}

header nav ul li a:hover{
    transform: scale(1.2);
    color: white;
}


main{
    padding-top: 80px;
}


main input{
    display: block;
    margin: 20px auto;
    border: 1px solid rgb(211, 210, 210);
    width: 700px;
    height: 50px;
    border-radius: 8px;
    padding-left: 50px;
    font-size: 16px;
}


i{
    position: absolute;
    left: 50%;
    transform: translateX(-340px);
    top: 215px;
}


#ul2{
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 18px;
    margin-top: 20px;
}

#ul2 li a{
    text-decoration: none;
    color: black;
    border: 1px solid rgb(211, 210, 210);
    border-radius: 5px;
    padding: 10px;
    transition: 0.3s;
    display: inline-block;
    font-size: 13px;
}

#ul2 li a:hover{
    transform: scale(1.2);
    background-color: #E63946;
    color: white;
    border-color: #E63946;
}


hr{
    border: none;
    height: 1px;
    background-color: #ccc;
    margin: 20px 0;
    width: 100%;
}


main h2{
    margin: 20px;
    font-size: 20px;
    text-align: center;
}


.cards{
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 40px;
}

.card{
    background-color: #fff;
    width: 200px;
    height:330px;
    border-radius: 12px;
    box-shadow: 4px 4px 12px #aaaa;
}


.card img{
    border-radius: 12px 12px 0 0;
    width: 100%;
    height: 200px;
    object-fit: cover;
}


.card h1{
    display: flex;
    font-size: 1.2rem;
    justify-content: center;
}


.card h2{
    position: relative;
    left: 5px;
    top: -10px;
    font-size: .7rem;
    color: #aaaa;
}


.card span{
    font-size: 10px;
    display: flex;
    justify-content: center;
    position: relative;
    top: -20px;
}


.card button{
    background-color: #E63946;
    height: 30px;
    border: none;
    padding: 4px;
    width: 80%;
    color: #fff;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 12px;
    margin-left: 20px;
    margin-top: -10px;
}

.card button:hover{
    background-color: white;
    cursor: pointer;
    transition: 0.3s;
    color: #E63946;
    border: 1px solid #E63946;
}


footer{
    background-color: #E63946;
    width: 100%;
    height: 100px;
    color: white;
    font-size: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 110px;
}


@media (max-width: 768px){
    main input{
        width: 90%;
    }

    i{
        left: 20px;
    transform: none;
        
    }

    .cards{
        flex-direction: column;
        align-items: center;
        gap: 30px; 
    }

    .card{
        width: 90%; 
        max-width: 300px; 
        height: auto; 
        padding-bottom: 15px;
    }

    .card h2{
        top: -5px;
        font-size: .8rem; 
    }

    .card span{
        top: -10px;
    }

    .card button{
        width: 90%;
        margin: 10px auto 0 auto;
        display: block;
    }
    header ul{
        position: relative;
        top: 10px;
    }
}

/* Iphone 15 */
@media(max-width: 390px){
    main input{
        width: 90%;
    }

    i{
       left: 28px;
        transform: none;
        top: 220px;
    }

    .cards{
        flex-direction: column;
        align-items: center;
        gap: 30px; 
    }

    .card{
        width: 90%; 
        max-width: 300px; 
        height: auto; 
        padding-bottom: 15px;
    }

    .card h2{
        top: -5px;
        font-size: .8rem; 
    }

    .card span{
        top: -10px;
    }

    .card button{
        width: 90%;
        margin: 10px auto 0 auto;
        display: block;
    }
    header ul{
        position: relative;
        top: 10px;
    }
}

