/* Reset + base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background-color 0.3s, color 0.3s;
    caret-color: transparent; /* hide caret everywhere */
}
input[type="text"],
input[type="number"],
textarea {
    caret-color: auto; /* allow caret only in typing fields */
}

body {
    background-color: #f0f0f0;
    color: #333;
    font-family: Arial, sans-serif;
    text-align: center;
}

/* Dark Mode Theme */
body.dark-mode {
    background-color: #121212;
    color: #f0f0f0;
}
body.dark-mode h1 {
    background-color: #1f1f1f;
    color: #f0f0f0;
}
body.dark-mode .choice:hover {
    background-color: #2c2c2c;
}
body.dark-mode #message {
    background-color: #1f1f1f;
}
body.dark-mode #reset-btn {
    background-color: #1f1f1f;
    color: #f0f0f0;
}
body.dark-mode #reset-btn:hover {
    background-color: #3a3a3a;
}
body.dark-mode .game-log-container {
    background-color: #1f1f1f;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}
body.dark-mode .game-log-container h2 {
    color: #f0f0f0;
}
body.dark-mode .settings input, 
body.dark-mode .settings button {
    background-color: #1f1f1f;
    color: #f0f0f0;
    border: 1px solid #444;
}

/* Animations */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}
.choice.animate-spin {
    animation: spin 1s linear infinite;
}
.choice.animate-pulse {
    animation: pulse 0.5s ease-in-out;
}

/* Heading */
h1 {
    background-color: #081b31;
    color: white;
    height: 5rem;
    line-height: 5rem;
}

/* Choices */
.choices {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    margin-top: 5rem;
}
.choice {
    height: 165px;
    width: 165px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.2s, box-shadow 0.2s;
    user-select: none;
}
.choice:hover {
    cursor: pointer;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}
.choice.win-glow {
    box-shadow: 0 0 20px 5px #4CAF50;
}
.choice.lose-glow {
    box-shadow: 0 0 20px 5px #f44336;
}
img {
    height: 150px;
    width: 150px;
    object-fit: cover;
    border-radius: 50%;
    user-select: none;
    pointer-events: none;
}

/* Scoreboard */
.score-board {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    margin-top: 3rem;
    gap: 5rem;
}
.score p {
    margin-top: 0.5rem;
}
#userScore, #computerScore {
    font-size: 4rem;
}

/* Streak board */
.streak-board {
    margin-top: 1rem;
    font-size: 1.5rem;
    font-weight: bold;
    color: #ff5722;
}

/* Message container */
.message-container {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}
#message {
    background-color: #081b31;
    color: white;
    font-size: 2rem;
    padding: 1rem 2rem;
    border-radius: 1rem;
    display: inline-block;
    min-width: 300px;
    transition: background-color 0.3s;
}
#reset-btn {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    border-radius: 8px;
    background-color: #081b31;
    color: white;
    transition: background-color 0.2s, transform 0.2s;
}
#reset-btn:hover {
    background-color: #214368;
    transform: translateY(-2px);
}

/* Game log */
.game-log-container {
    margin-top: 3rem;
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    margin: 3rem auto;
}
.game-log-container h2 {
    color: #081b31;
    margin-bottom: 1rem;
}
#game-log {
    list-style-type: none;
    font-size: 1.1rem;
    line-height: 1.6;
}
#game-log li.win { color: green; }
#game-log li.lose { color: red; }
#game-log li.draw { color: gray; }

/* Settings */
.settings {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}
.settings label, 
.settings input, 
.settings button {
    font-size: 1rem;
    padding: 0.5rem;
    border-radius: 5px;
    border: 1px solid #ccc;
}
.settings button {
    cursor: pointer;
    background-color: #fff;
}
.settings input {
    width: 60px;
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 { font-size: 2rem; height: 4rem; line-height: 4rem; }
    .choices { gap: 1.5rem; }
    .choice { height: 120px; width: 120px; }
    img { height: 110px; width: 110px; }
    .score-board { font-size: 1.5rem; gap: 2.5rem; }
    #userScore, #computerScore { font-size: 3rem; }
    #message { font-size: 1.5rem; padding: 0.75rem 1.5rem; min-width: auto; }
}
