* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* outline: 1px solid red; */
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    margin: 0;
}

.second-section {
    color: #000;
    text-align: center;
    background-image: url("../resources/img/about-second.webp");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 5rem 0;

    div {
        background-color: rgba(255, 255, 255, 0.75);
        padding: 5px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    h2 {
        text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.2);
    }

    p {
        max-width: 70ch;
        text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.1);
    }
}

.third-section {
    text-align: center;
    padding: 1.5rem;
    
    p {
        margin-bottom: 0;
    }
}

.fourth-section {
    margin: 0 auto;
    width: min(100%, 1440px);

    .fourth-section__item {
        display: flex;
        flex-direction: row;
        justify-content: center;

        div {
            width: 100%;
            align-self: center;
            padding: 1.5rem;

            h3 {
                text-align: center;
            }
        }

        img {
            width: 50%;
            max-height: 100%;
            object-fit: cover;
        }
    }

    @media(max-width: 576px) {
        .fourth-section__item {
            flex-direction: column-reverse;

            img {
                width: 100%;
                max-height: auto;
            }
        }

        #rev {
            flex-direction: column;
        }
    }
}

.fifth-section {
    text-align: center;
    padding: 1.5rem;

    h2 {
        margin-bottom: 0;
    }
}

@media(prefers-color-scheme: dark) {
    body {
        background-color: #222;
        color: #fff;
    }

    .second-section {
        color: #fff;

        div {
            background-color: rgba(0, 0, 0, 0.55);
            box-shadow: 0 0 4px rgba(255, 255, 255, 0.1);
        }

        p {
            text-shadow: 1px 1px 1px rgba(255, 255, 255, 0.1)
        }
    }

    h2 {
        text-shadow: 1px 1px 1px rgba(255, 255, 255, 0.2);
    }
}