@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Merriweather+Sans:wght@700&family=Roboto:wght@400&family=Lora:wght@700&family=Open+Sans:wght@400&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Merriweather', serif;
}

body {
    /* display: flex; */
    /* justify-content: center; */
    /* align-items: center; */
    min-height: 100vh;
    width: 100%; /* Ensure body takes full width */
    background-color: #f5f5f5;
}
.main{
    width: 100%;
}

.container, .subcont {
    display: flex;
    gap: 20px;
    width: 85vw;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.container {
    margin-top: 15px;
    flex-direction: column;
    width: 100%; /* Ensure subcontainers take full width */
}
.card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: 400px;
    position: relative;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    opacity: 0; 
    transform: translateY(20px); 
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out; 
    height: 560px;
}
.card.visible {
    opacity: 1; 
    transform: translateY(0); 
}
.card:hover {
    transform: scale(1.01);
    box-shadow: 0 12px 16px rgba(0, 0, 0, 0.2);
}

.card:hover .card-image {
    transform: scale(1.1);
    transition: transform 0.3s ease-in-out;
}

.image-wrapper {
    overflow: hidden;
    position: relative;
    width: 100%;
    height: 350px;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease-in-out;
    position: absolute;
    top: 0;
    left: 0;
}

.card-content {
    padding: 15px;
    position: relative;
    z-index: 1;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}

.card-brand {
    color: #6F4E37;
    font-size: 0.9rem;
    margin-bottom: 5px;
    text-align: center;
    font-family: cursive;
}

.card-title {
    color: black;
    font-size: 1.4rem;
    margin-bottom: 10px;
    text-align: center;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
}

.card-rating {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.stars {
    color: #FFD700; 
    font-size: 1rem;
    margin-right: 5px;
}

.rating-count {
    color: #0E8DBF;
    font-size: 0.9rem;
}

.card-button {
    background-color: #6F4E37;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out;
    display: block;
    margin: 0 auto;
}
.card-button a{
    text-decoration: none;
    color: white;
}

.card-button:hover {
    background-color: #0E8DBF;
}

@media (max-width: 768px) {
    .card {
        width: 90%;
    }
}

@media (max-width: 500px) {
    .card {
        width: 100%;
    }
}
