/* Global styles will go here */
/* This file will be applied across all pages */

html {
    background: linear-gradient(180deg, rgba(255, 248, 178, 1) 0%, rgba(252, 196, 112, 1) 100%);
  background-attachment: fixed; /* Ensures it stays continuous when scrolling */
  background-repeat: no-repeat;
  background-size: cover; /* Cover ensures the full height is filled */

}

/* TYPOGRAPHY */
h1 {
    font-weight: 800;
}

h2, .intro-text{
    font-weight: 500;
}

h2 {
    font-size: 24px;
    font-weight:700;
    line-height:120%;
    z-index:100;
}

h1, h2 { font-family: "Urbanist", sans-serif; }

h1, h2, .intro-title, .intro-text, .div-text{
    color: #4E0020 !important;
}

/* LAYOUT */
body {
    position: relative;
    background: linear-gradient(180deg, rgba(255, 248, 178, 1) 0%, rgba(252, 196, 112, 1) 100%);
    background-attachment: fixed; /* Ensures it stays continuous when scrolling */
    background-repeat: no-repeat;
    background-size: cover; /* Cover ensures the full height is filled */
}

.outer-container {
    min-height: 100dvh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.quiz-container {
    width: 100%;
    max-width: 420px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    /* box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.2); */

    position: relative;
}

#app{
    background-size: cover;
    height: 100%;
    max-height: 830px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); /* Drop shadow */
}

.quiz-container .inside {

    padding: 40px 15px 40px;;
}

/* ASSETS */
.absolute{ position: absolute; }
.relative { position: relative; }
.persistent-container { z-index: 100; position: relative; }

.gradient-container {
    width: 110%;
    height: 135px;
    background: linear-gradient(to top, #fda649 80%, rgba(253, 166, 73, 0) 100%);
    position: absolute;
    z-index: 50;
    bottom: -51px;
    left: -19px;
}

.back-arrow, i.fas.fa-arrow-left{
    color: #4E0020;
}

img.absolute {
    opacity: 1;
    transition: opacity 0.3s ease;
}

img.absolute:not(.visible) {
    opacity: 0;
}

.iconafter-button, button{
    cursor: pointer;
}

/* Button styles for the js-trigger-button class */
.continue-button {
    display: inline-block;
    padding: 12px 24px;
    background-color: #4CAF50;
    color: #000;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: background-color 0.3s ease;
    text-decoration: none;
}

.continue-button:hover {
    background-color: #45a049;
}

/* Add styling for the js-trigger-button to ensure it's always visible and clickable */
.js-trigger-button {
    z-index: 1000;
    position: relative;
    cursor: pointer;
}

/* Mobile responsiveness for button containers */
@media screen and (max-width: 420px) {
    .buttons-container {
        padding: 0 15px !important;
        width: 100% !important;
        max-width: none !important;
    }
}

@media screen and (max-width: 360px) {
    .buttons-container {
        padding: 0 10px !important;
    }

    button.continue-button,
    button.continue-button-summary,
    button.continue-checkbox-button {
        font-size: 18px !important;
        padding: 14px 20px !important;
    }
}

@media screen and (max-width: 320px) {
    .buttons-container {
        padding: 0 8px !important;
    }

    button.continue-button,
    button.continue-button-summary,
    button.continue-checkbox-button {
        font-size: 16px !important;
        padding: 12px 16px !important;
    }
}

/* Remove border-radius and box-shadow on mobile devices */
@media screen and (max-width: 767px) {
    .outer-container {
        min-height: unset !important;
    }

    .quiz-container {
        border-radius: 0 !important;
    }

    #app {
        box-shadow: none !important;
    }
}

/* Change background color on mobile devices with tall screens */
@media screen and (max-width: 767px) and (min-height: 851px) {
    html {
        background: #e16d05 !important;
    }
}
