/* 
|--------------|
|default styles|
|--------------|
*/

h1, h2, h3, p, nav ul figure{
    margin: 0;
    padding: 0;
    /* this removes default margin/padding 
    from these elements. You might want to add
    a few others in here.*/   
}

img {
    display: block;
    max-width: 100%;
    height: auto;
    /* this sets images as block elements
    and makes sure they don't bust out of 
    their containers, and that they maintain
    their aspect ratio. */
}
    
nav ul {
    list-style-type: none;
    /* gets rid of bullets */
}

a{
    color: #7F0050;
}


.ribeye-marrow-regular {
    font-family: "Ribeye Marrow", serif;
    font-weight: 400;
    font-style: normal;
}
/* 
|-----------|
|main styles|
|-----------|
*/
@media only screen and (max-width: 600px) {
    /*

    index

    */
    /************ base rules ************/
    #index{
        width: 90%;
        margin: auto;
        padding: 15px;
        background: url(images/main/f-bg.jpg);
        color: #42001C;
        font-family: Rambla;
    }

    #index #page{
        border: 3px solid #FFCCFF;
    }

    a{
        color: #7F0050;
    }


    /************ header rules ************/

    #index #page header{
        background: #FFE0FF;

        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 10px;
    }
    /*title*/
    #index #page header #blogtitle{
        font-family: "Ribeye Marrow", serif;
        
        flex: 1;
    }
    /*nav*/
    #index #page header nav{
        background: #FFCCFF;
        border: 3px solid #FFBBFF;
        padding: 5px;
        width: calc(100% - 10px);

        flex: 1;
    }
    #index #page header nav ul{
        margin: auto;
        display: flex;
        justify-content: space-evenly;
        gap: 10px;
    }
    #index #page header nav ul li{
        flex: 1;
    }


    /************ main rules ************/
    #index #page main{
        background: #FFE0FF;
        padding: 20px;

        display: flex;
        flex-direction: column-reverse;
        justify-content: center;
        align-items: center;
        gap: 20px;
    }
    /*articles*/
    #index #page main article{
        background: #FFCCFF;
        border: 3px solid #FFBBFF;
        width: 100%;

        flex: 1;

        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: flex-start;
        gap: 10px;
    }
    /*images*/
    #index #page main article figure{
        margin: 0;

        flex: 1;
    }
    /*content*/
    #index #page main article section{
        flex: 1;

        display: flex;
        flex-direction: column;
        gap: 5px;
    }
        /*title*/
    #index #page main article section h2{
        flex: 1;
    }
        /*date*/
    #index #page main article section time{
        flex: 1;
    }
        /*text*/
    #index #page main article section p{
        flex: 1;
    }


    /************ footer rules ************/
    #index #page footer{
        background: #FFCCFF;
        border: 3px solid #FFBBFF;
        padding: 5px;

        display: flex;
        justify-content: space-evenly;
    }





    /*

    post

    */

    #post{
        width: 90%;
        margin: auto;
        padding: 15px;
        background: url(images/main/f-bg.jpg);
        color: #42001C;
        font-family: Rambla;
    }

    a{
        color: #7F0050;
    }


    /************ header rules ************/

    #post #page header{
        background: #FFE0FF;
        border: 3px solid #FFCCFF;

        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 10px;
    }
    /*title*/
    #post #page header h1{
        flex: 1;
    }
    /*nav*/
    #post #page header nav{
        background: #FFCCFF;
        border: 3px solid #FFBBFF;
        width: 100%;

        flex: 1;
    }
    #post #page header nav ul{
        margin: auto;

        display: flex;
        justify-content: space-evenly;
        gap: 10px;
    }
    #post #page header nav ul li{
        flex: 1;
    }


    /************ header rules ************/

    #post #page main{
        padding-top: 20px;

        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 20px;
    }

    #post #page #mainright main #header{
        flex: 1;

        display: flex;
        flex-direction: column-reverse;
        gap: 5px;
    }

    #post #page #mainright main #header h1{
        background: #FFCCFF;
        border: 3px solid #FFBBFF;
        padding: 5px;
    }

    #post #page #mainright main #header #title{
        background: #FFCCFF;
        border: 3px solid #FFBBFF;

        flex: 1;

        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }

    #post #page #mainright main #header figure{
        margin: 0;
    }


    /************ main rules ************/

    #post #page main article{
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    #post #page main article #content{
        flex: 1;

        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    #post #page main article #content p{
        background: #FFCCFF;
        border: 3px solid #FFBBFF;
        padding: 5px;

        flex: 1;
    }

    /************ figure rules ************/

    #post #page main article #content div figure{
        margin: 0;
    }

    #post #page main article #content div div{
        display: flex;
        flex-direction: column;
        gap: 5px;
    }

    #post #page main article #content .tall{
        background: #FFCCFF;
        border: 3px solid #FFBBFF;
        padding: 5px;

        flex: 1;

        display: flex;
        flex-direction: column;
        gap: 5px;
    }

    #post #page main article #content .long{
        background: #FFCCFF;
        border: 3px solid #FFBBFF;
        padding: 5px;

        flex: 2;

        display: flex;
        flex-direction: column;
        gap: 5px;
    }

    /************ footer rules ************/

    #post #page footer{
        background: #FFCCFF;
        border: 3px solid #FFBBFF;
        width: 100%;
        margin-top: 10px;

        display: flex;
        justify-content: space-evenly;
    }
}




@media only screen and (min-width: 601px) {





    /*

    index

    */
    /************ base rules ************/
    #index{
        width: 90%;
        margin: auto;
        padding: 15px;
        background: url(images/main/f-bg.jpg);
        color: #42001C;
        font-family: Rambla;
    }

    #index #page{
        background: #FFE0FF;
        border: 3px solid #FFCCFF;
    }

    a{
        color: #7F0050;
    }

    /************ header rules ************/

    #index #page header{
        background: #FFE0FF;
        padding: 10px;
        height: 5em;

        position: relative;

        display: flex;
        flex-direction: column-reverse;
        justify-content: center;
    }
    /*title*/
    #index #page header #blogtitle{
        /*background: url(images/main/f-bg.jpg);*/
        width: 59%;
        

        flex: 1;

        display: flex;
        justify-content: center;
        align-items: center;
        font-family: "Ribeye Marrow", serif;
    }
    #index #page header h1{
        width: fit-content;
        height: fit-content;
        padding: 5px;
        white-space: nowrap;
    }
    /*nav*/
    #index #page header nav{
        background: #FFCCFF;
        border: 3px solid #FFBBFF;
        padding: 5px;
        max-width: 33%;
        min-width: min-content;

        position: absolute;
        top: calc(-5% + 3px);
        right: calc(0.1% - 3px); 
    }
    #index #page header nav ul{
        margin: auto;
        padding: 5px;
        padding-left: 10px;
        padding-right: 10px;

        display: flex;

        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
    }
    #index #page header nav ul li{
        margin: auto;
        white-space: nowrap;
        margin-bottom: 10px;

        flex: 1;
    }
    #index #page header nav ul li:nth-child(4){
        margin-bottom: 0;

        grid-column-end: 3;
    }
    #index #page header nav ul li:nth-child(5){
        margin-bottom: 0;
    }
    
    #index #page header nav ul li a:hover{
        color: #992272;
    }


    /************ main rules ************/
    #index #page main{
        padding: 20px;

        display: grid;
        grid-template-columns: repeat(6, 1fr);
        gap: 20px;

        grid-template-areas: 
        "a a b b c c"
        "d e e f f g";
    }
    /*articles*/
    #index #page main article{
        background: #FFCCFF;
        border: 3px solid #FFBBFF;
        width: 100%;
        aspect-ratio: 2 / 1;

        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 10px;
    }
    #index #page main #history{grid-area: f;}
    #index #page main #semantics{grid-area: e;}
    #index #page main #comparative{grid-area: c;}
    #index #page main #layout{grid-area: b;}
    #index #page main #design{grid-area: a;}
    /*images*/
    #index #page main article figure{
        margin: 0;
        border-right: 3px solid #FFBBFF;
        aspect-ratio: 1 / 1;
        width: 50%;
        height: 100%;

        flex: 1;
    }
    #index #page main article figure img{
        aspect-ratio: 1 / 1;
        width: 100%;
        height: 100%;
    }
    /*content*/
    #index #page main article section{
        aspect-ratio: 1 / 1;
        width: 50%;

        flex: 1;

        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }
        /*title*/
    #index #page main article section h2{
        margin-bottom: 2.5px;
    }
        /*date*/
    #index #page main article section time{
        margin-bottom: 5px;
    }
        /*text*/
    #index #page main article section p{
        max-width: 90%;
    }
        /*read more*/
    #index #page main article section a{
        background: #FFBBFF;
        border: 3px solid #FFAAFF;
        display: block;
        width: fit-content;
        padding: 5px;
        margin: auto auto 0 auto;
    }
        #index #page main article section a:hover{
            background: #FFAAFF;
            border: 3px solid #FFAAFF;
            color: #992272;
        }


    /************ footer rules ************/
    #index #page footer{
        background: #FFCCFF;
        border: 3px solid #FFBBFF;
        padding: 5px;
        padding-left: 10px;
        padding-right: 10px;
        width: fit-content;
        margin-left: auto;
        margin-right: auto;

        display: flex;
        justify-content: space-evenly;
        align-items: center;
        gap: 10px;
    }

    #index #page footer a{
        flex: 1;
        white-space: nowrap;
    }
    #index #page footer a:hover{
        color: #992272;
    }

    #index #page footer p{
        flex: 1;
        white-space: nowrap;
    }






    /*

    post

    */

    #post{
        width: 100%;
        margin: auto;
        background: url(images/main/f-bg.jpg);
        color: #42001C;
        font-family: 'Rambla';
    }

    a{
        color: #7F0050;
    }

    /************ header rules ************/
    #post #page #fix{
        width: 100%;

        position: fixed;
        z-index: 5;
    }

    #post #page #fix header{
        background: #FFE0FF;
        padding: 10px;
        height: 7em;
        border: 3px solid #FFCCFF;
        width: 100%;

        position: relative;

        display: flex;
        flex-direction: column-reverse;
        justify-content: center;
    }
    /*title*/
    #post #page header #blogtitle{
        /*background: url(images/main/f-bg.jpg);*/
        width: 59%;
        

        flex: 1;

        display: flex;
        justify-content: center;
        align-items: center;
        font-family: "Ribeye Marrow", serif;
        font-size: xx-large;
    }
    #post #page header h1{
        background: #FFE0FF;
        width: fit-content;
        height: fit-content;
        padding: 5px;
    }
    /*nav*/

    /*small*/
    #post #page header #smallnav{
        background: #FFCCFF;
        border: 3px solid #FFBBFF;
        padding: 5px;
        width: 15%;

        position: absolute;
        top: calc(-5% + 3px);
        right: calc(1%);
    }
    #post #page header #smallnav ul{
        margin: auto;

        display: flex;
        justify-content: space-evenly;
        gap: 20px;
    }
    #post #page header #smallnav ul li{
        margin: auto;

        flex: 1;
    }

    /*large*/
    #post #page header nav{
        background: #FFCCFF;
        border: 3px solid #FFBBFF;
        padding: 5px;

        position: absolute;
        top: calc(-5% + 3px);
        right: calc(1.5%);
    }
    #post #page header nav ul{
        margin: auto;
        padding: 5px;
        padding-left: 10px;
        padding-right: 10px;

        display: flex;
        justify-content: space-evenly;
        gap: 20px;
    }
    #post #page header nav ul li{
        margin: auto;
        white-space: nowrap;

        flex: 1;
    }

    /************ title rules ************/

    /*#post #page #fix{

        display: flex;
        flex-direction: column;
        gap: 5px;
        justify-content: center;
        align-items: center;

        position: fixed;
        top: 0;
        left: 0;
        
    }*/

    #post #page main #header{
        width: 33%;

        flex: 1;

        position: fixed;
        top: calc(7em + 31px);
        left: 0.75%;

        display: flex;
        flex-direction: column-reverse;
        gap: 5px;
        justify-content: center;
        align-items: center;
    }

    #post #page main #header h1{
        background: #FFCCFF;
        border: 3px solid #FFBBFF;
        padding: 5px;
        width: calc(100% - 10px);
        text-align: center;
    }

    #post #page main #header figure{
        margin: 0;
        width: 100%;
        border: 3px solid #FFBBFF;
    }

    #post #page main #title{
        background: #FFCCFF;
        border: 3px solid #FFBBFF;
        width: 100%;

        flex: 1;

        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }

    /************ main rules ************/

    #post #page #mainright{
        padding-right: 0.75%;
        display: flex;
        justify-content: end;
    }

    #post #page main{
        padding-top: calc(7em + 31px);
        width: 65%;
        margin-top: auto;

        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 20px;
    }

    #post #page main article{
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    #post #page main article #content{
        flex: 1;

        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    #post #page main article #content p{
        background: #FFCCFF;
        border: 3px solid #FFBBFF;
        padding: 10px;
        line-height: 1.5;

        flex: 1;
    }

    #content:last-child{
        margin-bottom: 10px;
    }

    blockquote{
        background: #FFCCFF;
        border: 3px solid #FFBBFF;
        padding: 5px;
        font-weight: bold;
        font-size: x-large;
        line-height: 1.5;
        
        flex: 1;
    }

    h3{
        background: #FFCCFF;
        border: 3px solid #FFBBFF;
        padding: 5px;
        padding-left: 15px;
        padding-right: 15px;
        width: fit-content;
        margin-top: 40px;
        
        flex: 1;
    }

    h3:first-of-type{
        margin-top: 0;
    }

    /************ figure rules ************/

    #post #page main article #content .fig{
        display: flex;
        gap: 10px;
    }

    #post #page main article #content div figure{
        margin: 0;
    }

    #post #page main article #content div div{
        flex: 1;

        display: flex;
        flex-direction: column;
        gap: 5px;
    }

    #post #page main article #content .tall{
        background: #FFCCFF;
        border: 3px solid #FFBBFF;
        padding: 5px;

        flex: 1;

        display: flex;
        flex-direction: column;
        gap: 5px;
    }

    #post #page main article #content .very-tall{
        background: #FFCCFF;
        border: 3px solid #FFBBFF;
        padding: 5px;

        flex: 0.75;

        display: flex;
        flex-direction: column;
        gap: 5px;
    }

    #post #page main article #content .long{
        background: #FFCCFF;
        border: 3px solid #FFBBFF;
        padding: 5px;

        flex: 2;

        display: flex;
        flex-direction: column;
        gap: 5px;
    }

    #post #page main article #content .fig .long p{
        background: inherit;
        border: none;
        padding: 10px;
        line-height: 1;
    }

    #post #page main article #content .fig .very-tall p{
        background: inherit;
        border: none;
        padding: 10px;
        line-height: 1;
    }

    #post #page main article #content .fig .tall p{
        background: inherit;
        border: none;
        padding: 10px;
        line-height: 1;
    }

    /*#post #page main article #content p{
        height: fit-content;
    }*/

    /************ footer rules ************/

    #post #page footer{
        background: #FFCCFF;
        border: 3px solid #FFBBFF;
        width: 33%;
        padding-top: 5px;
        padding-bottom: 5px;

        position: fixed;
        left: 0.75%;
        bottom: 1%;

        display: flex;
        justify-content: space-evenly;
    }


    



}