/* Body Styling */
body, html {
    height: 100%;
    margin: 0;
    padding: 0; /* Remove any default padding */
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #d3d3d3, #a9a9a9, #808080);
    font-family: Arial, sans-serif;
    overflow: hidden; /* Prevent scrolling */
}

/* Game Area Styling */
#gameArea {
    flex: 1;
    position: relative;
    max-width: 600px;
    width: 90%;
    margin: auto;
    padding: 20px;
    border-radius: 10px;
    border: 2px solid #404040;
    background-color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    overflow: hidden; /* Ensure no overflow */
}

/* Item Styling */
.item {
    position: absolute;
    width: 50px;
    height: 50px;
    cursor: pointer;
    font-size: 40px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.item:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Start Game Button Styling */

#startGame {
    display: inline-block;
    padding: 15px 30px;
    font-size: 18px;
    color: #ffffff; /* Keep text color white for contrast */
    background: #6c757d; /* Set background to gray */
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#startGame:hover {
    background: #5a6268; /* Darker gray on hover */
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.3);
}

#startGame:active {
    transform: scale(0.98);
    background-color: #545b62; /* Even darker on active */
}

#startGame:disabled {
    background-color: #6c757d; /* Maintain gray color when disabled */
    cursor: not-allowed;
}

/* Navbar Styling */
.navbar {
    width: 100%;
    background: linear-gradient(45deg, #404040, #303030);
    color: white;
    padding: 10px;
    display: flex;
    justify-content: space-around;
    align-items: center; /* Align items vertically */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    font-size: 18px;
}

/* Footer Styling */
.footer {
    width: 100%;
    background: linear-gradient(45deg, #404040, #303030);
    padding: 15px 0;
    display: flex;
    justify-content: space-around;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.2);
}

.footer a {
    width: 30%;
    text-align: center;
    color: #ffffff;
    font-size: 16px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #dcdcdc;
}

/* Footer Button Styling */
.footer .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-radius: 24px;
    font-size: 16px;
    width: 100%;
}

/* Wait Message Styling */
.wait-message {
    font-size: 24px;
    font-weight: bold;
    color: #404040;
    margin-top: 20px;
    text-align: center; /* Center the wait message */
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    /* Adjust font sizes and button padding for smaller screens */
    .navbar {
        font-size: 16px;
    }
    #startGame {
        font-size: 16px;
        padding: 10px 20px;
    }
    .wait-message {
        font-size: 20px;
    }
}