body {
    background-color: white;
    color: black;
    overflow: hidden;
    margin: 0;
}
#vimeo-player-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}
#vimeo-player {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 177.78vh; /* 16:9 */
    height: 100vh;
    transform: translate(-50%, -50%);
    z-index: 1;
}
#play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    padding: 15px 30px;
    font-size: 20px;
    background-color: rgba(255, 255, 255, 0.5);
    color: black;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}
.hidden {
    display: none;
}
#prev-button,
#next-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    padding: 10px 20px;
    font-size: 16px;
    background-color: rgba(255, 255, 255, 0.5);
    color: black;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}
#prev-button {
    left: 20px;
}
#next-button {
    right: 20px;
}

#text-overlay {
    position: absolute;
    bottom: env(safe-area-inset-bottom);
    left: 0px;
    right: 0px;
    max-height: 30vh;
    padding-left: 1em;
    padding-right: 1em;
    background-color: rgba(255, 255, 255, 0.7);
    color: black;
    text-align: center;
    z-index: 2;
    overflow-y: auto;
    overflow-x: hidden;
    font-family: "ImaginaryFriend BB W00 Regular";
    font-size: 1.5rem;
    transition: transform 0.3s ease-in-out;
}

@media only screen and (min-height: 500px) {
    #text-overlay {
        max-height: 150px;
    }
}

#text-toggle-button {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 4;
    width: 50px;
    height: 50px;
    padding: 0;
    font-size: 20px;
    background-color: rgba(255, 255, 255, 0.8);
    color: black;
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

#text-toggle-button:hover {
    background-color: rgba(255, 255, 255, 0.95);
    transform: scale(1.1);
}

/* All screen sizes - text hidden by default */
#text-overlay.mobile-hidden {
    transform: translateY(100%);
}

/* Mobile styles */
@media only screen and (max-width: 768px) {
    #text-overlay {
        max-height: 40vh;
        padding-bottom: 1em;
    }
}

h1 {
    position: absolute;
    top: 0px;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.7);
    color: black;
    text-align: center;
    z-index: 3;
    font-family: "ImaginaryFriend BB W00 Regular";
    font-size: 2rem;
}