/* ------------- include some fonts -------------*/
/* lato-regular - latin */
@font-face {
    font-family: 'Lato';
    font-style: normal;
    font-weight: 400;
    src: local(''),
        url('../fonts/lato-v23-latin-regular.woff2') format('woff2'),
        /* Chrome 26+, Opera 23+, Firefox 39+ */
        url('../fonts/lato-v23-latin-regular.woff') format('woff');
    /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}

/* lato-700 - latin */
@font-face {
    font-family: 'Lato';
    font-style: normal;
    font-weight: 700;
    src: local(''),
        url('../fonts/lato-v23-latin-700.woff2') format('woff2'),
        /* Chrome 26+, Opera 23+, Firefox 39+ */
        url('../fonts/lato-v23-latin-700.woff') format('woff');
    /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}

/* source-code-pro-regular - latin */
@font-face {
    font-family: 'Source Code Pro';
    font-style: normal;
    font-weight: 400;
    src: local(''),
        url('../fonts/source-code-pro-v21-latin-regular.woff2') format('woff2'),
        /* Chrome 26+, Opera 23+, Firefox 39+ */
        url('../fonts/source-code-pro-v21-latin-regular.woff') format('woff');
    /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}

:root {
    --col_light_blue: #B9CFE6;
    --col_blue: #005E90;
    --col_brown: #895B1E;
    --col_raisin_black: #30292F;
    --col_burgundy: #3E2A35;
    --col_light_grey: #e8e8e8;
    --col_grey: #696969;

    font-family: Lato, Arial, sans-serif;

}

/*-----------header section------------*/
#header {
    position: absolute;
    width: 100%;
    height: 25vw;
    top: 0;
    left: 0;
}

#header_img {
    filter: grayscale(25%);

    z-index: -1;
    clip-path: polygon(0 0, 100% 0, 100% 70%, 0% 100%);
}

#header img {
    width: 100%;
}

#header #heading {
    position: absolute;
    right: 8%;
    top: 5vw;

    padding-right: 40px;
    padding-left: 200px;
    transform-style: preserve-3d;
    transition: .4s;

    border: solid var(--col_light_grey);
    border-width: 4px 6px 5px 4px;
    border-radius: 4% 95% 6% 95%/95% 4% 92% 5%;
    transform: rotate(-2deg);
}
#header #heading a{
    color: inherit;
    text-decoration: none;
}


#header #heading:hover {
    transform: translate(-80px, -20px) rotateY(-20deg) skewY(3deg)
}



#header h1 {
    position: relative;
    color: var(--col_burgundy);
}

#header h2 {
    position: relative;
    color: var(--col_grey);
    margin-top: -30px;
    margin-left: -160px;
    z-index: 1;
}


/*-----------toc and mainImage section------------*/

#tocImageSection {
    display: flex;
    position: relative;
    flex-wrap: wrap-reverse;
    margin-bottom: 120px;
}

#mainImage {
    position: relative;
    min-width: 450px;
    width: 55%;
    object-fit: contain;
}

#tocSection {
    width: 45%;
    min-width: 400px;
    height: 100%;
}

#tocSection li {
    padding: 3px;
    display: block;
}

#tocSection a {
    color: black;
    text-decoration: none;
    font-family: Arial;
    font-size: 0.8em;
}

#tocSection ol li ol a,
#tocSection ol li ol li {
    color: var(--col_grey);
}

#tocSection ol {
    counter-reset: item;
}

#tocSection ol ol {
    counter-reset: item;
}


#tocSection li:before {
    content: counters(item, ".") ". ";
    counter-increment: item;
    font-family: Arial;
    font-size: 0.8em;
}


#tocSection a:hover {
    font-weight: bold;
}


/*-----------content section------------*/
#content {
    background-color: var(--col_light_grey);
    border-right: 1.5px solid var(--col_grey);
    border-left: 1.5px solid var(--col_grey);

    padding-left: 40px;
    padding-right: 40px;
    padding-top: 25vw;
    width: 70%;
    min-width: 900px;
    transform: translate(-50%, 0);
    left: 50%;
    position: absolute;
    z-index: -2;
}

body {
    font-size: 24px;
}

#content h1 {
    margin-left: 35px;
    margin-bottom: 0px;
    margin-top:-5px;
}

#content #date {
    color: var(--col_grey);
    margin-left:80px;
    position: relative;
    display: inline-block;
}
#content #category {
    color: var(--col_grey);
    margin-left: 10px;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
    font-size: 0.8em;
}
#content #category:before{
    content: "(";
}
#content #category:after{
    content: ")";
}

#content ul li,
#content ul {
    margin: 0;
}

#content h4 {
    margin-bottom: 15px;
}

#content h2 {
    margin-top: 70px;
}

#content h3 {
    margin-top: 50px;
}

#content hr {
    border: 0;
    height: 1.5px;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0));
    margin-bottom: -10px;
}


/*add numbers before each heading h2-h4*/
body {
    counter-reset: h2
}

h2 {
    counter-reset: h3
}

h3 {
    counter-reset: h4
}

h2.nocount:before,
h3.nocount:before,
h4.nocount:before {
    content: "";
    counter-increment: none
}

h2:before {
    counter-increment: h2;
    content: counter(h2) ". "
}

h3:before {
    counter-increment: h3;
    content: counter(h2) "." counter(h3) ". "
}

h4:before {
    counter-increment: h4;
    content: counter(h2) "." counter(h3) "." counter(h4) ". "
}


#content h2,
#content h3,
#content h4 {
    color: var(--col_burgundy);
}

p {
    text-align: justify;
}


.images {
    position: relative;
    display: flex;
    flex-wrap: wrap;
}

.images img {
    min-width: 200px;
    margin: 15px;
    border-radius: 20px;
    object-fit: cover;
    height: 10vw;
    min-height: 200px;
}

#footer {
    position: relative;
    width: 90%;
    margin-left: 5%;
    margin-right: 5%;
    min-height: 160px;
    border-top-left-radius: 100px;
    border-top-right-radius: 100px;
    border: 4px solid var(--col_grey);
    background-color: var(--col_light_blue);
    border-bottom: none;
    margin-top: 150px;
    margin-bottom: 0;
}

/* ------------- contact section -------------*/



#footer .contact_cont {

    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-evenly;
    gap: 10px;
    padding-top: 25px;

}

#footer .col {
    width: 250px;
    min-width: 250px;
    text-align: center;
}



#footer .col div {
    padding: 0 auto 0 auto;
    height: 60px;
}

#footer img {
    height: 100%;
}

#footer a {
    color: black;
    text-decoration: none;
    text-transform: none;
}

#footer .text {
    margin-top: 15px;
    font-size: 1.2rem;
    color: var(--col_space);
    font-weight: bold;
}


/* do some responsive updates on smaller screens*/

@media (max-width:1300px) {
    #header #heading {

        right: 6%;
        top: 3vw;
    }

    #header #heading:hover {
        transform: none;
    }

    #header h1 {
        font-size: 1.8em;
    }

    #header h2 {
        font-size: 1.2em;
    }
}

@media (max-width:1000px) {
    #content {
        border: none;
        padding-left: 80px;
        min-width: 0;
        width: auto;
        min-width: 80%;
        margin: 0;
        background-color: white;
    }

    h1 {
        font-size: 1.5em;
    }

    #content h2 {
        margin-top: 15px;
    }
    #content hr{
        margin-bottom: 15px;
    }
    #content #date{
        margin-bottom: -10px;
    }
    #content #tocImageSection{
        margin-left: 10%;
        margin-bottom: 0;
    }
    #content #mainImage{
        width: 90%;
    }
}
@media (max-width:850px) {

}