/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}
@keyframes gradientShift {
    0% { background: linear-gradient(to right, #2c2c54, #713ABE, #2c2c54); }
    50% { background: linear-gradient(to right, #2c2c54, #854cc7, #2c2c54); }
    100% { background: linear-gradient(to right, #2c2c54, #713ABE, #2c2c54); }
}

body {
    animation: gradientShift 12s infinite alternate ease-in-out;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    color: white;
    line-height: 1.6;
    -ms-overflow-style: none;
    padding-top: 90px;
    overflow-x: hidden;
    text-align: center;
}

/* Center Login Screen */
#loginScreen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    padding-top: 50px; /* Adjusted so it doesn’t overlap navbar */
}

/* Style Input Field */
#username {
    width: 350px;
    padding: 12px;
    font-size: 18px;
    margin: 15px 0;
    border: 3px solid #1944ba;
    border-radius: 8px;
    text-align: center;
}

/* Center Button */
button {
    padding: 14px 30px;
    font-size: 1.2rem;
    font-weight: bold;
    color: white;
    background: #1944ba;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
    text-align: center;
}

button:hover {
    background: #4c7df1;
}

/* Game Board Layout */
#gameBoard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Responsive columns */
    grid-gap: 30px; /* Better spacing */
    justify-content: center;
    align-items: center;
    margin-top: 40px;
    padding: 30px;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

/* Card Styling */
.card {
    width: 100%; /* Adjusted to fill grid column */
    max-width: 400px; /* Wider cards */
    height: 180px; /* Adjusted for text */
    background-color: #67acf2;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    text-align: center;
    padding: 15px;
    color: #1944ba;
    border-radius: 12px;
    border: 4px solid #1944ba;
    font-weight: bold;
    transition: 0.3s;
}

.card:hover {
    background-color: #d9e7ff;
}

.hidden {
    background-color: #ffffff;
    color: #2c2c54;
}

/* Navbar Styling */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 50px;
    background: #1944ba;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    height: 60px;
    width: auto;
}

.navbar ul {
    display: flex;
    list-style: none;
}

.navbar ul li {
    list-style: none;
    display: inline-block;
    margin: 0 20px;
    position: relative;
}

.navbar ul li a {
    text-decoration: none;
    color: #fff;
    font-size: 1.1rem;
    font-weight: bold;
}

.navbar ul li:hover a {
    color: #8ca7f0;
}

.navbar ul li::after {
    content: '';
    height: 3px;
    width: 0;
    background: #8ca7f0;
    position: absolute;
    left: 0;
    bottom: -5px;
    transition: 0.5s;
}

.navbar ul li:hover::after {
    width: 100%;
}
