@font-face {
    font-family: Oswald;
    src: url(Oswald.ttf);
}

#bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    z-index: -2;
}

body {
    background: no-repeat center center fixed;
    background-size: cover;
    z-index: -3;
    margin: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    user-select: none;
}

/* Removes the extra spacer that caused the bottom scroll */
.scroll-spacer { display: none; }

body::before {
    content: "";
    position: fixed;
    top: 0; 
    left: 0; 
    right: 0; 
    bottom: 0;
    backdrop-filter: blur(4px);
    z-index: -1;
}

main {
    text-align: center;
    font-family: Oswald, sans-serif;
    padding: 2vh;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1500px;
}

#tilt-container {
    width: 90%;
    max-width: 460px;
    height: 85vh;
    display: flex;
    flex-direction: column;
    transition: transform 0.1s ease-out;
    transform-style: preserve-3d;
}

#box, .button-container {
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(12px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
}

.button-container {
    padding: 15px;
    flex-shrink: 0;
    display: flex;
}

#nav-box { margin-bottom: 15px; }

#box {
    margin-bottom: 15px;
    flex-grow: 1;
    position: relative;
    padding: 35px 25px 20px 25px;
    overflow: hidden;
}

.view-section {
    position: absolute;
    top: 35px; 
    bottom: 20px; 
    left: 25px; 
    right: 25px;
    display: flex;
    flex-direction: column;
    transition: opacity 0.5s ease, transform 0.5s ease;
    opacity: 1;
}

.view-section.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(15px);
}

.header-content { flex-shrink: 0; }

.scroll-wrapper {
    position: relative;
    margin-top: 15px;
    flex-grow: 1;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%);
}

.scroll-wrapper.at-top { 
    -webkit-mask-image: linear-gradient(to bottom, black 0%, black 90%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 0%, black 90%, transparent 100%);
}

.scroll-wrapper.at-bottom { 
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 100%);
}

.scroll-wrapper.at-top.at-bottom { 
    -webkit-mask-image: none;
    mask-image: none;
}

.scrollable {
    height: 100%;
    overflow-y: auto;
    padding: 5px 10px 40px 10px; /* Added 40px to the bottom */
}

.scroll-spacer { height: 40px; width: 100%; }

.scrollable::-webkit-scrollbar { width: 5px; }
.scrollable::-webkit-scrollbar-thumb { 
    background: rgba(255, 255, 255, 0.3); 
    border-radius: 10px; 
}

.player-entry {
    margin: 8px auto;
    font-size: 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 16px;
    border-radius: 6px;
    width: fit-content;
    min-width: 160px;
}

.info-content {
    font-size: 1.15rem;
    line-height: 1.6;
    color: #ddd;
    text-align: left;
}

.text-fade { color: transparent !important; }

h3 { 
    font-size: 2.5rem; 
    margin: 0 0 10px 0; 
    letter-spacing: 2px; 
}

p { font-size: 1.3rem; margin: 6px 0; }

#playerListHeader {
    margin-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 12px;
    font-size: 1.3rem;
    font-weight: bold;
}

.btn {
    text-decoration: none;
    color: white;
    background: rgba(255, 255, 255, 0.1);
    padding: 14px;
    border-radius: 10px;
    flex: 1;
    transition: all 0.3s ease;
    font-weight: bold;
    cursor: pointer;
    font-size: 1.1rem;
    text-align: center;
}

.btn:hover { background: rgba(255, 255, 255, 0.2); }
.btn:active { transform: scale(0.96); background: rgba(255, 255, 255, 0.3); }

@media (max-width: 600px) {
    h3 { font-size: 2rem; }
    p { font-size: 1.1rem; }
    .info-content { font-size: 1rem; }
    #box { padding: 25px 15px 15px 15px; }
}