/* Estilos para A Entropia da Terra */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    height: 100%;
    overflow: hidden;
    font-family: 'JetBrains Mono', monospace;
    background: #000;
    cursor: none;
    font-size: 14px; /* Base font size */
    font-weight: 300;
}

#canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000;
}

.particle {
    position: absolute;
    pointer-events: none;
    opacity: 1; /* Removida a transparência */
}

.cursor {
    position: fixed;
    width: 16px;
    height: 16px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1000;
    transition: all 0.08s ease;
    mix-blend-mode: difference;
}

.author-credit {
    position: fixed;
    top: 20px;
    right: 20px;
    color: rgba(255, 255, 255, 1); /* Removido efeito de transparência */
    font-size: 14.4px; /* Increased by 20% from 12px */
    font-weight: 400;
    letter-spacing: 1px;
    z-index: 100;
    cursor: pointer;
    transition: color 0.3s ease;
}

.author-credit:hover {
    color: rgba(255, 255, 255, 1);
}

.country-selector {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 100;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.selector-icon {
    width: 20px;
    height: 20px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    stroke: rgba(255, 255, 255, 0.8);
    stroke-width: 1;
    fill: none;
    margin-right: 10px;
}

.country-name-header {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16.8px; /* Increased by 20% from 14px */
    transition: color 0.3s ease;
    text-transform: capitalize;
}

.country-selector:hover .selector-icon,
.country-selector:hover .country-name-header {
    opacity: 1;
    color: rgba(255, 255, 255, 1);
}

.country-dropdown {
    position: absolute;
    top: 40px; /* Adjusted for larger font */
    left: 0;
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 8px 0;
    min-width: 220px; /* Increased for continent headers */
    max-height: 400px; /* Increased for more content */
    overflow-y: auto;
    backdrop-filter: blur(12px);
    display: none;
    z-index: 101;
}

/* Estilo para separadores de continente */
.continent-separator {
    height: 1px;
    margin: 4px 0;
    background-color: rgba(255, 255, 255, 0.1);
}

.country-option {
    padding: 7px 14px; /* Adjusted */
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    font-size: 14px; /* Adjusted */
    transition: background 0.2s ease;
    text-transform: capitalize;
}

.country-option:hover {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 1);
}

.footer-info {
    position: fixed;
    bottom: 20px;
    left: 20px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    z-index: 100;
    font-weight: 300;
    opacity: 0;
}

.country-name {
    cursor: pointer;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.3);
    transition: color 0.3s ease;
    text-transform: capitalize;
}

.country-name:hover {
    color: rgba(255, 255, 255, 0.9);
}

.language-link {
    position: fixed;
    bottom: 20px;
    right: 20px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 12px;
    text-decoration: none;
    transition: color 0.3s ease;
    z-index: 100;
}

.language-link:hover {
    color: rgba(255, 255, 255, 0.8);
}

.poetry-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 500;
    display: none;
    cursor: pointer;
}

.poetry-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 600px;
    padding: 40px;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    line-height: 1.8;
    font-size: 17px;
    font-weight: 300;
}

.poetry-text {
    margin-bottom: 30px;
    font-style: italic;
}

/* Renomeado de poetry-attribution para poetry-credit para corresponder ao HTML */
.poetry-credit {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 20px;
    font-weight: 400;
}

.poetry-credit a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    border-bottom: 1px dotted rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
}

.poetry-credit a:hover {
    color: rgba(255, 255, 255, 1);
    border-bottom-color: rgba(255, 255, 255, 0.8);
}

.loading {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    z-index: 200;
    text-align: center;
    font-weight: 300;
}

.about-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    z-index: 600;
    display: none;
    cursor: pointer;
    overflow-y: auto;
}

.about-content {
    position: relative;
    max-width: 600px;
    margin: 60px auto;
    padding: 30px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    font-size: 13px;
    font-weight: 300;
}

.about-section {
    margin-bottom: 20px;
}

.about-section-title {
    font-size: 14px;
    margin-bottom: 10px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
}

.about-content strong {
    font-weight: 600;
    color: rgba(255, 255, 255, 1);
}

.about-footer {
    margin-top: 30px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    text-align: left;
}

.keyboard-instructions {
    position: fixed;
    bottom: 20px;
    left: 20px;
    display: flex;
    z-index: 100;
    opacity: 1; /* Removido efeito de transparência */
    transition: opacity 0.3s ease;
    font-size: 12px;
    color: rgba(255, 255, 255, 1); /* Removido efeito de transparência */
    gap: 30px; /* Adicionado espaço entre as instruções */
}

.keyboard-instructions:hover {
    opacity: 1;
}

.key-instruction {
    display: flex;
    align-items: center;
    gap: 8px;
}

.key-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 4px;
    font-size: 14px;
    color: rgba(255, 255, 255, 1); /* Removido efeito de transparência */
}

.key-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 1); /* Removido efeito de transparência */
}

.key-separator {
    margin: 0 8px;
    color: rgba(255, 255, 255, 1); /* Removido efeito de transparência */
    display: none; /* Removida a barra separadora */
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.9; }
}

.loading {
    animation: pulse 2s ease-in-out infinite;
}

/* Responsividade para mobile */
@media (max-width: 768px) {
    .footer-info, .country-name-header, .author-credit, .language-link {
        font-size: 13px;
    }
    
    .poetry-content {
        max-width: 95%; /* Aumentado de 90% para 95% para ocupar mais espaço nas laterais */
        padding: 25px 15px; /* Reduzido o padding para ocupar mais espaço */
        font-size: 14px; /* Reduzido de 15px para 14px */
    }
    
    .poetry-text {
        line-height: 1.6; /* Reduzido o espaçamento entre linhas para melhor leitura em telas pequenas */
    }
    
    .poetry-credit {
        font-size: 12px; /* Reduzido de 13px para 12px */
        padding-top: 15px; /* Reduzido o espaçamento */
    }
    
    .about-content {
        max-width: 95%; /* Aumentado para ocupar mais espaço */
        padding: 20px 15px;
        margin: 30px auto;
        font-size: 12px;
    }
    
    .cursor {
        display: none;
    }

    .country-dropdown {
        min-width: 180px;
    }
    .keyboard-instructions {
        display: none; /* Hide keyboard instructions on mobile */
    }
    
    .footer-info {
        bottom: 60px; /* Adjust footer position to avoid overlap with keyboard instructions */
    }
}

/* Suporte para touch */
@media (hover: none) and (pointer: coarse) {
    .cursor {
        display: none;
    }
}

/* Scrollbar customizada */
.country-dropdown::-webkit-scrollbar,
.about-overlay::-webkit-scrollbar {
    width: 4px;
}

.country-dropdown::-webkit-scrollbar-track,
.about-overlay::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

.country-dropdown::-webkit-scrollbar-thumb,
.about-overlay::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

