* {
    border: 0;
    margin: 0;
    font-family: 'subtitulo';
    font-weight: 100;
    box-sizing: border-box;
}

body {
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
    padding: 20px;
}

#title {
    text-align: center;
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.materia {
    /* padding: 20px; */
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.materia h2 {
    font-family: 'titulo';
    font-size: 3rem;
}

.infos {
    width: 70%;
}

.categoria {
    display: flex;
    position: relative;
    top: 30px;
}

.categoria h6 {
    background-color: black;
    color: white;
    margin: 5px;
    padding: 3px 5px;
}

.outras-infos {
    display: flex;
    justify-content: space-between;
    color: #ababab;
    font-weight: normal;
    font-size: 0.8rem;
    position: relative;
    top: -10px;
}

.materia-em-si {
    width: 70%;
    text-align: justify;
    margin-top: 10px;
}

.materia-em-si p {
    margin: 10px 0;
    color: #222222;
}

#porque {
    font-weight: bold;
}

.italic {
    font-style: italic;
}

main hr {
    width: 100%;
}

.gostou {
    width: 70%;
}

.gostou p {
    margin-top: 10px;
}

.email-link {
    text-decoration: none;
    color: #222222;
}

.email-feedback {
    margin: 16px 0;
    background-color: #eef5ff;
    padding: 12px 16px;
    border-radius: 6px;
    display: inline-block;
    font-family: Arial, sans-serif;
    transition: 0.5s;
    box-shadow: 0 5px 5px #c1d1d1;
}

.email-link {
    text-decoration: none;
    color: #222222;
    font-weight: bold;
    font-size: 15px;
}

.email-feedback:hover {
    transform: translateY(-5px);
}

.email-link i {
    margin-right: 8px;
    color: #222222;
}

.b {
    font-weight: bold;
}

.img {
    width: 70%;
}

.img-centro {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.img img {
    width: 100%;
}

.img p {
    font-size: 0.8rem;
    color: #727272;
    font-style: italic;
    position: relative;
    top: -5px;
}

.opiniao-exemplo {
    background-color: #f9f9f9;
    border-left: 5px solid #222222;
    padding: 16px 20px;
    margin: 20px 0;
    border-radius: 8px;
    font-family: Arial, sans-serif;
    text-align: start;
}

.opiniao-exemplo h4 {
    margin-top: 0;
    color: #222222;
    font-size: 18px;
}

.opiniao-exemplo blockquote {
    font-style: italic;
    color: #333;
    margin: 10px 0;
    padding-left: 15px;
    border-left: 3px solid #ccc;
}

.opiniao-exemplo .resposta {
    margin-top: 10px;
    color: #555;
    font-size: 14px;
}


/* Mobile devices (up to 600px) */
@media (max-width: 600px) {
    header {
        flex-direction: row;
        align-items: center;
        padding: 10px;
    }

    #logo {
        flex-direction: row;
        align-items: center;
    }

    #logo img {
        height: 60px;
    }

    header h1 {
        display: none;
    }

    #rede-social {
        display: none;
    }

    #info {
        display: none;
    }

    nav {
        display: none;
    }

    .hamburger {
        display: block;
    }

    #mobile-menu.active {
        display: flex;
        position: relative;
        top: -10px;
    }

    i {
        font-size: 1.2rem;
    }

    .hr-header {
        display: none;
    }
}

/* Tablets (601px to 1024px) */
@media (min-width: 601px) and (max-width: 1024px) {
    header h1 {
        font-size: 3rem;
    }

    #logo img {
        height: 70px;
    }

    nav a {
        font-size: 0.95rem;
    }
}

@font-face {
    font-family: 'titulo';
    src: url('Carelia-Upright.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'subtitulo';
    src: url('OpenDyslexic-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

* {
    border: 0;
    margin: 0;
    font-family: 'subtitulo';
    font-weight: 100;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    background-color: black;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    flex-wrap: wrap;
}

#logo {
    display: flex;
    align-items: center;
    flex: 1;
}

#logo img {
    height: 5rem;
    /* Usar rem para escalar com base na fonte base */
    max-width: 100%;
}

header h1 {
    color: white;
    font-family: 'titulo';
    font-size: clamp(2rem, 8vw, 3.5rem);
    /* Tamanhos de fonte responsivos */
    margin-left: 1rem;
    line-height: 1;
}

#rede-social {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0.5rem;
    gap: 1rem;
}

i {
    color: white;
    font-size: 1.5rem;
}

#info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 2rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

#info h4,
#data {
    font-weight: 100;
    font-family: 'subtitulo';
    font-size: clamp(0.8rem, 2.5vw, 1rem);
}

nav {
    padding: 1rem;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 0.5rem;
}

nav a {
    color: black;
    text-decoration: none;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    padding: 0.5rem 1rem;
}

nav a:hover {
    font-weight: bold;
}

hr {
    border: 1px solid #ababab;
    margin: 0 1rem;
}

main {
    flex: 1;
    padding: 2rem;
}

footer {
    background-color: black;
    color: white;
    text-align: center;
    padding: 1rem;
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

#siga-avalanche {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
    padding: 0.5rem;
}

#mobile-menu {
    display: none;
    flex-direction: column;
    background-color: black;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem;
    z-index: 1000;
}

#mobile-menu.active {
    display: flex;
}

#mobile-menu a {
    color: white;
    text-decoration: none;
    padding: 0.75rem;
    font-size: clamp(0.9rem, 3vw, 1.1rem);
}

#mobile-menu a:hover {
    background-color: #333;
}

#mobile-menu .social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding: 0.75rem;
}

#avalanche {
    background-image: url('avalanche-literal.gif');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    min-height: 10rem;
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.materia {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
    max-width: 1200px;
    /* Limite máximo para telas grandes */
}

.materia h2 {
    font-family: 'titulo';
    font-size: clamp(1.5rem, 6vw, 2.5rem);
    /* Responsive font size */
    text-align: center;
    word-wrap: break-word;
    /* Allows text to wrap */
    margin: 0.5rem 0;
    /* Reduced margin */
}

.infos {
    width: 100%;
    max-width: 90%;
}

.categoria {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    position: relative;
    top: 1rem;
    margin-bottom: -0.5rem;
    /* Adjust to give space to title */
}

.categoria h6 {
    background-color: black;
    color: white;
    margin: 0.3rem;
    padding: 0.3rem 0.5rem;
    font-size: clamp(0.7rem, 2vw, 0.9rem);
}

.outras-infos {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    color: #ababab;
    font-weight: normal;
    font-size: clamp(0.7rem, 2vw, 0.8rem);
    position: relative;
    top: -0.5rem;
    margin-top: -0.5rem;
    /* Reduce overlap with title */
}

.materia-em-si {
    width: 100%;
    max-width: 90%;
    text-align: justify;
    margin-top: 1rem;
}

.materia-em-si p {
    margin: 0.75rem 0;
    color: #222222;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
}

#porque {
    font-weight: bold;
}

.italic {
    font-style: italic;
}

main hr {
    width: 100%;
    margin: 1rem 0;
}

.gostou {
    width: 100%;
    max-width: 90%;
    text-align: center;
}

.gostou p {
    margin-top: 0.75rem;
}

.email-link {
    text-decoration: none;
    color: #222222;
}

.email-feedback {
    margin: 1rem 0;
    background-color: #eef5ff;
    padding: 0.75rem 1rem;
    border-radius: 0.4rem;
    display: inline-block;
    font-family: Arial, sans-serif;
    transition: transform 0.3s;
    box-shadow: 0 0.3rem 0.3rem #c1d1d1;
}

.email-link {
    font-weight: bold;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
}

.email-feedback:hover {
    transform: translateY(-0.3rem);
}

.email-link i {
    margin-right: 0.5rem;
    color: #222222;
}

.b {
    font-weight: bold;
}

.img {
    width: 100%;
    max-width: 90%;
}

.img img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.img p {
    color: #727272;
    font-style: italic;
    position: relative;
    top: -0.3rem;
}

.opiniao-exemplo {
    background-color: #f9f9f9;
    border-left: 0.3rem solid #222222;
    padding: 1rem 1.25rem;
    margin: 1rem 0;
    border-radius: 0.5rem;
    font-family: Arial, sans-serif;
}

.opiniao-exemplo h4 {
    margin-top: 0;
    color: #222222;
    font-size: clamp(1rem, 3vw, 1.2rem);
}

.opiniao-exemplo blockquote {
    font-style: italic;
    color: #333;
    margin: 0.5rem 0;
    padding-left: 0.75rem;
    border-left: 0.2rem solid #ccc;
}

.opiniao-exemplo .resposta {
    margin-top: 0.5rem;
    color: #555;
    font-size: clamp(0.8rem, 2.5vw, 0.9rem);
}

/* Mobile devices (up to 600px) */
@media (max-width: 600px) {
    header {
        padding: 0.5rem 1rem;
    }

    #logo img {
        height: 3.5rem;
    }

    header h1 {
        display: none;
    }

    #rede-social {
        display: none;
    }

    #info {
        display: none;
    }

    nav {
        display: none;
    }

    .hamburger {
        display: block;
    }

    #mobile-menu.active {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    #mobile-menu a {
        font-size: clamp(1rem, 4vw, 1.2rem);
        padding: 1rem;
    }

    .hr-header {
        display: none;
    }

    .materia h2 {
        font-size: clamp(1.5rem, 5vw, 2rem);
    }

    .infos,
    .materia-em-si,
    .gostou,
    .img {
        max-width: 95%;
    }

    .materia h2 {
        margin: 20px 0;
    }
}

/* Tablets (601px to 1024px) */
@media (min-width: 601px) and (max-width: 1024px) {
    header h1 {
        font-size: clamp(2rem, 6vw, 3rem);
    }

    #logo img {
        height: 4.5rem;
    }

    nav a {
        font-size: clamp(0.85rem, 2.5vw, 0.95rem);
    }

    .materia h2 {
        font-size: clamp(1.8rem, 5vw, 2.2rem);
    }

    .infos,
    .materia-em-si,
    .gostou,
    .img {
        max-width: 95%;
    }
}

/* Large screens (above 1024px) */
@media (min-width: 1025px) {
    .materia {
        padding: 2rem;
    }
}

.coisas {
    display: flex;
    flex-direction: column;
}

.coisas a {
    text-decoration: none;
    color: white;
}