body {
  background: linear-gradient(135deg, #073B7A 0%, #0A4C96 40%, #0E6DA8 100%);
}

.background-container {
display: flex;
align-items: center;
justify-content: center;
margin-top: 30px;
}

.background {
width: 500px;
height: 500px;
border-radius: 25px;
box-shadow: rgba(0, 0, 0, 0.25) 0px 54px 55px, rgba(0, 0, 0, 0.12) 0px -12px 30px, rgba(0, 0, 0, 0.12) 0px 4px 6px, rgba(0, 0, 0, 0.17) 0px 12px 13px, rgba(0, 0, 0, 0.09) 0px -3px 5px;
border: 5px solid white;
margin: 20px auto;
}

.background-host-container {
    display: flex;
    justify-content: flex-end;
    margin-top: -50px;
}

.background-host {
width: 100px;
height: 100px;
border-radius: 25px;
border: 5px solid white;
margin-top: 10px;
}

.background-waiting {
width: 100px;
height: 100px;
border-radius: 25px;
border: 5px solid white;
margin-top: 50px;
}

.background-join-container {
    display: flex;
    justify-content: flex-end;
    margin-top: -43px;
}

.background-join {
width: 100px;
height: 100px;
border-radius: 25px;
border: 5px solid white;
}

background-waiting {
width: 100px;
height: 100px;
border-radius: 25px;
border: 5px solid white;
margin-top: 10px;
}

.background-waiting-container {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
}

.startGame {
display: flex;
align-items: center;
justify-content: center;
}

.host-btn, .join-btn {
margin-top: 60px;
margin-right: 25px;
font-size: 25px;
padding: 10px;
background-color: #1892a2;
color: white;
font-weight: bold;
border-radius: 20px;
width: 200px;
height: 100%;
border: 3px solid white;
text-align: center;
cursor: pointer;
box-shadow: 0 6px 0 #1b3d6b,
                0 6px 10px rgba(0,0,0,0.25);
    transition: all 0.15s ease;
margin-bottom: 20px;
}

.join-start-btn {
font-size: 25px;
padding: 10px;
background-color: #1892a2;
color: white;
font-weight: bold;
border-radius: 20px;
width: 200px;
height: 100%;
border: 3px solid white;
text-align: center;
cursor: pointer;
box-shadow: 0 6px 0 #1b3d6b,
                0 6px 10px rgba(0,0,0,0.25);
    transition: all 0.15s ease;
    margin-bottom: 20px;
    margin-top: 20px;
}

::placeholder {
font-family: 'Luckiest Guy', sans-serif;
}
.join-start-btn:active {
transform: translateY(4px);
    box-shadow: 0 2px 0 #1b3d6b,
                0 2px 6px rgba(0,0,0,0.2);
}

.host-btn:active, .join-btn:active {
    transform: translateY(4px);
    box-shadow: 0 2px 0 #1b3d6b,
                0 2px 6px rgba(0,0,0,0.2);
}

join-start-btn:hover {
transform: translateY(-2px);
        box-shadow: 0 8px 0 #1b3d6b,
                    0 10px 14px rgba(0,0,0,0.25);
}

.host-btn:hover, .join-btn:hover {
    transform: translateY(-2px);
        box-shadow: 0 8px 0 #1b3d6b,
                    0 10px 14px rgba(0,0,0,0.25);
}

form {
text-align: center;
}

h1, h3 {
font-family: 'Luckiest Guy', sans-serif;
    font-size: 70px;
    color: #ffffff;
    text-align: center;
    -webkit-text-stroke: 4px #0b2b66;
    text-stroke: 4px #0b2b66;
    text-shadow:
        0px 4px 0px #0b2b66,
        0px 8px 0px rgba(0,0,0,0.35);
        margin-top: 6px;
}

h1 {
margin-top: 25%;
}

.join-game {
font-family: 'Luckiest Guy', sans-serif;
    font-size: 70px;
    color: #ffffff;
    text-align: center;
    -webkit-text-stroke: 4px #0b2b66;
    text-stroke: 4px #0b2b66;
    text-shadow:
        0px 4px 0px #0b2b66,
        0px 8px 0px rgba(0,0,0,0.35);
        margin-top: 30px;
}

input {
height: 50px;
width: 400px;
font-size: 25px;
margin-bottom: 20px;
display: block;
border-radius: 10px;
padding: 5px;
font-family: 'Luckiest Guy', sans-serif;
margin-left: auto;
margin-right: auto;
}

.join-start-input {
background-color: #0b2b66;
width: 500px;
height: 150px;
padding: 40px;
margin-left: auto;
margin-right: auto;
border-radius: 10px;
margin-top: -10px;
margin-bottom: 20px;
border: 7px solid #1892a2;
}

::placeholder {
text-align: center;
}

.waiting-container {
margin-top: -135px;
}

.waiting-container h1 {
color: #32CD32;
}

.generator h3 {
position: relative;
top: 60px;
}

.host-back-btn {
font-size: 15px;
padding: 10px;
background-color: #1892a2;
color: white;
font-weight: bold;
border-radius: 20px;
width: 100px;
height: 100%;
border: 3px solid white;
text-align: center;
cursor: pointer;
box-shadow: 0 6px 0 #1b3d6b,
                0 6px 10px rgba(0,0,0,0.25);
    transition: all 0.15s ease;
}

.host-back-btn:active {
transform: translateY(4px);
    box-shadow: 0 2px 0 #1b3d6b,
                0 2px 6px rgba(0,0,0,0.2);
}

.host-back-btn:hover {
transform: translateY(-2px);
        box-shadow: 0 8px 0 #1b3d6b,
                    0 10px 14px rgba(0,0,0,0.25);
}

/* ----------------------------------------------------------
   MOBILE RESPONSIVE (DO NOT CHANGE EXISTING DESKTOP STYLES)
   ---------------------------------------------------------- */
@media (max-width: 700px) {

    /* Shrink big family-image card */
    .background {
        width: 85% !important;
        height: auto !important;
    }

    /* Shrink small icon in top-right */
    .background-host,
    .background-join,
    .background-waiting {
        width: 70px !important;
        height: 70px !important;
        margin-top: 10px !important;
        border-width: 4px !important;
    }

    /* Fix spacing for join/host/generator/waiting headers */
    h1, h2, h3 {
        font-size: 32px !important;
        -webkit-text-stroke: 2px #0b2b66 !important;
        text-stroke: 2px #0b2b66 !important;
        text-shadow: 0px 3px 0px #0b2b66,
                     0px 6px 8px rgba(0,0,0,0.35) !important;
        margin-left: 10px !important;
        margin-right: 10px !important;
    }

    /* Generator question (very large) */
    .generator h3,
    h3[th\\:text="${question}"] {
        font-size: 28px !important;
        padding: 0 15px !important;
    }

    /* Input boxes shrink */
    input {
        width: 90% !important;
        font-size: 20px !important;
    }

    /* Form card centers and shrinks */
    .join-start-input {
        width: 90% !important;
        padding: 25px !important;
        margin-top: 20px !important;
    }

    /* Buttons become full width */
    .host-btn,
    .join-btn,
    .join-start-btn,
    .host-back-btn {
        width: 80% !important;
        font-size: 22px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .startGame {
        flex-direction: column !important;
        gap: 15px !important;
    }

    /* Waiting room text smaller */
    .waiting-container h1 {
        font-size: 30px !important;
    }

    /* Game Code box shrink */
    .generator h2,
    .waiting-container h2 {
        font-size: 26px !important;
        padding: 8px 12px !important;
    }

    /* Ensures everything stays centered */
    body {
        text-align: center !important;
    }
}
