* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Open Sans', Arial, sans-serif;
}

h1, h2, h3, h4, h5, h6, .nav a {
    font-family: Arial, sans-serif;
    font-weight: 700;
}

.code-block, code, pre {
    font-family: sans-serif;
}

body {
    background-color: #233669;
    color: #190f30;
    line-height: 1.5;
    padding: 0px 7.5px 0px 7.5px;
    max-width: 970px;
    margin: 50px auto;
}

/* Cabeçalho e navegação */
header {
    text-align: center;
    margin-bottom: 30px;
}

header h1 {
    color: #2db9f0;
    font-size: 2.7em;
    margin-bottom: 30px;
}

header h1 span {
    color: #8dc8ff;
}

nav {
    background-color: #ebf4ff;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 20px;
}

nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

nav li {
    margin: 5px;
}

nav a {
    color: #2c5282;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background-color 0.3s;
    display: inline-block;
}

nav a:hover {
    background-color: #c7d2fe;
}

nav a.ativo {
    background-color: #4299e1;
    color: white;
}

/* Seções principais */
section {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

section h2 {
    color: #083e77;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
}

/* Hero - seção principal */
.hero {
    text-align: center;
    background-color: #ebf4ff;
    padding: 40px 20px;
}

.hero h2 {
    font-size: 1.8em;
    margin-bottom: 15px;
    border-bottom: none;
}

.hero p {
    margin-bottom: 25px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.btn {
    background-color: #4299e1;
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #3182ce;
}

.btn.secondary {
    background-color: transparent;
    border: 2px solid #4299e1;
    color: #4299e1;
}

.btn.secondary:hover {
    background-color: #ebf4ff;
}

/* Grid de recursos */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.feature-item {
    background-color: #f7fafc;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #4299e1;
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.feature-title {
    font-weight: bold;
    margin-bottom: 10px;
    color: #2b6cb0;
}

/* Código e exemplos */
.code-block {
    background-color: #1a202c;
    color: #e2e8f0;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    font-family: monospace;
    margin: 15px 0;
}

/* Ajuste para listas */
ul, ol {
    margin-left: 20px;
    margin-bottom: 15px;
}

li {
    margin-bottom: 5px;
}

/* Rodapé */
hr {
    border: none;
    border-top: 1px solid #e2e8f0;
    margin: 30px 0 20px;
}

footer {
    text-align: center;
    padding: 20px;
    background-color: #f5f8ff;
    border-radius: 8px;
}

.footer-links {
    margin-top: 15px;
}

.footer-links a {
    color: #095b9e;
    text-decoration: none;
    margin: 0 10px;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* Media para responsividade */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
    }
    
    nav li {
        margin: 3px 0;
    }
    
    nav a {
        display: block;
        text-align: center;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn {
        display: block;
        text-align: center;
    }
}

/* Elementos de destaque */
.note {
    background-color: #ebf4ff;
    padding: 15px;
    border-left: 4px solid #4299e1;
    margin: 15px 0;
}

strong {
    color: #2b6cb0;
}

em {
    color: #3182ce;
    font-style: italic;
}

.correct {
    color: green;
    padding: 20px 0;
}

.wrong {
    color: red;
    padding: 20px 0;
}

.fluxograma {
    width: 400px;
    max-width: 100%;   
    height: auto;
    display: block;
    margin: 20px auto;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
/* Limita o tamanho da imagem em telas grandes */
@media (min-width: 769px) {
    .fluxograma {
        max-width: 600px;
    }
}

/* Estilo visual para a legenda dos fluxogramas */
dl {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 25px;
    margin: 20px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

dt {
    font-weight: 600;
    color: #495057;
    font-size: 16px;
    margin-top: 15px;
    margin-bottom: 5px;
    border-bottom: 2px solid #007bff;
    padding-bottom: 3px;
    display: inline-block;
}

dt:first-child {
    margin-top: 0;
}

dd {
    margin-left: 20px;
    margin-bottom: 12px;
    color: #6c757d;
    font-size: 15px;
    font-style: italic;
    padding-left: 10px;
    border-left: 3px solid #e9ecef;
}
.exercicio {
    background: white;
    margin: 20px 0;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.exercicio h3 {
    color: #333;
    margin-top: 0;
}
textarea {
    width: 100%;
    height: 120px;
    margin: 10px 0;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    resize: vertical;
}
button {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin: 5px;
    font-size: 14px;
}
button:hover {
    background-color: #45a049;
}
button:nth-child(even) {
    background-color: #2196F3;
}
button:nth-child(even):hover {
    background-color: #1976D2;
}
.resultado {
    margin: 10px 0;
    padding: 10px;
    border-radius: 4px;
    font-weight: bold;
}
code {
    background-color: #f1f1f1;
    padding: 2px 4px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
}
