body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #000;
    position: relative; /* Necessary for absolute positioning of button */
}

.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    display: flex;
    align-items: center;
    justify-content: center;
}

#background-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fallback-image {
    display: none; /* Hidden by default */
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 800px;
    padding: 20px;
    text-align: center;
    color: #fff;
}

.quote-container {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.quote-text {
    font-size: 18px;
    line-height: 1.6;
}

.reflection-box-container {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 10px;
}

.reflection-box-container h2 {
    font-size: 24px;
    margin-bottom: 20px;
}

.reflection-box {
    width: 100%;
    height: 150px;
    padding: 15px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 8px;
    resize: none;
    outline: none;
    box-sizing: border-box;
    background-color: rgba(255, 255, 255, 0.8);
    color: #333;
}

.reflection-box:focus {
    border-color: #21b2a6;
    box-shadow: 0 0 5px rgba(33, 178, 166, 0.5);
}

.reflection-submit {
    margin-top: 20px;
    padding: 10px 20px;
    font-size: 16px;
    color: #000;
    background-color: rgba(255, 255, 255, 0.7); /* Semi-transparent white background */
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s, opacity 0.3s;
}

.reflection-submit:hover {
    background-color: rgba(255, 255, 255, 0.9); /* Slightly more opaque on hover */
    opacity: 1;
}

/* Position the back-to-quotes button at the bottom and center it */
.back-to-quotes {
    position: fixed; /* Fixed position to stay at the bottom */
    bottom: 20px; /* Distance from the bottom */
    left: 50%; /* Center horizontally */
    transform: translateX(-50%); /* Center horizontally */
    padding: 10px 20px;
    font-size: 16px;
    color: #000;
    background-color: rgba(255, 255, 255, 0.7); /* Semi-transparent white background */
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s, opacity 0.3s;
}

.back-to-quotes:hover {
    background-color: rgba(255, 255, 255, 0.9); /* Slightly more opaque on hover */
    opacity: 1;
}

#confirmation-message {
    color: #fff;
    margin-top: 15px;
}
