body, html {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center; /* Horizontally center */
    text-align: center;
    background-color: #f0f0f0;
}

/* Use pseudo-elements to create a 2:3 space ratio, pushing the content down */
body::before {
    content: '';
    flex-grow: 2;
}

body::after {
    content: '';
    flex-grow: 3;
}

.center-text {
    font-size: 1.2em;
    color: #333;
    /* The text itself should not grow */
    flex-grow: 0;
    flex-shrink: 0;
    padding-left: 5px;
    padding-right: 5px;
}

/* On desktop, spans are inline and will flow together */
.center-text span {
    display: inline;
}

/* On mobile, spans become block elements, creating line breaks */
@media (max-width: 768px) {
    .center-text span {
        display: block;
    }
    /* Remove paragraph margins on mobile to create a single block of text */
    .center-text p {
        margin: 0;
    }
}

.notice {
    font-size: 0.8em;
    color: #a0a0a0;
    padding-top: 5px;
    padding-bottom: 5px;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    width: 100%;
    max-width: 600px;
}

.notice p {
    margin: 3px 0;
}

/* Footer Styling */
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #f0f0f0;
    color: #888;
    font-size: 0.8em;
    display: flex;
    flex-direction: column; /* Stack items vertically */
    align-items: center;    /* Center items horizontally */
    gap: 10px;              /* Space between the two lines */
    padding-bottom: 10px;
}

footer p {
    margin: 0;
    font-size: 0.8em;
}

.language-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.language-selector select {
    padding: 5px;
    border-radius: 4px;
    border: 1px solid #ccc;
    background-color: white;
    font-size: 0.8em;
}
