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


body {
    font-family: 'Kanit', sans-serif;
    line-height: inherit;
  }

  body,
  html {
    max-width: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

.header #background-image {
    width: 100vw;
    height: 60vh;
    object-fit: cover;
    position: absolute;
    left: 0;
    top: 0;
    z-index: -1;
}

.color-overlay {
    position: absolute;
    width: 100vw;
    height: 60vh;
    left: 0;
    top: 0;
    background-color: rgba(51, 54, 85, 0.61);
    z-index: 1;
}

.yellow-text{
    color: #53e660
}

.copy-message {
    display: none;
    color: white;
}

.header {
    position: relative;
    min-height: 60vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
    overflow: hidden; 
    background-size: cover; 
    background-position: center;
    background-image: url(../image/evolucraft/evolucraft-background.png);
}

.header:before {
    content: " ";
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    position: absolute;
    z-index: 0;
    background-color: rgb(0 0 0 / 40%);
}

.header .header-content {
    position: relative;
    z-index: 2;
    width: 90%;
    padding: 100px;
}

.header .header-content h1 {
    font-size: 35px;
    margin: 30px 0;
    color: white;
    font-weight: 700;
    text-shadow: 0 0 2px black;
}

.header .header-content h2 {
    font-size: 15px;
    margin: 30px 0;
    color: white;
    font-weight: 700;
}



.header .header-content .header-content-image {
    width: calc(100px + 5vw); 
    margin-top: 30px;
    animation: animation_logo 2s ease 0s infinite normal none;
}

.header .header-content a {
    text-decoration: none;
    margin-top: 10px;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: calc(0.8em + 0.5vw);
    color: white;
    padding: 15px 30px;
    border-radius: 30px;
    background: #249f9f;
    transition: 0.3s ease;
    display: inline-block;
}

.header .header-content a:hover {
    background: #15d1ab;
}

@keyframes animation_logo {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.container {
    position: relative;
    z-index: 1;
    padding: 60px 0;
}

.container h1 {
    text-align: center;
    font-size: calc(1em + 1vw); 
    margin: 20px 0;
    margin-top: 50px;
    color: black;
    font-weight: 700;
}


.bubbles-container {
    display: flex;
    margin: 90px 0;
}

.bubble-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
    flex: 1;
    gap: 15px;
}

.bubble {
    width: 10vw; 
    height: 10vw; 
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.bubble img {
    width: 100%;
    height: auto;
}

.bubble-text {
    text-align: center;
    margin-top: 10px;
}

.bubble-text p {
    padding: 12px 0 0;
    font-weight: 700;
    font-size: 18px;
}
.bubble-text h2 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
}
.influ {
    position: relative;
    width: 100%;
    text-align: center;
}

.image-container h2 {
    position: absolute;
    top: 25%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white; 
    font-size: 2em; 
    z-index: 1;
    margin: 0;
    font-weight: 700;
}

.image-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    margin-top: -50px;
}

.calque {
    width: 100%;
    height: auto;
    display: block;
}

.rectangle-container {
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px; 
    z-index: 2;
    padding: 10px;

}

.rectangle {
    background: rgb(255 255 255 / 9%);
    margin: 10px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 25px;
    box-sizing: border-box;
    flex: 1;
}

.rectangle .bubble {
    width: 10vw; 
    height: 10vw; 
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.rectangle .bubble img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.rectangle .bubble-text {
    text-align: center;
    font-size: calc(0.8em + 0.5vw); 
    margin-top: 10px;
    color: white;
    overflow: hidden;
}

.stream {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; 
    gap: 30px; 
    margin-top: 100px;
}


.mobile-carousel {
    display: none;
}

.stream .video-container {
    width: 30vw;
    height: 30vh;
    margin: 10px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px;
    box-sizing: border-box;
    overflow: hidden; 
}

.stream .video-container .video-wrapper {
    width: 100%;
    height: 100%;
    border-radius: 20px; 
    overflow: hidden; 
    display: flex;
    justify-content: center;
    align-items: center;
    background: black; 
}

.stream .video-container iframe {
    width: 100%;
    height: 100%;
    border: none; 
}
  
.footer h1 {
    text-align: center;
    margin-top: 70px;
    font-size: 30px;
}

.carousel {
    position: absolute;
    right: 40px;
    width: 60%; 
    overflow: hidden;
    border-radius: 10px;
    margin: 0 auto; 
    background: linear-gradient(rgb(58, 255, 166), rgb(174, 255, 61));
    margin-top: 50px;
}

.carousel-inner {
    display: flex;
    align-items: center;
}

.carousel-item {
    min-width: 100%;
    height: 300px; 
    box-sizing: border-box;
}


.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    color: white;
    font-size: 30px;
    padding: 10px;
    background-color: transparent; 
}


.carousel-item .bubble {
    position: absolute; 
    left: 100px; 
    top: 50%; 
    transform: translateY(-50%); 
    width: 150px; 
    height: auto; 
    display: flex;
    justify-content: center; 
    align-items: center; 
    
}

.text {
    position: absolute;
    left: calc(100px + 150px + 10px); 
    right: 50px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    z-index: 1;
}

.text h1 {
    margin: 0; 
    font-size: 2vw; 
    
}
.carousel-control-prev {
    left: -40px; 
}

.carousel-control-next {
    right: -40px; 
}

@media (max-width: 1200px) {

    .header .header-content h1 {
        font-size: 1.5rem;
    }

    .rectangle {
        width: 22vw;
        height: 31vh;
    }

    .rectangle-container{
        flex-wrap: nowrap;
        top: 58%;
    }

    .stream .video-container {
        width: 40vw;
        height: auto;
    }

    .carousel-item .bubble {
        width: 120px;
        left: 80px;
    }
    
    .text {
        left: calc(100px + 120px + 10px);
    }

    .text h1 {
        font-size: 2vw;
    }
}

@media (max-width: 992px) {

    .header .header-content h1 {
        font-size: 1.2rem;
    }

    .rectangle {
        width: 23vw;
        height: 28vh;
        margin: 10px;
        border-radius: 35px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 10px;
        box-sizing: border-box;
    }


    .stream .video-container {
        width: 70vw;
    }


    .rectangle-container{
        flex-wrap: nowrap;
        top: 58%;
    }

    .bubbles-container {
        gap: 10px; 
    }

    .bubble-wrapper {
        width: calc(50% - 10px); 
    }

    .bubble {
        width: 100px;
        height: auto; 
    }
    
    .carousel {
        right: 0;
        width: 100%;
    }

    .carousel-item .bubble {
        width: 120px;
        left: 70px;
    }

    .text {
        left: calc(100px + 100px + 10px);
    }

    .text h1 {
        font-size: 3vw;
    }
}

@media (max-width: 768px) {

    .header .header-content h1 {
        font-size: 1.1rem;
    }

    
    .rectangle {
        width: 25vw;
        height: 29vh;
        margin: 10px;
        border-radius: 35px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 10px;
        box-sizing: border-box;
    }

    .rectangle-container{
        flex-wrap: nowrap;
        top: 58%;
    }

    .stream .video-container {
        width: 90vw;
    }

    .bubbles-container {
        gap: 10px; 
    }

    .bubble-wrapper {
        width: calc(50% - 10px); 
    }

    .bubble {
        width: 100px;
        height: auto; 
    }

    .carousel {
        width: 100%;
    }

    .carousel-item .bubble {
        width: 100px;
        left: 80px;
    }


    .text {
        left: calc(100px + 80px + 10px);
    }

    .text h1 {
        font-size: 4vw;
    }
}

@media (max-width: 576px) {

    .header .header-content h1 {
        font-size: 1rem;
    }

    .influ {
        display: none;
    }

    
    .mobile-carousel {
        display: flex;
        flex-direction: column;
        align-items: center;
        height: 55vh;
        margin-bottom: -80px;
        margin-top: 30px;
        position: relative;
    }
    
    .mobile-carousel .carousel {
        width: 50vw;
        background: linear-gradient(rgb(58, 255, 166), rgb(174, 255, 61));
        border-radius: 20px;
        padding: 10px;
        box-sizing: border-box;
        transform: translateX(-50%);
        overflow: visible
    }
    
    .mobile-carousel .carousel-inner {
        display: flex; 
        justify-content: center; 
        align-items: center; 
        width: 100%;
        
    }
    
    .mobile-carousel .carousel-item {
        flex: 0 0 auto; 
        width: 100px; 
        height: 300px; 
        box-sizing: border-box;
        
    }
    

    .mobile-carousel .carousel-item .bubble {
        width: 80px;
        height: auto;
        left: -39px;
        top: 20%;
    }
    
    .mobile-carousel .bubble img {
        width: 100%;
        height: auto;
        object-fit: cover;
    }


    .mobile-carousel .mobile-text {
        text-align: center;
        font-size: calc(0.8em + 0.5vw); 
        margin-top: 110px;
        color: white;
        overflow: hidden;
        position: relative;
        transform: translateX(-50%); 
    }  

    .mobile-carousel .carousel-control-prev {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        display: flex;
        align-items: center;
        justify-content: center;
        width: 0;
        height: auto;
        border-radius: 50%;
        z-index: 2;
        cursor: pointer;
    }

    .mobile-carousel .carousel-control-next{
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        display: flex;
        align-items: center;
        justify-content: center;
        width: 0;
        height: auto;
        border-radius: 50%;
        z-index: 2;
        cursor: pointer;
    }

    .influ{
        display: none;
    }


    .stream .video-container {
        width: 95vw;
    }

    .carousel-item .bubble {
        width: 80px;
        left: 40px;
    }

    .text {
        left: calc(70px + 60px + 10px);
    }

    .text h1 {
        font-size: 6vw;
    }
}


@media (max-width: 400px) {

    .header .header-content h1 {
        font-size: 0.8rem;
    }

    .rectangle {
        width: 70vw;
        height: 70vh;
    }

    .stream .video-container {
        width: 98vw;
    }

    .carousel-item .bubble {
        width: 60px;
        left: 40px;
    }

    .bubbles-container {
        gap: 5px; 
    }

    .bubble-wrapper {
        width: calc(50% - 5px); 
    }

    .bubble {
        width: 100px;
        height: auto; 
    }

    .rectangle-container{
        flex-wrap: nowrap;
        top: 58%;
    }



    .influ{
        display: none;
    }
    .rectangle-container {
        overflow: hidden;
        white-space: nowrap;
    }

    .rectangle {
        display: inline-block;
        white-space: normal;
        width: 80vw; 
        height: auto; 
    }

    .rectangle .bubble {
        width: 40vw; 
        height: 40vw; 
    }
    .text {
        left: calc(70px + 40px + 10px);
    }

    .text h1 {
        font-size: 5vw;
    }

}
