/* ---------------- BODY ---------------- */
body {
    font-family: "Pixelify Sans", sans-serif;
    background-image: url("../../assets/pictures/day-bg.png");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* ---------------- MENU TITLE ---------------- */
#menu-title {
    font-size: 100px;
    color: #6b5541;
    text-shadow: 4px 4px 0 #c9a66b, 8px 8px 0 #6b5541;
    position: absolute;
    top: 0px;
    left: 30px;
}

/* ---------------- PLAY BUTTON ---------------- */
.image-button {
    display: inline-block;
    width: 700px;
    height: 160px;
    background-image: url("../../assets/pictures/play-button-pixilart.png");
    background-size: cover;
    background-position: center;
    cursor: pointer;
    position: absolute;
    top: 200px;
    left: -80px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.image-button:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

/* ---------------- VOLUME BUTTON ---------------- */
#volumeBtn {
    position: fixed;
    top: 20px;
    right: 80px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1000;
}
#volumeBtn .material-symbols-outlined {
    font-size: 32px;
    color: #ffffff;
    transition: transform 0.1s ease, color 0.2s ease;
}
#volumeBtn:hover .material-symbols-outlined {
    transform: scale(1.2);
    color: #ffdd57;
}
#volumeBtn:active .material-symbols-outlined {
    transform: scale(0.9);
}

/* ---------------- SETTINGS BUTTON ---------------- */
#settingsBtn {
    position: fixed;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1000;
}
#settingsBtn .material-symbols-outlined {
    font-size: 32px;
    color: #ffffff;
    transition: transform 0.2s ease, color 0.2s ease;
}
#settingsBtn:hover .material-symbols-outlined {
    transform: scale(1.2) rotate(60deg);
    color: #ffdd57;
}
#settingsBtn:active .material-symbols-outlined {
    transform: scale(0.9) rotate(0deg);
}

/* ---------------- SETTINGS PANEL ---------------- */
.settings-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: auto;
    max-height: 80vh;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}
.settings-panel.hidden {
    display: none;
}

/* ---------------- SETTINGS BOX ---------------- */
.settings-box {
    background: #f4e6c9;
    border: 4px solid #6b5541;
    width: 100%;
    max-height: 100%;
    padding: 20px;
    text-align: center;
    box-shadow: 6px 6px 0 #6b5541;
    opacity: 0;
    transform: translateY(-15px);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
}
.settings-box.slideIn {
    opacity: 1;
    transform: translateY(0);
}

/* ---------------- SETTINGS CONTENT (SCROLLABLE) ---------------- */
.settings-content {
    overflow-y: auto;
    flex: 1;
    padding-right: 5px;
}

/* ---------------- SCROLLBAR STYLING ---------------- */
.settings-content::-webkit-scrollbar {
    width: 8px;
}
.settings-content::-webkit-scrollbar-track {
    background: #f4e6c9;
}
.settings-content::-webkit-scrollbar-thumb {
    background: #6b5541;
    border-radius: 4px;
}

/* ---------------- SECTION STYLES ---------------- */
.section {
    margin-bottom: 20px;
}
.save-section .clear-btn {
    background: #ff5c5c;
    border: 2px solid red;
    color: white;
    margin-left: 10px;
}
.save-section .warning {
    font-size: 12px;
    color: red;
    margin-top: 5px;
}

/* ---------------- EXPORT / IMPORT ---------------- */
.export-import {
    display: flex;
    flex-direction: column;
    margin-top: 10px;
}
.export-import button {
    font-family: "Pixelify Sans", sans-serif;
    border: none;
    background: #c9a66b;
    padding: 4px 8px;
    margin: 4px 0;
    cursor: pointer;
}
.export-import button:hover {
    background: #b89255;
}
#saveDataTextarea {
    width: 100%;
    height: 60px;
    margin-top: 5px;
    font-family: "Pixelify Sans", sans-serif;
    font-size: 12px;
    padding: 4px;
    resize: vertical;
}

/* ---------------- SETTINGS ELEMENTS ---------------- */
.settings-box h2 {
    margin-top: 0;
}
.setting {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 10px 0;
}
.setting button {
    font-family: "Pixelify Sans", sans-serif;
    border: none;
    background: #c9a66b;
    padding: 4px 12px;
    cursor: pointer;
}
.setting button:hover {
    background: #b89255;
}
#volumeSlider {
    width: 140px;
}
#closeSettings {
    margin-top: 10px;
}

/* ---------------- PIXEL-STYLE SECTION DIVIDERS ---------------- */
.section-dividers {
    border: none;
    border-top: 2px dashed #6b5541;
    box-shadow: 2px 2px 0 #c9a66b;
    margin: 15px 0;
    width: 100%;
    height: 0;
}

/* --------------- TRANSITION SCREEN --------------- */
#transition-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    opacity: 0;
    transition: opacity 2.5s ease;
    pointer-events: none;
}
#transition-screen.show {
    opacity: 1;
}