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

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
}

header {
    background-color: rgb(57, 136, 240);
    color: rgb(252, 252, 252);
    padding: 40px 20px;
    text-align: center;
}

main {
    background-color: rgb(240, 248, 255);
    flex: 1;
    padding: 48px 20px;
    width: 100%;
}

about-section,
hobbies,
contact {
    display: block;
    background-color: rgb(255, 255, 255);
    width: 90%;
    max-width: 900px;
    margin: 0 auto 40px auto;
    padding: 40px 20px;
    border-radius: 12px;
}

#titulo-sobre-mim,
#titulo-meus-hobbies {
    font-size: 2rem;
    border-bottom: 2px solid rgb(43, 129, 228);
    margin-bottom: 20px;
    padding-bottom: 8px;
}

.texto-sobre-mim {
    font-size: 1rem;
    line-height: 1.5;
}

ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

li {
    background-color: rgb(106, 173, 250);
    padding: 12px;
    border-left: 4px solid rgb(43, 129, 228);
    font-size: 16px;
    min-width: 200px;
    border-radius: 12px;
    text-align: center;
}

li:hover {
    background-color: rgb(43, 129, 228);
    transform: translateX(5px);
    transition: all 0.5s ease;
}

contact h2 {
    margin-bottom: 30px;
    font-size: 25px;
    text-align: center;
    border-bottom: 1px solid rgb(43, 129, 228);
}

contact p {
    text-align: center;
    font-size: 18px;
}

contact a {
    color: rgb(43, 129, 228);
    text-decoration: none;
    font-weight: bold;
    padding: 0.5rem 1rem;
    margin: 0.5rem;
    border: 2px solid rgb(43, 129, 228);
    border-radius: 25px;
    display: inline-block;
    transition: all 0.5s ease;
}

contact a:hover {
    background-color: rgb(43, 129, 228);
    color: white;
    transform: translateY(-2px);
}

footer {
    text-align: center;
    background-color: rgb(43, 129, 228);
    color: white;
    padding: 20px;
    width: 100%;
}

footer p {
    font-size: 18px;
    margin: 5px 0;
}

/* RESPONSIVIDADE */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.8rem;
    }

    #titulo-sobre-mim,
    #titulo-meus-hobbies {
        font-size: 1.5rem;
    }

    ul {
        flex-direction: column;
        align-items: center;
    }

    li {
        width: 90%;
        min-width: unset;
    }

    contact a {
        display: block;
        width: fit-content;
        margin: 10px auto;
    }
}

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

    header p {
        font-size: 1rem;
    }

    .texto-sobre-mim,
    contact p {
        font-size: 16px;
    }

    li {
        font-size: 14px;
        padding: 10px;
    }
}
