* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

#menu {
    display: none;
    text-align: center;
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 100%;
}

#menu.active {
    display: block;
}

#menu h1 {
    margin-bottom: 30px;
    font-size: 2.5em;
    color: #333;
}

.game-btn {
    display: block;
    width: 100%;
    padding: 15px;
    margin: 10px 0;
    font-size: 1.1em;
    border: none;
    border-radius: 8px;
    background: #667eea;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.game-btn:hover:not(.disabled) {
    background: #764ba2;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.game-btn.disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}
/* Guess the Number Styles */
.guess-number {
    max-width: 500px;
}

.guess-number p {
    color: #666;
    margin-bottom: 15px;
}

.game-info {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

.game-info p {
    margin: 5px 0;
    font-weight: bold;
    color: #333;
}

.hint-message {
    min-height: 25px;
    font-size: 1.1em;
}

.guess-input-container {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

#guess-input {
    flex: 1;
    padding: 12px;
    font-size: 1em;
    border: 2px solid #667eea;
    border-radius: 8px;
}

#guess-input:focus {
    outline: none;
    border-color: #764ba2;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.submit-btn {
    padding: 12px 30px;
    font-size: 1em;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: #764ba2;
    transform: translateY(-3px);
}

.guess-history {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    max-height: 200px;
    overflow-y: auto;
}

.guess-item {
    padding: 8px 0;
    margin: 5px 0;
    border-bottom: 1px solid #eee;
    font-size: 1em;
}

.guess-item:last-child {
    border-bottom: none;
}

.game-over {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 20px;
}

.game-over.hidden {
    display: none;
}

.game-over p {
    font-size: 1.2em;
    margin-bottom: 15px;
    font-weight: bold;
}

.reset-btn {
    padding: 10px 20px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.reset-btn:hover {
    background: #45a049;
    transform: translateY(-3px);
}

#game-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.game {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 100%;
}

.game h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
    font-size: 2em;
}
/* Styling for Tic Tac Toe*/
.game.ttt p {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.2em;
    color: #667eea;
}

.board {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 30px;
}

.cell {
    width: 80px;
    height: 80px;
    background: #f0f0f0;
    border: 2px solid #667eea;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cell:hover {
    background: #e0e0ff;
    transform: scale(1.05);
}

.game.rps {
    text-align: center;
}

.scores {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
    font-size: 1.2em;
    font-weight: bold;
    color: #667eea;
}

.scores span {
    color: #764ba2;
    font-size: 1.5em;
}

.result {
    background: #f0f0f0;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    min-height: 30px;
    font-size: 1.1em;
    color: #333;
    font-weight: bold;
}
/* for rock paper scissors*/
.choices {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.choice {
    padding: 12px 20px;
    font-size: 1em;
    border: 2px solid #667eea;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.choice:hover {
    background: #667eea;
    color: white;
    transform: scale(1.05);
}

.back-btn, .reset-btn {
    padding: 10px 20px;
    margin: 5px;
    font-size: 1em;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.back-btn {
    background: #667eea;
    color: white;
    margin-bottom: 10px;
}

.back-btn:hover {
    background: #764ba2;
    transform: translateY(-3px);
}

.reset-btn {
    background: #ff6b6b;
    color: white;
}

.reset-btn:hover {
    background: #ff5252;
    transform: translateY(-3px);
}

/* to make it responsive */
@media (max-width: 600px) { 
    .cell {
        width: 60px;
        height: 60px;
        font-size: 1.5em;
    }

    .choices {
        flex-direction: column;
    }

    .choice {
        width: 100%;
    }

    #menu {
        padding: 25px;
    }

    #menu h1 {
        font-size: 1.8em;
        margin-bottom: 20px;
    }
}

/* Notification box to show which player won */
.notification-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.notification-modal.hidden {
    display: none;
}

.notification-box {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    text-align: center;
    min-width: 300px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

#notification-message {
    font-size: 1.5em;
    color: #333;
    margin-bottom: 20px;
    font-weight: bold;
}

.notification-btn {
    padding: 10px 30px;
    font-size: 1em;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.notification-btn:hover {
    background: #764ba2;
    transform: translateY(-3px);
}
/* Reaction Test Styles */
.reaction-test {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.reaction-test h2 {
    margin-bottom: 10px;
}

.reaction-info {
    text-align: center;
    color: #666;
    font-size: 0.95em;
}

.reaction-screen {
    width: 100%;
    height: 200px;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.reaction-screen.red {
    background-color: #EF5350;
    color: white;
}

.reaction-screen.red::after {
    content: "Wait...";
}

.reaction-screen.green {
    background-color: #66BB6A;
    color: white;
    animation: pulse 0.3s;
}

.reaction-screen.green::after {
    content: "CLICK NOW!";
}

.reaction-screen.gray {
    background-color: #BDBDBD;
    color: white;
}

.reaction-screen.gray::after {
    content: "Processing...";
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
    }
    50% {
        transform: scale(1.02);
    }
    100% {
        transform: scale(1);
    }
}

.reaction-result {
    background-color: #f5f5f5;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    width: 100%;
}

.reaction-result.hidden {
    display: none;
}

.reaction-result p {
    margin: 10px 0;
    font-size: 1.1em;
}

.reaction-controls {
    display: flex;
    gap: 10px;
    width: 100%;
}

.start-btn {
    flex: 1;
    padding: 12px;
    font-size: 1em;
    background: #66BB6A;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.start-btn:hover:not(:disabled) {
    background: #4CAF50;
    transform: translateY(-3px);
}

.start-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}