.games-outer {
    padding: 20px;
    margin-top: 20px;
    background-color: #8be2f726;
    border-radius: 4px;
    border: 2px solid #f0ad4e;
}

.games-outer .menu {
    text-align: center;
    text-align: center;
    /* Centers the content inside the menu */
    padding: 20px;
    /* Adds some space around the elements */
    background-color: #f9f9f9;
    /* Light background for contrast */
    border-radius: 8px;
    /* Smooth corners for a polished look */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    /* Adds subtle shadow */
    animation: fadeIn 0.8s ease;
    /* Animation for smooth appearance */

}


/* Styling for the game logo image */
.games-outer .menu .game-logo {
    max-width: 100%;
    /* Ensures the image is responsive */
    width: 200px;
    /* Set a default width for medium to large screens */
    height: auto;
    /* Maintains the aspect ratio */
    margin: 20px auto;
    /* Adds space around the image and centers it */
    border-radius: 12px;
    /* Adds slight rounding to the image corners */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    /* Gives the image a professional shadow effect */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* Adds smooth transition effects */
}

.games-outer .menu .game-logo:hover {
    transform: scale(1.05);
    /* Slightly enlarges the image on hover */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
    /* Deepens the shadow on hover */
}


.games-outer button {
    margin: 17px;
    font-size: 18px;
    color: white;
    background-color: #37a6f0;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
    width: 100%;
    padding: 7px;
}

#game-settings h2 {
    text-align: center;
    background-color: #ffc107;
    padding: 8px;
}

#back-to-menu {
    background-color: #80e680b8;
    color: black;
    width: 51%;
}

.games-outer button:hover {
    background-color: #2980b9;
    transform: scale(1.05);
    /* Slightly enlarge button on hover */
}

.games-outer .hidden {
    display: none;
}

#back-to-settings {
    background-color: #80e680b8;
    color: black;
    width: 51%;
}

#reset-game {
    background-color: #f85050 !important;
    border-color: #f85050 !important;
    width: 51%;
    float: inline-end;
}

.grid-size {
    font-weight: 600;
    font-size: 35px;
}

#selected-grid-info {
    background-color: #91f0f0;
    width: 96%;
    margin: 10px 0px 10px 0px;
    font-size: 32px;
}

.grid-view {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeIn 0.8s ease;
    border: solid 1px #db2626;
    background-color: #fff;
}

.games-outer #game-grid {
    display: grid;
    gap: 10px;
    margin-bottom: 20px;
}

.games-outer .grid-cell {
    width: 50px;
    height: 50px;
    background-color: #f0f4f8;
    border: 2px solid #7f8c8d;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.games-outer .grid-cell:hover {
    transform: scale(1.1);
}

.games-outer .grid-cell.red {
    background-color: #e74c3c;
}

.games-outer .grid-cell.blue {
    background-color: #3498db;
}

.close-btn {
    padding: 6px !important;
    margin: 0px !important;
    background-color: #f06c6c !important;
    border: #f06c6c !important;
}

.games-outer .modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    border: 1px solid #333;
    padding: 30px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    animation: fadeIn 0.5s ease;
}

.details {
    background-color: antiquewhite !important;
    padding: 10px !important;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
    .games-outer .menu .game-logo {
        width: 150px;
        /* Reduces the size of the image on smaller screens */
    }

    /* #game-grid {
        grid-template-columns: repeat(5, 42px) !important;
      } */
}

@media (max-width: 480px) {
    .games-outer .menu .game-logo {
        width: 120px;
        /* Further reduces image size for very small screens */
    }
}

.games-outer @keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}