* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}

header {
    margin-bottom: 20px;
}

h1 {
    color: #0277bd;
    margin-bottom: 15px;
}

.score-container {
    display: flex;
    justify-content: space-around;
    margin: 15px 0;
    font-size: 1.2em;
    font-weight: bold;
}

.instructions {
    font-size: 1.5em;
    background-color: #fff;
    padding: 10px;
    border-radius: 10px;
    margin: 15px auto;
    width: fit-content;
    min-width: 300px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.home-button {
    display: inline-block;
    margin: 10px;
    padding: 8px 16px;
    background-color: #0277bd;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.home-button:hover {
    background-color: #01579b;
}

#game-container {
    position: relative;
    width: 100%;
    height: 500px;
    background-color: #e1f5fe;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

#start-screen, #game-over {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.9);
    z-index: 10;
}

#game-area {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    padding: 20px;
}

#clock-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

#analog-clock {
    position: relative;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background-color: #fff;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

.clock-face {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: white;
    border: 2px solid #333;
}

/* Make tick marks more prominent */
.major-tick {
    position: absolute;
    width: 2px;
    height: 10px;
    background-color: #333;
    transform-origin: center bottom;
}

.minor-tick {
    position: absolute;
    width: 1px;
    height: 5px;
    background-color: #777;
    transform-origin: center bottom;
}

/* Better position numbers with more space from center */
.clock-number {
    position: absolute;
    transform: translate(-50%, -50%);
    font-weight: bold;
    font-size: 16px;
    color: #333;
    width: 20px;
    height: 20px;
    text-align: center;
    line-height: 20px;
}

.hour-hand {
    position: absolute;
    width: 8px;
    height: 65px;
    background-color: #333;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -100%);
    transform-origin: bottom center;
    border-radius: 4px 4px 0 0;
    z-index: 2;
}

.minute-hand {
    position: absolute;
    width: 6px;
    height: 85px;
    background-color: #333;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -100%);
    transform-origin: bottom center;
    border-radius: 4px 4px 0 0;
    z-index: 1;
}

.center-point {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: #333;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
}

#options-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    padding: 10px;
}

.time-option {
    padding: 12px 20px;
    background-color: #0277bd;
    color: white;
    border-radius: 8px;
    font-size: 1.4em;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.time-option:hover {
    transform: scale(1.05);
    background-color: #01579b;
}

.correct-answer {
    background-color: #4caf50 !important;
    transform: scale(1.1);
    animation: correctPulse 0.5s ease-in-out;
}

@keyframes correctPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1.1); }
}

.wrong-answer {
    background-color: #f44336 !important;
    animation: wrongShake 0.5s ease-in-out;
}

@keyframes wrongShake {
    0% { transform: translateX(0); }
    20% { transform: translateX(-10px); }
    40% { transform: translateX(10px); }
    60% { transform: translateX(-5px); }
    80% { transform: translateX(5px); }
    100% { transform: translateX(0); }
}

button {
    padding: 12px 25px;
    margin: 15px 0;
    background-color: #0277bd;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #01579b;
}

.hidden {
    display: none !important;
}

.feedback-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2em;
    font-weight: bold;
    padding: 15px 30px;
    border-radius: 10px;
    z-index: 5;
    opacity: 0;
    transition: opacity 0.3s;
}

.feedback-message.correct {
    background-color: rgba(76, 175, 80, 0.9);
    color: white;
    animation: fadeInOut 1.5s ease-in-out;
}

.feedback-message.wrong {
    background-color: rgba(244, 67, 54, 0.9);
    color: white;
    animation: fadeInOut 1.5s ease-in-out;
}

@keyframes fadeInOut {
    0% { opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { opacity: 0; }
}

/* Add this to your CSS file */
.bonus-time-notification {
    position: absolute;
    top: 60px;
    right: 20px;
    background-color: #4caf50;
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-weight: bold;
    animation: bonusTime 2s ease-in-out;
    z-index: 10;
}

@keyframes bonusTime {
    0% { opacity: 0; transform: translateY(20px); }
    20% { opacity: 1; transform: translateY(0); }
    80% { opacity: 1; }
    100% { opacity: 0; transform: translateY(-20px); }
} 