html, body {
    height: 100%;
    margin: 0;
    overflow-y: auto; /* allow vertical scroll if needed */
    font-family: Tahoma, sans-serif;
}

body {
    display: grid;
    grid-template-rows: auto 1fr auto;
    min-height: 100vh; /* ensure full viewport height */
    height: 100%;
}

#backgroundCanvas {
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
}

#text-container {
    margin-top: 3%;
    padding: 0 1rem; /* padding so text doesn’t touch edges on small screens */
}

h1, h2, p {
    color: black;
    text-align: center;
    padding: 10px 0;
    text-shadow: 2px 2px 4px white;
    margin: clamp(0px, 2vw, 30px) auto;
    max-width: 900px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

h1 {
    font-size: clamp(20px, 4vw + 1vh, 48px);
}

h2 {
    font-size: clamp(16px, 3vw + 1vh, 36px);
}

p, span {
    font-size: clamp(12px, 2vw + 0.5vh, 24px);
}

.centered-container {
    display: flex;
    justify-content: center;
    align-items: center;
    /* Instead of height 30% on button, make container min-height */
    min-height: 80px;
    padding: 0 1rem;
}

.lobbyButton {
    width: 100%;
    max-width: 480px;
    height: 60px;
    font-size: clamp(16px, calc(1.2vw + 1.2vh), 28px);
    color: #000000;
    background: #00FF00;
    border: 3px solid #00A000;
    border-radius: 5px;
    cursor: pointer;
    margin: 10px 0;
}

.lobbyButton:hover {
    background: linear-gradient(to right top, #00FF00, #00A000);
    border-color: #00A000;
}

footer {
    background-color: #000;
    color: #fff;
    text-align: center;
    width: 100%;
    padding: 15px 1rem;
    font-size: clamp(12px, 1vw, 16px);
    box-sizing: border-box;
}

.socialMediaLink {
    color: #fff;
    text-decoration: none;
    margin: 0 0.5rem;
}

.socialMediaLink:hover {
    text-decoration: underline;
}