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

body {
    font-family: 'Roboto', sans-serif;
    background-color: #f4f4f4;
    margin-top: 80px; /* Compensa a altura do header fixo */
}

header {
    background-color: #fff;
    padding: 10px 40px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: fixed; /* Fixa o header no topo da página */
    top: 0; /* Posiciona o header alinhado ao topo */
    width: 100%; /* Faz o header ocupar toda a largura da página */
    z-index: 1000; /* Garante que ele fique acima dos outros elementos */
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    max-height: 70px;
    margin-right: 20px;
}

.search-bar input {
    width: 500px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 30px;
    font-size: 16px;
}

nav ul {
    list-style-type: none;
    display: flex;
    align-items: center;
    gap: 20px;
}

nav ul li a {
    text-decoration: none;
    color: #000;
    font-weight: bold;
    font-size: 16px;
}

.cadastre-btn {
    background-color: #00bf63;
    color: #000;
    border: none;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 14px;
}

/* Estilização do Menu de Matérias */
.category-menu {
    padding: 20px 0;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
    margin: 20px 0;
}

.category-menu ul {
    list-style-type: none;
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 10px;
}

.category-menu ul li {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.category-menu ul li img {
    width: 36px;
    height: 36px;
    margin-bottom: 5px;
}

.category-menu ul li a {
    text-decoration: none;
    color: #000;
    font-weight: bold;
    font-size: 14px;
}

.mostrar-mais-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
}

.mostrar-mais-wrapper span {
    font-size: 14px;
    color: #000;
    font-weight: bold;
    letter-spacing: 0.5px;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    padding: 10px 20px;
    cursor: pointer;
}

.extra-materias {
    display: none;
}

/* Estilos do conteúdo principal */
main {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.chat-container {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    width: 80%;
}

.question-card, .answer-card {
    margin-bottom: 20px;
}
.question-ans{
color: #999;
}
.user-info {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.user-info img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}

.username {
    font-weight: bold;
}

.time {
    color: #999;
    font-size: 0.9em;
}

.question-text, .answer-text {
    font-size: 1em;
    margin-bottom: 15px;
}

.comment-box input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 10px;
    margin-top: 10px;
}

.ver-resposta {
    background-color: #00bf63;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 14px;
    cursor: pointer;
    margin-top: 10px;
}

.ver-resposta:hover {
    background-color: #0ad372;
}