
#logo {
    position: relative;
    top: 0;
    right: 0;
    width: 25vw;
}

.container {
    width: 100%;
    padding: 5vh 0 10vh 0;
    align-items: center;
    height: auto;
    gap: 5vh;
}

.underTitle {
    color: white;
    font-family: 'Quicksand';
    font-size: 2rem;
}

.small-container {
    display: flex;
    gap: 5vw;
    width: 80%;
    height: 50vh;
}

/* ===============================
   SCORES
=============================== */

.scores-section {
    width: 60%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    height: 100%;
}

.day-scores,
.month-scores {
    background: rgba(255,255,255,0.06);
    border-radius: 20px;
    padding: 30px;
    
    /* backdrop-filter: blur(10px); */
    box-shadow: 0 20px 40px rgba(0,0,0,.4);
    overflow-y: auto;

    /* hide scrollbar but still scrollable */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* Internet Explorer 10+ */
}

.day-scores::-webkit-scrollbar,
.month-scores::-webkit-scrollbar {
    display: none; /* Safari and Chrome */
}

.section-header {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-header h2 {
    font-size: 2rem;
    color: #ff2e63;
    margin: 0;
    font-family: 'Tilt Warp';
}

.section-subtitle {
    font-family: 'Quicksand';
    color: white;
    margin: 0;
}

.separator {
    display: block;
    height: 1px;
    background: rgba(255,255,255,.2);
    margin: 20px 0;
}

.scores-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.score-entry {
    display: flex;
    justify-content: space-between;
    font-size: 1.1rem;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255,255,255,.05);
    font-family: 'Quicksand';
    color: white;
}

.player-name {
    opacity: .9;
}

.player-score {
    color: #ff2e63 !important;
    font-weight: 600;
}

form {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.login-tip {
    color: white;
    font-family: 'Quicksand';
    text-align: center;
    margin: 0;
}

/* ===============================
   RIGHT GAME PART
=============================== */

.game-part {
    display: flex;
    gap: 2vh;
    width: 40%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Best score badge */
.best-score {
    background: rgba(255,255,255,.1);
    border-radius: 20px;
    padding: 25px 35px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    backdrop-filter: blur(12px);
}

.best-score p {
    margin: 0;
    color: white;
    font-family: 'Tilt Warp', sans-serif;
}

.red-label {
    color: #ff2e63 !important;   
}

/* ===============================
   LOGIN
=============================== */

.login-prompt {
    background: rgba(255,255,255,.1);
    border-radius: 20px;
    padding: 1vw;
}

.inputs {
    display: flex;
    gap: 1vw;
    width: 100%;
}

.login-prompt input {
    background: rgba(0,0,0,.4);
    border: none;
    border-radius: 10px;
    padding: 14px;
    color: white;
    font-size: 1rem;
    outline: none;
    width: 50%;
}

.login-prompt input::placeholder {
    color: rgba(255,255,255,.5);
}

.errors {
    color: #ff4d4d;
    margin-bottom: 10px;
    display: none;
}

/* ===============================
   GAME CARD
=============================== */

.game-card {
    gap: 3vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    background: rgb(225, 225, 225);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    width: 300px;
}

.game-card p {
    margin: 0;
    font-size: 1rem;
    color: #222;
    font-family: 'Tilt Warp';
}

.game-card img {
    width: 50%;
    height: auto;
}

.btn-login {
    background-color: #01DF7F;
    color: white;
    padding: 0.8vh 0.8vw;
    border: none;
    outline: none;
    border-radius: 4px;
    font-family: 'Quicksand';
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

.btn-login:hover {
    background-color: #028f5e;
}

.btn-game {
    color: #E83151;
    padding: 0.8vh 0.8vw;
    background: none;
}

.btn-game:hover {
    color: white;
}

/* ===============================
   BUTTONS
=============================== */

.buttons {
    display: flex;
    flex-direction: column;
    gap: 2vh;
    width: 100%;
    align-items: center;
}

.disabled {
    pointer-events: none;
    opacity: 0.6;
    cursor: default;
    color: gray !important;
    border-color: gray !important;
}

@media screen and (max-width: 1024px) {
    .btn-game {
        color: white;
        padding: 1.5vh 1.5vh;
        transition: none;
        background-color: #E83151;
    }

    .small-container {
        flex-direction: column;
        width: 90%;
        height: auto;
        gap: 5vh;
    }

    .scores-section, .game-part {
        width: 100%;
        display: flex;
    }

    .game-part {
        flex-direction: column;
    }

    .scores-section {
        gap: 2vh;
    }

    #logo {
        margin-bottom: 0;
    }

    .login-prompt {
        padding: 2vh;
    }

    .inputs {
        flex-direction: column;
        gap: 2vh;
    }

    .login-prompt input {
        width: auto;
    }

    .btn-login {
        padding: 0.8vh 2vw;
    }

    .scores-section .day-scores, .scores-section .month-scores {
        width: 50%;
    }
}

@media screen and (max-width: 540px) {
    .scores-section {
        flex-direction: column;
    }

    .scores-section .day-scores, .scores-section .month-scores {
        width: auto;
    }
}