@font-face {
    font-family: 'Nunito';
    src: url('fonts/Nunito-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Nunito';
    src: url('fonts/Nunito-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

body {
    font-family: 'Nunito', sans-serif;
    margin: 0;
    padding: 0;
    background: #e7d5d5;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100vh;
}

/* Top orange bar (reduced height) */
.header-bar {
    width: 100%;
    background-color: #d05a00;
    padding: 1.2vh 0; /* was 2vh – now slimmer */
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2.5vw; /* space between icon and text */
    box-shadow: 0 0.4vh 1.5vh rgba(0,0,0,0.5);
}

/* Icons left and right (smaller height) */
.header-icon {
    height: 4.5vh; /* was 6vh – now smaller */
    width: auto;
}

.fullscreen-icon {
    position: absolute;
    right: 15px;             /* Abstand zum rechten Rand */
  
    transform: translateY(-50%); /* Zentriert das Icon perfekt vertikal */
    height: 30px;            /* Gleiche Größe wie deine anderen Icons */
    width: auto;
    cursor: pointer;
}

/* Title in the center */
.header-title {
    font-size: 2rem; /* slightly smaller for balance */
    font-weight: 400;
    color: white;
    font-weight: bold;
    letter-spacing: 0.15rem;
}

/* Video centered at the top */
#introVideo {
    margin-top: 2.5vh;
    width: 55%;
    height: auto;
    max-height: 60vh;
    object-fit: cover;
    display: block;
    border-radius: 1rem;
}

/* Portrait mode */
@media (orientation: portrait) {
    #introVideo {
        width: 100%; /* smaller video for portrait */
        border-radius: 0;
    }
}

.welcome-text {
    margin-top: 2.5vh;
    margin-bottom: 1.5vh;
    text-align: center;
    font-family: 'Nunito', sans-serif;
    padding: 0 5vw; /* left and right padding */
}

.welcome-text div {
    font-size: 2rem;
    font-weight: bold;
    line-height: 1.2;
}

/* Buttons */
.standardButtonSmall {
    padding: 1.5vh 4vw;
    background-color: #ff7a00;
    color: white;
    border: none;
    border-radius: 1rem;
    font-size: 1rem;
        width: 50vw;
    text-transform: uppercase;
    font-weight: bold;
    cursor: pointer;
    font-family: 'Nunito', sans-serif;
    transition: background-color 0.2s;
    white-space: nowrap;
    width: auto; /* WICHTIG */
        box-shadow: 0 0.5vh 0.25vh rgba(0, 0, 0, 0.1)
}

.standardButtonSmall:hover {
    transform: scale(1.05);
}

.standardButton {
    margin: 1vh;
    padding: 2vh 6vw;
    background-color: #ff7a00;
    color: white;
    border: none;
    border-radius: 1rem;
    font-size: 0.8rem;
    width: 60vw;
    text-transform: uppercase;
    font-weight: bold;
    cursor: pointer;
    font-family: 'Nunito', sans-serif;
    transition: transform 0.2s, background-color 0.2s;
    transform-origin: center center;
    box-shadow: 0 0.5vh 0.25vh rgba(0, 0, 0, 0.1)
}

.standardButton {
    margin-left: auto;
    margin-right: auto;
}


.standardButton:hover {
    transform: scale(1.05);
}

.btn-green {
    background-color: #75c433;
}

.btn-yellow {
    background-color: #e8c400;
}

.btn-orange {
    background-color: #ff7f2b;
}

.btn-orangeDark {
    background-color: #d05a00;
}

.btn-red {
    background-color: #ff5651;
}

.btn-pink {
    background-color: #ff59bb;
}

.btn-blue {
    background-color: #774dd0;
    background-color: #ae89fc;
}

.btn-gray {
    background-color: #979797;
}



.standardButtonFixed {
    margin-top: 2.5vh;
    padding: 2vh 6vw;
    color: white;
    border: none;
    border-radius: 1rem;
    font-size: 1rem;
    text-transform: uppercase;
    font-weight: bold;
    cursor: pointer;
    font-family: 'Nunito', sans-serif;
    transition: transform 0.2s, background-color 0.2s;
    transform-origin: center center;
    position: fixed;
    bottom: 3vh;
    left: 50%;
    transform: translateX(-50%); 
    z-index: 999;
    box-shadow: 0 0.5vh 0.25vh rgba(0, 0, 0, 0.1)
}

.standardButtonFixed:hover {
    transform: translateX(-50%) scale(1.05);
}


/* Container unten fixiert */
.bottom-button-container {
    position: fixed;
    bottom: 2vh;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 2rem;
}


/* Table for name inputs */
.name-table {
    margin-left: auto;
    margin-right: auto;
}

.name-row {
    display: flex;
    justify-content: space-between;
    align-items: center;        /* vertical alignment */
    gap: 1rem;                  /* spacing between input and delete button */
    width: 100%;
    margin-left: auto;
    margin-right: auto; 
}

/* Input fields inside the table */
.name-input {
    flex: 1;
    width: 100%;
    padding: 1vh 2vw;
    font-size: 1rem;
    border-radius: 0.75rem;
    border: none;
    outline: none;
    text-align: center;
    font-family: 'Nunito', sans-serif;
    box-shadow: 0 0.5vh 1.5vh rgba(0,0,0,0.2);
    
}

/* Delete button inside table */
.deleteButton {
    background-color: #cc0000;
    color: white;
    border: none;
    border-radius: 0.5rem;
    padding: 1vh 2vw;
    font-size: 1rem;
    font-family: 'Nunito', sans-serif;
    text-transform: uppercase;
    font-weight: bold;
    cursor: pointer;


}



/* Adds space at the bottom so the fixed button never overlaps content */
.page-content {
    padding-bottom: 15vh; /* enough space for the fixed button */
}


.sip-slider-container {
    margin-top: auto;
    /* Schiebt den gesamten Block massiv nach oben, damit alles Platz hat */
    margin-bottom: calc(50px + env(safe-area-inset-bottom));
    width: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
}

.sip-icon {
    width: 15%;
    height: auto;
}

.sip-slider-row {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4vw;
}


.sip-slider {
    width: 60%;
    -webkit-appearance: none;
    appearance: none;
    background: #ddd;
    border-radius: 10px;
    height: 6px; /* unkritisch */
}

/* Track */
.sip-slider::-webkit-slider-runnable-track {
    height: 12px; /* oder was du willst */
    background: transparent;
    border-radius: 10px;
}

/* Thumb */
.sip-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: #ff7a00;
    border-radius: 50%;
    cursor: pointer;
    margin-top: -2px;
}

.big-textarea {
    width: 70%;
    height: 20%;                 /* makes it large and multiline */
    padding: 1.2rem;
    font-size: 1.2rem;
    font-family: 'Nunito', sans-serif;

    background: white;            
    color: black;

    border: none;
    border-radius: 1rem;
    outline: none;
   
    margin-left: auto;     /* centers horizontally */
    margin-right: auto;    /* centers horizontally */
    display: block;        /* required for margin auto centering */

    resize: none;                  /* prevents ugly resizing handles */
    box-shadow: 0 0.8vh 2vh rgba(0,0,0,0.35);

    margin-bottom: 2vh;
}


/* Container backgroundvideo */
.video-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    z-index: -1;
}

/* Das Video selbst */
.video-bg video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    /* WICHTIG: sorgt für Cropping & Stretching */
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    object-position: center;
}


.responsiveImage {
    width: 30vw;     /* 60% der Bildschirmbreite */
    height: auto;    /* Höhe automatisch proportional */
    display: block;  /* verhindert komische Abstände */
    margin: 0 auto;  /* zentriert das Bild */
}
@media (orientation: portrait) {
    .responsiveImage {
        width: 90vw;
    }
}

.challenge-layout {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 7vh); /* 70px = Headerhöhe */
    position: relative;
    z-index: 2;
}

.button-spacer {
    height: calc(8vh + 3vh); /* Buttonhöhe + Abstand */
    flex-shrink: 0;
}

.challenge-box {
    flex: 1;                     
    display: flex;
    width: 80%;
    justify-content: center;    
    align-items: center;
    color: white;
    font-size: 2rem;
    text-align: center;
    padding: 2rem;
    margin-left: auto;
    margin-right: auto;
}
@media (orientation: landscape) {
    .challenge-box {
        width: 70%;
        font-size: 3.5rem;   
        padding: 3rem;       
        transform: scale(1.3); 
        transition: all 0.4s ease;
    }
}


.challenge-animate {
    animation: challengeFadeIn 1s ease-out forwards;
}

@keyframes challengeFadeIn {
    0% {
        opacity: 0;
        transform: scale(0.1);
    }
    75% {
        opacity: 1;
        transform: scale(1.05);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}






