/* General Styles */
@font-face {
    font-family: PixelOperator;
    src: url('../fonts/PixelOperator-Bold.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

body {
    font-family: 'PixelOperator', 'Arial', 'Helvetica', sans-serif; /* Updated to remove Minecraftia */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; /* Align content to the top */
    margin: 0;
    color: black; /* Change text color to white for better contrast */
    background: white;
    min-height: 100vh; /* Ensure the body covers the full viewport height */
    padding-bottom: 3em;
}

.form {
    padding: 1.5rem;
}
body.login-bg, .login-bg .form-container, .login-bg .form {
    font-family: 'PixelOperator', 'Arial', 'Helvetica', sans-serif !important; /* Updated to remove Minecraftia */
}

.login-bg, .form-container, .form {
    font-family: 'PixelOperator', 'Arial', 'Helvetica', sans-serif; /* Updated to remove Minecraftia */
}

/* Login page background */
.login-bg {
    background: url('../images/simple_natural_landscape_free_pixel_art_background.png') center/cover no-repeat;
}

/* Signup page background */
.signup-bg {
    background: url('../images/simple_natural_landscape_free_pixel_art_background.png') center/cover no-repeat;
}

.home-bg {
    background-image: url('../images/thumb-1920-1293302.jpg');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

main {
    font-family: 'PixelOperator', 'Arial', 'Helvetica', sans-serif; /* Updated to remove Minecraftia */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    height: max-content;
}

.form-subtitle {
    color: #ffffff;
}

.stats {
    display: flex;
    flex-direction: row;
    margin: 0.5em auto 0 auto;
    width: max-content;
}

.stats h3 {
    margin-top: 0.2em;
}

.answer-div {
    padding: 0!important;
    display: flex; /* For some reason it doesn't align if not with this */
}

.answer-row {
    width: 60%;
    margin: 0 auto;
}

h2 {
    color: #1a73e8;
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

/* Form Elements */
label {
    display: block;
    margin-bottom: 0.5rem;
    color: #ffffff;
    font-weight: 500;
    font-size: 1.2em;
}

button {
    width: 100%;
    padding: 0.75rem;
    background-color: #1a73e8;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #1557b0;
}

/* Error Message */
.error {
    color: #dc3545;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    padding: 0.75rem;
    border-radius: 5px;
    margin: 1rem 0;
    font-size: 0.9rem;
}

.answer-text {
    width: 80%;
    margin: 0 auto;
}

.correct {
    background-color: limegreen;
    background-blend-mode: multiply;
}

.container {
    max-width: 100%!important;
}

/* Signup Link */
a {
    display: block;
    text-align: center;
    margin-top: 1.5rem;
    color: #1a73e8;
    text-decoration: none;
    font-weight: 500;
}

a:hover {
    text-decoration: underline;
}

nav {
    display: flex!important;
    flex-direction: row;
    background-color: #405de6 ;
    padding: 10px 20px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
}

nav a {
    color: white;
    text-decoration: none;
    padding: 10px;
    align-self: center;
    margin-top: 0;
}

nav a:hover {
    background-color: #575757;
}

body {
    margin: 0;
}

.home-logo img {
    height: 40px;
}

.btn-primary {
    width: 10em; /* Adjust the width in em units */
    height: 5em; /* Adjust the height in em units */
    padding: 1em 2em; /* Adjust the padding in em units */
    font-size: 1.2rem; /* Adjust the font size in rem units */
}

.answer-button {
    width: 100%;
    margin: 0.5rem 0;
    white-space: normal;
    word-wrap: break-word;
    font-size: 1.2rem;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.question-image {
    width: 30%;
    margin: 2rem auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    display: block; /* Ensure the image is treated as a block-level element */
}

.left-size-container {
    margin-left: 0;
}

.question-text-container {
    display: grid;
    grid-template-rows: 3fr 1fr; /* 75% para pregunta, 25% para stats */
    gap: 2.5rem;
}

.question-text-container h1 {
    width: 90%;
    margin: 2.8rem auto 0 auto;;
}

input {
    font-size: 1.2rem;
}

@media(max-width: 1100px) {
    .answer-row {
        width: 80%;
    }

    .question-text-container h1 {
        margin-top: 4rem;
        font-size: 2em;
    }

    .question-text-container {
        gap: 1rem;
    }
}

@media(max-width: 1000px) {
    .question-text-container h1 {
        margin-top: 3rem;
        font-size: 2em;
    }

    .answer-row {
        width: 100%;
    }

    .question-text-container {
        gap: 0;
    }

    .stats {
        margin-top: 0.5em
    }

    .loader-bar {
        height: 100px;
    }
    .stats h3 {
        font-size: 1.5em;
    }

    .mt-5{
        margin-top:0 !important;
    }
}

@media(max-width: 900px) {
    .question-text-container h1 {
        margin-top: 2.5rem;
        font-size: 2em;
    }

    .answer-row {
        width: 100%;
    }

    .question-text-container {
        gap: 0;
    }

    .stats {
        margin-top: 0
    }

    .loader-bar {
        height: 100px;
    }
    .stats h3 {
        font-size: 1.5em;
    }
}

@media(max-width: 768px) {
    .mt-5{
        margin-top:3rem !important;
    }

    .question-image {
        width: 50%;
    }

    .question-text-container h1 {
        font-size: 1.6em;
        margin-top: 1.5em;
        width: 100%;
    }

    .question-text-container {
        grid-template-rows: 1fr 1fr; /* 75% para pregunta, 25% para stats */
    }

    .loader-bar {
        height: 100px;
    }
    .stats h3 {
        font-size: 1.2em;
        margin:0;
    }

    .stats {
        margin-top:3rem;
        gap:5px;
    }
    .row {
        margin-top: 15px;
    }

    .answer-row {
        flex-direction: column;
    }

    .answer-div {
        width: max-content;
        max-width: 100%;
        margin: 0 auto;
    }

    .answer-button {
        display: block;
        max-width: 100%;
    }

    .home-container {
        position: absolute;
    }

    .chat-icon-button {
        width: 75px!important;
        height: 75px!important;
    }

    .chat-icon {
        width: 30px!important;
        height: 30px!important;
    }
}

@media(max-width: 700px) {
    .question-text-container h1 {
        margin-top: 2.5em;
    }

    .stats {
        margin-top:2.5rem;
    }
}

@media(max-width: 600px) {
    .question-text-container h1 {
        margin-top: 2em;
    }

    .stats {
        margin-top:2rem;
    }
}

@media(max-width: 530px) {
    .question-text-container h1 {
        font-size: 1.2em;
        margin-top: 3em;
    }

    .stats {
        margin-top:1.5rem;
    }
    .stats h3 {
        font-size: 1em;
    }

    .container {
        margin-top: 0!important;
    }
}

/* Responsive Design */
@media(max-width: 480px) {
    .form {
        padding: 1.5rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    input, button {
        padding: 0.65rem;
    }

    .answer-button {
        width: 100%;
    }
    .qwizzimage{
        margin-bottom: -100px;
    }

    .question-text-container {
        grid-template-rows: 0.5fr 0.5fr;
    }

    .question-text-container h1 {
        margin-top:3.25em;
    }

    .stats {
        margin-top: 0.8rem;
    }
}

@media(max-width: 425px) {
    .question-text-container h1 {
        font-size: 1em;
        margin-top: 3.5em;
    }
}