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

body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #111;
    color: white;
    text-align: center;
    padding: 20px;
}

/* Star Layout */
.stars-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.star {
    width: 150px;
    height: 150px;
    cursor: pointer;
}

/* Popup */
.popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    color: black;
    width: 80vw;
    max-width: 1000px;
    max-height: 80vh;
    overflow-y: auto;
}

/* Desktop: Image on the Left */
.popup-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Image inside Popup */
.popup img {
    width: 50%;
    /* min-width: 150px; */
    max-width: 850px;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
}

/* Popup Text */
.popup-text-container {
    flex: 1;
    text-align: left;
}

.popup-title {
    font-size: 18px;
    font-weight: bold;
}

.popup-text {
    margin-top: 10px;
}

/* Close Button */
.popup button {
    margin-top: 10px;
    padding: 5px 10px;
    border: none;
    cursor: pointer;
    background: #ff4757;
    color: white;
    border-radius: 5px;
}

/* Mobile: Image on Top */
@media (max-width: 600px) {
    .popup-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .popup img {
        width: 80%;
    }

    .popup-text-container {
        text-align: center;
    }

    .popup {
        width: 90vw;
    }

    .stars-container {
        gap: 5px;
    }

    .star {
        width: 100px;
        height: 100px;
    }
}