@font-face {
  font-family: Serenity;
  src: url(SerenityMomentRegular-d9Lw6.ttf);
}

@font-face {
  font-family: Railway;
  src: url(raleway_thin-webfont.ttf);
}

body, html {
    height: 100%;
    margin: 0;
    overflow: hidden;
}

.container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.curtain {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.curtain-image {
    position: absolute;
    width: 50%;
    height: 100%;
    overflow: hidden;
    transition: all 2s ease;
    z-index: 2; 
}

.curtain-left {
    left: 0;
    transform-origin: left;
    transition: transform 2s ease-in-out; /* Smooth motion */
}

.curtain-right {
    right: 0;
    transform-origin: right;
   transition: transform 2s ease-in-out; /* Smooth motion */
}

.curtain-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; 
    object-fit: cover;
}

.text {
    position: absolute;
    width: 100%;
    color: #ffffff; 
    font-size: 60px;
    font-family: Railway;
    text-align: center;
    transition: opacity 1s ease;
    z-index: 3; 
    top: 50%;
    transform: translateY(-50%);
    font-weight:bold;
    letter-spacing:-5px;
    word-spacing: 5px;  
}

.text :hover{
cursor: move;
}



.intext {
    position: absolute;
    width: 100%;
    color: #ffffff; 
    font-size: 60px;
    font-family: Railway;
    text-align: center;
    transition: opacity 1s ease;
    z-index: 2; 
    top: 50%;
    transform: translateY(-50%);
    font-weight:bold;
    letter-spacing:-5px;
    word-spacing: 5px;
}

.intext a{
color: white;
font-size: 40px;
text-decoration: none ;

}

.text.hidden {
    opacity: 0;
    color:#FFFFFF;
}


.curtain:hover .text {
    opacity: 1;
}

.curtain:hover .text.hidden {
    opacity: 1;
}