body {
    margin: 0;
    overflow-x: hidden;
    height: 100vh;
    width: 100vw;
}

.background-image {
    height: 100%;
    width: 100%;
    background-size: 100% 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* See more heading stylings https://codepen.io/vedadesigns/pen/GPxYZg */
#text-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 20px 20px;

    background-color: rgba(0, 0, 0, 0.2); /* Light transparent background */
    backdrop-filter: blur(8px); /* Blurs the background behind the text */
    border-radius: 8px;
}

.title h1 {
    width: 100%;
    text-align:center;
    margin: 0;
   
    text-transform:uppercase;
    font-size:26px; 
    letter-spacing:1px;
    
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    grid-template-rows: 16px 0;
    grid-gap: 22px;

    filter: invert(1) grayscale(1) brightness(1.3) contrast(9000);
    mix-blend-mode: difference;
    opacity: 0.95;
}
  
.title h1:after,.title h1:before {
    content: " ";
    display: block;
    border-bottom: 2px solid #ccc;
    background-color:#f8f8f8;
  }

.subtitle {
    margin: 15px 15px;
}

.subtitle h3 {
    width: 100%;
    text-align:center;
   
    text-transform:uppercase;
    font-size:18px; 
    letter-spacing:1px;
    
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    grid-template-rows: 16px 0;
    grid-gap: 12px;

    filter: invert(1) grayscale(1) brightness(1.3) contrast(9000);
    mix-blend-mode: difference;
    opacity: 0.95;
}

.subtitle h3:after,.subtitle h3:before {
    content: " ";
    display: block;
    border-bottom: 2px solid #ccc;
    background-color:#f8f8f8;
}

.enter-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: transparent;
    font-size: 18px;
    cursor: pointer;
    overflow: hidden;
    margin: 0;
    color: white; 
    position: relative;
    transition: color 0.3s ease; /* Smooth text color transition */
    text-decoration: none;
}

.enter-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: white;
    transition: left 0.3s ease-in-out;
    z-index: -1;
}

.enter-button:hover::before {
    left: 0; /* Move the background color in */
}

.enter-button:hover {
    color: black; /* Text stays black */
}


/* Typewriter Effect */
.typewrite {
    color: white;
}

/* Media Queries for Responsive Design */
@media screen and (max-width: 768px) {
    .background-image {
        width: auto;
        height: 100%;
    }
    
    .title h1 {
        font-size: 22px;
        grid-gap: 15px;
    }
    
    .subtitle h3 {
        font-size: 14px;
        grid-gap: 10px;
    }
    
    .enter-button {
        padding: 8px 16px;
        font-size: 16px;
    }
}

@media screen and (max-width: 480px) {
    #text-wrapper {
        padding: 15px;
        width: 95%;
    }
    
    .title h1 {
        font-size: 18px;
        grid-gap: 10px;
    }
    
    .subtitle h3 {
        font-size: 12px;
        grid-gap: 8px;
    }
}