/*FONTS*/

/* FONTS */

@font-face{
    font-family: "roboto";
    src: url("fonts/Roboto-Regular.ttf")
    format("truetype");
}
    
@font-face{
    font-family: "roboto";
    src: url("fonts/Roboto-Bold.ttf") format("truetype");
    font-weight:bold;
}


/* VARIABLES */

:root{
    /* COLORS */
    --primary: #786f75; /*  */
    --secondary: #cec2a1; /*  */
    --accent: #8a5b46; /* rgb(138, 91, 70) */
}


/* GENERAL */

/*Color selection*/
::selection {
    color: white;
    background-color: #786f75a7;
}

html{
    background-color:#f7f3f4;

    font-family: "roboto", monospace;
    font-size:14px;
    color:var(--primary);
    
    scroll-behavior: smooth;
}

html,body {
    min-width:100vw;
    min-height:100vh;
    margin:0
}


/* TITLES AND TEXT */

h1{
    font-size: 50px;
    text-shadow:var(--primary) 0 0 2px;
    font-weight: bold;

    padding-left: 15px;
    padding-top: 27px;
    margin:0;

    position:relative; /* so that the z-index property works */
    z-index: 3; /* so that when you hover a tab in the menu it doesn't override the title */
}

h2{
    color:var(--accent);
    background-color: #efeae9;
    font-weight: bold;
    margin:0;
    font-size: 1em;
    text-shadow:var(--accent) 0 0 1px;
    box-shadow: #786f75 0 0 2px;
    padding:5px 10px

    
    /*border-bottom: var(--accent) solid 2px;*/
}

h3{
    font-weight: bold;
    margin:0;
    font-size: 1.25em;
    text-shadow:var(--primary) 0 0 1px;

    text-align: right;
}

/* LINKS AND BUTTONS */

a{
    color:var(--accent);
    text-shadow:var(--accent) 0 0 1px;
    font-weight: bold;
}

a:hover{
    color: gray;
    text-shadow:gray 0 0 1px;
}



/* DIVS */

header{
    background-color: #f7f3f4;
    padding:0 10%;
    height: 75px;
    z-index: 2;
}

#leftsidebar{
    margin-top: 15px;
    float:left;
    width:30%;

    padding-left: 15px;
    box-sizing: border-box;
}

main{
    float:left;
    width:40%;
    margin-top:15px;
}

#rightsidebar{
    margin-top: 15px;
    float: left;
    width: 30%;

    padding-right: 15px;
    box-sizing: border-box;
}

.maincontent{
    padding:0 10%;
}
footer{
    color: var(--primary);
    font-weight: bold;
    bottom: 0;
    position: fixed;
    height: 20px;
    background: #efeae9;
    width: 100%;
    padding-top:5px;
    text-align: center;
    box-shadow: #786f75 0 0 2px;
}

.container{
    min-height:600px;
    overflow: auto;
}


/* SECTIONS */
section{
    margin:0;
    padding:5px;
    box-sizing: border-box; /*the padding is included in the specified width of the section */
}

*
.sectioncontent{
    background-color: #f7f3f4;
    padding:10px;
    box-shadow: #786f75 0 0 2px;
}

/* MAIN NAVIGATION BAR */


#navbar {
    background-color: #efeae9;
    height: 30px;
    width: 100%;
    padding:0 10%;
    box-sizing: border-box;
    font-weight: bold;
    box-shadow: #786f75 0 0 2px;   
}

.topnav {
    overflow: hidden;     
}

.topnav a {
    width:20%;
    padding-top: 7px;
    height: 23px;
    float: left;
    display: block;
    text-align: center;
    text-decoration: none;
    transition: all 0.5s;
}

.active {
background-color: #d4c9d1 !important;
color: var(--primary) !important;
text-shadow: #786f75 0 0 1px !important;
}

.active:hover{
background-color:#d4c9d1 !important;
}


#navtitle{
color: var(--primary) !important;
text-shadow: #786f75 0 0 1px;
}

#navtitle:hover{
background-color: #efeae9 !important;
color: var(--primary) !important;
text-shadow: #786f75 0 0 1px;
}

.topnav a:hover{
background-color: #ffffff50;
transition:0.2s;
transition: all 0.5s;
}



/* BLOG, ESSAYS AND OTHER ENTRIES */

.entry{
    padding-right: 15px;
    text-align: justify;
    background-color: #f7f3f4;
}

.entry h3{
    text-transform: uppercase;
    margin-bottom: 1em;
}

.quote{
    margin:10px 30px 10px 20px;
    padding-left: 10px;
    border-left: #786f75 solid 2px;
}


.langtag{
    display: inline;
    background-color: #efeae9;
    border: #cac3c6 solid 1px;
    padding: 0px 5px;
    font-size: 12px;
}
