@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&display=swap');
@font-face {
    font-family: myFont;
    src: url(../Dancingscript.otf);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-size: cover;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

header {
    z-index: 9999 !important;
    position: fixed !important;
    top: 0;
    left: 0;
}

#myVideo {
    position: fixed;
    right: 0;
    bottom: 0;
    min-width: 100%;
    min-height: 100%;
    z-index: -1;
    object-fit: cover; /* Better video scaling */
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-top: 4rem;
    padding: 0 15px; /* Safe padding on small screens */
}

.allcontent {
    width: 100%;
    max-width: 975px;
    margin: 25px auto 50px;
    border: 1px solid #032e5e;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 0 0.65em #7ae7e7, 0 0 0.65em #7ae7e7, 0 0 0.65em #032e5e;
    background-color: transparent;
    backdrop-filter: blur(4px);
}

.container1 {
    width: 100%;
}

.banner {
    position: relative;
    background: url(../pics/Iceflake.jpg) no-repeat center;
    background-size: cover;
    height: 250px;
    min-height: 180px;
}

.infowrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 0px 15px 0px 15px;
}

.headline {
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    margin: 5px 0;
}

.headline span {
    font-family: 'Orbitron', 'Josefin Sans', 'Poppins';
    font-size: clamp(28px, 6vw, 40px);
    font-weight: 300;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-shadow: 0 0 0.35em #7ae7e7, 0 0 0.65em #7ae7e7, 0 0 0.65em #1b2bae;
}

.textmedia {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.textmedia p {
    width: 100%;
    max-width: 620px;
    font-family: 'josefin sans', 'poppins';
    font-size: clamp(18px, 4.5vw, 25px);
    /* font-size: 25px; */
    color: #fff;
    text-align: center;
    padding: 5px;    
}

.textmedia2 {
    display: flex;
    justify-content: center;
    margin: 20px 0 15px;
    font-family: 'Josefin Sans', 'Poppins', sans-serif;
    font-size: clamp(22px, 5vw, 32px);
    color: #fff;
    text-align: center;
}

.picwrapper1 {
    display: flex;
    flex-direction: column;
    margin-bottom: 25px;
}

.bildtext {
    display: flex;
    justify-content: center;
    margin: 12px 0 10px;
    font-family: 'Josefin Sans', 'Poppins', sans-serif;
    font-size: clamp(20px, 4.5vw, 25px);
    color: #fff;
    text-align: center;
}

.flexgrid {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.picsize1 img,
.picsize2 img {
    width: 880px;
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* ====================== MEDIA QUERIES ====================== */

/* Small tablets & large mobiles */
@media (max-width: 768px) {    
    .allcontent {
        margin: 15px auto 40px;
    }
    
    /* .banner {
        height: 200px;
    } */
    
    .infowrapper {
        padding: 10px;
    }
}

/* Phones (very narrow screens) */
@media (max-width: 480px) {
    .banner {
        height: 160px;
    }
    
    .headline {
        margin: 10px 0;
    }
    
    .textmedia,
    .textmedia2,
    .bildtext {
        padding: 0 5px;
    }
    
    .flexgrid {
        gap: 10px;
    }
}

/* Large desktops - optional cap if needed */
@media (min-width: 1200px) {
    .allcontent {
        max-width: 975px; /* Keeps original desktop feel */
    }
}