/* Global Styles */
html, body {
    height: 100%;
}

body {
    font-family: 'Raleway', 'Oswald', 'Poppins', Helvetica, sans-serif;
    background: linear-gradient(to right, #89b4fa, #cba6f7, #f38ba8);
    color: #181825;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

footer {
    text-align: center;
    padding: 10px;
}

/* Container Styles */
#container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    max-width: 800px;
    margin: auto;
    padding: 100px;
    flex: 1;
}

#copyright {
    font-size: 1.2rem;
    text-align: right;
    font-style: italic;
}

#logo {
    display: block;
    margin: 0 auto;
}

/* Question Styles */
#question_P {
    font-size: 32px;
}

/* Form Elements */
/* Input Styles */
input {
    font-size: 1.5rem;
    font-weight: bold;
    padding: 10px;
    border: 2px solid #181825;
    border-radius: 15px;
    background-color: #eff1f5;
    color: #4c4f69;
    width: 100%;
    max-width: 400px;
    margin-bottom: 20px;
}

/* Button Styles */
button {
    font-size: 1rem;
    font-weight: bold;
    padding: 10px 20px;
    border: 2px solid #181825;
    border-radius: 15px;
    background-color: #e8d5ff;
    color: #181825;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

/* Answer Styling */
#answerBox {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

#answer_P {
    font-size: 2rem;
    font-weight: bold;
    margin-top: 20px;
    margin-bottom: auto;
    opacity: 0;
    transition: opacity 0.5s;
    align-self: flex-start;
    margin-left: 20px;
}

#answer_P.visible {
    opacity: 1;
}

.answer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin-top: 20px;
    opacity: 0;
    transition: opacity 0.5s;
    background-color: rgba(17, 17, 27, 0.8);
    border: 5px solid #dce0e8;
    width: 700px;
    height: 100px;
    border-radius: 15px;
    padding: 50px;
    animation: rainbow 10s infinite ease-in-out;
}

.answer.visible {
    opacity: 1;
}

.answer.shaking {
    animation: shake 0.5s;
    color: transparent;
}

/* Animations */
/* Keyframes */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
    75% { transform: translateX(-5px); }
}

@keyframes rainbow {
    0% { color: #f5e0dc; }
    14% { color: #f2cdcd; }
    28% { color: #f5c2e7; }
    42% { color: #cba6f7; }
    57% { color: #f38ba8; }
    71% { color: #eba0ac; }
    85% { color: #fab387; }
    100% { color: #f9e2af; }
}

/* Utilities */
.hidden {
    display: none;
}