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

/* ===== BODY & BACKGROUND ===== */
body {
    background-color: #000;
    color: #fff;
    font-family: Georgia, serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    background-size: cover;
    background-attachment: fixed;
    transition: background-image 0.5s ease;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: transparent;
    pointer-events: none;
    z-index: 1;
}

body.wood-fade::before {
    background-color: rgba(0, 0, 0, 0.15) !important;
    transition: background-color 1.8s ease-in-out !important;
}

body.wood-fade-out::before {
    background-color: transparent !important;
    transition: background-color 1s ease-in-out !important;
}

/* ===== GAME CONTAINER (HAUPTINHALT) ===== */
#gameContainer {
    width: 100%;
    max-width: 900px;
    background-color: rgba(0, 0, 0, 0.6);
    border: 2px solid silver;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.8);
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    position: relative;
    z-index: 10;
    max-height: 90vh;
    overflow-y: auto;
}

#content {
    flex: 1;
    min-height: 200px;
}

#buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

/* ===== TRANSPARENTE SZENEN ===== */
#gameContainer.transparent-mode {
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
}

/* ===== ÜBERSCHRIFTEN ===== */
h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #ffff00;
    text-shadow: 2px 2px 4px #000;
}

h2 {
    font-size: 2em;
    margin-bottom: 20px;
    color: #ffaa00;
}

h3 {
    font-size: 1.8em;
    margin-bottom: 20px;
    color: #ff6600;
}

p {
    font-size: 1.2em;
    line-height: 1.8;
    margin: 15px 0;
    color: #ffffff;
}

/* ===== STANDARD BUTTONS ===== */
button {
    background-color: violet;
    color: white;
    border: 2px solid violet;
    padding: 15px 30px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    min-height: 50px;
    min-width: 120px;
    transition: all 0.3s ease;
    font-family: Georgia, serif;
}

button:hover {
    background-color: pink;
    border-color: pink;
    color: #000;
    transform: scale(1.05);
}

button:active {
    transform: scale(0.95);
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

button:disabled:hover {
    background-color: violet;
    border-color: violet;
    color: white;
    transform: none;
}

/* ===== SETTINGS BUTTON (VIERECKIG!) ===== */
#settingsBtn {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
    background-color: violet;
    color: white;
    border: 2px solid violet;
    padding: 12px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.5em;
    font-weight: bold;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
    min-height: 50px;
    width: auto;
    height: auto;
}

#settingsBtn:hover {
    background-color: pink;
    border-color: pink;
    transform: scale(1.1);
}

#settingsBtn:active {
    transform: scale(0.95);
}

/* ===== SETTINGS PANEL ===== */
.settings-panel {
    position: fixed;
    top: 0;
    right: -350px;
    width: 350px;
    height: 100vh;
    background: rgba(20, 20, 40, 0.95);
    border-left: 3px solid violet;
    padding: 30px;
    z-index: 1000;
    transition: right 0.3s ease;
    overflow-y: auto;
    box-shadow: -5px 0 20px rgba(138, 43, 226, 0.3);
}

.settings-panel.open {
    right: 0;
}

/* Close Button */
.close-panel-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 28px;
    color: violet;
    cursor: pointer;
    transition: transform 0.2s;
    padding: 0;
    min-width: auto;
    min-height: auto;
}

.close-panel-btn:hover {
    transform: scale(1.2);
}

/* Panel Header */
.panel-header {
    color: violet;
    margin-bottom: 30px;
    font-size: 24px;
    text-align: center;
}

/* Setting Items */
.setting-item {
    margin-bottom: 25px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.setting-label {
    color: #aaa;
    font-size: 14px;
}

.setting-btn {
    padding: 12px 20px;
    background: rgba(138, 43, 226, 0.6);
    border: 2px solid violet;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
}

.setting-btn:hover {
    background: rgba(138, 43, 226, 1);
    transform: translateX(-5px);
}


/* ===== MUTE BUTTON - MUTED STATE  #660066 ===== */
#muteBtn.muted {
    background: rgba(100, 20, 100, 0.8) !important;  /* Dunkleres Violett */
    border-color: violet !important; 
    opacity: 0.7;
}

#muteBtn.muted:hover {
    background: rgba(100, 20, 100, 1) !important;
    transform: translateX(-3px);
}


/* Volume Slider */
.volume-slider {
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: rgba(138, 43, 226, 0.3);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: violet;
    cursor: pointer;
}

.volume-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: violet;
    cursor: pointer;
    border: none;
}

.volume-value {
    color: violet;
    text-align: center;
    font-weight: bold;
}

/* ===== DIALOG STYLING ===== */
#dialog-content {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

.dialog-container {
    background-color: rgba(30, 30, 30, 0.9);
    border-left: 4px solid violet;
    padding: 20px;
    border-radius: 5px;
    text-align: center;
    font-size: 1.1em;
    line-height: 1.6;
    max-width: 500px;
    width: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in;
}

.dialog-speaker {
    color: #ffaa00;
    font-weight: bold;
    margin-bottom: 8px;
    text-align: center;
}

.dialog-speaker::before {
    content: none !important;
}

.dialog-text {
    color: #ffffff;
    margin-left: 0;
    text-align: center;
}

/* ===== INFO TEXT ===== */
.info {
    font-size: 0.9em;
    color: #999;
    margin-top: 30px;
    border-top: 1px solid #444;
    padding-top: 15px;
}

/* ===== ANIMATIONS ===== */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-2px); }
    75% { transform: translateX(2px); }
}

/* ===== MOBILE ANPASSUNG ===== */
@media screen and (max-width: 768px) {
    #settingsBtn {
        top: 10px;
        right: 10px;
        padding: 10px 14px;
        font-size: 1.3em;
    }

    .settings-panel {
        width: 280px;
        right: -280px;
        padding: 25px 15px;
    }

    .setting-btn {
        padding: 10px 12px;
        font-size: 0.95em;
    }

    .volume-slider {
        width: 100%;
    }

    #gameContainer {
        padding: 20px;
    }

    h1 {
        font-size: 2em;
    }

    h2 {
        font-size: 1.5em;
    }

    h3 {
        font-size: 1.3em;
    }

    p {
        font-size: 1em;
    }
}
