body h1 {
    font-family: Limelight, sans-serif;
    font-size: 3rem;
}

.text-center {
    margin-top: 55px;
    margin-bottom: -20px;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 5px;
    max-width: 440px;
    margin: 0 auto;
    padding-bottom: 20px;
    padding-top: 0;
}

.game-grid div {
    background-color: lightgray;
    border: 1px solid #ccc;
    width: 100%;
    padding-bottom: 100%;
    /* Makes the grid squares a 1:1 aspect ratio */
    position: relative;
    border-radius: 4px;
    /* Rounded corners */
}

.game-grid div.active {
    background-color: #950303;
}

.game-grid div:hover {
    cursor: pointer;
    background-color: #e3b7b7;
    transform: scale(1.07);
    transition: transform 0.1s ease-in-out, background-color 0.2s;
}

#user-options {
    margin-top: -155px;
}

.container {
    margin-top: 1rem !important;
}

/* Slider styling */
.form-control-range {
    appearance: none;
    -webkit-appearance: none;
    /* Remove default styling */
    width: 15%;
    height: 10px;
    border-radius: 5px;
    background: linear-gradient(to right, green, yellow, red);
    /* Color the slider */
    outline: none;
    /* Remove outline */
    cursor: pointer;
    opacity: 0.7;
    /* Set transparency */
}

#expert-slider:disabled {
    background: grey;
    opacity: 0.4;
    cursor: not-allowed;
    /* Change cursor to indicate disabled state */
}


body {
    overflow-x: hidden;
    /* Prevent horizontal scroll */
}

#new-game-button {
    font-size: 0.875rem;
    border-radius: 5px;
    margin-bottom: 10px;
}

.score-area {
    margin-top: 20px;
}

.score-area p {
    text-align: end;
}

@media (max-width: 425px) {
    .game-grid {
        padding-left: 15px;
        padding-right: 15px;
        margin-left: 15px;
        margin-right: 15px;
        max-width: calc(100% - 30px);
        /* Ensures it doesn't exceed the viewport */
    }
}


/* Animation */

#animated-title {
    display: inline-block;
    position: relative;
    font-family: 'Limelight', cursive;
}

#animated-title span {
    display: inline-block;
    position: relative;
    font-size: 48px;
}

#ball {
    width: 20px;
    height: 20px;
    background-color: red;
    border-radius: 50%;
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 10;
}


/* Media Queries for mobile screen sizes */
@media (max-width: 765px) {
    .table {
        width: 85%;
        margin: auto;
        /* Center the slider */
        padding-bottom: 20px;
    }

    #user-options {
        width: 90%;
        margin: auto;
    }

    #animated-title span {
        font-size: 85%;
    }

    .game-grid {
        padding-top: 30px;
        background-color: white;
    }

}

/* Media Queries for larger screen sizes */
@media (min-width: 766px) {
    #user-options {
        width: 25%;
    }

    .accordion {
        width: 110%;
        margin-left: -12px;
    }
}