/* Base styles that can't be easily replaced with Tailwind */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    background-color: #f0f2f5;
    color: #333;}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 40px;
}

h1 {
    font-size: 2.5rem;
    color: #1a73e8;
    margin-bottom: 20px;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 20px;
}

nav a {
    text-decoration: none;
    color: #333;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

nav a:hover {
    background-color: #1a73e8;
    color: white;
}

/* Game visibility */
.game {
    display: none;
}

.game.active {
    display: block;
}

/* Tic Tac Toe Styles */
.game-board {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 20px 0;
}

.cell {
    aspect-ratio: 1;
    background-color: #f8f9fa;
    border: 2px solid #1a73e8;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.cell:hover {
    background-color: #e8f0fe;
}

/* Simon Says Styles */
.simon-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 400px;
    margin: 20px auto;
}

.simon-button {
    aspect-ratio: 1;
    border-radius: 50%;
    cursor: pointer;
    transition: opacity 0.3s;
}

/* Simon Says specific styles */
.simon-button.red { background-color: #ff4444; }
.simon-button.blue { background-color: #2196f3; }
.simon-button.green { background-color: #4caf50; }
.simon-button.yellow { background-color: #ffeb3b; }

.simon-button.active {
    opacity: 0.5;
}

/* Rock Paper Scissors Styles */
.rps-container {
    text-align: center;
}

.choices {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

.choice {
    font-size: 2rem;
    padding: 20px;
    border: none;
    background-color: #f8f9fa;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.3s;
}

.choice:hover {
    transform: scale(1.1);
}

.result {
    margin: 20px 0;
    font-size: 1.2rem;
}

/* Common Styles */
button {
    padding: 10px 20px;
    background-color: #1a73e8;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #1557b0;
}

.score {
    font-size: 1.2rem;
    margin-top: 20px;
    text-align: center;
}

/* Dice Roller Styles */
.dice-prediction {
    text-align: center;
    margin: 20px 0;
}

.dice-prediction input {
    padding: 10px;
    font-size: 1.2rem;
    width: 100px;
    margin-right: 10px;
    border: 2px solid #1a73e8;
    border-radius: 5px;
}

.dice-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

.dice {
    font-size: 5rem;
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

/* Dice Roller animations */
.dice.rolling {
    animation: roll 0.5s ease-in-out;
}

@keyframes roll {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(-20deg); }
    75% { transform: rotate(20deg); }
    100% { transform: rotate(0deg); }
}

.dice-controls {
    text-align: center;
    margin: 20px 0;
}

.dice-result {
    margin: 20px 0;
    font-size: 1.2rem;
}

.dice-result p {
    margin: 10px 0;
}

.dice-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
    font-size: 1.2rem;
}

.dice-history {
    max-width: 300px;
    margin: 20px auto;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 5px;
}

.dice-history h3 {
    margin-bottom: 10px;
    text-align: center;
}

.dice-history ul {
    list-style: none;
    padding: 0;
}

.dice-history li {
    padding: 5px 0;
    border-bottom: 1px solid #dee2e6;
}

/* Dice history styles */
.dice-history li.win {
    color: #4caf50;
}

.dice-history li.lose {
    color: #f44336;
}

/* Memory Game Styles */
.memory-controls {
    text-align: center;
    margin-bottom: 20px;
}

.memory-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
    font-size: 1.2rem;
}

.memory-board {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    max-width: 600px;
    margin: 0 auto;
}

.memory-card {
    aspect-ratio: 1;
    background-color: #1a73e8;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

.memory-card.flipped {
    transform: rotateY(180deg);
    background-color: white;
    color: #1a73e8;
}

.memory-card.matched {
    background-color: #4caf50;
    cursor: default;
}

.memory-card:hover:not(.matched) {
    transform: scale(1.05);
}

/* Snake Game Styles */
.snake-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin: 20px 0;
}

#snake-canvas {
    background-color: #f8f9fa;
    border: 2px solid #1a73e8;
    border-radius: 5px;
}

.snake-controls {
    text-align: center;
    width: 100%;
    max-width: 400px;
}

.snake-score, .snake-high-score {
    font-size: 1.2rem;
    margin: 10px 0;
}

.snake-instructions {
    margin-top: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 5px;
    text-align: left;
}

.snake-instructions p {
    margin: 5px 0;
    color: #666;
}

#start-snake {
    margin: 15px 0;
}

/* Shooting Game Styles */
.shooting-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin: 20px 0;
}

#shooting-canvas {
    background-color: #f8f9fa;
    border: 2px solid #1a73e8;
    border-radius: 5px;
    cursor: crosshair;
}

.shooting-controls {
    text-align: center;
    width: 100%;
    max-width: 800px;
}

.shooting-stats {
    display: flex;
    justify-content: space-around;
    margin: 15px 0;
    font-size: 1.2rem;
}

.shooting-instructions {
    margin-top: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 5px;
    text-align: left;
}

.shooting-instructions p {
    margin: 5px 0;
    color: #666;
}

#start-shooting {
    margin: 15px 0;
}

/* Target animation */
@keyframes targetHit {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(0); }
}

.target-hit {
    animation: targetHit 0.3s ease-out forwards;
}

/* Puzzle Slider Game */
.puzzle-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.puzzle-board {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
    background-color: #2c3e50;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.puzzle-tile {
    width: 80px;
    height: 80px;
    background-color: #3498db;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
    transition: transform 0.2s ease;
}

.puzzle-tile:hover { transform: scale(1.05);}
.puzzle-tile.empty {
    background-color: transparent;
    cursor: default;
}
.puzzle-tile.empty:hover {
    transform: none;
}
.puzzle-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    max-width: 400px;
    width: 100%;
}
.puzzle-stats {
    display: flex;
    justify-content: space-around;
    width: 100%;
    font-size: 18px;
    color: #2c3e50;
}
.puzzle-instructions {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    width: 100%;
}
.puzzle-instructions p {
    margin: 5px 0;
    color: #2c3e50;
}
#start-puzzle {
    margin: 10px 0;
} 