body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    text-align: center;
    transition: background 0.5s;
    font-family: 'Questrial', sans-serif;
    color: white;
    margin: 0;
    position: relative;
    background: linear-gradient(45deg, #FF5733, #33FF57, #3357FF);
    background-size: 400% 400%;
    animation: gradientAnimation 15s ease infinite;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI1IiBoZWlnaHQ9IjUiPgo8cmVjdCB3aWR0aD0iNSIgaGVpZ2h0PSI1IiBmaWxsPSIjZmZmIiBmaWxsLW9wYWNpdHk9IjAuMDUiPjwvcmVjdD4KPC9zdmc+');
    pointer-events: none;
    opacity: 0.3;
    z-index: -1;
}

.quote-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 40px 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 80%;
    max-width: 800px;
    margin: 0 auto;
    position: absolute;
    top: 20%;
}

#quote {
    font-family: 'Questrial', sans-serif;
    font-size: 30px;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 0.5px;
    max-width: 800px;
    margin: 0 auto 20px;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

#author {
    font-style: italic;
    font-size: 20px;
    opacity: 0.9;
    margin-top: 15px;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

.button-container {
    position: absolute;
    bottom: 20%;
    left: 50%;
    transform: translate(-50%, 50%);
}

.button-container button {
    padding: 12px 25px;
    font-size: 16px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    border-radius: 25px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 8px;
    animation: pulse 1.5s infinite;
}

.button-container button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.button-container button:active {
    transform: translateY(1px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.social-icons {
    position: absolute;
    bottom: 30px;
    display: flex;
    gap: 20px;
    align-items: center;
}

.social-icons a {
    color: white;
    font-size: 22px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-icons a:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

#musicControl {
    position: fixed;
    top: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 1000;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

#nextTrack {
    position: fixed;
    top: 20px;
    left: 80px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 1000;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

#musicControl:hover, #nextTrack:hover {
    transform: scale(1.1) translateY(-2px);
    background-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

#musicStatus, #nextTrack i {
    font-size: 24px;
    color: white;
}

#languageSelect {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 8px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

#languageSelect option {
    color: #D3D3D3; /* Cinza claro */
    background: #333; /* Fundo escuro para contraste */
}

#languageSelect:hover {
    background: rgba(255, 255, 255, 0.3);
}

.loading-indicator {
    position: absolute;
    width: 50px;
    height: 50px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 3px solid white;
    animation: spin 1s linear infinite;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 100;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes gradientAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.fade-in {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

.fade-out {
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.loading .loading-indicator {
    opacity: 1;
}

/* Responsividade */
@media (max-width: 768px) {
    .quote-container {
        padding: 30px 20px;
        width: 90%;
    }
    #quote { font-size: 24px; line-height: 1.3; }
    #author { font-size: 18px; }
    .button-container { bottom: 22%; }
    .social-icons { gap: 15px; }
    .social-icons a { width: 40px; height: 40px; font-size: 18px; }
    #languageSelect { top: 70px; font-size: 14px; }
}

@media (max-width: 480px) {
    #quote { font-size: 18px; }
    #author { font-size: 16px; }
    .social-icons a { width: 35px; height: 35px; font-size: 16px; }
    #musicControl, #nextTrack { width: 40px; height: 40px; }
    #languageSelect { top: 60px; font-size: 12px; }
}