body, html {
    height: 100%;
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #110000;
}

body {
    background: url('love.svg') no-repeat center center fixed;
    background-color: #110000;
    background-size: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

h1 {
    margin: 0;
    font-size: 2em;
}

p {
    margin-top: 10px;
    font-size: 1em;
}

.slider {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 600px;
    display: flex;
    align-items: center; /* Centers items vertically */
}

.prev, .next {
    font-size: 2em;
    background: transparent;
    border: none;
    color: #aaa;
    cursor: pointer;
    outline: none;
    margin: 0 20px; /* Gives some spacing between the arrows and the poem content */
}

.prev {
    left: -50px;
}

.next {
    right: -50px;
}

.poems {
    flex-grow: 1; /* Allows this section to take up remaining space between the arrows */
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    text-align: center; /* Centers the poem text */
}

.poem {
    display: none;
    padding: 20px;
}

.poem:first-child {
    display: block;
}



/* Mobile Styles */
@media (max-width: 600px) {
    .slider {
        flex-direction: column; /* Stack items vertically on smaller screens */
        max-width: 90%; /* Use more of the screen's width */
    }

    .prev, .next {
        font-size: 1.5em;
        margin: 10px; /* Reduced margin on smaller screens */
    }

    .poems {
        margin: 10px 0; /* Add some spacing above and below the poem content */
        padding: 10px; /* Reduced padding on smaller screens */
    }

    .poem {
        font-size: 1rem; /* Adjusted font size for better readability */
    }
}
