.page-transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    z-index: 9999;
    pointer-events: none;
    transition: opacity 0.6s ease-in-out;
}

.page-transition-overlay.fade-out {
    opacity: 0;
}

.page-transition-overlay.fade-in {
    opacity: 1;
    pointer-events: all;
}


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

body {
    background: url("../pic/BgGener.jpg") no-repeat center center/cover;
    font-family: 'Cinzel', serif;
    font-size: 18px;
    color: #e6e6e6;
    height: 100vh;
    overflow: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: -1;
}

.container {
    display: flex;
    height: 100vh;
}

.left-panel {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-right: 1px solid #777;
}

.left-panel h1 {
    font-family: "IM Fell English SC", serif;
    font-size: 38px;
    letter-spacing: 3px;
    margin-bottom: 30px;
}

.left-panel img {
    width: 300px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.left-panel button,
.nav-btn {
    width: 220px;
    padding: 12px;
    margin: 10px 0;
    background: linear-gradient(to right, #aaa, #ddd);
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    color: black;
    transition: .3s;
}

.left-panel button:hover,
.nav-btn:hover {
    transform: scale(1.05);
}

.right-panel {
    width: 50%;
    overflow-y: auto;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 60px 0;
}

.music-control {
    position: fixed;
    top: 25px;
    left: 25px;
    z-index: 10001;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(10, 10, 10, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.music-control:hover {
    border-color: rgba(180, 220, 255, 0.6);
    transform: scale(1.1);
    text-shadow: 0 0 10px #fff;
}

.music-control.playing {
    border-color: rgba(0, 200, 255, 0.8);
    color: #00d2ff;
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.4), inset 0 0 10px rgba(0, 210, 255, 0.2);
    animation: musicPulse 2s infinite ease-in-out;
}

@keyframes musicPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 15px rgba(0, 210, 255, 0.3);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 25px rgba(0, 210, 255, 0.6);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 15px rgba(0, 210, 255, 0.3);
    }
}

.music-control.playing::after {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    border: 1px solid rgba(0, 210, 255, 0.3);
    animation: rotateRing 4s linear infinite;
}

@keyframes rotateRing {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.form-container {
    width: 420px;
    position: relative;
}

h2 {
    text-align: center;
    margin-bottom: 28px;
    font-family: "IM Fell English SC", serif;
}

label {
    display: block;
    margin-top: 15px;
    font-size: 14px;
}

.required {
    color: #bbb;
}

input,
select {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    background: rgba(50, 50, 50, 0.8);
    border: 1px solid #888;
    border-radius: 6px;
    color: white;
    font-family: 'Cinzel', serif;
    font-size: 18px;
}

input:focus:invalid {
    border-color: #ccc;
}

.submit-btn {
    margin-top: 20px;
    width: 100%;
    padding: 12px;
    background: linear-gradient(to right, #aaa, #ddd);
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.form-box {
    transition: .4s;
}

.hidden-form {
    opacity: 0;
    transform: translateX(40px);
    pointer-events: none;
    position: absolute;
    top: 0;
    width: 100%;
}

.hidden {
    max-height: 0;
    overflow: hidden;
    transition: max-height .4s ease;
}

.visible {
    max-height: 500px;
}

.sub-options {
    margin-left: 15px;
    margin-top: 8px;
}

.left-panel button,
.nav-btn,
.submit-btn {
    font-family: "IM Fell English SC", serif;
    font-size: 18px;
    letter-spacing: 1px;

}

textarea {
    width: 100%;
    min-height: 100px;
    background: rgba(50, 50, 50, 0.8);
    border: 1px solid #888;
    border-radius: 6px;
    color: white;
    padding: 10px;
    font-family: 'Cinzel', serif;
    margin-top: 5px;
    resize: vertical;
}

@media (max-width: 900px) {
    body {
        overflow-y: auto;
        height: auto;
    }

    .container {
        flex-direction: column;
        height: auto;
    }

    .left-panel,
    .right-panel {
        width: 100%;
        border-right: none;
        height: auto;
        padding: 40px 20px;
    }

    .left-panel {
        border-bottom: 1px solid #777;
    }

    .left-panel img {
        width: 200px;
    }

    .form-container {
        width: 100%;
        max-width: 420px;
    }

    .right-panel {
        overflow-y: visible;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .left-panel h1 {
        font-size: 28px;
    }

    .left-panel button,
    .nav-btn,
    .submit-btn {
        width: 100%;
    }
}