/* General Styles */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    display: grid;
    grid-template-areas:
        "header header"
        "nav article";
    grid-template-columns: 250px 1fr;
    grid-template-rows: auto 1fr;
    height: 100vh;
}

/* Header Styles */
header {
    grid-area: header;
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 1rem;
}

/* Header title */
header h1 a {
    color: white;
    text-decoration: none;
}

/* Navigation Styles */
nav {
    grid-area: nav;
    background-color: #34495e;
    color: white;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

nav a {
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
}

nav a:hover {
    text-decoration: underline;
}

/* Article Styles */
article {
    grid-area: article;
    padding: 2rem;
    background-color: #ecf0f1;
}

article div#error_message {
    width: 100%;
    background-color: red;
    color: white;
    padding: 5px 10px;
    font-size: 120%;
    font-weight: bold;
}


article div#message {
    width: 100%;
    background-color: green;
    color: white;
    padding: 5px 10px;
    font-size: 120%;
    font-weight: bold;
}

textarea#frm_memo {
    width: 95%;
    min-height: 300px;
}

details {
    max-width: 600px;
    margin-top: 10px;
    padding: 10px;
    border: 1px solid #CCCCCC;
    border-radius: 5px;
    background-color: white;
}

summary {
    margin-top: 10px;
    padding: 20px 10px 10px 10px;
    border: 1px solid #CCCCCC;
    border-radius: 5px;
    background-color: CCCCCC;
}

header .menu-toggle {
    display: none;
}

/* Responsive Design for Smaller Screens */
@media (max-width: 768px) {
    body {
        grid-template-areas:
            "header"
            "article";
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
    }

    nav {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        transform: translateY(-100%);
        transition: transform 0.3s ease-in-out;
        background-color: #34495e;
        z-index: 20;
    }

    nav.open {
        transform: translateY(0);
    }

    nav .nav_item {
        padding: 1rem;
        text-align: center;
    }

    header {
        left: 0;
        top: 0;
        height: 50px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    header h1 {
        margin: 0;
        font-size: 1.5rem;
    }

    header small {
        position: absolute;
        top: 30px;
        right: 70px;
    }

    header button.menu-toggle {
        position: absolute;
        display: block;
        top: 20px;
        right: 20px;
        font-size: 1.5rem;
        color: white;
        background: none;
        border: none;
        cursor: pointer;
        z-index: 30;
    }
}
