@import url('https://fonts.googleapis.com/css2?family=Poppins&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cairo&display=swap');

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    font-family: 'Poppins', 'Cairo', sans-serif;
    background-color: #f0f0f0;
}

nav {
    width: 100%;
    height: 50px;
    position: fixed;
    top: 0;
    display: flex;
    padding: 10px;
    justify-content: center;
    align-items: center;
    background-color: #f0f0f0;
    z-index: 9999;
}

nav h1 {
    font-size: 24px;
    color: #333;
    margin-left: 20px;
    position: absolute;
    right: 30px;
    bottom: 2px;
}

nav div {
    height: 30px;
    width: 30px;
    position: absolute;
    right: 165px;
    bottom: 25px;
    background-color: #dfdfdf;
    border: 2px solid #ccc;
    border-radius: 5px;
    cursor: pointer;
}

nav div i {
    color: #333;
    font-size: 16px;
    margin-left: 7px;
    margin-top: 6px;
}

nav div:hover {
    background-color: #d2d2d2;
}

nav div input {
    display: none;
    position: relative;
    bottom: 16px;
    right: 5px;
    border-radius: 4px;
    border: none;
    height: 20px;
    font-family: 'poppins', 'Cairo', sans-serif;
}

.container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 100px;
    padding-bottom: 30px;
}

.card {
    width: 300px;
    height: 400px;
    background-color: #fff;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.card img {
    width: 100%;
    height: 100%;
}

footer {
    width: 100%;
    height: 50px;
    position: fixed;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f0f0f0;
}
#search {
    position: absolute;
    left: 30px;
}
@media (max-width: 515px) {
    footer p {
        font-size: 12px;
    }
}

@media (max-width: 443px) {
    #search {
        scale: 0.8;
        left: 80px;
    }
}

@media (max-width: 400px) {
    #search {
        scale: 0.9;
        left: 30px;
    }

    nav img {
        display: none;
    }
}

@media (max-width: 377px) {
    nav h1 {
        font-size: 20px;
        right: 20px;
    }
    #search {
        scale: 0.7;
        left: 26px;
        top: 10px;
    }
    nav {
        height: 40px;
    }

}

@media (max-width: 350px) {
    .card {
        scale: 0.8;
    }

    footer p {
        font-size: 10px;
    }

    .container {
        gap: 5px;
    }
}