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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0a0a12 0%, #0f1419 50%, #0a1628 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px;
    overflow-x: hidden;
}

/* Elektronika figyelmeztetés - teljes oldal sötétítés */
.electronics-warning {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    margin: 0;
    padding: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    color: white;
    z-index: 99999;
    display: none; /* Alapértelmezetten rejtve */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.5s ease-out;
}

.electronics-warning[style*="display: block"] {
    display: flex !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.warning-content {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    padding: 40px 60px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    max-width: 500px;
    text-align: center;
}

.warning-icon {
    font-size: 64px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.warning-text {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.5px;
    line-height: 1.4;
}

.container {
    background: rgba(30, 30, 40, 0.95);
    border-radius: 20px;
    padding: 30px 20px;
    max-width: 900px;
    width: 100%;
    max-height: 95vh;
    overflow-y: auto;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.header {
    margin-bottom: 20px;
}

h1 {
    text-align: center;
    color: #e0e0e0;
    margin-bottom: 5px;
    font-size: 3em;
    font-weight: 900;
    letter-spacing: 15px;
    text-shadow: 3px 3px 0px rgba(0, 0, 0, 0.3);
}

.subtitle {
    color: #999;
    font-size: 1em;
    font-weight: 300;
    letter-spacing: 2px;
}

h2 {
    color: #d0d0d0;
    margin-bottom: 20px;
    font-size: 1.8em;
    font-weight: 600;
}

.queue-section, .control-section, .restart-section, .start-section {
    animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Timer Display */
.timer-display {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.timer-circle {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 6px solid #dee2e6;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.timer-circle.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #5568d3;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
    }
    50% {
        box-shadow: 0 10px 50px rgba(102, 126, 234, 0.7);
    }
}

.timer-text {
    text-align: center;
    color: #c0c0c0;
}

.timer-circle.active .timer-text {
    color: white;
}

.timer-number {
    display: block;
    font-size: 2.5em;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 8px;
}

.timer-label {
    display: block;
    font-size: 0.9em;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

.wait-info {
    margin-top: 20px;
}

.wait-time-text {
    font-size: 1.2em;
    color: #aaa;
    font-weight: 500;
}

/* Letters Display */
.letters-display {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.letter-box {
    width: 100px;
    height: 100px;
    border-radius: 15px;
    background: #f8f9fa;
    border: 4px solid #dee2e6;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.letter-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-color: #adb5bd;
}

.letter-box.selected {
    border-color: #667eea;
    border-width: 6px;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.4);
}

.letter-content {
    font-size: 3.5em;
    font-weight: 900;
    color: #e0e0e0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Color Wheel */
.color-wheel-container {
    margin: 20px 0;
}

.color-wheel {
    display: block;
    margin: 0 auto 15px;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.2));
    max-width: 280px;
    height: auto;
}

.color-segment {
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease;
    transform-origin: center;
}

.color-segment:hover {
    opacity: 0.8;
    filter: brightness(1.1);
}

.color-center {
    cursor: pointer;
    transition: all 0.3s ease;
}

.color-center:hover {
    r: 52;
    filter: drop-shadow(0 0 10px rgba(102, 126, 234, 0.5));
}

.color-center-text {
    pointer-events: none;
    user-select: none;
}

.color-instruction {
    font-size: 1em;
    color: #aaa;
    font-weight: 500;
    text-align: center;
}

/* Restart Section */
.restart-section {
    text-align: center;
    padding: 40px 0;
}

.restart-message {
    max-width: 500px;
    margin: 0 auto;
}

.restart-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #00d4aa 0%, #00b894 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3em;
    color: white;
    margin: 0 auto 30px;
    box-shadow: 0 10px 40px rgba(0, 212, 170, 0.3);
}

.restart-message h2 {
    margin-bottom: 15px;
}

.restart-message p {
    color: #aaa;
    font-size: 1.1em;
    margin-bottom: 30px;
}

/* Start section - Sorba állok gomb */
.start-section {
    text-align: center;
    padding: 40px 0;
}

.start-message {
    max-width: 500px;
    margin: 0 auto;
}

.start-icon {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4em;
    margin: 0 auto 30px;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.4);
}

.start-message h2 {
    margin-bottom: 15px;
    color: #d0d0d0;
}

.start-message p {
    color: #aaa;
    font-size: 1.2em;
    margin-bottom: 35px;
}

/* Buttons */
.btn-large {
    padding: 22px 60px;
    font-size: 1.3em;
}

/* Buttons */
.btn {
    padding: 18px 50px;
    font-size: 1.2em;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: inline-block;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #e0e0e0 0%, #d0d0d0 100%);
    color: #aaa;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #d0d0d0 0%, #c0c0c0 100%);
    transform: translateY(-3px);
}

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

.btn:disabled:hover {
    transform: none;
}

.btn:active {
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 30px 20px;
    }

    h1 {
        font-size: 2.5em;
        letter-spacing: 10px;
    }

    .subtitle {
        font-size: 1em;
    }

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

    .timer-number {
        font-size: 2.5em;
    }

    .letter-box {
        width: 100px;
        height: 100px;
    }

    .letter-content {
        font-size: 3.5em;
    }

    .color-wheel {
        width: 250px;
        height: 250px;
    }

    .color-center {
        width: 100px;
        height: 100px;
        font-size: 0.9em;
    }

    .btn {
        padding: 15px 40px;
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2em;
        letter-spacing: 5px;
    }

    .letters-display {
        gap: 10px;
    }

    .letter-box {
        width: 80px;
        height: 80px;
    }

    .letter-content {
        font-size: 2.5em;
    }

    .color-wheel {
        width: 200px;
        height: 200px;
    }

    .color-center {
        width: 80px;
        height: 80px;
        font-size: 0.8em;
        border-width: 5px;
    }
}
