@font-face {
    font-family: 'Poppins';
    src: url('fonts/Poppins-Light.ttf') format('truetype');
    font-weight: 300;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: url('flowers.svg');
    background-size: 500px 500px;
    background-repeat: repeat;
}

.container {
    width: 80%;
    max-width: 800px;
    height: 80vh;
    background: #f9f9f9;
    border-radius: 20px;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
}

.content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    height: 100%;
    padding-top: 30px;
}

#typing {
    font-family: 'Dancing Script', cursive;
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
}

#poem {
    opacity: 0;
    visibility: hidden;
    font-family: 'Dancing Script', cursive;
    font-size: 1.8rem;
    font-weight: 500;
    color: #444;
    margin-top: 20px;
    text-align: center;
}

.divider {
    width: 60%;
    height: 2px;
    background-color: #ccc;
    margin: 30px auto;
    border-radius: 5px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
}

.gif-container {
    position: absolute;
    bottom: 30px;
    right: 280px;
    margin-top: 0;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    width: auto;
    background: transparent;
    padding: 0;
    border: none;
}

.gif-container img {
    max-width: 300px;
}

#music-button {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    cursor: pointer;
    z-index: 1000;
    transition: opacity 0.5s ease-in-out;
    outline: none;
    border: none;
}

#music-icon {
    width: 100%;
    height: 100%;
}

.hidden {
    opacity: 0;
    visibility: hidden;
}

@media screen and (max-width: 768px) {
    #music-button {
        position: absolute;
        bottom: auto;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 80px;
        height: 80px;
    }

    #music-icon {
        width: 100%;
        height: 100%;
    }

    #poem {
        font-size: 16px;
        line-height: 1.7;
        padding: 0 15px;
    }

    .gif-container {
        bottom: 70px;
        right: 80px;
    }
    
    .gif-container img {
        max-width: 150px;
        width: 70%;
    }
}

@media screen and (max-width: 480px) {
    .gif-container img {
        max-width: 180px;
        width: 100%;
    }
}