* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #7b9acc;
    background-image: url('../assets/skyisland.jpg');
    background-attachment: fixed;
    background-size: cover;
}

body.homepage {
    min-height: 100vh;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    padding: 50px;
    animation: homepageSlider 120s infinite;
    display: flex;
    justify-content: center;
    align-items: center;
}

@keyframes homepageSlider {
    0%, 100% { background-image: url('../assets/signalspires.jpg'); }
    33%      { background-image: url('../assets/skyisland.jpg'); }
    66%      { background-image: url('../assets/rivluna.jpg'); }
}

/* 3 column asymmetric layout*/
div.container {
    display: grid;
    grid-template-columns: 260px minmax(320px, 800px) 0.4fr; 
    gap: 30px;
    width: 100%;
    max-width: 1600px;
    height: 85vh; 
    margin: 0 auto;
    background-color: transparent; 
}

div.content {
    width: 100%;
    height: 85vh;
}

div.blogcontent {
    width: 100%;
    height: 100%;
    overflow-y: auto;
}

div.main-wrapper {
    width: 1000px;
    margin: 0 auto;
}

div.blog-wrapper {
    display: grid;
    grid-template-columns: 0.9fr auto;
    height: 100vh;
    max-width: 1000px;
    margin: auto;
    overflow-y: hidden;
    position: relative;
}

div.list-wrapper {
    margin:auto;
    max-width:1000px;
    height: 100vh;
}

div.lists {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    padding: 10px;
}

div.listitem {
    background-color: #fffbdb;
    border: solid 4px #0f2340;
    max-width: 400px;
    height: 300px;
    max-height: 500px;
    overflow-y: auto;
    padding: 10px;
}

aside {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100%;
    overflow-y: auto; 
}

aside.blog {
    display: flex;
    position: relative;
}

header.sidebar, nav.sidebarlinks {
    background-color: #f0f4f8; 
    border: 2px solid #b0c4de;  
    border-radius: 4px;
}

header.sidebar {
    display: block;
    padding: 15px;
}

header.sidebar h1, img{
    color: #2b4c7e;          
    font-size: 1.5rem;
    letter-spacing: 2px;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

header.contenttabs {
    display: flex;
    flex-direction: row;
    gap: 20px;
    background-color: #d9f1ff;
    border: solid #b0c4de;
    padding: 10px 20px;
    margin: 20px;
}

header.contenttabs a {
    background-color: #e4f0ff;
    text-decoration: none;
    padding: 5px;
    border: solid #0f2340;
}

header.rightnav {
    background-color: #abedf5;
    display: flex;
    flex-wrap: wrap;
    width: fit-content;
    margin: auto;
}

header.rightnav a {
    padding: 5px;
}

nav.sidebarlinks {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 15px;
}

nav.sidebarlinks a {
    font-size: 1.2rem;
    text-decoration: none;
}
nav.sidebarlinks h2 {
    color: #7b9acc;           
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 10px 0 5px 5px;
}

a.homebutton {
    display: flex;
    position: static;
    margin: 20px;
    padding: 5px;
    width: fit-content;
    border: 2px solid #0f2340;
    background-color: #b0c4de;
    text-decoration: none;
}

.navbutton {
    display: block;
    text-align: center;
    text-decoration: none;
    font-size: 0.95rem;
    letter-spacing: 2px;
    padding: 12px 16px;
    color: #2b4c7e;
    background-color: #e1e8f0; 
    border: 1px solid #b8c9dc;
    border-radius: 3px;
}

.navbutton:hover {
    background-color: #d2e0f0;  
    color: #1a365d;
    cursor: pointer;
}

.navbutton:active {
    background-color: #c5d6e8;
    color: #0f2340;          
}

main {
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: #fbfcfd;
    border: 2px solid #b0c4de;
    border-radius: 4px;
    overflow-y: auto;
}

article {
    flex: 1;
    padding: 30px;
    overflow-y: auto; 
    color: #334155;          
    line-height: 1.7;
}

article h2 {
    margin-bottom: 15px;
    font-weight: 600;
    font-size: 2.5rem;
    letter-spacing: 1px;
    color: #2b4c7e;
}

article p {
    font-size: 1.5rem;
}

footer {
    padding: 15px;
    background-color: #e6eef4; 
    border-top: 2px solid #b0c4de;
    color: #7b9acc;
    font-size: 0.8rem;
    text-align: center;
    letter-spacing: 1px;
}

div.empty {
    /* empty block for stuff*/
}

@media (max-width: 1024px) {
    div.container {
        grid-template-columns: 240px 1fr; 
    }
    div.empty { display: none; }
}

@media (max-width: 768px) {
    body {
        padding: 10px;
        height: auto;
    }

    div.container {
        display: flex;
        flex-direction: column;
        height: auto;
        gap: 20px;
        padding: 15px;
    }

    aside {
        height: auto;
    }

    main {
        height: auto;
        order: -1;
        min-height: 400px;
    }



    .main-wrapper {
        max-width: fit-content;
    }

    .content {
        display: block;
    }

    a.homebutton {
        margin: 0;
        margin-left: auto;
        margin-right: auto;
        position: static;
    }
}