/* Main styles for the game */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #f0f8ff;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.game-container {
    width: 90%;
    max-width: 1000px;
    min-height: 80vh; /* Changed from fixed height to min-height */
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

.screen {
    display: none;
    width: 100%;
    min-height: 100%;
    padding: 40px 20px;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.screen.active {
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Changed to space-between for better distribution */
}

.intro-content, .complete-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

h1 {
    font-size: 3rem;
    color: #2980b9;
    margin-bottom: 20px;
}

h2 {
    font-size: 1.8rem;
    color: #3498db;
    margin: 10px 0 30px;
}

.task-instruction {
    background-color: rgba(52, 152, 219, 0.1);
    padding: 15px;
    border-radius: 10px;
    width: 90%;
    max-width: 800px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-top: 0;
}

.game-top {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.btn {
    padding: 15px 30px;
    font-size: 1.2rem;
    background-color: #27ae60;
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.3s, background-color 0.3s;
}

.btn:hover {
    background-color: #2ecc71;
    transform: scale(1.05);
}

.task-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
    padding-top: 20px;
}

.image-container {
    display: flex;
    justify-content: space-around;
    width: 100%;
    margin-top: 20px;
    margin-bottom: 30px; /* Add bottom margin to prevent clipping */
}

.image-choice {
    width: 45%;
    max-width: 400px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border: 4px solid transparent; /* Transparent border by default */
}

.image-choice:hover {
    transform: scale(1.03);
}

.image-choice.selected {
    border-color: #27ae60; /* Green border for selected image */
    box-shadow: 0 0 15px #27ae60; /* Green glow effect */
}

.image-choice img {
    width: 100%;
    height: auto;
    display: block;
}

.feedback-container {
    margin-top: 20px;
    margin-bottom: 20px; /* Added bottom margin */
    padding: 15px;
    border-radius: 10px;
    background-color: rgba(46, 204, 113, 0.2);
    transition: all 0.3s;
    width: 90%; /* Set width to match other elements */
    max-width: 800px;
    align-self: center;
}

.feedback-container.hidden {
    opacity: 0;
    visibility: hidden;
    height: 0;
    margin: 0;
    padding: 0;
}

#feedback-text {
    font-size: 1.5rem;
    font-weight: bold;
}

.sparkles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}
