section {
    font-size: 120%;
    padding: 1% 1% 1% 1%;
}

article {
    border-radius: 8px;
    background-color: var(--Crust);
    color: var(--Text);
    font-size: 120%;
    padding: 2% 2%;
    margin: 0;
}


#np_button {
    color: white;
    text-align: center;
    text-decoration: none;
    text-align: center;
    font-size: 85%;
}

.np_button {
    background: var(--Blue);
    float: right;
    width: 210px;
    border-radius: 8px;
}

form {
    background-color: var(--Surface0);
    color: black;
    border: 3px solid var(--Overlay0);
    border-radius: 5px;
    padding: 35px;
    width: 100%;
    display: flex;
    flex-flow: column nowrap;
}

input {
    display: inline-block;
    background-color: var(--Base);
    color: black;
    border: 1px solid var(--Crust);
    border-radius: 4px;
    margin: 8px 0;
    padding: 12px 20px;
    width: 100%;
}

textarea {
    background-color: var(--Base);
    color: black;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin: 8px 0;
    height: 350px;
    width: 100%;
}

.button {
    background-color: var(--Blue);
    color: white;
    border: none;
    border-radius: 4px;
    margin: 8px 0;
    padding: 14px 20px;
    width: 100%;
    cursor: pointer;
}

.button:is(:focus, :hover),
.np_button:is(:focus, :hover) {
    background-color: var(--Lavender);
}

.success {
    text-align: center;
    color: var(--Green);
}

.fail {
    text-align: center;
    color: var(--Red);
}


/***********************/
/* Popup functionality */
/* Popup Button */
.openBtn {
    display: flex;
    justify-content: flex-start;
    gap: 2px;
    margin-bottom: 2px;
}

.openButton {
    background-color: var(--Blue);
    border: none;
    border-radius: 5px;
    color: white;
    padding: 14px 20px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}

.openButton:is(:focus, :hover) {
    box-shadow: -3px -3px var(--Sky);
}

.uploadPopup {
    text-align: center;
    width: 100%;
}

.formPopup {
    display: none;
    border-radius: 8px;
    z-index: 9;
    margin-bottom: 2px;
}

.formContainer {
    background-color: var(--Surface0);
    max-width: 100%;
    padding: 20px;
}

.formContainer input[type=text],
.formContainer input[type=password] {
    width: 100%;
    padding: 15px;
    margin: 5px 0 20px 0;
    border: none;
    background: #eee;
}

:is(.formContainer input[type=text],
    .formContainer input[type=password]):focus {
    background-color: #ddd;
    outline: none;
}

.formContainer .btn {
    padding: 12px 20px;
    border: none;
    background-color: var(--Green);
    color: white;
    cursor: pointer;
    width: 100%;
    margin-bottom: 15px;
    opacity: 0.8;
}

.formContainer .cancel {
    background-color: var(--Red);
    color: white;
}

.formContainer .btn:hover {
    background-color: var(--Teal);
}

.openButton:hover {
    background-color: var(--Lavender);
}

img {
    display: flex;
    width: 60%;
    justify-content: center;
    align-items: center;
}

#showHelp {
    display: none;
}

.code_block {
    display: block;
    white-space: pre-wrap;
}

/* Blog Posts */
/* Page Title */
article>h2 {
    text-align: center;
    margin: 0;
}

/* Post Title */
.post {
    background-color: var(--Base);
    border-radius: 12px;
    margin-top: 1%;
    padding-bottom: 2%;
}

.post_heading {
    color: white;
    background-color: var(--Subtext1);
    border-top-right-radius: 12px;
    border-top-left-radius: 12px;
    padding: 1em;
}

.post_heading h3 {
    margin: 0;
}

.post_heading h3>a {
    color: white;
    text-decoration: none;
    width: 100%;
}

.post_heading h3>a:is(:hover, :focus) {
    background-color: var(--Maroon);
    color: white;
    width: 100%;
}

.post_heading small {
    font-size: 0.7em;
}

/* Post Content */
article>div>p {
    display: flex;
    font-size: 0.8em;
}

.post_content {
    background-color: var(--Base);
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    padding: 0 2% 0 2%;
}

.post_content h1 {
    font-size: 1.2em;
}

.post_content h2 {
    font-size: 1.1em;
}

.post_content h3 {
    font-size: 1.0em;
}

.post_content h4 {
    font-size: 0.9em;
}

.post_content :is(ul>li, ol>li, p) {
    font-size: 20px;
}

.image_div {
    display: flex;
    justify-content: center;
    align-items: center;
}

.truncated {
    display: -webkit-box;
    -webkit-line-clamp: 12;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/***********************/

/* Medium Devices (landscape tablets, 960px and up) */
@media only screen and (min-width: 960px) {
    section {
        width: 100%;
    }

    form,
    .mainForm {
        flex: 0 0 auto;
        margin: 0 auto;
        min-width: 670px;
        max-width: 751px;
    }
}

/* Large Devices (laptops/desktops, 1080w and up) */
@media only screen and (min-width: 1080px) {
    section {
        width: 100%;
    }

    form,
    .mainForm {
        flex: 0 0 auto;
        margin: 0 auto;
        min-width: 752px;
        max-width: 900px;
    }
}
