body {
    background-color: #0d0d0d;
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}
.container {
    width: 100%;
    max-width: 600px;
    padding: 0 20px;
    box-sizing: border-box;
}
.discord-section {
    background-color: #1a1a1a;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.discord-card {
    display: flex;
    flex-direction: column;
    width: 100%;
}
.discord-user-info-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 20px;
}
.avatar-container {
    position: relative;
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}
.discord-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}
.status-indicator {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    position: absolute;
    bottom: 0;
    right: 0;
    border: 3px solid #1a1a1a;
}
.status-indicator.online { background-color: #2ecc71; }
.status-indicator.idle { background-color: #f1c40f; }
.status-indicator.dnd { background-color: #e74c3c; }
.status-indicator.offline { background-color: #7f8c8d; }
.discord-info {
    margin-left: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.user-emblems {
    display: flex;
    align-items: center;
    gap: 5px;
}
.emblem {
    width: 20px;
    height: 20px;
}
.username {
    font-weight: bold;
    font-size: 1.1em;
    white-space: nowrap;
    color: #fff;
}
.status {
    font-size: 0.85em;
    color: #a0a0a0;
    white-space: nowrap;
}
.github-link {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 5px;
}
.github-icon {
    color: #fff;
    font-size: 0.9em;
    transform: translateY(1px);
}
.github-url {
    font-size: 0.9em;
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}
.github-url:hover {
    color: #ccc;
}
.discord-rich-presence {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background-color: #242424;
    border-radius: 8px;
    width: 100%;
    box-sizing: border-box;
}
#presence-game + #presence-music {
    margin-top: 10px;
}
.activity-icon-container {
    position: relative;
    width: 50px;
    height: 50px;
    flex-shrink: 0;
}
.activity-icon {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    object-fit: cover;
}
.activity-icon-small {
    position: absolute;
    bottom: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 3px solid #242424;
    object-fit: cover;
}
.activity-text-container {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    overflow: hidden;
}
.activity-name {
    font-size: 0.9em;
    font-weight: bold;
    color: #fff;
}
.activity-details-line1,
.activity-details-line2 {
    font-size: 0.9em;
    color: #b9bbbe;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.activity-elapsed-container {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 2px;
    font-size: 0.85em;
    color: #b9bbbe;
}
.music-progress-container {
    margin-top: 5px;
}
.music-progress-bar {
    width: 100%;
    height: 4px;
    background-color: #4a4a4a;
    border-radius: 2px;
    overflow: hidden;
}
.music-progress-fill {
    height: 100%;
    background-color: #fff;
    width: 0%;
    border-radius: 2px;
}
.music-timestamps {
    display: flex;
    justify-content: space-between;
    font-size: 0.75em;
    color: #a0a0a0;
    margin-top: 3px;
    font-family: monospace;
}
.add-discord-btn {
    background-color: #5865f2;
    color: #fff;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
    text-decoration: none;
    white-space: nowrap;
}
.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}
.social-button {
    background-color: #2c2f33;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    color: #fff;
    transition: background-color 0.3s;
    text-decoration: none;
}
.social-button:hover {
    background-color: #4b4f57;
}

@media (max-width: 640px) {
    .discord-user-info-container {
        flex-direction: column; /* Empilha os itens verticalmente */
        gap: 15px;              /* Adiciona um espaço entre os itens empilhados */
        text-align: center;     /* Centraliza todo o texto */
    }

    .discord-info {
        align-items: center; /* Centraliza o conteúdo dentro da div de info */
        margin-left: 0;      /* Remove a margem que só era necessária na versão de PC */
    }
    
    .user-info {
        justify-content: center; /* Garante que nome e emblemas fiquem centralizados */
    }

    .github-link {
        justify-content: center; /* Centraliza o link do github */
    }

    .add-discord-btn {
        width: 100%; /* Faz o botão ocupar a largura toda, dando um visual melhor */
        box-sizing: border-box; /* Garante que o padding não quebre o layout */
    }

    .container {
        padding: 0 15px; /* Reduz um pouco o espaçamento nas laterais do site */
    }

    /* Ajuste no tamanho do texto da Rich Presence para telas pequenas */
    .activity-name,
    .activity-details-line1,
    .activity-details-line2 {
        font-size: 0.85em;
    }
}