:root {
    --primary-color: #FF2E34;
    --background-color: #003366;
    --text-color: #003366;
    --container-bg: white;
}

body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: var(--background-color);
}

button {
    background-color: #003366;
    color: white;
    padding: 12px 28px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.2em;
    text-align: center;
    min-width: 150px; 
    width: auto; 
    margin-top: 4vh;
    margin-bottom: 2vh;
    margin-right: 0.7vw;
    transition: transform 0.1s ease, background-color 0.2s ease;
}

button:disabled {
    background-color: grey;
}

button:hover {
    background-color: #002244;
}

button:active {
    transform: scale(0.95); 
}

.container {
    width: 90%; 
    max-width: 780px; 
    min-width: 320px; 
    background-color: var(--container-bg);
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    text-align: center;
    margin: 20px auto; 
    box-sizing: border-box; 
}

@media (max-width: 768px) {
    .container {
        width: 95%; 
        max-width: 100%; 
        padding: 15px; 
    }
}

.container-radio {
    max-width: 90%;
    display: flex; 
    align-items: center; 
    position: relative;
    padding-left: 30px;
    margin-bottom: 2vh;
    font-size: 18px;
    user-select: none;
}

.container-radio input {
    position: absolute;
    opacity: 0;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 1px;
    left: 0;
    height: 18px;
    width: 18px;
    margin-right: 10px;
    background-color: #eee;
}

.container-radio:hover input ~ .checkmark {
    background-color: rgba(99, 64, 65, 0.3);
}

.container-radio input:checked ~ .checkmark {
    background-color: var(--primary-color);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.container-radio input:checked ~ .checkmark:after {
    display: block;
}

.container-radio .checkmark:after {
    top: 3px; 
    left: 3px;
    width: 10px;
    height: 10px;
    background: var(--primary-color);
}

.emoji-radio {
    opacity: 1;
}

.emoji-options {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 1% 5%;
}

.emoji-options img {
    width: 10vw;
    max-width: 80px;
    height: auto;
    transition: transform 0.2s, box-shadow 0.2s;
    background: transparent; 
    cursor: pointer; 
}

.emoji-options input:checked + img,
.emoji-options input:hover + img {
    transform: scale(1.3);
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.3));
    cursor: pointer; 
}

.emoji-options input {
    display: none;
}

.emoji-options input:checked + img,
.emoji-options input:hover + img {
    transform: scale(1.2);
}

.error-message {
    color: red; 
    display: none;
    font-weight: 600;
    font-size: 15px;
    min-height: 2vh;
    width: 100%;
}

h1 {
    color: #333;
    text-align: center;
    margin-bottom: 20px;
}

.input-field {
    margin-bottom: 15px;
}

.input-field label {
    display: inline-block;
    width: 90%;
    text-align: left;
    margin-bottom: 5px;
    font-size: 20px;
    font-weight: bold;
    color: var(--text-color);
}

.input-field input {
    width: 90%;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    margin-top: 5px;
    font-size: 1em;
}

.logo {
    width: 90%; 
    max-width: 400px;
    height: auto; 
    margin: 20px auto 10px auto;
    display: block; 
}


.question {
    display: none;
    transition: opacity 0.8s ease-in-out;
}

.question-style {
    font-size: 20px;
    font-weight: bold;
    color: var(--text-color);
}

.question.active {
    display: block;
    opacity: 1;
}


.radio-options {
    display: flex;
    flex-direction: column; 
    align-items: flex-start; 
    gap: 10px;
    margin: 0 auto; 
    width: 50%; 
}

.radio-options label {
    display: flex;
    align-items: center; 
    gap: 8px; 
}

.title-style {
    text-align: center;
    font-size: 32px;
    font-weight: bold;
    color: var(--text-color);
}

textarea {
    width: 95%;
    height: 100px;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 15px;
    margin-top: 15px;
}

@media (max-width: 768px) {
    .radio-options {
        flex-direction: column;
    }

    .emoji-options img {
        width: 18vw;
        max-width: 60px;
    }

    button {
        width: 30vw;
    }

    .question-style {
        font-size: 25px;
        font-weight: bold;
        color: var(--text-color);
    }
}

/* O modal fica invisível por padrão */
.modal {
    display: none; 
    position: fixed; 
    z-index: 1000; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0, 0, 0, 0.5);
}

/* Conteúdo do modal */
.modal-content {
    background-color: white;
    margin: 15% auto; 
    padding: 20px;
    border: 1px solid #888;
    width: 80%; 
    max-width: 400px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Botão para fechar */
.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: red;
    text-decoration: none;
    cursor: pointer;
}

#modalMessage {
    font-size: 16px;
    color: #333;
}
