/* styles.css */
#questionSection {
    display: flex;
    flex-direction: column;
    padding-top: 3.5em;
}

#currentQuestion {
    background: rgb(135 106 255);
    position: fixed;
    top: 0;
    left: 0;
    margin: 0;
    padding: 0.5em;
    width: 100%;
    text-align: center;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.ranking-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.top-three, .bottom-three {
    width: 45%;
}

.rank-container {
    margin: 15px 0;
}

.rank-select {
    width: 100%;
    padding: 8px;
}

select {
    -webkit-appearance: none;
}

.rank-comment {
    padding: 8px;
    border-radius: 6px;
    resize: none;
    font-family: Arial, sans-serif;
    background: rgb(111 56 223);
    border-color: rgb(111 56 223);
    color: white;
}

textarea::placeholder {
    color: white;
    font-weight: 700;
    opacity: .9;
}

.rank-item {
    width: 100%;
}

.rank-item-container {
    display: flex;
}

.rank-number {
    font-size: 20px;
    font-weight: bold;
    padding-top: .3em;
    min-width: 1.7em;
}

#nextButton {
    margin-top: 1em;
    margin-bottom: 1em;
    float: right;
}

.rank-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#userSelect {
    text-align: center;
}

#playerSelect {
    width: 100%;
    margin: 10px 0;
    max-width: 25em;
}

:root {
    --progress-width: 0%;
}

#currentQuestion::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    width: var(--progress-width);
    background: #16eb52;
    transition: width 1s ease;
}

/* Responsive styles */
@media screen and (max-width: 768px) {
    .container {
        padding: 10px;
    }

    .rank-select {
        width: 100%;
    }

    button {
        width: 100%;
    }
}

@media screen and (max-width: 480px) {
    h2, h3, h4, h5 {
        font-size: 1.2em;
        margin-bottom: 0;
    }
    h4, h5 {
        margin-bottom: 0;
    }
    #currentQuestion {
        width: 95%;
    }
}

/* Professional Modern Theme */
body {
    background: rgb(9, 12, 29);
    color: white;
    font-family: Montserrat, "Noto Sans Arabic", "Helvetica Neue", Helvetica, Arial, "Bai Jamjuree", sans-serif;
    line-height: 1.6;
}

button {
    cursor: pointer;
    font-size: 0.875rem;
    line-height: 1.75;
    min-width: 64px;
    width: 50%;
    text-align: center;
    text-transform: none;
    display: flex;
    -webkit-box-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    align-items: center;
    border-radius: 12px;
    font-weight: 900;
    letter-spacing: normal;
    --roo-loading-color: #C56A18;
    --roo-btn-text-stroke-color: #C56A18;
    box-shadow: rgb(197, 106, 24) 0px -3px 0px 0px inset, rgb(255, 234, 47) 0px 2px 0px 0px inset;
    transition: background-size 0.3s ease-in-out;
    background: linear-gradient(420deg, rgb(255, 206, 0) 0%, rgb(255, 206, 0) 15%, rgb(238, 175, 14) 15%, rgb(238, 175, 14) 100%) left center / 100% 100% no-repeat;
    padding: 10px 14px 14px;
    color: rgb(255, 255, 255);
}

select {
    background: rgb(111 56 223);
    border: 1px solid rgb(71 35 148);
    border-radius: 6px;
    border-right: solid 10px rgb(111 56 223);
    font-family: inherit;
    color: white;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.2s ease;
}

/* Professional Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
}

/* Links */
a {
    color: #2563eb;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #1d4ed8;
}

/* Form Elements */
input {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 8px 12px;
    font-family: inherit;
    transition: all 0.2s ease;
}

input:focus {
    border-color: #2563eb;
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}