@font-face {
    font-family: 'pokemon';
    src: url('assets/fonts/PC-9900-V2.TTF') format('truetype');
    font-weight: normal;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --blur-intensity: 1.5rem;
    --transition-speed: 0.3s;
    --yellow-color: #FFD700;
    --blue-color: #1E90FF;
    --dark-blue-color: #0A2463;
}

html {
    background-color: black;
    height: 100%;
}

body {
    font-family: 'pokemon', sans-serif;
    line-height: 1;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Utility Classes */
.flex {
    display: flex;
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.flex-column {
    flex-direction: column;
}

.w-100 {
    width: 100%;
}

.text-center {
    text-align: center;
}

.d-none {
    display: none;
}

.video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 0;
    opacity: 0;
    transition: opacity 1s ease;
}

.video-container.active {
    opacity: 1;
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
}

.textbox-container {
    position: relative;
    z-index: 10;
    width: 100%;
    min-height: 100vh;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 50px;
}

.question-top {
    color: #fff;
    margin-bottom: 40px;
    padding: 15px 30px;
    position: relative;
    z-index: 20;
    /* text-shadow: 0 2px 0 #007bff; */
    animation: glow 2s ease-in-out infinite alternate;
}

#question-title-1 {
    font-size: 3rem;
}

#question-title-2 {
    font-size: 3.5rem;
}

@keyframes glow {
    from {
        text-shadow: 0 0 10px rgba(13, 99, 186, 0.782);
    }
    to {
        text-shadow: 0 0 30px rgba(30, 144, 255, 0.8),
                    0 0 40px rgba(30, 144, 255, 0.4);
    }
}

.textbox {
    width: 100%;
    max-width: 840px;
    height: 450px !important;
    background: url("assets/imgs/txt_box2.png") no-repeat center;
    background-size: contain;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
    margin-top: 20px;
}

.form-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: end;
    margin-bottom: 8%;
    gap: 30px;
    flex: 1;
    width: 100%;
    height: 100%;
}

#questionInput {
    width: 80%;
    max-width: 500px;
    height: 60px;
    font-size: 1.8rem;
    padding: 0 20px;
    background: rgba(255, 255, 255, 0.95);
    font-family: 'pokemon', sans-serif;
    border-radius: 10px;
    text-align: center;
    color: #333;
    transition: all 0.3s ease;
}

#questionInput:focus {
    outline: none;
}

#questionInput::placeholder {
    color: #666;
    font-size: 1.5rem;
    text-align: center;
}

.btn-submit {
    background: none;
    border: none;
    cursor: pointer;
    align-self: center;
    margin-bottom: 50%;
}

#seta {
    width: 100px;
    animation: flutuar 3s ease-in-out infinite;
}

.start-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: black;
    z-index: 1000;
    flex-direction: column;
}

.start-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 500px;
    margin: 0 auto;
}

.start-content > div:first-child h1 {
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 2.4rem;
    color: white;
    margin: 0;
    padding: 10px 0;
    font-weight: 300;
    letter-spacing: 2px;

    text-shadow: 0 0 5px #fff;
}

.start-content > div:nth-child(2) h1 {
    color: white;
    font-size: 5.4rem;
    margin: 0;
    padding: 20px 0;
    font-weight: 700;
    letter-spacing: 3px;
    text-shadow: 0 0 5px #fff;
}

.btn-start {
    background: transparent;
    border: 3px solid white;
    color: white;
    padding: 20px 50px;
    font-size: 1.5rem;
    font-family: 'pokemon', sans-serif;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 3px;
    transition: all 0.3s ease;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    text-shadow: 0 0 10px #fff;
}

.btn-start:hover, .btn-start:active {
    background: white;
    color: black;
    transform: scale(1.05);
}

.start-hint {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    animation: pulse 2s infinite;
}

.audio-enable-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.audio-enable-content {
    background: white;
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    max-width: 400px;
    margin: 20px;
}

.audio-enable-content p {
    margin-bottom: 20px;
    font-size: 1.2rem;
    color: #333;
}

.btn-enable-audio {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'pokemon', sans-serif;
    transition: background 0.3s;
}

.btn-enable-audio:hover {
    background: #45a049;
}

.video-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    color: black;
    border: none;
    padding: 15px 30px;
    font-size: 1.2rem;
    border-radius: 5px;
    cursor: pointer;
    z-index: 100;
    font-family: 'pokemon', sans-serif;
}

#messages-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
    overflow: hidden;
    color: white;
    font-family: 'pokemon', sans-serif;
}

.floating-message {
    position: absolute;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.9);
    white-space: nowrap;
    font-size: 1.2rem;
    will-change: transform;
    font-weight: bold;
    letter-spacing: 1px;
    animation-play-state: running !important;
}

@keyframes floatFromRight {
    0% {
        transform: translateX(100vw);
        opacity: 0;
    }
    5% {
        opacity: 0.8;
    }
    95% {
        opacity: 0.8;
    }
    100% {
        transform: translateX(-100%);
        opacity: 0;
    }
}

@keyframes floatFromLeft {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    5% {
        opacity: 0.8;
    }
    95% {
        opacity: 0.8;
    }
    100% {
        transform: translateX(100vw);
        opacity: 0;
    }
}

@keyframes floatFromRightDrift {
    0% {
        transform: translateX(100vw) translateY(0);
        opacity: 0;
    }
    5% {
        opacity: 0.8;
    }
    50% {
        transform: translateX(50vw) translateY(-20px);
    }
    95% {
        opacity: 0.8;
    }
    100% {
        transform: translateX(-100%) translateY(0);
        opacity: 0;
    }
}

@keyframes floatFromLeftDrift {
    0% {
        transform: translateX(-100%) translateY(0);
        opacity: 0;
    }
    5% {
        opacity: 0.8;
    }
    50% {
        transform: translateX(50vw) translateY(20px);
    }
    95% {
        opacity: 0.8;
    }
    100% {
        transform: translateX(100vw) translateY(0);
        opacity: 0;
    }
}

.blur-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    background: rgba(0, 0, 0, 0);
    z-index: 5; 
    pointer-events: none; 
    opacity: 0;
    transition: backdrop-filter 0.5s ease, opacity 0.5s ease;
}

.blur-overlay.active {
    backdrop-filter: blur(var(--blur-intensity));
    -webkit-backdrop-filter: blur(var(--blur-intensity));
    background: rgba(0, 0, 0, 0.3);
    opacity: 1;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.7;
    }
    50% {
        opacity: 1;
    }
}

@keyframes flutuar {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

@media (width >= 2560px) {
    .textbox {
        max-width: 1280px !important;
        background: url("assets/imgs/txt_box2.png") no-repeat center !important;
        margin: 10%;
        transform: scale(2);
    }

    .textbox-container {
        margin-top: 15% !important;
    }

    #question-title-1 {
        font-size: 7rem !important;
    }

    #question-title-2 {
        font-size: 9.5rem !important;
    }
}

@media (min-width: 1440px) {
    .btn-submit {
        position: absolute;
        left: 48% !important;
    }

    #question-title-1 {
        font-size: 4rem;
    }

    #question-title-2 {
        font-size: 5rem;
    }

}

@media (min-width: 1024px) {

    .textbox-container {
        margin-top: 5rem;
    }

    .question-title-1 {
        font-size: 2.2rem;
        padding: 12px 25px;
    }
    
    .textbox {
        max-width: 700px;
        height: 450px !important;
        background: url("assets/imgs/txt_box2.png") no-repeat center;
        background-size: fill !important;
    }
    
    #questionInput {
        width: 75%;
        height: 55px;
        font-size: 1.6rem;
    }

    #seta {
        width: 65px;
    }
    
    .form-container {
        justify-content: center;
    }

    .btn-submit {
        position: absolute;
        top: 55%;
        left: 45%;
    }

}

@media (min-width: 768px) {
    .question-top {
        font-size: 1.8rem;
        padding: 10px 20px;
        margin-bottom: 25px;
        border-width: 4px;
    }
    
    .textbox {
        max-width: 90%;
        height: 300px !important;
        padding: 15px;
    }
    
    #questionInput {
        width: 80%;
        height: 50px;
        font-size: 1.4rem;
        padding: 0 15px;
    }
    
    #questionInput::placeholder {
        font-size: 1.3rem;
    }
    
    #seta {
        width: 65px;
    }
    
    .form-container {
        margin-bottom: 3%;
    }

    .btn-submit {
        margin-bottom: 65%;
    }

    .floating-message {
        font-size: 1rem;
        text-shadow: 1px 1px 3px rgba(0,0,0,0.9);
    }
    
    @keyframes floatFromRight {
        0% {
            transform: translateX(100vw);
            opacity: 0;
        }
        3% {
            opacity: 0.9;
        }
        97% {
            opacity: 0.9;
        }
        100% {
            transform: translateX(-100%);
            opacity: 0;
        }
    }
}

@media (max-width: 480px) {
    .question-top {
        font-size: 1.5rem;
        padding: 8px 15px;
        margin-bottom: 20px;
        border-width: 3px;
        letter-spacing: 2px;
    }
    
    .textbox {
        height: 200px !important;
        padding: 10px;
    }
    
    #questionInput {
        width: 85%;
        height: 25px;
        font-size: 0.8rem;
        padding: 0 10px;
    }
    
    #questionInput::placeholder {
        font-size: 1.1rem;
    }
    
    #seta {
        width: 35px;
    }

    .form-container {
        margin-bottom: 5%;
    }

    .btn-submit {
        margin-bottom: 100%;
    }

    #question-title-1 {
        font-size: 1.8rem;
    }

    #question-title-2 {
        font-size: 2rem;
    }
    
}

@media (max-height: 600px) and (orientation: landscape) {
    .textbox-container {
        padding-top: 20px;
    }
    
    .question-top {
        font-size: 1.8rem;
        padding: 8px 15px;
        margin-bottom: 15px;
    }
    
    .textbox {
        height: 180px !important;
        max-width: 600px;
        margin-top: 10px;
    }
    
    #questionInput {
        height: 45px;
        font-size: 1.4rem;
    }
}