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

:root {
    --bg-dark: #0a0a0a;
    --bg-darker: #000000;
    --bg-card: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --accent-red: #d32f2f;
    --accent-red-dark: #b71c1c;
    --accent-yellow: #ffc107;
    --border-color: #333333;
    --timer-bg: #1a1a1a;
    --timer-progress: #d32f2f;
}

body {
    font-family: 'Arial', 'Helvetica', sans-serif;
    background: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
    color: var(--text-primary);
    min-height: 100vh;
    padding: 20px;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

header {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px 0;
    border-bottom: 2px solid var(--accent-red);
}

header h1 {
    font-size: 3rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent-red);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    font-style: italic;
}

main {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.timer-section {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.timer-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.selected-painting-info {
    text-align: center;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.selected-painting-info .instruction {
    color: var(--text-secondary);
    font-style: italic;
}

.selected-painting-info h3 {
    font-size: 1.5rem;
    color: var(--accent-yellow);
    margin-bottom: 5px;
}

.selected-painting-info p {
    color: var(--text-secondary);
    font-size: 1rem;
}

.selected-painting-info .duration-hint {
    color: var(--accent-red);
    font-size: 0.9rem;
    margin-top: 5px;
}

.timer-circle {
    position: relative;
    width: 300px;
    height: 300px;
}

.timer-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.timer-bg {
    fill: none;
    stroke: var(--border-color);
    stroke-width: 8;
}

.timer-progress {
    fill: none;
    stroke: var(--timer-progress);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 283;
    stroke-dashoffset: 283;
    transition: stroke-dashoffset 0.1s linear;
}

.timer-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    font-weight: bold;
    color: var(--text-primary);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.timer-controls {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn {
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: bold;
    text-transform: uppercase;
    border: 2px solid;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: transparent;
    color: var(--text-primary);
}

.btn-primary {
    border-color: var(--accent-red);
    color: var(--accent-red);
}

.btn-primary:hover:not(:disabled) {
    background: var(--accent-red);
    color: var(--text-primary);
    box-shadow: 0 0 15px var(--accent-red);
}

.btn-secondary {
    border-color: var(--border-color);
    color: var(--text-secondary);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--border-color);
    color: var(--text-primary);
}

.btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.gallery-section {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.gallery-section h2 {
    font-size: 2rem;
    color: var(--accent-yellow);
    margin-bottom: 25px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.painting-card {
    background: var(--bg-darker);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.painting-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-red);
    box-shadow: 0 5px 20px rgba(211, 47, 47, 0.3);
}

.painting-card.selected {
    border-color: var(--accent-yellow);
    box-shadow: 0 0 20px rgba(255, 193, 7, 0.5);
}

.painting-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

.painting-card-info {
    padding: 15px;
}

.painting-card-info h3 {
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-bottom: 5px;
    font-weight: bold;
}

.painting-card-info p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.painting-card-info .duration {
    font-size: 0.75rem;
    color: var(--accent-red);
    font-weight: bold;
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .timer-section {
        padding: 20px;
    }

    .timer-circle {
        width: 250px;
        height: 250px;
    }

    .timer-text {
        font-size: 2.5rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }

    .painting-card img {
        height: 120px;
    }
}

@media (max-width: 480px) {
    .timer-circle {
        width: 200px;
        height: 200px;
    }

    .timer-text {
        font-size: 2rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* Animation for timer completion */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.timer-circle.completed {
    animation: pulse 0.5s ease-in-out infinite;
}

.timer-circle.completed .timer-progress {
    stroke: var(--accent-yellow);
}





