@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');

:root{

    --btn-color: #fdfdfd;/* button color*/
    --btn-bg: #0d0d0d;/* button bg color*/

    --primary-text-color: #000;
    --header-link-hover: #dddcdccf;
    --footer-link-hover: #6dbb00;
    --input-focus-bd-color: #0d0d0d;
    --coral-color: #FF7F7F;
}

.coral-text {
    color: var(--coral-color) !important;
}


html {
    scroll-behavior: smooth;
    font-family: "Roboto", sans-serif;
}

header{
    /* background-color: #fff;
    color: #000; */
}


header > .collapsible-header{
    display: flex;
    gap: 1rem;
    width: 100%;
    background-color: inherit;
    place-content: center;
    overflow: hidden;
    transition: width 0.3s ease;
}

.outline-effect {
    color: black;
    -webkit-text-fill-color: transparent; /* Will override color (regardless of order) */
    -webkit-text-stroke: 2px black;
}

.animated-collapse{
    transition: width 0.3s ease;
}

.header-links {
    display: flex;
    align-items: center;
    min-width: fit-content;
    border-radius: 25px;
    padding: 5px 15px;
    transition: background-color 0.5s, color 0.5s;
}


.header-links:hover {
    background-color: var(--header-link-hover);
}

.material-icons.md-40 { 
    font-size: 40px; 
}

.primary-text-color{
    color: var(--primary-text-color);
}

.opacity-0{
    opacity: 0 !important;
}

.opacity-100{
    opacity: 100 !important;
}

.btn{
    padding: 10px 15px;
    width: max-content;
    border-radius: 25px;
    color: var(--btn-color);
    background-color: var(--btn-bg);
    justify-content: center;
    align-items: center;
    display: flex;
    cursor: pointer;
}

.btn:hover{

}

.btn:disabled{
    cursor: default;
}

.input{
    padding: 10px;
    background-color: transparent;
    border-radius: 25px;
    /* outline: none; */
    min-width: 100px;
    border: 2px solid #818080;
    transition: border 0.3s;
}

.input:active, .input:focus, .input:focus-within{
    border: 2px solid var(--input-focus-bd-color);
}

.input-error{
    border-bottom: 3px solid #ff1e1e;
}

.input-error:focus-within{
    border-bottom: 3px solid #fd0101;
}


/* Navigation dots styling */
.dots-container {
    text-align: center;
    margin-top: 20px;
}

.footer-link{
    color: #0d0d0d;
    transition: color 0.3s;
}

.footer-link:hover{
    color: var(--footer-link-hover);
}


.review-container {
    position: relative;
    max-width: 600px;
    margin: auto;
}

.review-card{
    box-shadow: 0px 2px 4px #757474a0;
    border-radius: 15px;
    /* width: 200px; */
    /* height: 550px; */
    padding: 10px;
}

/* --------- collapsible div ---------- */
.collapsible {
    background-color: #f3f0f0;
    color: #2b2929;
    /* cursor: pointer; */
    padding: 5px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 16px;
    transition: 0.4s;
}

/* Style for the collapsible content */
.content {
    padding: 0 18px;
    /* display: none; */
    height: 0px;
    overflow: hidden;
    background-color: transparent;
    transition: height 0.5s;
    text-align: justify;
    margin-top: 10px;
}

.collapsible .active,
.collapsible:hover {
    /* background-color: #dedddd; */
}

@media not all and (min-width: 1024px) {
    header .collapsible-header {
        position: fixed;
        right: 0px;
        flex-direction: column;
        opacity: 0;
        height: 100vh;
        min-height: 100vh;
        height: 100dvh;
        width: 0vw;
        justify-content: space-between;
        padding: 5px;
        padding-top: 5%;
        padding-bottom: 5%;
        place-items: end;
        background-color: #ffffff;
        color: #000000;
        overflow-y: auto;
        box-shadow: 2px 0px 3px #000;
    }

    .header-links{
        color: black;
    }
    
}

/* Fix masonry layout if columns are not working properly */
@media (max-width: 767px) {
    .masonry-fix {
        columns: 1;
        column-gap: 2.5rem;
    }
}

@media (min-width: 1024px) {
    .masonry-fix {
        columns: 2;
        column-gap: 2.5rem;
    }
}

@media (min-width: 1280px) {
    .masonry-fix {
        columns: 3;
        column-gap: 2.5rem;
    }
}

/* Ensure proper column break behavior */
.column-item {
    break-inside: avoid;
    margin-bottom: 2rem;
}

/* Forest breaker section styling */
#forest-breaker {
    min-height: 100vh;
    height: 100vh;
}

#forest-bg {
    height: 120%; /* Slightly larger for parallax effect */
    width: 100%;
}

#journey-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    width: 100%;
}

/* ------------- Unlock System Styling --------------- */

.locked-content {
    filter: blur(8px);
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.locked-content::before {
    content: "🔒 Wird freigeschaltet in Stage 1";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 127, 127, 0.9);
    color: white;
    padding: 20px 30px;
    border-radius: 15px;
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
    z-index: 100;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.locked-content[data-unlock-stage="2"]::before {
    content: "🔒 Wird freigeschaltet in Stage 2";
}

.locked-content[data-unlock-stage="3"]::before {
    content: "🔒 Wird freigeschaltet in Stage 3";
}

.unlocked-content {
    filter: none;
    opacity: 1;
    pointer-events: auto;
    animation: unlock-glow 2s ease-in-out;
}

@keyframes unlock-glow {
    0% {
        box-shadow: 0 0 0 rgba(34, 197, 94, 0);
    }
    50% {
        box-shadow: 0 0 30px rgba(34, 197, 94, 0.8);
    }
    100% {
        box-shadow: 0 0 0 rgba(34, 197, 94, 0);
    }
}

/* Initially hide all content sections until unlock status is loaded */
[data-unlock-stage] {
    transition: all 0.5s ease;
}

/* Unlock notification styling */
.unlock-notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
}

/* Quiz input styling */
.quiz-input {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.quiz-input:focus {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.quiz-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Quiz section specific styling */
[id^="quiz-"] {
    min-height: 100vh;
}

[id^="quiz-"] .quiz-input.tw-border-green-400 {
    background: rgba(34, 197, 94, 0.2);
    animation: success-pulse 0.5s ease-in-out;
}

[id^="quiz-"] .quiz-input.tw-border-red-400 {
    background: rgba(239, 68, 68, 0.2);
    animation: error-shake 0.5s ease-in-out;
}

@keyframes success-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes error-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Quiz start button styling */
.quiz-start-button {
    background: linear-gradient(135deg, var(--coral-color) 0%, #E85A4F 100%);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    box-shadow: 
        0 8px 32px rgba(255, 127, 127, 0.3),
        0 4px 16px rgba(0, 0, 0, 0.1);
}

.quiz-start-button:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 
        0 12px 40px rgba(255, 127, 127, 0.4),
        0 6px 20px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, #FF9999 0%, var(--coral-color) 100%);
}

.quiz-start-button:active {
    transform: translateY(0) scale(1.02);
    transition-duration: 150ms;
}