* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    min-height: 100dvh;
    background-color: #f0f4f8;
    color: #333;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
}

.navBar {
    display: flex;
    flex-wrap: wrap;
    background-color: #6f8f65;
    border-radius: 0;
    font-family: "Audiowide", sans-serif;
}

.navBar a {
    color: #fff;
    text-align: center;
    padding: 12px 16px;
    text-decoration: none;
    font-size: 15px;
}

.navBar a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    text-shadow: none;
}

.navBar a.active {
    background-color: #4caf50;
    color: white;
}

.modal {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.35);
}

.modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    width: min(400px, 90vw);
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    color: #333;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.card {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: 0.3s;
    border-radius: 8px;
    background: #fff;
    text-align: center;
    width: min(600px, 92vw);
    margin: 24px auto;
    padding-bottom: 8px;
}

.card:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.card .content {
    padding: 8px 20px;
    font-size: 15px;
    line-height: 1.5;
}

.card .heading h2 {
    font-family: "Audiowide", sans-serif;
    text-shadow: none;
    text-align: center;
    color: #6f8f65;
    text-decoration: none;
    cursor: text;
    font-size: 1.25rem;
    padding-top: 16px;
}

.card .heading h2:hover {
    color: #5a7552;
}

.card .playButton {
    padding: 8px 16px 16px;
}

.card .playButton #start-play,
.modal-content #start {
    background-image: linear-gradient(to bottom right, #e74c3c, #f1c40f);
    color: white;
    font-size: 18px;
    padding: 10px 28px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
    touch-action: manipulation;
}

.card .playButton #start-play:hover,
.modal-content #start:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.18);
}

.modal-content input[type="text"] {
    width: 100%;
    max-width: 200px;
    padding: 8px;
    margin: 8px 0;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
}

@media (min-width: 768px) {
    .card .heading h2 {
        font-size: 1.5rem;
    }
}
