/* --- Teljes Style.css --- */

/* --- Alap Stílusok és Elrendezés --- */
body {
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', sans-serif;
    background: linear-gradient(180deg, #8c52ff, #ff914d);
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* --- Animációk --- */
@keyframes contentFadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Fő Komponensek --- */
.page-header {
    position: fixed; top: 20px; left: 20px; font-size: 1.5em; font-weight: bold; color: #ffa800; z-index: 100;
}

main {
    background-color: #2a2828;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    text-align: center;
    max-width: 600px;
    width: 100%;
    animation: contentFadeIn 0.8s ease-out forwards;
}

h1 { font-size: 2.5em; margin-bottom: 20px; }
.special-title { color: #ffa800; font-weight: bold; }
p, .instruction { font-size: 1.1em; line-height: 1.6; margin-bottom: 30px; }
.hint { font-size: 0.9em; color: #ccc; }
pre { font-family: 'Courier New', Courier, monospace; font-size: 1.5em; line-height: 1.2; color: #ffa800; text-align: center; margin-bottom: 25px; white-space: pre-wrap; }

.button {
    display: inline-block; background-color: #ffa800; color: #2a2828; padding: 15px 35px; border: none; border-radius: 25px; font-size: 1.2em;
    font-weight: bold; cursor: pointer; text-decoration: none; transition: transform 0.2s ease, box-shadow 0.2s ease; margin: 5px;
}
.button:hover { transform: translateY(-2px); box-shadow: 0 4px 15px rgba(255, 168, 0, 0.4); }
.button:disabled { background-color: #555; color: #888; cursor: not-allowed; transform: none; box-shadow: none; }

.code-input {
    padding: 10px; font-size: 1.5em; text-align: center; border: 2px solid #ffa800; border-radius: 10px; margin-bottom: 20px;
    background-color: #333; color: #fff; letter-spacing: 8px; max-width: 180px; width: 100%;
}
.text-input { letter-spacing: normal; max-width: 400px; }
.message-area { margin-top: 15px; height: 40px; font-weight: bold; font-size: 1.1em; }
#error-message { color: #ed5b72; }
#timer-message { color: #ffa800; }
.penalty-image-container {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.7);
    display: none; justify-content: center; align-items: center; z-index: 200;
}
.penalty-image-container img { max-width: 80%; max-height: 80%; border-radius: 15px; }

/* --- Kezdőoldal Speciális Stílusok --- */
.main-title { font-size: 3em; font-weight: bold; color: #ffa800; }
#play-button { color: #ed5b72; cursor: pointer; transition: text-shadow 0.3s; }
#play-button:hover { text-shadow: 0 0 10px #ed5b72; }

/* --- Hamburger Menü Stílusok --- */
.hamburger-menu { position: fixed; top: 15px; right: 20px; z-index: 1001; }
.hamburger-icon {
    display: flex; flex-direction: column; justify-content: space-around; width: 30px; height: 25px;
    background: transparent; border: none; cursor: pointer; padding: 0;
}
.hamburger-icon .bar { display: block; width: 100%; height: 3px; background: #ffa800; border-radius: 3px; transition: all 0.3s ease-in-out; }
.menu-links {
    position: fixed; top: 60px; right: 20px; background: #2a2828; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    padding: 10px 0; list-style: none; margin: 0; transform: translateY(-20px); opacity: 0; visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}
.menu-links.show { opacity: 1; visibility: visible; transform: translateY(0); }
.menu-links li a { display: block; padding: 10px 25px; color: #ffa800; text-decoration: none; font-weight: bold; transition: background-color 0.2s; }
.menu-links li a:hover { background-color: #3a3838; }

/* --- Sorsoló Új Dizájn és Stílusok --- */
.mode-switcher {
    position: relative; display: flex; justify-content: center; background-color: #3a3838;
    border-radius: 25px; padding: 5px; margin-bottom: 40px; z-index: 1;
}
.mode-switcher::before {
    content: ''; position: absolute; top: 5px; left: 5px; width: calc(50% - 5px); height: calc(100% - 10px);
    background-color: #ffa800; border-radius: 20px; transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1); z-index: -1;
}
.mode-switcher.parbaj-active::before { transform: translateX(100%); }
.mode-button {
    flex: 1; padding: 10px 20px; border: none; background: transparent; color: #ccc; font-size: 1.1em;
    font-weight: bold; cursor: pointer; border-radius: 20px; transition: color 0.4s ease; z-index: 2;
}
.mode-button.active { color: #2a2828; }

.mode-switcher.small {
    max-width: 250px; margin-left: auto; margin-right: auto; margin-bottom: 25px;
    padding: 4px; border-radius: 20px;
}
.mode-switcher.small::before { border-radius: 16px; }
.mode-switcher.small .mode-button { font-size: 0.9em; padding: 8px 15px; }
.mode-switcher.sima-active::before { transform: translateX(100%); }

.sorsolo-wrapper { position: relative; }

/* Konténer elrendezés javítása a túlfolyás ellen */
.sorsolo-container {
    display: none; /* Alapból rejtett */
}
.sorsolo-container.active {
    display: block; /* Csak az aktív látszik */
    animation: contentFadeIn 0.5s ease;
}

.sorsolo-sub-container { display: none; }
.sorsolo-sub-container.active { display: block; }

.sorsolo-textarea {
    width: 95%; height: 150px; padding: 15px; border-radius: 10px; border: 2px solid #555; background-color: #333;
    color: #fff; font-size: 1.1em; margin-bottom: 20px; resize: vertical; transition: border-color 0.3s, box-shadow 0.3s;
}

/* --- KERÉK STÍLUSOK --- */
.wheel-container {
    position: relative; width: 350px; height: 350px; margin: 0 auto 20px;
}
.wheel-pointer {
    position: absolute; top: -5px; left: 50%; transform: translateX(-50%); width: 0; height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-top: 30px solid #ffa800; /* Szín módosítva */
    z-index: 10;
}
#wheel-canvas {
    transition: transform 8s cubic-bezier(0.25, 1, 0.5, 1);
}
#kerek-input { height: 100px; }

/* --- EREDMÉNY KIJELZÉS STÍLUSOK --- */
.result-area { margin-top: 20px; font-size: 1.8em; font-weight: bold; color: #ffa800; min-height: 50px; }
.result-area .winner { opacity: 0; transition: opacity 0.5s; }
.result-area.active .winner { opacity: 1; }

/* --- FELUGRÓ ABLAK (MODAL) STÍLUSOK --- */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.7);
    display: none; justify-content: center; align-items: center; z-index: 1000; backdrop-filter: blur(5px);
}
.modal-content {
    background-color: #3a3838; padding: 30px; border-radius: 16px; box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    text-align: center; max-width: 500px; width: 90%; position: relative; animation: contentFadeIn 0.4s ease-out forwards;
}
.modal-close {
    position: absolute; top: 10px; right: 15px; background: none; border: none; color: #fff;
    font-size: 2em; cursor: pointer; line-height: 1;
}
.modal-content h2 { margin-top: 0; color: #ffffff; }
.winner-name { font-size: 2em; font-weight: bold; color: #ffa800; margin: 15px 0; }
.modal-actions .button { font-size: 1em; padding: 12px 25px; }