nav .menu-nav {
    display: flex;
    list-style: none;
}

nav .menu-nav li {
    margin: 0 1rem;
}

.main-font {
    font-family: 'Roboto Condensed', sans-serif;
}

.content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin: 1rem;
    border-radius: 5%;
}

.content img {
    margin: 1rem;
    border-radius: 5%;
    box-shadow: 3px 3px 3px #9b9b9b;
}

.content p {
    font-family: "IBM Plex Sans Thai", sans-serif;
    font-weight: 400;
    font-style: normal;
    color: #dfdfdf;
}

.content2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin: 5rem;
    border-radius: 5%;
    color: #ff0000;
}

@media (max-width: 768px) {
    nav .menu-nav {
        display: none;
        flex-direction: column;
    }
    
    nav .menu-nav.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
        cursor: pointer;
        font-size: 1.5rem;
    }

    .flex-container {
        flex-direction: column;
        align-items: center;
    }

    .content {
        width: 80%;
    }
}

@media (min-width: 769px) {
    .menu-toggle {
        display: none;
    }

    nav .menu-nav {
        display: flex;
    }

    .flex-container {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    .content {
        flex: 0 1 calc(25% - 2rem);
        margin: 2rem;
    }
}

a {
    text-decoration: none;
    color: #dfdfdf;
}

.slider {
    position: relative;
    margin-right: 2rem;
    width: 375px;
    height: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.slider img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 5%;
    box-shadow: 3px 3px 3px #9b9b9b;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slider img.active {
    opacity: 1;
}