@import url('https://fonts.googleapis.com/css2?family=Playwrite+GB+S:ital,wght@0,100..400;1,100..400&display=swap');
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

.wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
}


.hutao, .furina, .nahida {
    text-align: center;
    transition: width 0.3s ease; 
    position: relative; 
}


.hutao, .furina, .nahida {
    width: 33.333333333333336%; 
}


.hutao.active, .furina.active, .nahida.active {
    width: 100%; 
}

.hutao video, .furina video, .nahida video {
    width: 100%; 
    height: 400px; 
    object-fit: cover; 
    transition: width 0.3s ease; 
}


.hutao:hover video, .furina:hover video, .nahida:hover video {
    width: 100%; 
    height: 400px;
}


.active video {
    width: 100%; 
    z-index: 10; 
}


.hutao video, .furina video, .nahida video {
    z-index: 1; 
}

.text-overlay {
    position: absolute; 
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex; 
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white; 
    background-color: rgba(0, 0, 0, 0.356); 
    opacity: 0; 
    transition: opacity 0.3s; 
}
.text-overlay h2{
    margin-bottom: 10px;
    font-size: 3em;


    
}
.text-overlay p{
    font-size: 1.5em;
}
.text-overlay p, h2{
    font-family: "Playwrite GB S", cursive;
    font-optical-sizing: auto;
 
    font-style: normal;
}


.hutao:hover .text-overlay,
.hutao.active .text-overlay,
.furina:hover .text-overlay,
.furina.active .text-overlay,
.nahida:hover .text-overlay,
.nahida.active .text-overlay {
    opacity: 1; 
}

.hutaoselect, .furinaselect, .nahidaselect {
    display: none; 
}

.hutaoselect {
    
    background: rgb(0,0,0);
    background: linear-gradient(130deg, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 65%, rgba(74,2,2,1) 75%, rgba(230,5,5,1) 100%);
color: white;
}
.furinaselect{
    background: rgb(255,255,255);
background: linear-gradient(90deg, rgba(255,255,255,1) 0%, rgba(255,255,255,1) 21%, rgba(220,220,255,1) 54%, rgba(196,195,255,1) 100%);
    color: black;
    font-weight: 400;
}
.nahidaselect{
    background: rgb(255,255,255);
    background: linear-gradient(90deg, rgba(255,255,255,1) 0%, rgba(90,255,98,1) 100%);
}
.container{
    display: flex;
    flex-direction: column;
    height: 50vh;

}
.container p{
    margin: 30px 250px;
    font-size: 25px;
    text-align: center;
    line-height: 1.3em;
    font-weight: 400;
}
.container h2{
    font-family: Arial, Helvetica, sans-serif;
    text-align: center;
    padding-top: 20px;
    font-size: 40px;
}

.hutaoselect hr{
    display: block;
    margin: auto;
    margin-bottom: 0;
    border: none;
    margin-top: 10px;
    width: 20%;
    padding: 3px;
    background-color: white;
    transition: all 0.8s;
}
.hutaoselect h2:hover ~hr{
    width: 50%;
}
.furinaselect hr{
    display: block;
    margin: auto;
    margin-bottom: 0;
    margin-top: 10px;
    width: 20%;
    padding: 3px;
    background-color: black;
    border: none;
    transition: all 0.8s;
}
.furinaselect h2:hover ~hr{
    width: 50%;
}
.nahidaselect hr{
    display: block;
    margin: auto;
    margin-bottom: 0;
    margin-top: 10px;
    width: 20%;
    padding: 3px;
    background-color: black;
    transition: all 0.8s;
    border: none;
}

.nahidaselect h2:hover ~hr{
    width: 50%;
}
@media (max-width: 850px) {
    .container {
        height: 100vh;
    }
    .container p {
        margin: 30px 20px;
        font-size: 25px;
        text-align: center;
        line-height: 1.3em;
        font-weight: 400;
    }
    .container h2 {
        font-family: Arial, Helvetica, sans-serif;
        text-align: center;
        padding-top: 20px;
        font-size: 40px;
    }
    .wrapper {
        display: flex;
        flex-direction: column;
        height: 100%;
    }
    
    .hutao, .furina, .nahida {
        text-align: center;
        transition: height 0.3s ease;
        position: relative;
        width: 100%; 
        height: 250px; 
    }

    .hutao.active, .furina.active, .nahida.active {
        height: 400px; 
    }
    
    .hutao video, .furina video, .nahida video {
        width: 100%; 
        height: 100%; 
        object-fit: cover; 
    }
    
    .hutao:hover video, .furina:hover video, .nahida:hover video {
        height: 100%; 
    }
    
    .active video {
        width: 100%;
        height: 100%; 
    }
}