body {
    font-family: Arial, sans-serif;
    display: block;
    min-height: 100vh;
    margin: 0;
    background-color: rgba(239, 239, 208, 1);
}
.nav-bar {
    background-color: rgba(14, 173, 105, 1);
    display: flex;
    height: 12vw;
    padding-left: 4%;
    padding-right: 4%;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000; /* Ensures it stays above other content */
}
.blue-monster {
    margin-top: 5.65%;
    margin-left: 21%;
}
.red-monster {
    margin-top: 4.1%;
    margin-left: 1.5%;
}
.nav-title-container {
    width: 30vw;
    height: 10vw;
    margin-left: 3%;
    padding-top: 2%;
}
#welcome {
    font-size: 35px;
    font-weight: bold;
    color: rgba(239, 239, 208, 1);
    margin-top: 4%;
    margin-bottom: 2%;
}
#sub-welcome {
    font-size: 20px;
    color: rgba(239, 239, 208, 1);
    margin-top: 0;
    margin-bottom: 2%;
}
.progress-bar {
    width: 30vw;
    background-color: rgba(238, 66, 102, 1);
    height: 1.5vw;
    margin-bottom: 2%;
}
.game-body {
    display: flex;
    height: calc(100vh - 12vw); /* Takes full screen minus navbar height */
    justify-content: center;
    align-items: center;
    padding-top: 12vw; /* Push content below navbar */
}

.game-container {
    border-radius: 30px;
    padding-top: 20px;
    padding-bottom: 20px;
    padding-left: 60px;
    padding-right: 60px;
    text-align: left;
    max-width: 620px;
    width: 100%;
    height: 500px;
}
#startScreen {
    background-color: rgba(14, 173, 105, 1);
    border-radius: 30px;
    height: 100%;
    width: 100%;
}

#gameScreen {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#game-title {
    font-size: 55px;
    color: rgba(239, 239, 208, 1);
    margin-top: 15px;
    margin-bottom: 0;
}
.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
#game-sub {
    font-size: 30px;
    color: rgba(239, 239, 208, 1);
    margin-top: 10px;
    margin-bottom: 100px;
}
.game-header-playing {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    width: 100%;
    padding: 0 20px;
}

.instructions h2 {
    font-size: 28px;
    margin-bottom: 10px;
    color: rgba(14, 173, 105, 1);
}

#message {
    margin-bottom: 15px;
    color: rgba(14, 173, 105, 1);
    font-size: 24px;
    font-weight: bold;
}

#levelInfo {
    font-size: 24px;
    color: rgba(14, 173, 105, 1);
    font-weight: bold;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 20px;
    width: 100%;
    max-width: 450px; /* Reduced from previous size */
    margin: 0 auto;
}

.card {
    aspect-ratio: 1/1;
    background-color: #e0e0e0;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 36px; /* Reduced from 48px */
    cursor: pointer;
    transition: all 0.3s ease;
    max-height: 120px; /* Added max-height */
}

.card:hover {
    transform: scale(1.05);
}

.card.revealed {
    background-color: white;
    border: 2px solid #cccccc;
}

#message {
    margin-bottom: 15px;
    color: #666;
}

button {
    background-color: rgba(255, 210, 63, 1);
    border: none;
    color: rgba(84, 13, 110, 1);
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 30px;
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 20px;
    transition: background-color 0.3s ease;
    font-weight: bold;
}

button:hover {
    background-color: #45a049;
}
