/* styles.css */

body {
    font-family: Arial, sans-serif;
    background-color: #EEEEEE;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
}

.container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 1200px;
    height: 90%;
    max-height: 100vh;
    margin: 20px;
    overflow: hidden;
}

header h1 {
    color: #adbc40;
    margin-bottom: 20px;
    font-size: 1.5em;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

form {
    text-align: left;
}

form label {
    display: block;
    margin-bottom: 10px;
}

form input[type="text"],
form button[type="submit"] {
    padding: 10px;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-bottom: 10px;
}

form input[type="radio"] {
    margin-right: 10px;
}

@media (max-width: 768px) {
    header h1 {
        font-size: 1.2em;
    }

    form input[type="text"],
    form button[type="submit"] {
        width: 100%;
    }
}

.options-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.option {
    flex-basis: calc(50% - 20px); /* 50% width with some space between */
    margin-bottom: 10px;
    padding: 10px;
    background-color: #ffffff;
    border-radius: 5px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    box-sizing: border-box; /* include padding in width calculation */
}

.option input[type="radio"] {
    display: none; /* hide the actual radio button */
}

.option label {
    display: block;
    padding: 25%;
    font-size: 1em;
    text-align: center;
    cursor: pointer;
    background-color: #adbc40; /* background color */
    color: #ffffff; /* text color */
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.option label:hover {
    background-color: #BDC74A; /* darker background color on hover */
}

/* Media query for smaller screens */
@media (max-width: 768px) {
    .option {
        flex-basis: calc(50% - 10px); /* 50% width with some space between */
    }
}

/* styles.css */

/* Existing styles... */

.overlay {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    transition: opacity 500ms;
    visibility: hidden;
    opacity: 0;
    z-index: 1000; /* Ensure it overlays other content */
}

.overlay:target {
    visibility: visible;
    opacity: 1;
}

.popup {
    margin: 70px auto;
    padding: 20px;
    background: #fff;
    border-radius: 5px;
    width: 30%;
    position: relative;
    transition: all 0.5s ease-in-out;
    z-index: 1001; /* Ensure it overlays overlay */
}

.popup h2 {
    margin-top: 0;
    color: #333;
    font-family: Tahoma, Arial, sans-serif;
}

.popup .close {
    position: absolute;
    top: 20px;
    right: 30px;
    transition: all 200ms;
    font-size: 30px;
    font-weight: bold;
    text-decoration: none;
    color: #333;
}

.popup .close:hover {
    color: #06D85F;
}

.popup .content {
    max-height: 30%;
    overflow: auto;
}

@media screen and (max-width: 700px) {
    .box {
        width: 70%;
    }

    .popup {
        width: 70%;
    }
}

.error-input {
    border: 1px solid red;
}

.error {
    color: red;
    font-size: 0.8em;
    margin-top: 5px;
}


#usernameDisplay {
    color: #adbc40;
    margin-bottom: 30px;
    font-size: 1.5em;
    text-align: left;
}