/* Contenedor global */
.wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    position: relative;
    padding: 20px;
    box-sizing: border-box;
}

@font-face {
    font-family: 'Aston Script';
    src: url('/fonts/AstonScript.ttf') format('truetype');
    font-weight: 700;
}

body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #E9E9E9;
    font-family: 'Libre Baskerville', serif;
    position: relative;
}

.container { 
    width: 100%;
    max-width: 1920px;
    height: 1080px;
    position: relative; 
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible;
}

#title-container { 
    position: fixed;
    top: -10px;
    left: 45%;
    transform: translateX(-50%);
    z-index: 10;
    padding: 10px;
    width: 100%;
    text-align: center;
}

#title-container h1 {
    width: 1478px; 
    height: 430px; 
    gap: 0px; 
    opacity: 1; 
    font-family: 'Aston Script', cursive; 
    font-size: 13vw; 
    color: #333; 
    margin: 0; 
    padding: 0; 
    line-height: 1; 
    white-space: nowrap; 
    position: absolute; 
    text-align: center;
}

.typeform-container {
    width: 80%;
    max-width: 100%;
    text-align: center;
    position: relative;
    margin-top: -50px;
    display: block;
}

#typeform-container .navigation {
    display: flex;
    justify-content: space-between;
}

#typeform-container .navigation #next-button {
    margin-left: auto;
}

.summary-container {
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    padding: 20px;
    gap: 20px;
    margin-top: 10%;
    font-family: 'Baskerville', serif;
    font-size: 48px;
    font-weight: 400;
    line-height: 54.91px;
    letter-spacing: 2px;
    text-align: center;
    color: #333333;
}

.thanks-container{
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    padding: 20px;
    gap: 20px;
    margin-top: 10%;
    font-family: 'Baskerville', serif;
    font-size: 48px;
    font-weight: 400;
    line-height: 54.91px;
    letter-spacing: 2px;
    text-align: center;
    color: #333333;
}

.summary-text {
    font-family: 'Baskerville', serif;
    font-size: 48px;
    font-weight: 400;
    line-height: 54.91px;
    letter-spacing: 2px;
    text-align: center;
    color: #333333;
}

.question {
    display: none;
    width: 100%;
}

.question.active {
    display: block;
}

.question[data-step="1"],
.question[data-step="2"],
.question[data-step="3"],
.question[data-step="4"]{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-bottom: 20px;
    flex-direction: column;
}

.question[data-step="5"].active .nav-buttons {
    display: flex;
    justify-content: center;
    gap: 1050px;
    position: relative;
    margin-top: -40px;
}

.question[data-step="6"].active + .navigation {
    display: none;
}

.question[data-step="6"] p {
    font-size: 2vw;
    font-family: 'Libre Baskerville', serif;
    color: #333;
    margin-bottom: 80px;
    text-align: center;
    max-width: 35%;
    word-wrap: break-word;
    line-height: 1.4;
    margin-left: auto;
    margin-right: auto;
} 

.horizontal-container {
    width: 87%;
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 30px auto;
    font-size: 1.2em;
    color: #333;
    margin-left: 110px;
}

.single-field-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 30px auto;
    font-size: 1.2em;
    color: #333;
}

input[type="text"] {
    width: 85%;
    padding: 10px;
    border: none;
    border-bottom: 2px solid #333;
    font-size: 2em;
    font-family: 'Libre Baskerville', serif;
    background: none;
    color: #333;
    box-sizing: border-box;
}

.nav-buttons {
    display: flex;
    justify-content: center;
    position: fixed;
    top: 56%;
    left: 0;
    right: 0;
    margin-top: 0;
    z-index: 1000;
    font-size: 0.8em;
}

.back-button, .next-button {
    background-color: #ccc;
    padding: 10px 20px;
    cursor: pointer;
    border: 1px solid #333;
    border-radius: 5px;
    position: absolute;
    top: 30%;
    transform: translateY(-50%);
    letter-spacing: 0.05em;
}

.back-button {
    left: 15%;
}

.next-button {
    right: 15%;
}

.nav-buttons button {
    padding: 10px 20px;
    font-size: 2.5em;
    border: none;
    background-color: transparent;
    cursor: pointer;
    color: #333;

}

.nav-buttons .arrow {
    font-size: 2.5em;
    font-weight: 100;
    font-family: "Helvetica Neue";
    line-height: 2;
    vertical-align: -0.2em;
    transform: scale(1.3);
    color: #333;
}


#finish-button, #restart-button {
    width: 253px;
    height: 67.91px;
    background-color: #333333;
    color: white;
    border: none;
    border-radius: 5px;
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 30px;
    font-weight: 600;
    line-height: 36px;
    letter-spacing: 0.05em;
    text-align: center;
    text-underline-position: from-font;
    text-decoration-skip-ink: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

#finish-button:hover, #restart-button:hover {
    background-color: #555555; 
    transform: scale(1.05);
}

#finish-button:active, #restart-button:active {
    background-color: #111111;
}

.pagination {
    margin-top: -0px;
    display: flex;
    justify-content: center;
}

.step {
    height: 16px;
    width: 16px;
    margin: 0 4px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
}

.step.active {
    background-color: #333;
}

#keyboard-container {
    position: relative;
    margin-top: 20px;
    background: #f9f9f9;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.2);
    z-index: 10;
    display: none;
}

.main-content {
    transition: margin-bottom 0.3s ease;
}

.simple-keyboard {
    padding: 10px;
    font-family: Arial, sans-serif;
}

input:focus {
    outline: none;
    border: 2px solid #007bff;
}

.error-message {
    color: red;
    font-size: 14px;
}


#keyboard-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    border-top: 2px solid #ccc;
    z-index: 1000;
    box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.1);
}

.simple-keyboard {
    padding: 10px;
    font-family: Arial, sans-serif;
}

input:focus {
    outline: none;
    border: 2px solid #007bff;
}

@media (max-width: 1600px) and (max-height: 900px) {
    #title-container {
        position: fixed;
        top: -10px;
        left: 45%;
        transform: translateX(-50%);
        z-index: 10;
        padding: 10px;
        width: 100%;
        text-align: center;
    }

    #title-container h1 {
        font-size: 10em;
        margin: 0;
        padding: 0;
        line-height: 1;
        white-space: nowrap;
        z-index: 10;
        text-align: center;
    }

    #summary {
        position: absolute;
        top: 70%;
        left: 50%;
        transform: translateX(-50%);
        font-family: 'Libre Baskerville', serif;
        font-size: 26px;
        color: #000;
        line-height: 1.5;
        padding: 20px;
        text-align: center;
    }

    .navigation button {
        font-size: 1.8em;
        padding: 15px 30px;
    }
}

@media (min-width: 1280px) and (max-width: 1919px) {
     #title-container h1 { 
        font-size: 10vw;

     } 
     .horizontal-container { 
        gap: 20px;
     } 
     .question { 
         margin-bottom: 10px; 
    } 
    .nav-buttons { 
        gap: 50px;
    } 
    #finish-button, #restart-button { 
        font-size: 20px;
        width: 200px; 
        height: 50px; 
    } 
    .summary-container { 
        font-size: 36px;
    }

    .horizontal-container {
        gap: 20px;
        margin-bottom: 60px;
    }

    .question {
        margin-bottom: 10px;
    }
}