/* Allgemeine Stile */
body {
    font-family: "forma-djr-display", sans-serif;
    background-color: white;
    margin: 0;
    padding: 0;
}

* {
  letter-spacing: 3px;
}

.example::-webkit-scrollbar {
    display: none;
  }

/* Überschriften */
h1 {
    font-family: "forma-djr-display", sans-serif;
    color: black;
    font-size: 7em;
}

p {
    font-family: "forma-djr-display", sans-serif;
    color: black;
    font-size: 6em;
    margin-top: -90px;
}

a {
    text-decoration: none;
}

/* Oberer Container */
.top-container {
    margin: 1px auto;
    padding-top: 80px;
    justify-content: flex-start;
    align-items: flex-end;
}

.top-container h1,
.top-container p {
    text-align: left; /* Ensure text is left-aligned */
    margin-left: 20px; /* Move text close to the left with 20px padding */
    padding-left: 30px;
}

/* Box-Container */
.box-container-above {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 20px;
    padding: 20px;
    margin-top: -80px;
}

.box {
    position: relative;
    height: 800px;
    width: 30%;
    border-radius: 25px;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 20px;
    cursor: pointer;
    overflow: hidden;
}

.box-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: contain; /* Ensures the whole video fits inside the box */
    transform: translate(-50%, -50%); /* Centers the video */
    z-index: -1;
}

/* Unsichtbarer, aber klickbarer Link über die ganze Box */
.box-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
}

#box1 { background-image: url('graphics/hinter-miar.mov'); }
#box2 { background-image: url('graphics/oeber-mi.mov'); }
#box3 { background-image: url('graphics/vor-miar.mov'); }

/* Titel in den Boxen */
.box h2 {
    font-family: "forma-djr-display", sans-serif;
    color: white;
    font-size: 5em;
    text-align: left;
    margin: 0;
    width: 100%;
    padding-left: 20px;
    line-height: 90%;
}

/* Hover-Effekt: GIF verschwindet, Farbe erscheint */
.box:hover {
    background-image: none !important;
    background-color: #dad820;
}

.animated-text {
    width: 100vw; /* Full width */
    overflow: hidden; /* Hide overflow */
    position: relative;
    white-space: nowrap; /* Prevent text from wrapping */
    margin-bottom: -20px;
    margin-top: 40px;
}

.animated-text p {
    display: inline-block;
    padding-top: 100px;
    font-size: 6em;
    font-weight: bold;
    color: white;
    padding-right: 2em; /* Add spacing between repetitions */
    animation: scrollText 20s linear infinite;

    /* Default black outline */
    -webkit-text-stroke: 2px black; 
    text-decoration-line: 2px black;

    /* More space between letters */
    letter-spacing: 3px; 
}

.animated-text p:hover {
    /* Change outline color to #dad820 */
    -webkit-text-stroke: 2px #dad820;
    text-decoration-line: 2px #dad820;
}

.animated-text .text-wrapper {
    display: inline-block;
    white-space: nowrap;
    animation: scrollText 20s linear infinite;
}

@keyframes scrollText {
    from {
        transform: translateX(55%);
    }
    to {
        transform: translateX(-100%);
    }
}

.box-container-underneath {
    gap: 20px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 20px;
}

.box-contact {
    position: relative;
    width: calc(2 * 30% + 20px); /* Twice the width of the other boxes, with gap included */
    height: 400px; /* Half the height of the other boxes */
    border-radius: 25px;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 20px;
    cursor: pointer;
    overflow: hidden;
}

.box-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the video covers the area */
    transform: translate(-50%, -50%);
    z-index: -1;
}

#box4 { background-image: url('graphics/schrib-miar.mov'); }

/* Hover Effect */
#box4:hover {
    background-image: none !important;
    background-color: #dad820;
}

/* Title inside the rectangle */
.box-contact h2 {
    font-family: "forma-djr-display", sans-serif;
    color: white;
    font-size: 5em;
    text-align: left;
    margin: 0;
    width: 100%;
    padding-left: 20px;
    line-height: 90%;
}

.oeber-mi {
    position: relative;
    width: calc((1 / 3 * 100%) - 10px);
    height: 400px; /* Same height as box-contact */
    border-radius: 25px;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 20px;
    cursor: pointer;
    overflow: hidden;
}

#box5 { background-image: url('graphics/oeber-mi.mov'); }

/* Hover Effect */
#box5:hover {
    background-image: none !important;
    background-color: #dad820;
}

/* Title inside the rectangle */
.oeber-mi h2 {
    font-family: "forma-djr-display", sans-serif;
    color: white;
    font-size: 5em;
    text-align: left;
    margin: 0;
    width: 100%;
    padding-left: 20px;
    line-height: 90%;
}

.nav-bar {
    position: absolute;
    right: 20px; /* Adjust as needed */
    top: 20px; /* Adjust as needed */
}

.nav-button {
    width: 200px; /* Small width */
    height: 80px; /* Adjust height */
    background-color: #dad820;
    border: none;
    border-radius: 25px; /* Rounded corners */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease-in-out;
    justify-content: flex-start;
    padding-left: 20px;
}

/* Text Styling */
.nav-button h2 {
    font-family: "forma-djr-display", sans-serif;
    color: white;
    font-size: 3em;
    margin: 0;
    padding: 0;
    text-align: center;
}

.footer {
    width: calc(100% - 40px); /* Full width minus border gaps */
    height: 100px; /* Adjust height as needed */
    background-color: #dad820;
    border-radius: 25px; /* Rounded corners */
    margin-left: 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    bottom: 0;
}

.footer h2 {
    font-family: "forma-djr-display", sans-serif;
    color: white;
    font-size: 3em;
    text-align: left;
    margin: 0;
    padding-left: 20px;
    align-items: start;
    position: absolute;
    left: 20px;
}

.footer h2 a {
    color: white;
    text-decoration: none;
    text-decoration: underline;
}

/* White Button inside Footer */
.footer-button {
    position: absolute;
    right: 20px; /* Align with border gap */
    width: 200px; /* Small width */
    height: 70px; /* Adjust height */
    background-color: white;
    border: none;
    border-radius: 25px; /* Rounded corners */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease-in-out;
    justify-content: flex-start;
    padding-left: 20px;
}

/* Button Text Styling */
.footer-button h3 {
    font-family: "forma-djr-display", sans-serif;
    color: black;
    font-size: 3em;
    margin: 0;
    padding: 0;
    text-align: center;
}

/* is this shit needed?
.fullscreen h3 {
    font-family: "forma-djr-display", sans-serif;
    color: white;
    font-size: 2.5em;
    text-align: left;
    max-width: calc(100% - 140px);
    word-wrap: break-word;
    margin: 0;
    padding-bottom: 20px;
    font-weight: initial;
}

/* ESC button (same format as .nav-button) */
.close-button
{
    width: 200px; /* Same width */
    height: 80px; /* Same height */
    background-color: white; /* White background */
    border: none;
    border-radius: 25px; /* Rounded corners */
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Align text to the left */
    cursor: pointer;
    transition: background 0.3s ease-in-out;
    padding-left: 20px; /* Left padding for text */
    position: absolute;
    top: 20px;
    right: 20px;
    font-family: "forma-djr-display", sans-serif;
    color: black; /* Black text (for contrast) */
    font-size: 3em;
    text-align: center;
    font-weight: bold;
}

/* iPad portrait mode and smaller */
@media screen and (max-width: 870px) { 
    .box-container-above,
    .box-container-underneath { 
        display: flex;
        flex-direction: column; /* Stack boxes vertically */
        align-items: center; /* Center the boxes */
    }

    .box {
        width: 90%; /* Make each box take up most of the screen width */
        height: 400px; /* Reduce height to prevent excessive space */
    }

    /* h1 and h2 become smaller */
    h1 {
        font-size: 6em; /* Reduce size */
        padding-bottom: 20px;
    }
    p {
        font-size: 5em; /* Reduce size */
        margin-bottom: 100px;
    }

    .box-contact,
    .oeber-mi {
        height: 200px;
        width: 90%;
    }
}

@media screen and (max-width: 1000px) {
        .footer h2 {
        text-align: left !important;
        word-wrap: break-word; /* Allow the text to wrap to the next line */
        padding-left: 20px; /* Keep the same left gap */
        max-width: calc(100% - 340px); /* Allow some space for the button */
    }
        /* Footer adjustments */
    .footer {
        flex-direction: row;
        align-items: center;
        padding: 20px;
        width: auto;
        height: 100px;
        margin: 0 20px; /* Ensures border gap is **always** there */
        margin-bottom: 20px;
        font-size: 1em;
    }
}

/* Up to 475px width: further adjustments */
@media screen and (max-width: 475px) {
    /* h1 and h2 shrink even more */
    h1 {
        font-size: 3.5em; /* Smaller for very small screens */
        padding-bottom: 50px;
    }
    p {
        font-size: 2.5em;
        margin-bottom: 100px;
    }

    .box {
        width: 80%; /* Make each box take up most of the screen width */
    }
    .box h2 {
        font-size: 3em; /* Smaller for very small screens */
    }
    .box-contact h2,
    .oeber-mi h2 {
        font-size: 3em; /* Smaller for very small screens */
        padding-left: none;
    }
    .box-contact,
    .oeber-mi {
        height: 200px;
        width: 80%;
    }
    /* .footer {
        flex-direction: column;
        align-items: center;
        height: auto;
        width: auto;
        margin-bottom: 20px;
        display: flex;
        justify-content: center;
        position: relative;
    } */

    .footer h2 {
        font-family: "forma-djr-display", sans-serif;
        color: white;
        text-align: left;
        padding-left: 20px;
        word-wrap: break-word;
    }
}

@media screen and (max-width: 640px) {

    .footer {
        font-size: 0.6em;
        height: 150px;
    }

    .footer h2 {
        max-width: calc(100% - 100px);
        margin-top: -80px;
    }

    .footer-button {
        position: relative;
        width: 100%;
        font-size: 0.75em;
        background-color: white;
        border: 0;
        border-radius: 25px; /* Rounded corners */
        justify-content: flex-start;
        padding-left: 20px;
        margin-left: 20px;
        margin-top: 70px;
    }
}

@media screen and (max-width: 1275px) {
    .footer h2 {
        font-size: 2em;
        word-wrap: break-word; /* Allow the text to wrap to the next line */
    }
}