/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
}

/* Typography */
h1, h2, h3 {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

h1 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 0.5rem;
    color: #3498db;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

h2 {
    font-size: 1.5rem;
    color: #2980b9;
    margin-top: 1rem;
}

h3 {
    font-size: 1.2rem;
    color: #34495e;
}

/* Layout Containers */
header {
    text-align: center;
    margin-bottom: 2rem;
    width: 100%;
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.subtitle {
    font-size: 1.1rem;
    color: #7f8c8d;
}

main {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

.game-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

footer {
    margin-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
    color: #7f8c8d;
    width: 100%;
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Choices Section */
.choices-container {
    text-align: center;
}

.choices {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
}

.choice {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease;
    padding: 1rem;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.7);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.choice:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    background-color: rgba(255, 255, 255, 0.9);
}

.choice:active {
    transform: translateY(0);
}

.choice img {
    max-width: 100%;
    height: auto;
    margin-bottom: 0.5rem;
    transition: transform 0.2s ease;
}

.choice:hover img {
    transform: scale(1.05);
}

.choice span {
    font-weight: 600;
    color: #2c3e50;
}

/* Game Status Section */
.game-status {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
}

.result-container, .scoreboard-container {
    width: 100%;
    text-align: center;
    padding: 1rem;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.7);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.result {
    font-size: 1.2rem;
    font-weight: 600;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 8px;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
}

/* Result colors */
.win {
    color: #27ae60;
    background-color: #e6f7ef;
    border-left: 4px solid #27ae60;
}

.lose {
    color: #e74c3c;
    background-color: #fdf1f0;
    border-left: 4px solid #e74c3c;
}

.tie {
    color: #f39c12;
    background-color: #fef8e7;
    border-left: 4px solid #f39c12;
}

/* Selections Display */
.selections {
    display: flex;
    justify-content: space-around;
    gap: 1rem;
    margin-top: 1rem;
}

.player-selection, .computer-selection {
    text-align: center;
    flex: 1;
}

.choice-display {
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    padding: 0.5rem;
    margin-top: 0.5rem;
}

/* Scoreboard */
.scoreboard {
    display: flex;
    justify-content: space-around;
    gap: 2rem;
    font-size: 1.2rem;
    margin: 1rem 0;
}

.player-score, .computer-score {
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    background-color: #f8f9fa;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.player-score {
    color: #3498db;
}

.computer-score {
    color: #e74c3c;
}

/* Reset Button */
.reset-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    background-color: #3498db;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-top: 1rem;
}

.reset-btn:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.reset-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Media Queries for Responsiveness */
@media screen and (max-width: 768px) {
    .game-container {
        padding: 1rem;
    }
    
    .choices {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .choice img {
        width: 100px;
        height: 100px;
    }
}

@media screen and (max-width: 576px) {
    body {
        padding: 0.5rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .choices {
        flex-direction: column;
        align-items: center;
    }
    
    .choice {
        width: 80%;
        max-width: 200px;
    }
    
    .selections {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .scoreboard {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    
    .player-score, .computer-score {
        width: 100%;
    }
}

