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

body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    transition: background-color 0.3s, color 0.3s;
}

body.dark-mode {
    background-color: #1a1a1a;
    color: #e0e0e0;
}

/* Header */
.header {
    background-color:#135dd4; 
    border-bottom: 2px solid #1e90ff;
    padding: 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-name {
    font-size: 1.8rem;
    background: linear-gradient(90deg, #1e90ff 0%, #ffffff 50%, #1e90ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.6));
}

.site-name-link {
    text-decoration: none;
}

.site-name-link:hover .site-name {
    opacity: 0.8;
}

.contact-link {
    color: #1e90ff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.contact-link:hover {
    color: #135dd4;
}

/* conteudo principal */
.main-container {
    max-width: 1400px;
    margin: 2rem auto;
    display: grid;
    grid-template-columns: 200px 1fr 200px;
    gap: 2rem;
    padding: 0 1rem;
}

/* barra lateral esquerda */
.left-sidebar {
    position: sticky;
    top: 5rem;
    height: fit-content;
}

.navigation ul {
    list-style: none;
}

.navigation li {
    margin-bottom: 1rem;
}

.navigation a {
    text-decoration: none;
}

.navigation a:hover {
    text-decoration: underline;
}

/* conteudo central */
.center-content {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    transition: background-color 0.3s, color 0.3s;
}

body.dark-mode .center-content {
    background-color: #2a2a2a;
    color: #e0e0e0;
}

.lore-text h1 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #1e90ff;
}

body.dark-mode .lore-text h1 {
    color: #4fa3ff;
}

.lore-text h2 {
    font-size: 1.4rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: #1e90ff;
}

body.dark-mode .lore-text h2 {
    color: #4fa3ff;
}

.lore-text p {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 1rem;
    text-align: justify;
}

.periods-list {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.periods-list li {
    margin-bottom: 0.5rem;
    font-size: 15px;
    line-height: 1.6;
}

/* config da direita */
.right-sidebar {
    position: sticky;
    top: 5rem;
    height: fit-content;
}

.settings {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    transition: background-color 0.3s, color 0.3s;
}

body.dark-mode .settings {
    background-color: #333;
    color: #e0e0e0;
}

.settings h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #1e90ff;
}

body.dark-mode .settings h3 {
    color: #4fa3ff;
}

.setting-group {
    margin-bottom: 1.5rem;
}

.setting-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
}

.mode-btn,
.font-btn {
    display: inline-block;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    padding: 0.5rem 0.75rem;
    border: 2px solid #ddd;
    background-color: #f0f0f0;
    color: #333;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.85rem;
    font-weight: 500;
}

body.dark-mode .mode-btn,
body.dark-mode .font-btn {
    background-color: #444;
    color: #e0e0e0;
    border-color: #555;
}

.mode-btn:hover,
.font-btn:hover {
    border-color: #1e90ff;
    color: #1e90ff;
}

body.dark-mode .mode-btn:hover,
body.dark-mode .font-btn:hover {
    border-color: #4fa3ff;
    color: #4fa3ff;
}

.mode-btn.active,
.font-btn.active {
    background-color: #1e90ff;
    color: #fff;
    border-color: #1e90ff;
}

body.dark-mode .mode-btn.active,
body.dark-mode .font-btn.active {
    background-color: #4fa3ff;
    color: #1a1a1a;
}

/* Font size classes */
body.font-small .lore-text p,
body.font-small .periods-list li {
    font-size: 11px;
}

body.font-medium .lore-text p,
body.font-medium .periods-list li {
    font-size: 15px;
}

body.font-large .lore-text p,
body.font-large .periods-list li {
    font-size: 20px;
}

/* Responsividade */
@media (max-width: 1024px) {
    .main-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .left-sidebar,
    .right-sidebar {
        position: relative;
        top: 0;
    }

    .left-sidebar {
        display: none;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 0.5rem;
    }

    .site-name {
        font-size: 1.4rem;
    }

    .main-container {
        margin: 1rem auto;
    }

    .center-content {
        padding: 1rem;
    }
}
