/* articles.css */
html, body {
    font-family: Arial, sans-serif;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    background-color: #333;
}

header h1 {
    margin: 0;
    padding-bottom: 5px;
}

header h2 {
    margin: 0;
    padding-bottom: 5px;
}

header hr {
    width: 80%;
    margin: 0 auto;
    color: greenyellow;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
}

nav ul li a:hover {
    color: greenyellow;
}

section {
    margin-bottom: 2rem;
}

.social-buttons {
    align-content: center;
    display: inline;
    gap: 10px;
}

.social-buttons a {
    text-decoration: none;
    color: white;
    padding: 10px;
    border-radius: 50%;
    display: inline-block;
}

.linkedin {background: #0077B5;}
.github {background: #000080;}
.reddit {background: #FF4500;}
.instagram {background: #E4405F;}

.fa:hover {
    opacity: 0.75;
}

main h1 {
    text-align: center;
    padding-top: 0;
    padding-bottom: 0;
}

.postedon {
    text-align: center;
    font-style: italic;
    padding-top: 0;
}

main p {
    text-indent: 30px;
}

/* Desktop & Tablets */
@media screen and (min-width:801px) {
    header {
        float: left;
        position: fixed;
        box-sizing: border-box;
        width: 275px;
        height: 93vh;
        background-color: #333;
        color: #fff;
        padding: 1rem 0;
        text-align: center;
    }

    nav {
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    nav ul {
        list-style-type: none;
        padding: 0;
    }
    
    nav ul li {
        margin: 20px 0;
        text-align: center;
        font-size: large;
    }

    main {
        height: 100%;
        margin-left: 275px;
        padding: 30px;
        flex: 1;
        box-sizing: border-box;
        text-align: left;
        background-color: #f5f5f5;
    }

    main img {
        max-width: 80%;
        height: auto;
        max-height: 80vh;
    }

    footer {
        float: left;
        width: 275px;
        height: 7vh;
        background-color: #333;
        color: #fff;
        text-align: center;
        padding: 1rem 0;
        position: fixed;
        bottom: 0;
    }
}

/* Mobile Devices */
@media screen and (max-width:800px) {
    header {
        background-color: #333;
        color: #fff;
        padding-top: 10px;
        text-align: center;
    }

    nav {
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    nav ul {
        list-style: none;
        padding: 0;
    }
    
    nav ul li {
        display: inline;
        margin: 0 1rem;
    }

    main {
        padding: 1rem 2rem;
        box-sizing: border-box;
        text-align: left;
        flex: 1;
        background-color: #f5f5f5;
    }

    main img {
        max-width: 100%;
        height: auto;
        max-height: 100vh;
        align-items: center;
    }

    footer {
        background-color: #333;
        color: #fff;
        text-align: center;
        padding: 0.5em 0;
        width: 100%;
        bottom: 0;
    }
}

/* Code Windows */

.code-container {
    position: relative;
    border: 1px solid #333;
    padding: 10px;
    border-radius: 5px;
    background-color: #333;
    color: #f5f5f5;
    margin: 20px 0;
}

.header {
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.code-container hr {
    width: 97%;
    margin: 5 auto;
    color: greenyellow;
}

.copy-button {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    border: none;
    background-color: greenyellow;
    color: #333;
    cursor: pointer;
    border-radius: 3px;
}

.copy-button:hover {
    background-color: green;
}

pre {
    margin: 0;
    overflow-x: auto;
    white-space: pre;
    font-size: 12pt;
}