/*@charset "UTF-8"; */

html, body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

body.modal-open {
    overflow: hidden;
}

header {
    background-color: #222;
    color: white;
    padding: 20px;
    text-align: center;
}
  
nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    background-color: #333;
    transition: max-height 0.4s ease;
    overflow: hidden;
}

nav a {
    color:white;
    padding: 14px 20px;
    text-decoration: none;
    display: block;
}

nav a:hover {
    background-color: #444;
}

.menu-toggle {
    display: none;
    background-color: #333;
    color: white;
    border: none;
    padding: 14px;
    font-size: 18px;
    cursor: pointer;
}

.container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 20px;
    max-width: 900px;
    margin: auto;
    background-color: white;
}

.arcticle-preview {
    border-bottom: 1px solid #ccc;
    margin-bottom: 20px;
    padding-bottom: 10px;
}

.arcticle-preview h2 {
    margin: 0;
}

.full-article h2 {
    border-bottom: 2px solid #eee;
    padding-bottom: 5px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    margin: 20px 0;
}

table,th,td {
    border: 1px solid #ddd;
}

th,td {
    padding: 10px;
    text-align: left;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 40px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.7);
}
  
.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 900px;
    max-height: 90%;
    overflow-y: auto;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}
  
.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}
  
.close-button:hover {
    color: black;
}

footer {
    text-align: center;
    padding: 20px;
    background-color: #222;
    color: white;
    margin-top: auto;  
}

@media (max-width:600px) {
    nav {
        flex-direction: column;
        max-height: 0;
    }

    nav.show {
        max-height: 500px; /*Enough for 5 items*/
    }

    .menu-toggle {
        display: block;
        width: 100%;
        text-align: left;
    }
   
    nav a {
        padding: 10px;
        font-size: 14px;
    }

    .container {
        padding: 10px;
    }

    table,th,td{
        font-size: 14px;
    }
    h1 {
        font-size: 24px;
    }
}