@import url('https://fonts.googleapis.com/css2?family=Sarabun:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800&display=swap');

body {
    font-family: "Sarabun", sans-serif;
    font-style: normal;
    margin: 0;

    display: flex;
    flex-flow: column;
    height: 100vh;
}

header {
    background-color: #666;
    text-align: center;
    font-size: 35px;
    color: white;
    padding: 30px 0 30px 0;

    flex: 0 1 auto;
}


.content {
    display: flex;
    flex-flow: row;
    flex: 1 1 auto;
    min-height: 0;
}

nav {
    min-width: 250px;
    background: #ccc;
    padding: 20px;
    flex-grow: 1;
    overflow-y: auto;
}

nav ul {
    list-style-type: none;
    padding: 0;
}

nav ul li a {
    text-decoration: none;
    color: black;
    cursor: pointer;
}

article {
    padding: 20px;
    background-color: #f1f1f1;
    flex-grow: 4;
    overflow-y: auto;
}

footer {
    background-color: #777;
    padding: 10px 0 10px 0;
    color: white;
    flex: 0 1 auto;
    justify-content: center;
    display: flex;
}

.footer_div {
    width: fit-content;
}


@media (max-width: 600px) {
    .content {
        flex-direction: column;
    }

    nav {
        min-width: 100%;
        flex: 0 0 auto;
        max-height: auto;
        overflow-y: auto;
    }

    article {
        flex: 1 1 auto;
        min-height: 0;
    }
}
