body {
    font-family: Arial, sans-serif;
    text-align: center;
    background-color: #1c1c1c;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    overflow: hidden;
}

/* Estilo para a tela principal e de obrigado */
#main-content {
    transition: opacity 0.5s ease-in-out;
}

#obrigado-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #28a745;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2em;
    z-index: 100;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

/* Estilos para a nova tela de emoji triste */
#sad-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #2c2c2a; /* Fundo semi-transparente */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 101; /* Fica acima de todas as outras telas */
}
#sad-screen img {
    max-width: 90%;
    max-height: 90%;
    animation: pulse 1s infinite alternate; /* Adiciona uma animação */
}

@keyframes pulse {
    from { transform: scale(1); }
    to { transform: scale(1.05); }
}

.hidden {
    display: none !important;
}

.visible {
    opacity: 1 !important;
}

/* Estilos do conteúdo principal */
.container {
    padding: 20px;
    background-color: #9194aa;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
h1, h2, p {
    color: #333;
}
a {
    color: #007bff;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}
.buttons {
    margin-top: 20px;
}
.buttons button {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border: none;
    border-radius: 5px;
    margin: 0 10px;
    transition: transform 0.2s;
}
.buttons button:hover {
    transform: scale(1.05);
}
#button-0 {
    background-color: #dc3545;
    color: white;
}
#button-100 {
    background-color: #28a745;
    color: white;
}

/* Estilos e animação dos confetes */
#confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 99;
}
.confetti {
    position: absolute;
    width: 15px;
    height: 15px;
    background-color: #f0c300;
    opacity: 0;
    animation: confetti-fall 2.5s ease-in-out forwards;
}
@keyframes confetti-fall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}