body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
    font-family: sans-serif;
}

header {
    position: fixed;
    inset: 0;
    height: 6vh;
    background-color: #ffffff00;
    z-index: 99999;
}

header .logo {
    width: 180px;
    height: 54px;
    margin-right: 1rem;
    padding: 1rem;
}

.flex-container {
    display: flex;
    flex-direction: row;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

.flex-slide {
    position: relative; /* Ensure child elements are positioned relative to the slide */
    flex: 1;
    transition: all 0.5s ease;
    cursor: pointer;
    overflow: hidden;
}

.flex-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.flex-slide:hover {
    flex: 3;
}

.flex-title {
    position: absolute; /* Position relative to the parent slide */
    font-size: 4vw;
    text-align: center;
    color: #fff;
    transform: rotate(90deg);
    transition: all 0.5s ease;
    top: 10%;
    left: 10%;
    transform-origin: left center;
}

.flex-about {
    position: absolute;
    font-size: 1.5vw;
    color: #fff;
    width: 80%; /* Center content horizontally */
    text-align: center;
    left: 50%;
    top: 60%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column; /* Stack elements vertically */
    align-items: center; /* Center horizontally */
    gap: 10px; /* Add space between elements */
}

.flex-about a {
    opacity: 0;
}

.cta-button {
    margin-top: 10px; /* Add a margin above the button */
    background-color: #000000;
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-size: 1.2vw;
    text-decoration: none;
    border-radius: 15px;
    transition: background-color 0.3s ease;
}

.cta-button.disabled {
    pointer-events: none;
    cursor: default;
}

.cta-button:hover {
    background-color: #444;
}

.flex-slide:hover .flex-title {
    transform: rotate(0deg);
}

.flex-slide:hover p{
    scale: 1.5;
    transition: all ease-in-out 0.4s;
}

@media screen and (max-width: 768px) {
    .flex-container {
        flex-direction: column;
    }

    .flex-title {
        transform: rotate(0deg);
        font-size: 5vw;
        top: 5%;
    }

    .flex-about {
        font-size: 4vw;
        top: 50%;
    }

    .cta-button {
        font-size: 4vw;
    }

    .flex-slide:hover p{
        scale: 1.2;
    }
}

.spinner {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: #222;
    z-index: 9999;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cube1, .cube2 {
    width: 15px;
    height: 15px;
    background: #fff;
    position: absolute;
    animation: sk-cubemove 1.8s infinite ease-in-out;
}

.cube2 {
    animation-delay: -0.9s;
}

@keyframes sk-cubemove {
    25% {
        transform: translateX(42px) rotate(-90deg) scale(0.5);
    }
    50% {
        transform: translateX(42px) translateY(42px) rotate(-180deg);
    }
    75% {
        transform: translateY(42px) rotate(-270deg) scale(0.5);
    }
    100% {
        transform: rotate(-360deg);
    }
}
