html,
body {
    font-family: Arial, sans-serif;
    background: #ebe8f7;
    color: #1f1b3a;
    margin: 0;
    font-weight: 600;
    line-height: 1.5;
}


/* Navigation bar */

.navbar {
    height: 60px;
    width: 100%;
    background: #3E3E4B;

    display: flex;
    justify-content: space-between;
    align-items: center;

    font-size: 20px;
    padding: 0 10px;
    box-sizing: border-box;
}


#first {
    justify-content: flex-start;
}

#favicon {
    width: auto;
    height: 50px;
}

#menu-button {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 20px;
}


#menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex: 1;
}

#links-left {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

#links-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}


.link {
    color: white;
    text-decoration: none;
    margin: 10px;
    font-size: 15px;
}


.link:hover {
    color: #D5D6E9;
    text-decoration: underline;
    text-underline-offset: 6px;
}

#current-link {
    color: #D5D6E9;
    text-decoration: underline;
    text-underline-offset: 6px;
}

@media (max-width: 900px) {

    #menu-button {
        display: block;
    }

    #menu-button:hover {
        color: #ccc2ff;
    }

    #menu {
        display: none;
        position: absolute;
        top: 60px;
        right: 0;
        width: 220px;
        background: #3E3E4B;
        flex-direction: column;
        align-items: center;
        z-index: 1000;
    }

    #links-left,
    #links-right {
        flex-direction: column;
        width: 100%;
        align-items: center;
    }

    .link {
        width: 80%;
        text-align: center;
    }

    #menu.active {
        display: flex;
    }
}


.title {
    text-align: center;
    margin: 50px auto;
    font-size: clamp(30px, 5vw, 80px);
    color: #17112f;
    font-family: Arial;
}

.container {
    max-width: 900px;
    width: 90%;
    margin: 0 auto;
    background: rgba(255,255,255,0.75);
    backdrop-filter: blur(10px);
    padding: 32px;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(50, 40, 100, 0.08);
}

table {
    width: 90%;
    margin: 0 auto;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 16px;
    overflow: hidden;
}

th,
td {
    padding: 16px 20px;
}

th {
    background: #403b72;
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

tr {
    background: white;
    transition: 0.2s ease;
}

tr:nth-child(even) {
    background: #f6f4fd;
}

tr:hover {
    background: #ece8ff;
}

.rank {
    font-weight: 700;
    color: #6355c7;
}

th.user,
td.user {
    text-align: left;
}

th.ticket,
td.ticket {
    text-align: right;
}

.refresh {
    text-align: center;
    margin-bottom: 18px;
    font-size: 0.9rem;
    color: #6d688b;
}

.user a {
    color: inherit;
    text-decoration: none;
    font-weight: 700;
    transition: 0.2s ease;
}

.user a:hover {
    color: #6355c7;
    text-decoration: underline;
}

.quickfind {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
}

.quickfind input {
    width: 60%;
    padding: 12px 16px;
    border: 1px solid #d9d3f3;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.8);
    color: #1f1b3a;
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    transition: 0.2s ease;
}

.quickfind input:focus {
    border-color: #6355c7;
    box-shadow: 0 0 0 4px rgba(99, 85, 199, 0.15);
}

.quickfind input::placeholder {
    color: #8a84a8;
}

.quickfind button {
    padding: 12px 20px;
    border: none;
    border-radius: 12px;
    background: #6355c7;
    color: white;
    font-size: 1rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: 0.2s ease;
}

.quickfind button:hover {
    background: #5447b8;
}

tr.highlight {
    background: #dcd5ff !important;
    transition: background 0.3s ease;
}

#back-to-top {
    position: fixed;
    bottom: 80px;
    right: 20px;

    padding: 10px 14px;
    border: none;
    border-radius: 12px;

    background: #6355c7;
    color: white;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: 0.2s ease;
    z-index: 9999;
}

#back-to-top:hover {
    background: #5447b8;
}

#bottombar {
    margin-top: 30px;
    height: 70px;
    width: 100%;

    background: #3E3E4B;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 0 40px;
    box-sizing: border-box;

    color: white;
}


#footer-left p {
    margin: 0;
}


#footer-socials {
    display: flex;
    gap: 20px;
}


.social-link {
    color: white;
    text-decoration: none;
}


.social-link:hover {
    color: #D5D6E9;
}

@media (max-width: 900px) {

    /* About sections */
    .larger-about-box {
        flex-direction: column;
        width: 100%;
    }

    .about {
        width: 100%;
    }

    .about-box {
        width: calc(100% - 40px);
        margin: 20px auto;
        padding: 15px;
    }

    .text-box {
        padding: 15px;
    }


    /* Section headings */
    .large-text {
        margin-left: 20px;
        margin-top: 20px;
        font-size: clamp(10px, 3vw, 20px);
    }


    /* Floating images */
    .float {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .float-img {
        width: 45%;
        margin: 15px auto;
    }


    /* History */
    .history-box {
        width: calc(100% - 40px);
        margin: 20px auto;
        padding: 15px;
    }


    /* Footer */
    #bottombar {
        height: auto;
        flex-direction: column;
        padding: 20px;
        gap: 15px;
    }

    #footer-socials {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
}