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

body {
    position: relative;
    background-color: #2B1025;
    color: white;
    font-family: Arial, sans-serif;

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

.menu-toggle {
    display: none;
    position: fixed;
    top: 1rem;
    left: 1rem;
    background: rgb(110, 52, 42);
    color: white;
    border: none;
    padding: 0.8rem 1.2rem;
    font-size: 2rem;
    border-radius: 6px;
    cursor: pointer;
    z-index: 100;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}



header {
    background-color: #F95738;
    padding: 35px 20px;
    text-align: center;
    border-bottom: 4px solid #F4D35E;
}

header h1 {
    color: white;
    font-size: 38px;
    margin-bottom: 10px;
}

header p {
    color: white;
    font-size: 16px;
}

.voltar {

    background-color: #000000;
    width: 90px;
    height: 90px;
    font-size: 20px;
    z-index: 10000;



}



nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 200px;
    height: 110vh;
    margin-top: -7px;
    margin-left: -2px;
    padding: 1.5rem;
    background-image: url("../imagens/bg1.png");
    background-repeat: repeat;
    background-size: cover;
    background-position: center;
    background-color: #692a23;
    box-shadow: 0 0 25px #000000;
    z-index: 50;
    overflow-y: auto;
    transition: transform 0.3s ease;
    border: 6px solid #D5AB21;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
}

nav a:hover {
    color: #F4D35E;
}

.tbotoes {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.botoes {
    width: 100%;
    background-color: rgb(199, 164, 154);
    border: 4px solid #46253c;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding: 1rem;
    transition: transform 0.3s ease-in-out;
    min-height: 120px;
}

.tbotoes p {
    color: rgb(7, 0, 15);
    text-decoration: none;
    font-family: fantasy;
    text-align: center;
    margin-top: 0.5rem;
    font-size: 1rem;
}

.botoes img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 10px;
    margin-bottom: 0.5rem;
}

.botoes:hover {
    transform: scale(1.06);
    background-image: linear-gradient(130deg, rgb(250, 250, 250), rgb(199, 164, 154));
}

.img_logo {
    width: 60px;
    height: 60px;
    background-image: url(imagens/logo.png);
    background-size: cover;
}

main {
    width: 100%;
    max-width: 1400px;
    margin: 40px auto;
    padding: 30px;

}

.personalidades {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
}



.pessoa {
    background-color: #C7A49A;
    color: #2B1025;
    padding: 20px;

    border: 3px solid #F4D35E;
    border-radius: 10px;

    text-align: center;
    transition: 0.3s;
}

.pessoa:hover {
    transform: translateY(-5px);
    border-color: #F95738;
}

.pessoa img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 7px;
}

.pessoa h2 {
    margin-top: 15px;
    font-size: 22px;
}



footer {
    background-color: #692A23;
    padding: 30px;

    text-align: center;
    color: #C7A49A;

    width: 100%;
    margin-top: auto;
    left: 50%;
    border-top: 3px solid #F4D35E;
    border-left: 3px solid #692A23;
    border-right: 3px solid #692A23;
}

.popup {
    position: fixed;

    top: -50%;
    left: -50%;
    transform: translate(-50%, -50%);

    width: min(800px, calc(100vw - 30px));
    height: min(500px, calc(100dvh - 30px));

    background-color: white;
    color: black;

    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);

    padding: 20px;
    overflow-y: auto;

    z-index: 1000;
}

.popup h1 {
    text-align: center;
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: clamp(20px, 4vw, 30px);
}

.popup button {
    position: absolute;
    top: 10px;
    right: 10px;
}

.popup p {
    margin-top: 50px;
    text-align: justify;
    font-size: clamp(14px, 2vw, 20px);
    line-height: 1.5;
}

@media (max-width: 1024px) {


    .personalidades {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 35px;
    }


    nav {
        transform: translateX(-100%);
        width: 250px;
    }

    nav.active {
        transform: translate(0);
    }

    main {
        margin-left: 200px;
        margin-right: 1rem;
    }

    .botoes {
        min-height: 100px;
    }

}

@media (max-width: 768px) {


    .personalidades {
        display: grid;
        grid-template-columns: 1;

    }


    .menu-toggle {
        display: block;
    }

    nav {
        transform: translateX(-100%);
        width: 250px;
    }

    nav.active {
        transform: translate(0);
    }

    main {
        margin-left: 1rem;
        margin-right: 1rem;
        margin-top: 5rem;
    }

    header {
        padding: 1rem;
    }

    .tbotoes {
        margin-top: 4rem;
    }

}

@media (max-width: 480px) {
    header h1 {
        font-size: 2rem;
    }

    main {
        padding: 1rem;
        border-width: 5px;
    }

    .botoes {
        min-height: 90px;
        padding: 0.8rem;
    }

    .botoes img {
        width: 50px;
        height: 50px;
    }
}