/* -- ROOT SETTINGS -- */
:root{
    --bg:       #fbfaf8;
    --paper:    #fbfaf8;
    --text:     #808691;
    --title:    #fff;
    --h1:       #EED8DA;
    --h2:       #4B4B4;
    --linkcolor:#b7c1cd;
    --hover:    #fff;
    --border:   #e5e7eb;
    --accent:   #d9c7d8;
    --shadow:   #b8b8b8;
    --bodyfont: 'calibri', verdana, arial; 
    --titlefont:'Corinthia',cursive;
}

/* -- TEXT STYLES -- */
b, strong {
    font-weight:600; 
    color:var(--title); }
i, em {
    font-style:italic; }

blockquote {
    padding-left:10px;
    margin:0;
    border-left:1px solid var(--borders);
}


/* -- CURSOR -- */
* {
  cursor: url('https://cdn.cursors-4u.net/previews/small-grey-outline-pointer-6a97f823-32.webp') 32 32, auto !important;}

/* -- RESET -- */
*{
    box-sizing: border-box;}

html, body{
    width:      100%;
    height:     100%;
    margin:     0;
    font-family: var(--bodyfont); 
}

body{
    overflow:   hidden;
    display:    flex;
    justify-content:center;
    align-items:center;
    background: var(--bg);
    font-family:var(--bodyfont);
    color:      var(--text);
}

/* -- MAIN CONTAINER -- */
#container{
    position:   relative;
    width:      780px;
    height:     600px;
}

/* -- MAIN IMG -- */
#character{
    position:   absolute;
    left:       -375px;
    bottom:     -50px;
    z-index:    10;
}

#character img{
    height:     660px;}

/* -- TITLE -- */
#header{
    margin-left:120px;
    margin-bottom:10px;
}

#header h1{
    margin:     0;
    font-family:'Corinthia',cursive;
    font-size:  82px;
    line-height:1;
    color:      var(--title);
}

#header p{
    margin:     0;
    letter-spacing:3px;
    text-transform:uppercase;
    font-size:  11px;
    padding-lefT: 5px;
}

/* -- MAIN FRAME -- */
#frame{
    margin-left:120px;
    width:      660px;
    height:     550px;
    background: var(--paper);
    border:     1px solid var(--border);
    box-shadow: 0 8px 20px var(--shadow);
    display:    flex;
    flex-direction:column;
}

/* -- NAVIGATION -- */
#nav{
    height:     20px;
    border-bottom:1px solid var(--border);
    display:    flex;
    align-items:left;
    gap:        20px;
    flex-shrink:0;
    margin:     0;
    letter-spacing:3px;
    text-transform:uppercase;
    font-size:  11px;
    padding-left:5px;
}

#nav a{
    cursor:     pointer;
    text-decoration:none;
    color:      var(--accent);
    font-size:  11px;
    transition: .3s;
}

#nav a:hover{
    opacity:    .6;
}

.dropdown {
    position:   relative;
    display:    inline-block;
    display:    inline-block;
    font:       11px;
    text-transform:uppercase;
    padding:    2px; 
    padding-left:5px;
    padding-right:5px;
    letter-spacing:1px;
    color:      var(--linkcolor);
    line-height:11px;}
}

.dropdown span {
    cursor:     pointer;
}

.dropdown-content {
    display:    none;
    position:   absolute;
    top:        100%; 
    left:       0;
    background: var(--paper);
    min-width:  120px;
    border-radius: 2px;
    padding:    2px 0;
    z-index:    999; 
}

.dropdown-content a {
    color:      var(--hover);
    padding:    2px 2px;
    text-decoration: none;
    display:    block;
    font-size:  11px;
}

.dropdown-content a:hover {
    background-color: var(--bg);
}

.dropdown:hover .dropdown-content {
    display:    block;
}

/* -- CONTENT -- */
#content{
    flex:1;
    padding:10px;
    border-bottom:1px solid var(--border);
}

#content iframe{
    width:100%;
    height:100%;
    border:none;
    background: var(--paper);
}

/* -- LOWER PANELS -- */
#bottom{
    height:150px;
    display:grid;
    grid-template-columns:1fr 1fr;
}

.panel{
    padding:    10px;
    overflow-y:auto;
}

.panel:first-child{
    border-right:1px solid var(--border);
}

.panel h2{
    margin-top: 0;
    font-size:  20px;
    color:      var(--title);
    border-bottom:1px solid var(--border);
    padding-bottom:4px;
}

/* -- LISTS -- */
ul{
    padding-left:18px;
}

li{
    margin-bottom:4px;
}

/* -- SCROLLBAR -- */
::-webkit-scrollbar{
    width:6px;
}

::-webkit-scrollbar-thumb{
    background:var(--border);
}


/* -- FOOTER -- */
.credit a {
    font-size:10px;
    bottom:15px;
    right:20px;
    position:fixed;
    text-transform:uppercase;
    color: var(--linkcolor)
}

/* aboutpage */
container2 {
    position:fixed;
    width:780px;
    height:auto;
    padding-left:50px;
    top:50%;
    left:50%;
    transform:translate(-50%,-50%);
    background:var(--paper);
}

#main2 { 
    position:relative;
    margin-left:60px;
    padding:10px 15px;
    width:auto;
    max-height:210px;
    overflow-y:scroll;
    background:var(--paper);
    border:1px solid var(--borders);
}

.box {
    float:left;
    padding-right:25px;
    margin-right:25px;
    margin-top:25px;
    width:calc((700px - 52px * 2) / 3);
    /* (container width - (2*margin + 2) * one less than the number of boxes) / the number of boxes */ 
    height:155px;
    border-right:1px solid var(--borders);
}

.box:first-of-type { margin-left:0px!important; }
.box:last-of-type { padding-right:0; margin-right:0; border:none; }

.box h1 {
    display:inline-block;
    text-transform:uppercase;
    color:var(--links);
    font-size:calc(var(--font-size) + 1px);
    letter-spacing:1.5px;
    padding:3px 7px;
    margin:0px 20px 10px 0px;
    background:var(--accent);
    border:1px solid var(--borders);
}

.t {
    display:block;
    margin-top:5px;
    height:115px;
    overflow-y:scroll;
    overflow-x:hidden;
}

.t ul { margin-top:0px; margin-bottom:0px; }
.t ul li { list-style:none; margin-left:-40px; }
.t li { width:195px; padding-bottom:5px; } /* width is slightly smaller than the value you get from the .box width */
.t li:last-of-type { padding-bottom:0; }

.t h2 {
    display:inline;
    margin:0;
    text-transform:uppercase!important;
    font-size:calc(var(--font-size) - 0.5px);
    font-weight:700;
    letter-spacing:1px;
    color:var(--title);
    margin-right:5px;
}

.social { text-align:right; }

.social i { 
    font-size:calc(var(--font-size) + 6px);
    width:calc(var(--font-size) + 6px);
    margin-bottom:9px;
    margin-right:9px;
    padding:10px;
    border-radius:100%;
    border:1px solid var(--borders);
}

.social a:hover i { color:var(--links); background:var(--accent); }
