/* Reset default styles */
html, body {
    background: transparent;
    margin: 0;
    padding: 0;
    overflow: hidden;
    font-family: "Manrope", sans-serif;
}

/* Main wrapper */
#wrap {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Menu container */
.menu-container {
    width: 28vw;
    min-height: 8vw;
    max-height: 24vw;
    height: auto;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    display: none;
}

/* Back control */
.back-control {
    position: absolute;
    left: -3vw;
    top: 0;
}

/* Freeze control */
.freeze-control {
    position: absolute;
    right: -3vw;
    top: 0;
}

.back-button, .freeze-button {
    width: 2.5vw;
    height: 2.5vw;
    background: rgba(26, 29, 38, 0.95);
    border: none;
    border-radius: 0.3vw;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.6vw;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.2s;
}

.back-button:hover, .freeze-button:hover {
    background: rgba(20, 22, 30, 1); /* Darker background */
}

.back-button:hover i, .freeze-button:hover i {
    color: rgba(255, 140, 50, 1); /* Orange icon on hover */
}

.freeze-button.active i {
    color: rgba(255, 140, 50, 1); /* Orange when active */
}

.freeze-button i {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1vw; /* Larger snowflake */
    transition: color 0.2s;
}

/* Universal header */
.universal-header {
    background: url('./images/header-bg.png') right center no-repeat, 
                linear-gradient(90deg, rgba(10, 40, 80, 0.1), transparent), 
                rgba(26, 29, 38, 0.95);
    width: 28vw;
    height: 6.5vw;
    display: flex;
    border-radius: 0.5vw;
    position: absolute;
    top: -7.5vw;
    left: 50%;
    transform: translateX(-50%);
}

.universal-header-logo {
    width: 5vw;
    height: 5vw;
    margin: 0.75vw 0 0 0.5vw;
    border-radius: 0.2vw;
    position: relative;
}

.universal-header-logo img {
    width: 80%;
    height: 80%;
    object-fit: contain;
    position: absolute;
    top: 10%;
    left: 10%;
}

.universal-header-text {
    width: 60%;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.4vw;
    justify-content: center;
    position: relative;
}

.universal-header-text b {
    color: rgba(255, 255, 255, 1);
    font-size: 1.2vw;
    margin: 0 0 0.2vw 0;
}

.header-description {
    display: flex;
    flex-direction: column;
    margin: 0.2vw 0 0 0;
}

.header-description span {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.5vw;
    line-height: 0.7vw;
}

.header-subtitle {
    position: absolute;
    top: 3.8vw;
    left: 1vw;
    font-size: 1vw;
    color: rgba(255, 140, 50, 1);
    display: block;
    font-family: "Style Script", serif;
    z-index: 3;
    transform: rotate(-4deg);
    text-shadow: 0 0 0.2vw rgba(26, 29, 38, 1);
}

/* Discord button */
.universal-discord {
    position: absolute;
    bottom: 0.5vw;
    right: 1.5vw;
    background: rgba(86, 98, 246, 1);
    width: 5.5vw;
    height: 1.2vw;
    border: none;
    outline: none;
    color: rgba(255, 255, 255, 1);
    font-size: 0.45vw;
    transition: 0.2s;
    cursor: pointer;
    border-radius: 0.1vw;
    display: flex;
    align-items: center;
    justify-content: center;
}

.universal-discord i {
    margin-right: 0.2vw;
}

.universal-discord:hover {
    background: rgba(96, 108, 256, 1);
    box-shadow: 0 0.3vw 0.7vw rgba(65, 75, 255, 0.5);
}

/* Exit button */
.universal-exit {
    position: absolute;
    top: 0.5vw;
    right: 0.5vw;
    background: rgba(210, 55, 55, 1);
    width: 1.2vw;
    height: 0.9vw;
    border: none;
    outline: none;
    color: rgba(255, 255, 255, 1);
    font-size: 0.45vw;
    transition: 0.2s;
    cursor: pointer;
    border-radius: 0.1vw;
}

.universal-exit:hover {
    background: rgba(235, 65, 65, 1);
    box-shadow: 0 0.3vw 0.8vw rgba(255, 45, 45, 0.5);
}

/* Menu content */
.menu-content {
    width: 100%;
    background: rgba(26, 29, 38, 0.95);
    border-radius: 0.5vw;
    margin-top: 0;
    padding: 0.8vw;
    overflow-y: auto;
    box-sizing: border-box;
    height: auto;
}

/* Button grid */
.button-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4vw;
    padding: 0.4vw;
}

/* Menu buttons */
.menu-button {
    width: 100%;
    height: 1.8vw;
    background: linear-gradient(0deg, rgba(255, 255, 255, 0.03) 0%, transparent 100%);
    border: none;
    outline: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.65vw;
    font-family: "Manrope", sans-serif;
    cursor: pointer;
    border-radius: 0.3vw;
    transition: 0.2s;
    text-align: center;
}

.menu-button:hover {
    background: none;
}

.menu-button:hover span {
    color: rgba(255, 140, 50, 1);
}

.menu-button span {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.2s;
}

.menu-button.selected span {
    color: rgba(255, 140, 50, 1);
}

.menu-button.selected:hover span {
    color: rgba(255, 140, 50, 1);
}

/* Scrollbar */
.menu-content::-webkit-scrollbar {
    width: 0.1vw;
    background-color: transparent;
    border-radius: 0.4vw;
}

.menu-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0);
    border-radius: 0.4vw;
}

.menu-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 1);
    border: 0.1vw solid rgba(255, 255, 255, 1);
    border-radius: 0.5vw;
}