body, html {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Roboto', Arial, sans-serif;
    background-color: #f4f4f4;
    color: #333;
    overflow-y: auto; /* Allow vertical scrolling */
}

.screen {
    display: none;
    text-align: center;
    width: 90%;
    max-width: 800px;
    height: auto; /* Adjust height based on content */
    padding: 20px;
    margin: 20px auto;
    box-sizing: border-box;
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow-y: auto; /* Allow scrolling within the screen */
}

h1 {
    font-size: 32px;
    color: #007BFF;
    margin-bottom: 20px;
}

h2 {
    font-size: 26px;
    color: #007BFF;
    margin-bottom: 15px;
}

p {
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Ensure full viewport coverage and center shapes during the test */
#test-screen.active-shape {
    background-color: transparent;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    margin: 0;
    width: 100vw; /* Full viewport width */
    height: 100vh; /* Full viewport height */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; /* Prevent scrolling during the shape test */
}

#shape-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute; /* Ensure absolute positioning for perfect centering */
    top: 0;
    left: 0;
    margin: 0;
}

.shape {
    width: 100px;
    height: 100px;
    position: relative; /* Relative to the #shape-container */
}

.blue.circle {
    background-color: blue;
    border-radius: 50%;
}

.red.circle {
    background-color: red;
    border-radius: 50%;
}

.blue.square {
    background-color: blue;
}

.red.square {
    background-color: red;
}

#countdown-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 48px;
    color: #333;
    font-weight: bold;
    display: none;
}

#response-button {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    border: none;
    cursor: pointer;
}

button {
    padding: 15px 30px;
    font-size: 18px;
    cursor: pointer;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin: 10px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

button:active {
    background-color: #003d80;
    transform: translateY(0);
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

input[type="email"],
input[type="number"],
select {
    font-size: 18px;
    padding: 12px;
    width: 100%;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

input[type="email"]:focus,
input[type="number"]:focus,
select:focus {
    border-color: #007BFF;
}

label {
    font-size: 18px;
    display: block;
    margin-bottom: 8px;
    color: #333;
}

form p {
    font-size: 18px;
    margin: 15px 0;
}

@media (max-width: 768px) {
    body, html {
        font-size: 16px;
    }

    h1 {
        font-size: 28px;
    }

    p {
        font-size: 18px;
    }

    button {
        padding: 12px 24px;
        font-size: 16px;
    }

    #countdown-container {
        font-size: 36px;
    }

    input[type="email"],
    input[type="number"] {
        font-size: 16px;
        padding: 10px;
        width: 100%;
    }

    label {
        font-size: 16px;
    }
}
