#mainFlex{
    --margin:calc(30px + var(--topBarOffset));

    margin:30px var(--margin);

    width:calc(100vw - var(--margin) * 2);
    /* On desktop, this div will overlap with the bottom of the logo (because it sticks out.) */
    /* It should still keep block display and not be position:absoluted because on mobile, the article content should wiggle down when you open up the options.*/
    
    /* This line here moves it out of the way. */
    transform:translateY(calc(var(--logoHeight) - var(--topBarHeight)));
    z-index:-1;
    display:flex;
    gap:20px;
    flex-direction:row;
    padding-bottom:100px;
    font-family:Sans-serif;
    --articleWidth:calc(100vw - var(--margin) * 2 - 100px);
    min-height:calc(100vh - 430px);
    --previewIntrude:min(400px,40%);
}

#previewTab{
    width:var(--previewIntrude);
}

#article{
    display:flex;
    flex-direction:column;
    width:calc(100% - var(--previewIntrude));
    gap:50px;
    padding-bottom:100px;
}

blockquote{
    font-style:italic;
    opacity:0.4;
}

button{
	transition:color 0.2s, box-shadow 0.1s linear, transform 0.1s linear, background-color 0.1s linear;
    outline:none;
    border:none;
    border-radius:0px;
    box-shadow:-10px 10px var(--topShadowColour);
    transform:translate(5px, 0px);
	cursor:pointer;
    font-size:inherit;
    background-color:var(--topBarColour);
    color:black;
    width:calc(100% - 10px);
    height:calc(100% - 10px);
}

.buttonParent{
    width:100px;
    min-height:40px;
    display:flex;
    justify-content:center;
}

.buttonParent:hover > button{
    color:white;
    background-color:var(--topButtonColour);
    box-shadow: 0px 0px var(--topShadowColour);
    transform:translate(0px, 5px);
}

button:active{
    color:black;
    background-color:white;
}

input::placeholder{
    font-style: italic;
}

input{
    padding:0px 10px;
    width:100%;
    font-size:inherit;
}

#comment{
    --margin:20px;
    margin:0px var(--margin);
    padding:0px var(--margin);
    width:calc(min(100%,900px) - var(--margin) * 3);
    background-color:var(--topButtonColour);
    color:white;
    font-size:inherit;
}

#morePreviews{
    width:100%;
    cursor:pointer;
    user-select:none;
    padding-bottom:50px;
}


#article a {
    color:#ff4444;
}
#article a:visited {
    color:#aa00aa;
}
#article a:hover {
    color:#ff4444;
    font-weight:bold;
}

#morePreviews img{
    width:20px;
}

#text img{
    max-width:var(--articlewidth);
    max-height:300px;
    text-align:center;
}

#text{
    margin:0px 20px;
    padding: 0px 23px;
    background-color:white;
    box-shadow:-1px 0px black;
    font-size:inherit;
}

i {
    opacity:0.4;
}

#date{
    font-size:0.4em;
    font-weight:thin;
    font-style: italic;
}

@media (max-width:1000px) or (max-device-aspect-ratio:2/3){
    #mainFlex{
        flex-direction:column;
        gap:100px;
        --previewIntrude:0px;
    }
    #previewTab{
        width:100%;
    }
}

@media (max-width:1200px) or (max-device-aspect-ratio:2/3){
    #mainFlex{
        --margin:30px;
    }
    #article{        
        padding-bottom:0px;
    }
}

@media (max-device-aspect-ratio:2/3){
    #article{
        font-size:40px;
    }
    .buttonParent{
        width:200px;
        height:80px;
        display:flex;
        justify-content:center;
    }
}
