﻿html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

    body > .container {
        flex: 1;
    }

textarea.form-control {
    border-radius: 0.5rem;
    padding: 1rem;
    font-size: 1rem;
}

.btn-primary {
    background-color: #3f51b5;
    border-color: #3f51b5;
}

    .btn-primary:hover {
        background-color: #303f9f;
    }

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
}
.card-body em {
    color: #444;
    font-style: normal;
    font-weight: 500;
}

.card-body p {
    font-size: 1.05rem;
}
/*  Full-body calming gradient */
body {
    background: linear-gradient(to bottom right, #f0f4ff, #faf3ff);
    font-family: 'Segoe UI', sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    transition: background-color 0.4s ease, color 0.4s ease;
}

/*  Glass-effect card container */
.card.glass {
    background: rgba(255, 255, 255, 0.75);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/*  Smooth input area */
textarea.form-control {
    background-color: #f8f9fc;
    border-radius: 12px;
    padding: 1rem;
    font-size: 1rem;
    border: 1px solid #ced4da;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.03);
}

/*  Gradient button */
.btn-gradient {
    background: linear-gradient(to right, #7b9acc, #8367c7);
    color: white;
    font-weight: 600;
    border-radius: 10px;
    border: none;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.08);
    transition: background 0.3s ease;
}

    .btn-gradient:hover {
        background: linear-gradient(to right, #6b84c4, #7753b8);
    }

/*  Result wisdom card */
.wisdom-card {
    background-color: rgba(255, 255, 255, 0.6);
    border: 1px solid #e5e5e5;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

footer {
    background: transparent;
    color: #888;
    font-size: 0.9rem;
}



.fade-in {
    animation: fadeInUp 0.6s ease-out both;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn-gradient {
    box-shadow: 0 0 10px rgba(136, 128, 255, 0.4);
}


form textarea {
    resize: none;
    font-size: 1rem;
    border-radius: 0.5rem;
    padding: 1rem;
}

form button {
    font-weight: 600;
    font-size: 1.1rem;
}

.bg-light {
    background-color: #f9f9f9 !important;
}


/* 🌑 General dark background */
body.dark-mode {
    background: linear-gradient(to bottom, #151822, #1c1f2b);
    color: #eaeaea;
}

    /* 💡 Hero section */
    body.dark-mode .hero {
        background: linear-gradient(to right, #202437, #2a2d44);
        color: #f5f5f5;
    }

    /* 💬 Textareas */
    body.dark-mode textarea.form-control {
        background-color: #2f3344;
        color: #ffffff;
        border: 1px solid #444a5a;
    }

        body.dark-mode textarea.form-control::placeholder {
            color: #b6b6b6;
        }

    /* 📝 Form labels and headings */
    body.dark-mode .form-label,
    body.dark-mode .card-title,
    body.dark-mode h2,
    body.dark-mode label {
        color: #dddddd;
    }

    /* 💎 Glass and wisdom cards */
    body.dark-mode .glass,
    body.dark-mode .wisdom-card {
        background-color: rgba(36, 40, 54, 0.85);
        color: #f2f2f2;
        border: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    }

    /* 🔘 Gradient button */
    body.dark-mode .btn-gradient {
        background: linear-gradient(to right, #8a72e0, #635bff);
        color: #ffffff;
        border: none;
        font-weight: 600;
    }

        body.dark-mode .btn-gradient:hover {
            background: linear-gradient(to right, #7761ec, #564cfa);
        }

    /* 🔔 Alerts */
    body.dark-mode .alert-info {
        background-color: #2b2f3c;
        color: #cccccc;
        border-color: #3a3f51;
    }

    /* 🧘 Starter Mantra + Notes */
    body.dark-mode em,
    body.dark-mode .text-muted {
        color: #bbb !important;
    }
    body.dark-mode .hero {
        background: linear-gradient(to right, #202437, #2a2d44);
        color: #f5f5f5; /* Ensures base text is readable */
    }

        body.dark-mode .hero h1,
        body.dark-mode .hero h2,
        body.dark-mode .hero p {
            color: #ffffff !important;
        }

        body.dark-mode .hero h1 {
            font-weight: 700;
            font-size: 2.4rem;
        }

        body.dark-mode .hero p {
            font-size: 1.15rem;
            opacity: 0.95;
        }

        body.dark-mode .hero h1 {
            text-shadow: 0 0 8px rgba(255, 255, 255, 0.05);
        }



.slide-layout {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 2rem;
    transition: all 0.6s ease-in-out;
    flex-wrap: wrap;
}

.form-container {
    width: 100%;
    max-width: 480px;
    transition: transform 0.6s ease;
}

.response-container {
    width: 100%;
    max-width: 480px;
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s ease-in-out;
}

.slide-layout.has-response .form-container {
    transform: translateX(-30px);
}

.slide-layout.has-response .response-container {
    opacity: 1;
    transform: translateX(0);
}

@media (max-width: 768px) {
    .slide-layout {
        flex-direction: column;
        align-items: center;
    }

    .form-container,
    .response-container {
        max-width: 100%;
    }

    .slide-layout.has-response .form-container {
        transform: none;
    }
}


.flip-box {
    perspective: 1000px;
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    position: relative;
}

.flip-box-inner {
    width: 100%;
    transition: transform 0.8s ease-in-out;
    transform-style: preserve-3d;
    position: relative;
    min-height: 100%; /* Grow with content */
}

.flip-box.flipped .flip-box-inner {
    transform: rotateY(180deg);
}

.flip-box-front,
.flip-box-back {
    position: absolute;
    width: 100%;
    backface-visibility: hidden;
    top: 0;
    left: 0;
    padding: 1rem;
    box-sizing: border-box;
}

.flip-box-front {
    z-index: 2;
}

.flip-box-back {
    transform: rotateY(180deg);
    z-index: 1;
}

.card.glass,
.wisdom-card {
    min-height: 100%;
}


