body {
    font-family: Arial, sans-serif;
    background-color: #FFFFFF;
    color: #003087;
    margin: 0;
    padding: 0;
}
.header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px auto;
    max-width: 1200px;
}
.header img {
    width: 40px !important;
    max-width: 40px !important;
    height: auto !important;
    max-height: 40px !important;
    object-fit: contain !important;
    image-rendering: crisp-edges !important;
    image-rendering: -webkit-optimize-contrast !important;
}
.nav {
    background-color: #003087;
    padding: 10px;
    text-align: center;
    margin: 0 auto 20px auto;
    max-width: 1200px;
}
.nav a {
    color: #FFFFFF;
    text-decoration: none;
    margin: 0 10px;
    font-size: 16px;
}
.nav a:hover {
    color: #FFB612;
}
h1, h2, h3 {
    text-align: center;
    color: #003087;
}
.league, .rules-content, .content {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: #FFFFFF;
    border: 1px solid #003087;
    border-radius: 5px;
}
form {
    text-align: center;
    margin: 20px auto;
    max-width: 800px;
}
form input[type="text"] {
    padding: 8px;
    margin-right: 10px;
}
form button {
    background-color: #003087;
    color: #FFFFFF;
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}
form button:hover {
    background-color: #FFB612;
}
.dropdown {
    position: relative;
    display: inline-block;
    margin-right: 10px;
}
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #FFFFFF;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
}
.dropdown-content a, .dropdown-content form {
    color: #003087;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}
.dropdown-content a:hover, .dropdown-content form:hover {
    background-color: #FFB612;
}
.dropdown:hover .dropdown-content {
    display: block;
}
.dropdown button {
    background-color: #003087;
    color: #FFFFFF;
    padding: 10px 16px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}
.proceed-button {
    display: inline-block;
    background-color: #003087;
    color: #FFFFFF;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 10px;
}
.proceed-button:hover {
    background-color: #FFB612;
}
.wheel-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin: 20px auto;
    max-width: 500px;
}
#wheelCanvas {
    width: 400px;
    height: 400px;
}
#spin-button {
    position: absolute;
    width: 60px;
    height: 60px;
    background-color: #003087;
    color: #FFFFFF;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}
#spin-button:hover {
    background-color: #FFB612;
}
#spin-button:disabled {
    background-color: #666666;
    cursor: not-allowed;
}
.pointer {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 20px solid red;
    z-index: 5;
}
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
.popup-content {
    background: #FFFFFF;
    padding: 20px;
    border-radius: 5px;
    text-align: center;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
}
.popup-content.blink {
    animation: blink 1s infinite;
}
@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}
.popup-content button {
    background-color: #003087;
    color: #FFFFFF;
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
}
.popup-content button:hover {
    background-color: #FFB612;
}
/* Responsive adjustments for mobile */
@media screen and (max-width: 600px) {
    body {
        font-size: 14px; /* Slightly smaller for mobile */
    }

    h1, h2, h3 {
        font-size: 1.2rem; /* Adjust headings */
    }

    .header {
        padding: 10px;
    }

    .header img {
        width: 60px !important; /* Larger logo for mobile */
        max-width: 100% !important; /* Allow scaling */
        max-height: 60px !important;
    }

    .nav {
        padding: 8px;
    }

    .nav a {
        font-size: 14px;
        margin: 0 5px;
    }

    .league, .rules-content, .content {
        padding: 10px;
    }

    form {
        padding: 10px;
    }

    form input[type="text"], form button, .dropdown button {
        padding: 8px;
        font-size: 0.9rem;
    }

    .dropdown-content {
        min-width: 120px;
    }

    .proceed-button {
        padding: 8px 16px;
    }

    .wheel-container {
        max-width: 300px;
    }

    #wheelCanvas {
        width: 300px;
        height: 300px;
    }

    #spin-button {
        width: 50px;
        height: 50px;
        font-size: 14px;
    }

    .popup-content {
        padding: 15px;
    }
}
