/* General Styles */
body {
    font-family: 'Arial', sans-serif;
    background-color: #fbe7e5; /* Soft pink background */
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    color: #333;
}

/* Header */
header {
    width: 100%;
    background-color: #fddede;
    text-align: center;
    padding: 0;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-content img {
    height: 300px;
    width: auto;
    object-fit: contain;
}

/* Main Content Layout */
main.content {
    flex: 1;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
}

.game-title {
    text-align: center;
    margin-top: 30px;
    margin-bottom: 20px;
}

    .game-title h1 {
        font-size: 2.5rem;
        font-weight: bold;
        color: #5c415d; /* Dusty mauve for contrast */
        background-color: #ffe0ec;
        display: inline-block;
        padding: 12px 24px;
        border-radius: 20px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    }

.card {
    height: auto !important;
    min-height: 300px;
}
/* Bootstrap column padding fix */
.card-column {
    padding: 10px;
}
/* ?? Pastel Card Color Rotation using nth-of-type */
.row > div:nth-of-type(3n + 1) .game-card {
    background-color: #fff9c4; /* Soft Yellow */
}

.row > div:nth-of-type(3n + 2) .game-card {
    background-color: #fce4ec; /* Soft Pink */
}

.row > div:nth-of-type(3n + 3) .game-card {
    background-color: #e1f5fe; /* Soft Blue */
}
/* ?? Game Card Styling */
.game-card {
  width: 100%;
  max-width: 340px;
  min-height: 360px;
  background-color: #fff9c4;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
}

    .game-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    }

/* Card Image Section */
.card-img-top {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 220px;
    padding: 10px;
}

    .card-img-top img {
        max-height: 180px;
        width: auto;
        object-fit: contain;
        border-radius: 12px;
        background-color: white;
        padding: 15px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }
/* Card Content */
.card-body h5 {
    font-size: 1.4rem;
    margin-top: 15px;
    font-weight: bold;
}

.card-body p {
    font-size: 1rem;
    color: #555;
    margin: 10px 0 0;
}

.btn-play {
    background-color: #ffe0ec; /* Soft blush pink */
    color: #5c415d; /* Dusty mauve text for contrast */
    border: 2px solid #f8a5c2; /* Subtle outline */
    border-radius: 20px;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

    .btn-play:hover {
        background-color: #fce4ec; /* Slightly deeper pink on hover */
        color: #4a3a49;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
        transform: translateY(-2px);
    }

/* Prize Form & List */
.prize-input {
    width: 80%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

button {
    padding: 10px 20px;
    background-color: #f8a5c2;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    margin: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

    button:hover {
        background-color: #f76a8c;
    }

.prize-list {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2 columns */
    gap: 10px;
    padding: 0;
    margin: 20px 0;
    list-style: none;
}

    .prize-list li {
        background-color: #fff;
        padding: 10px;
        text-align: center;
        border-radius: 10px;
        color: #5c415d;
        font-weight: 500;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    }

.no-prizes-message {
    color: #999;
    font-size: 16px;
}

/* Footer */
footer {
    width: 100%;
    text-align: center;
    padding: 10px;
    background-color: #fddede;
    border-top: 2px solid #f8a5c2;
    font-size: 14px;
    color: #333;
}

  /* Center the game title */
    .game-title {
        text-align: center;
        margin-bottom: 20px;
    }

    /* Center the game columns */
    .game-container {
          display: grid;
    grid-template-columns: repeat(3, 1fr); /* Three equal columns */
    gap: 20px;
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    }

    /* Middle and right column layout */
    .middle-column, .right-column {
        background-color: #fff9c4;
        padding: 20px;
        border-radius: 10px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        text-align: center;
    }
.action-column {
    background-color: #e1f5fe; /* Soft blue */
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

    .action-column h2 {
        margin-bottom: 10px;
        color: #4a3a49;
    }

.reshuffle-btn,
.return-home-button {
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    background-color: #ffd1dc;
    color: #4a3a49;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
}

    .reshuffle-btn:hover,
    .return-home-button:hover {
        background-color: #f8a5c2;
        color: white;
    }

.pastel-btn {
    padding: 10px 20px;
    margin:10px;
    font-size: 16px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    background-color: lavenderblush; /* Pastel pink background */
    color: #4a3a49; /* Complementary dark pastel text */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
}

    .pastel-btn:hover {
        background-color: #f8a5c2;
        color: white;
    }
    /* Grid layout */
    .grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        justify-content: center;
        align-items: center;
        padding: 10px;
    }

.egg-container {
    width: 100px;
    height: 100px;
    background-color: white;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative; /* Needed for revealed text positioning */
    cursor: pointer;
}

.image-wrapper {
    width: 80%;
    height: 80%;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .image-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        display: block;
    }

/* ? Prize text that appears when clicked */
.revealed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    background-color: white;
    border-radius: 50%;
    font-weight: bold;
    font-size: 14px;
    color: #444;
    text-align: center;
    padding: 10px;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

    /* Reshuffle Button */
    .reshuffle-btn {
        margin-top: 20px;
        padding: 10px 20px;
        font-size: 16px;
        border: none;
        border-radius: 5px;
        background-color: #f39c12;
        color: white;
        cursor: pointer;
    }

        .reshuffle-btn:hover {
            background-color: #e67e22;
        }

    /* Highlight clicked prize */
    .highlighted {
        background-color: gold !important;
        border: 3px solid red;
        box-shadow: 0 0 10px red;
    }

/* Modal */
.modal {
    position: fixed;
    inset: 0; /* replaces top/left/right/bottom: 0 */
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    display: none; /* hide it initially */
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background-color: #ffe0ec;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    max-width: 400px;
    width: 90%;
    animation: fadeIn 0.3s ease-in-out;
}

    .modal-content h2 {
        margin-bottom: 20px;
        font-size: 1.5rem;
        color: #333;
    }

    .modal-content p {
        margin-bottom: 20px;
        font-size: 1.2rem;
        color: #666;
    }

.modal-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    margin-top: 20px;
}

    .modal-buttons button,
    .modal-buttons .return-home-button {
        padding: 10px 24px;
        border-radius: 12px;
        font-size: 16px;
        text-align: center;
        cursor: pointer;
        width: 200px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        transition: background-color 0.3s ease;
        text-decoration: none;
    }

    /* Play Again Button */
    .modal-buttons button {
        background-color: #f8a5c2;
        color: white;
        border: none;
    }

        .modal-buttons button:hover {
            background-color: #f76a8c;
        }
/* Back to Game List Link Button */
.return-home-button {
    background-color: #ffe0ec;
    color: #5c415d;
    border: 2px solid #f8a5c2;
}

    .return-home-button:hover {
        background-color: #fce4ec;
        color: #4a3a49;
    }

/* Fade-in animation for modal */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}
