* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    overflow: hidden;
    height: 100vh;
    position: relative;
}

.screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.screen.active {
    opacity: 1;
    visibility: visible;
}

.background-image {
    width: 100%;
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.content {
    width: 90%;
    max-width: 400px;
    text-align: center;
    padding: 20px;
    color: white;
    position: relative;
}

#screen2 .content {
    width: 80%;
}

/* Screen 1 Styles */
#screen1 .content h1 {
    font-size: 24px;
    margin-bottom: 15px;
    font-weight: bold;
}

#screen1 .content p {
    font-size: 16px;
    margin-bottom: 10px;
    line-height: 1.4;
}

#screen1 .content .disclaimer {
    font-size: 14px;
    margin-bottom: 15px;
}

#screen1 .content .consent {
    font-size: 12px;
    margin-bottom: 30px;
    line-height: 1.3;
}

/* Screen 2 Styles */
#screen2 .content {
    height: 100vh;
    overflow: hidden;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-container {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    margin: 2.5vh 0;
    max-height: 95vh;
    overflow-y: auto;
    width: 100vw;
}

.form-title {
    text-align: center;
    color: black;
    font-size: 36px;
    margin-bottom: 20px;
    font-weight: bold;
    text-decoration: underline;
}

.question {
    margin-bottom: 15px;
    text-align: left;
}

.question label {
    display: block;
    font-size: 21px;
    margin-bottom: 5px;
    color: black;
    font-weight: bold;
}

.question select {
    width: 100%;
    padding: 8px;
    font-size: 21px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: white;
    color: #333;
}

.question select:focus {
    outline: none;
    border-color: #007bff;
}

/* Screen 3 Styles */
#resultContainer {
    background: rgba(0, 0, 0, 0.7);
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 180px;
}

#scoreDisplay h2 {
    font-size: 28px;
    margin-bottom: 20px;
    color: white;
}

#scoreValue {
    color: #ff6b6b;
    font-weight: bold;
    font-size: 36px;
}

#riskMessage {
    background: rgba(255, 107, 107, 0.9);
    padding: 15px;
    border-radius: 10px;
    margin-top: 20px;
}

#riskMessage p {
    font-size: 18px;
    font-weight: bold;
    color: white;
}

/* Button Styles */
.action-button {
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: transform 0.2s ease;
}

.action-button:hover {
    transform: scale(1.05);
}

.action-button:active {
    transform: scale(0.95);
}

.action-button img {
    max-width: 120px;
    height: auto;
}

.ok-button img {
    max-width: 240px;
    height: auto;
}

.home-button img {
    max-width: 80px;
    height: auto;
}

.download-button img {
    max-width: 240px;
    height: auto;
}

/* Button Positioning */
.ok-button {
    position: absolute;
    top: 65%;
    left: 50%;
    transform: translateX(-50%);
}

.submit-button {
    margin-top: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.submit-button img {
    max-width: 240px;
    height: auto;
}

.download-button {
    position: absolute;
    bottom: 15%;
    left: 50%;
    transform: translateX(-50%);
}

.home-button {
    position: fixed;
    bottom: 10px;
    right: 10px;
    transform: none;
    z-index: 1000;
}

/* Responsive Design */
@media (max-width: 480px) {
    .content {
        width: 95%;
        padding: 15px;
    }
    
    #screen2 .content {
        width: 100%;
    }
    
    #screen1 .content h1 {
        font-size: 20px;
    }
    
    #screen1 .content p {
        font-size: 14px;
    }
    
    #screen1 .content .disclaimer {
        font-size: 12px;
    }
    
    #screen1 .content .consent {
        font-size: 11px;
    }
    
    .form-container {
        padding: 20px;
        margin: 2.5vh 0;
        max-height: 95vh;
        width: 100vw;
    }
    
    .form-title {
        font-size: 30px;
        margin-bottom: 15px;
    }
    
    .question label {
        font-size: 19.5px;
    }
    
    .question select {
        font-size: 19.5px;
        padding: 6px;
    }
    
    .action-button img {
        max-width: 100px;
    }
    
    .ok-button img {
        max-width: 200px;
    }
    
    .submit-button img {
        max-width: 200px;
    }
    
    .download-button img {
        max-width: 200px;
    }
    
    .home-button img {
        max-width: 60px;
    }
    
    #resultContainer {
        padding: 20px;
    }
    
    #scoreDisplay h2 {
        font-size: 24px;
    }
    
    #scoreValue {
        font-size: 30px;
    }
}

@media (max-width: 320px) {
    .content {
        width: 98%;
        padding: 10px;
    }
    
    #screen2 .content {
        width: 100%;
    }
    
    #screen1 .content h1 {
        font-size: 18px;
    }
    
    #screen1 .content p {
        font-size: 13px;
    }
    
    .form-container {
        padding: 15px;
        margin: 2.5vh 0;
        max-height: 95vh;
        width: 100vw;
    }
    
    .form-title {
        font-size: 27px;
        margin-bottom: 12px;
    }
    
    .action-button img {
        max-width: 80px;
    }
    
    .ok-button img {
        max-width: 160px;
    }
    
    .submit-button img {
        max-width: 160px;
    }
    
    .download-button img {
        max-width: 160px;
    }
    
    .home-button img {
        max-width: 50px;
    }
    
    #resultContainer {
        padding: 15px;
    }
    
    #scoreDisplay h2 {
        font-size: 20px;
    }
    
    #scoreValue {
        font-size: 26px;
    }
}

/* Landscape Orientation */
@media (orientation: landscape) and (max-height: 600px) {
    #screen2 .content {
        max-height: 70vh;
    }
    
    .question {
        margin-bottom: 10px;
    }
    
    .question label {
        font-size: 12px;
    }
    
    .question select {
        padding: 6px;
        font-size: 12px;
    }
    
    .ok-button {
        top: 60%;
    }
    
    .download-button {
        bottom: 20%;
    }
    
    .home-button {
        bottom: 10px;
        right: 10px;
    }
}