/* Reset margins and prevent scrollbars */
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
}

/* Container for videos */
.video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Video styling */
video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 3s ease-in-out; /* Smooth transition */
}

/* Set the first video as visible initially */
.video1 {
    opacity: 1;
}

/* Text container */
.text-container {
    position: absolute;
    bottom: 100px; /* Adjust to give space for the button */
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: white;
    font-family: 'Arial', sans-serif;
}

/* Main text */
.text-container h1 {
    font-size: 48px;
    margin: 0;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.7), 
                 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Reflection effect */
.text-container h1::after {
    content: "Spirited Away";
    display: block;
    font-size: 48px;
    color: rgba(255, 255, 255, 0.5);
    transform: scaleY(1);
    margin-top: 10px;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3),
                 0 0 10px rgba(255, 255, 255, 0.2);
}

/* Button styling */
#music-control {
    margin-top: 20px;
    padding: 10px 20px;
    font-size: 16px;
    border: 2px solid white; /* Add a border for better visibility */
    background-color: transparent; /* Make the background transparent */
    color: white; /* Keep the text white */
    cursor: pointer;
    border-radius: 15px;
    transition: background-color 0.3s ease, color 0.3s ease; /* Smooth hover effect */
}

/* Hover effect */
#music-control:hover {
    background-color: rgba(255, 255, 255, 0.2); /* Light white overlay on hover */
    color: #000; /* Change text color to black for contrast */
}

