* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #f8f9fc;
    font-family: "Comic Neue", cursive, sans-serif;
}

.comic-neue-regular {
    font-family: "Comic Neue", cursive, sans-serif;
    font-weight: 400;
    font-style: normal;
}

.hero {
    background-image: url(https://img.freepik.com/free-photo/flat-lay-composition-cinema-objects_23-2148115817.jpg?t=st=1726863116~exp=1726866716~hmac=0c291a0ac5f6c25ec8fcb79ea0d15c33c7414def5dc7a0415ccfdf592c6722a0&w=826);
    background-size: cover;
    background-position: center;
    height: 350px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
}

.hero-h1 {
    padding: 20px;
    font-family: "Fascinate Inline", cursive, sans-serif;
    text-align: center;
}

.movie-library {
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
}

h1 {
    font-size: 70px;
    color: white;
    font-family: "Fascinate Inline", cursive, sans-serif;
}

.fascinate-inline-regular {
    font-family: "Fascinate Inline", cursive, sans-serif;
    font-weight: 400;
    font-style: normal;
}

.controls {
    display: grid;
    justify-content: space-around;
    margin-bottom: 2dv;
}

.filter {
    display: flex;
    flex-direction: column;
    align-items: center;
}

select {
    background-color: #f4f3e4;
    border: none;
    border-radius: 20px;
    padding: 8px 15px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-family: "Comic Neue", cursive;
    font-weight: 900;
    width: 50%;
    margin: 25px auto;
    padding-left: 20px;
    font-size: 18px;

}


h3 {
    margin-bottom: 10px;
    color: #333;
}

h2 {
    margin-bottom: 10px;
    color: #333;
    font-size: 32px;
}

.filter-btn {
    background-color: #e4f4e8;
    border: none;
    border-radius: 20px;
    padding: 8px 15px;
    margin: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-family: "Comic Neue", cursive;
    font-weight: 900;
    font-size: 18px;
}

.filter-btn:hover {
    background-color: #c7e8d4;
}

.filter-btn.active {
    background-color: #d2f3c9;
}

.random-btn {
    background-color: #c5412d;
    border: none;
    border-radius: 20px;
    padding: 8px 15px;
    margin: 5px;
    cursor: pointer;
    font-weight: bold;
    color: white;
    transition: background-color 0.3s ease;
    font-family: "Comic Neue", cursive;
    font-weight: 900;
    font-size: 24px;
}

.random-btn:hover {
    background-color: #cc3016;
}

.random-box {
    background: white;
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    width: 90%;
    padding: 20px 10px;
}

.randomMovieButtonBox {
    display: flex;
    flex-direction: column;
    margin: 0 auto;
}

.randomMovieContainer {
    margin-top: 20px;
    padding: 10px;
    display: flex;
    justify-content: center;
    width: 50%;
    margin: 0 auto;
    flex-direction: column;
    border-radius: 15px;
}

.container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    justify-items: center;
    margin: 0% auto;
}

.card {
    display: flex;
    flex-direction: column;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 15px;
    width: 100%;
    padding: 10px;
    text-align: left;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
}


p {
    margin: 5px 0;
}

h4 {
    margin-top: 10px;
    font-size: 16px;
    color: #444;
}

@media (max-width: 768px) {

    h1 {
        font-size: 35px;
    }

    .container {
        grid-template-columns: 1fr;
    }

    .card img {
        height: 330px;
        width: 100%;
        margin: 0 auto;
    }


    .randomMovieContainer {
        margin-top: 20px;
        padding: 10px;
        display: flex;
        justify-content: center;
        width: 95%;
        margin: 0 auto;
        flex-direction: column;
    }

}

@media (min-width: 769px) and (max-width: 1023px) {
    h1 {
        font-size: 56px;
    }

    .container {
        grid-template-columns: 1fr 1fr;
    }

    .randomMovieContainer {
        width: 50%;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .card img {
        height: 375px;
        object-fit: cover;
    }
}
