* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

h1, h2, h3, h4 {
    font-family: 'Orbitron', sans-serif;
}

body {
    padding-bottom: 60px;
    font-family: 'Exo 2', sans-serif;
    min-height: 500px;
    background-image: url("../images/backpattern.jpg");
    background-attachment: fixed;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

#grid-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: auto auto auto auto; 
    grid-template-areas:
        "nav nav"
        "header header"
        "main aside"
        "footer footer";
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    gap: 20px;
    padding: 20px;
    background-color: black;
    border-radius: 12px;
}

.nav-area       { grid-area: nav; }
.header-area    { grid-area: header; }
.main-area      { grid-area: main; }
.aside-area     { grid-area: aside; }

.footer-area    { 
    grid-area: footer; 
    background: black;
    color: white;
    padding: 15px;
    text-align: center;
    border-top: 3px solid #D40000;
}

.nav-area {
    display: flex;
    justify-content: center; 
    background: #3d3d3d;
    padding: 15px 20px;
    border-radius: 8px;
    border-bottom: 3px solid #D40000;
}

.logo {
    height: 200px;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 25px;
}

.nav-menu a {
    text-decoration: none;
    padding: 10px 16px;
    font-weight: bold;
    border-radius: 6px;
    color: white;
}

.nav-menu a:hover {
    background: #D40000;
    color: white;
}

.header-area {
    background: black;
    padding: 20px;
    border-radius: 6px;
    border: 1px solid #ddd;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
}

.main-area,.aside-area {
    background: rgb(0, 0, 0);
    padding: 20px;
    border-radius: 6px;
    border: 1px solid #D40000;
    color: white;
}

.main-area img {
    width: 95%;
    max-width: 700px;
    display: block;
    margin: 15px auto;
    border-radius: 12px;
    object-fit: cover;
}

.divider {
    margin: 20px 0;
    border: none;
    border-top: 1px solid #D40000;
}

.main-area h2,.main-area p {
    text-align: center;
}

.aside-area {
    text-align: center;
}

.aside-area h3,.aside-area h4,.aside-area p {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

@media screen and (max-width: 800px) {
    #grid-container {
        grid-template-columns: 1fr;
        grid-template-areas:
            "nav"
            "header"
            "main"
            "aside"
            "footer";
        width: 95%;
        max-width: none;
    }
}

@media screen and (max-width: 700px) {
    body {
        background-image: none;
        background-attachment: scroll;
    }

    #grid-container {
        width: 100%;
        max-width: none;
        border-radius: 0;
    }
}