/* --------
   Font Import
--------- */
@font-face {
    font-family: 'Baloo';
    src: url('Ba') format('truetype');
}

/* --------
   Root Vars
--------- */
:root {
    --coral: #FF6E1F;
    --raspberry-pink: #FF3D5B;
    --peach: #FFB88C;
    --background-light: white;
    --background-dark: #2a2a2a;
    --text-light: black;
    --text-dark: white;
    --button-active: rgb(255, 49, 79);
    --slider-colour: rgb(44, 139, 68);
}

/* --------
   Base Styles
--------- */
body {
    margin: 0;
    padding: 0;
    font-family: 'Baloo', sans-serif;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

body.dark-mode {
    background-color: var(--background-dark);
    color: var(--text-dark);
}

.container {
    display: flex;
    flex-direction: column;
    width: 100vw;
    height: 100vh;
}

.row {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 50%;
}

.top {
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
}

.top-game {
    justify-content: flex-start;
    margin-top: 11vh;
    padding-top: 11vh;
    padding-bottom: 30vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.truth-top {
    position: absolute;
    top: -30px;
    left: 35%;
    width: 85vw;
    height: 45vh;
    transform: translateX(-50%);
    z-index: 1;
}

.juicy-top {
    position: absolute;
    top: 0px;
    width: 90vw;
    height: 35vh;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.bottom {
    justify-content: center;
    align-items: center;
    flex-direction: column;
    position: relative;
}

.slogan {
    white-space: pre-wrap;
    overflow: visible;
    font-size: 18px;
    text-shadow: 
        0.5px 0 0 currentColor,
        1px 0 0 currentColor,
        1.5px 0 0 currentColor;
    color: #ffffff;
    text-align: center;
    line-height: 1.4;
    opacity: 1;
    width: calc(100% + 0px);
    margin: 0px;
    z-index: 3;
}

.landing {
    z-index: 1;
}

.landing::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, #FFE066, #FFCC5C);
    z-index: -1;
}

.question {
    text-align: center;
    color: black;
    z-index: 2;
    margin: 20px 50px;
    order: 2;
    font-size: 1.3em;
    line-height: 1.4;
}





.question-type {
    z-index: 1;
}

.question-type::before {
    content: "";
    position: absolute;
    left: -10%;
    width: 90vw;
    height: 48vh;
    background-image: url('images/question_type.webp');
    background-size: contain;
    background-position: top left;
    background-repeat: no-repeat;
    z-index: -1;
    transition: filter 0.3s ease;
}

.next-button {
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s ease;
    background: transparent;
    border: none;
    padding: 0;
    position: fixed;
    bottom: 15vh;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.next-button:active {
    transform: translateX(-50%) scale(0.95);
}

.next-button img {
    max-width: 100%;
    height: auto;
}

.prompt {
    color: var(--raspberry-pink);
    text-align: center;
    width: 50%;
    font-weight: 600;
}

.or-text {
    font-size: 2rem;
    text-shadow: 
        0.5px 0 0 currentColor,
        1px 0 0 currentColor,
        1.5px 0 0 currentColor;
    color: var(--coral);
    margin: 0 1rem;
    text-align: center;
    max-width: 60px;
    max-height: 40px;
    width: auto;
    height: auto;
    padding: 25px 0;
}

.button.go-deeper {
    background-color: var(--raspberry-pink);
}

.button.go-deeper.revealed {
    background-color: #D32F2F;
    color: white;
}

.go-deeper {
    order: 3;
    font-size: 26px; /* Increased from 24px */
    font-weight: bold;
    text-shadow: 
        0.5px 0 0 currentColor,
        1px 0 0 currentColor,
        1.5px 0 0 currentColor;
    color: var(--raspberry-pink);
}

/* Responsive scaling for go-deeper button */
@media (max-width: 480px) {
    .go-deeper {
        font-size: 22px; /* Increased from 20px */
        transform: scale(0.95); /* Less shrinking */
        transform-origin: center;
    }
}

@media (max-width: 360px) {
    .go-deeper {
        font-size: 20px; /* Increased from 18px */
        transform: scale(0.9); /* Less shrinking */
        transform-origin: center;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .go-deeper {
        font-size: 28px; /* Increased from 26px */
    }
}

@media (min-width: 1024px) {
    .go-deeper {
        font-size: 32px; /* Increased from 28px */
    }
}

.play-button.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.deeper-text {
    border-radius: 10px;
    border-width: 3px;
    border-style: solid;
    border-color: var(--raspberry-pink);
    padding: 8px;
    transition: opacity 0.3s ease;
    max-width: 70%;
    margin: 0 auto;
    font-size: 1.3em; /* Increased from 1.1em */
    line-height: 1.4;
}

.deeper-text.visible {
    visibility: visible;
    opacity: 1;
}

.deeper-text.hidden {
    visibility: hidden;
    opacity: 0;
}

.chevron {
    display: inline-block;
    transition: transform 0.3s ease;
    transform: rotate(180deg);
}

.revealed .chevron {
    transform: rotate(0deg);
}

.adult-toggle {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-direction: row;
    gap: 15px;
    margin-top: 220px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.adult-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-size: 20px;
    padding: 10px 0;
    width: 100%;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.adult-toggle:active {
    transform: scale(0.95);
}

.adult-toggle-text {
    color: black;
    font-size: 20px;
    text-shadow: 
        0.5px 0 0 currentColor,
        1px 0 0 currentColor,
        1.5px 0 0 currentColor;
    text-align: center;
    white-space: nowrap;
}

body.dark-mode .adult-toggle-text {
    color: var(--raspberry-pink);
}

.adult-toggle .toggle-slider {
    margin-left: 10px;
    width: 40px;
    height: 20px;
    background-color: #e0b7a0; /* Lighter, muted/greyish version of coral */
    position: relative;
    border-radius: 34px;
    transition: background-color 0.2s ease;
}

.adult-toggle .toggle-slider:before {
    content: "";
    position: absolute;
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: #fff;
    border-radius: 50%;
    transition: transform 0.2s ease;
}

.adult-toggle .toggle-slider.enabled {
    background-color: var(--raspberry-pink);
}

.adult-toggle .toggle-slider.enabled:before {
    transform: translateX(20px);
}

.adult-toggle .toggle-slider {
    order: -1;
}

.play-button {
    background-color: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f89839;
    font-size: 24px;
    padding: 10px;
    margin: 20px 0;
    position: absolute;
    top: 0;
    flex-direction: row;
}

.suggest-question {
    margin-top: 20px;
    cursor: pointer;
}

/* Move question type selection row higher */
.question-type .bottom {
    justify-content: center;
    align-items: center;
    margin-top: -35vh;
    padding-top: 0;
    height: auto;
    min-height: 60vh;
}

/* Center adult toggle at bottom of question type screen */
.question-type .adult-toggle {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.close-button {
    color: white;
    background-color: var(--raspberry-pink);
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    position: absolute;
    right: 0;
    top: 0;
}

.suggestion-text-bottom {
    display: flex;
    justify-content: center;
    flex-direction: column;
    text-align: center;
}


/* Transitions for menu */
.slide-enter-active,
.slide-leave-active {
    transition: all 0.3s ease;
}

.slide-enter,
.slide-leave-to {
    transform: translateX(-100%);
    opacity: 0;
}

/* Fade Transition for modals */
.fade-enter-active,
.fade-leave-active {
    transition: opacity 0.3s ease;
}

.fade-enter,
.fade-leave-to {
    opacity: 0;
}


/* Dark Mode */
body.dark-mode {
    background-color: var(--background-dark);
    color: var(--text-dark);
}

/* Apply consistent darkening to all background images */
body.dark-mode .question-type::before,
body.dark-mode .modal::before,
body.dark-mode .truth-top,
body.dark-mode .juicy-top {
    filter: brightness(0.5) contrast(1.2);
    transition: filter 0.3s ease;
}

/* Landing page dark mode handled separately */
body.dark-mode .landing::before {
    background: var(--background-dark) !important;
    filter: none;
}

/* Darken all images in dark mode */
body.dark-mode img {
    filter: brightness(0.8);
    transition: filter 0.3s ease;
}

/* Feedback button dark mode filters removed - handled in component */

/* Container and sidebar dark mode */
body.dark-mode .container {
    background-color: transparent; /* Keep container transparent to show images */
    color: var(--text-dark);
}

body.dark-mode .question {
    color: white;
}

/* Sidebar specific dark mode */
body.dark-mode .sidebar {
    background-color: var(--background-dark);
    color: var(--text-dark);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}

/* Dark Mode toggle slider style */
.dark-mode-toggle {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 15px;
    font-size: 20px;
    padding: 10px 0;
    width: 100%;
}

.dark-mode-toggle input {
    display: none;
}

.toggle-slider {
    margin-left: 10px;
    width: 40px;
    height: 20px;
    background-color: #ccc;
    position: relative;
    border-radius: 34px;
    transition: background-color 0.2s ease;
}

.toggle-slider:before {
    content: "";
    position: absolute;
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: #fff;
    border-radius: 50%;
    transition: transform 0.2s ease;
}

.dark-mode-toggle input:checked+.toggle-slider {
    background-color: var(--slider-colour);
}

.dark-mode-toggle input:checked+.toggle-slider:before {
    transform: translateX(20px);
}

/* Add meta viewport styles */
@viewport {
    width: device-width;
    zoom: 1.0;
    min-zoom: 1.0;
    max-zoom: 1.0;
    user-zoom: fixed;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Form Loading State */
.suggestion-modal.loading {
    opacity: 0.7;
    pointer-events: none;
}

.suggestion-modal.loading .suggestion-input {
    background-color: #f5f5f5;
    cursor: not-allowed;
}

.suggestion-modal.loading .submit-button {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Dark Mode */
body.dark-mode .question-type::before {
    filter: brightness(0.5) contrast(1.2);
}


/* Dark mode styles for suggestion modal */
body.dark-mode .suggestion-modal {
    background-color: var(--background-dark);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}

body.dark-mode .suggestion-modal h3 {
    color: var(--text-dark);
}

body.dark-mode .suggestion-input {
    background-color: #2b2b2b;
    border-color: #444;
    color: var(--text-dark);
}

body.dark-mode .suggestion-input::placeholder {
    color: #888;
}

/* Responsive image styles */
.responsive-img {
    max-width: 100%;
    height: auto;
}

.title-image {
    margin-top: 22vh;
}

/* Question title image styling */
.question-title-img {
    width: 220px; /* Increased from 200px by 10% */
    height: 66px; /* Increased from 60px by 10% */
    object-fit: contain;
    margin-bottom: 20px;
}

.deeper-text-spacing {
    margin-bottom: 20px;
}

/* Moved from Vue component scoped styles */
.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Remove old slide transitions since we're using transform now */
.slide-enter-active,
.slide-leave-active {
    display: none;
}

.slide-enter,
.slide-leave-to {
    display: none;
}


.deeper-container {
    order: 4;
}