/* RESET E CONFIGURAÇÕES BÁSICAS */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #222;
    color: #eee;
    line-height: 1.6;
}

a {
    color: #fcce00;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #81f165;
}

/* HEADER */
header {
    background-color: #111;
    padding: 20px 0;
    text-align: center;
    border-radius: 10px;
}

header h1 {
    color: #fcce00;
    font-size: 2.5em;
    margin-bottom: 0.5em; 
}

nav {
    background-color: #111; 
    padding: 10px 0;
}

nav a.back-button {
    display: inline-block;
    padding: 8px 15px;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    color: #fcce00;
    transition: background-color 0.3s ease;
}

nav a.back-button:hover {
    background-color: rgba(0, 0, 0, 0.2);
}

nav a.back-button i {
    margin-right: 5px;
}


/* CONTEÚDO PRINCIPAL */
main.post {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background-color: #333;
    border-radius: 8px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
}

main.post article h2 {
    color: #fcce00;
    font-size: 2em;
    margin-bottom: 15px;
}

main.post article h3 {
    color: #fcce00;
    font-size: 1.5em; 
    margin-top: 25px; 
    margin-bottom: 10px;
}

main.post article p {
    margin-bottom: 15px;
}

main.post article ul {
    list-style-type: disc;
    margin-left: 40px;
    margin-bottom: 15px;
}

main.post article li {
    margin-bottom: 8px;
} 

a {
    text-decoration: none;
    color: #333; 
    position: relative;
    overflow: hidden;
}

a::before {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    background-color: #fcce00; 
    bottom: 0;
    left: 0;
    transition: width 0.3s ease; 
}

a:hover::before {
    width: 100%;
} 

nav  {
    text-align: left;
    border-radius: 12px;
}

/* FOOTER */
footer {
    background-color: #111;
    padding: 20px 0;
    text-align: center;
    margin-top: 40px;
}

footer p {
    font-size: 0.9em;
    color: #fcce00;
}

/* Botão "Voltar ao Topo" */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
    background: #3d3d3d;
    color: #fcce00;
    border: none;
    border-radius: 5px;
    padding: 10px 15px;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.back-to-top:hover {
    opacity: 1;
}

.back-button:hover {
    transform: scale(1.25);  /* Aumenta um pouco o botão ao passar o mouse */
}


/* ESTILOS RESPONSIVOS */
@media (max-width: 768px) {
    header h1 {
        font-size: 2em;
    }

    main.post {
        margin: 10px;
        padding: 15px;
    }
}