@font-face {
    font-family: 'Extricky';
    src: url('https://extricfilm.com/fonts/EXTRICKY-Reg.ttf') format('truetype'); 
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    position: relative; /* Added for background calculation */
    overflow-y: auto;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    font-family: Arial, sans-serif;
}

#background {
    position: fixed;
    top: -20px;
    left: -20px;
    width: calc(150vw + 40px);
    height: calc(100vh + 40px);
    object-fit: cover;
    z-index: -2;
}

#logo {
    width: 700px; /* Adjust size as needed */
    height: auto;
    margin-top: 350px;
    padding-bottom: 30px; 
}

/* --- New Button Styles --- */

#header-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 380px; 
    z-index: 5;
    position: relative;
}

.squishy-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background-color: #A4B6BD;
    color: white;
    border: none;
    cursor: pointer;
    text-decoration: none;
    font-family: 'Extricky', Arial, sans-serif;
    box-shadow: 0 3px rgba(0,0,0,0.5);
    transition: transform 0.3s cubic-bezier(0.47, 1.64, 0.41, 0.8), background-color 0.2s;
}

.squishy-btn:hover {
    transform: scale(1.1); 
    background-color: #8fa0b5;
}

.squishy-btn:active {
    transform: scale(0.95); 
}

.trailer-btn {
    padding: 12px 30px;
    font-size: 24px;
    border-radius: 50px; 
    letter-spacing: 1px;
}

.icon-btn {
    width: 50px;
    height: 50px;
    border-radius: 12px; 
    padding: 10px;
}

.icon-btn svg {
    width: 100%;
    height: 100%;
    fill: #ce3030; 
}

.icon-btn.twitter svg { fill: #333; } 
.icon-btn.instagram svg { fill: #333; }
.icon-btn.youtube svg { fill: #ce3030; }

/* -------------------------- */

/* Container holding both the divider and the looping texture */
#divider-container {
    position: absolute;
    top: 900px; 
    bottom: 0; /* Stretches to the very bottom of the page */
    width: 100%; 
    max-width: 1920px; 
    z-index: -1; 
    display: flex;
    flex-direction: column;
}

/* The divider image at the top of the container */
#purple-divider {
    width: 100%; 
    height: auto; 
    display: block; /* Removes invisible gaps */
}

/* The looping section that fills the rest of the bottom space */
#bottom-loop {
    width: 100%;
    flex-grow: 1; /* Fills remaining vertical space */
    background-image: url('images/divloop.png');
    background-repeat: repeat; 
    /* background-size: 100% auto; */ /* Uncomment if needed to scale width to match divider */
}

/* Slideshow Section */
#slideshow {
    position: relative;
    width: 900px;
    overflow: hidden;
    border-radius: 20px; 
}

.slideshow-container {
    display: flex;
    width: max-content;
    transition: transform 0.5s ease-in-out;
}

.slide {
    width: 900px;
    height: auto;
    object-fit: cover;
    border-radius: 20px; 
}

.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-80%);
    background: black;
    color: white;
    border: none;
    border-radius: 70px;
    padding: 10px;
    cursor: pointer;
    font-size: 40px;
    z-index: 10;
}

.arrow.left {
    left: 10px;
}

.arrow.right {
    right: 10px;
}

.thumbnails {
    display: flex;
    justify-content: center;
    margin-top: 10px;
    overflow: hidden; 
}

.thumbnail {
    width: 120px;
    height: 70px;
    object-fit: cover;
    margin: 5px;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s ease-in-out;
    border-radius: 8px; 
}

.thumbnail:hover {
    opacity: 1;
}

/* Summary Section */
#description {
    text-align: center;
    margin: 25px auto;
    width: 80%;
    max-width: 800px;
    font-size: 24px;
}

/* Three.js */
#character-model {
    width: 600px; 
    height: 400px; 
    margin: 50px auto;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: transparent;
    position: relative;
}

/* Wallpapers Section */
#wallpapers {
    text-align: center;
    margin: 50px auto;
    width: 80%;
    max-width: 800px;
    font-size: 24px;
}

.wallpaper-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    justify-content: center;
    margin-top: 20px;
}

.wallpaper-gallery img {
    width: 200px;
    height: auto;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.wallpaper-gallery img:hover {
    transform: scale(1.1);
}

h1, h2, h3, .header-text {
    font-family: 'Extricky', Arial, sans-serif;
}