/***************** global **********************/

@font-face {
    font-family: 'kindid';
    src: url('/g/kindidbold.ttf');
    font-weight: bold;
}

@font-face {
    font-family: 'kindid';
    src: url('/g/kindidlight.ttf');
    font-weight: normal;
}

/* set these styles only if needed also set global font */
* {
    margin: 0;
    padding: 0;
    border: 0;
    font-family: 'kindid';
    /* font-size: 0; */
    /* line-height: 0; */
}

/* put line-height:0; in the img container */
/* img {
    border: 1px solid red;
} */

/* ensure (along the meta viewport) a good mobile experience */
body {
    height: 100vh;
    overflow-y: scroll;
    overscroll-behavior-y: none;
}

body:before {
    content: "";
    position: fixed;
    /* stretch a fixed position to the whole screen*/
    top: 0;
    height: 100vh;
    /* fix for mobile browser address bar appearing disappearing */
    left: 0;
    right: 0;
    z-index: -2;
    background: url("/g/bg.jpg") top left no-repeat;
    background-size: cover;
}

/***************** page background **********************/

@media all and (orientation: landscape) {
    .page_content {
        padding-top: 24pt;
        padding-bottom: 16pt;
        width: 100%;
    }
    .cornercut {
        position: fixed;
        top: 24pt;
        width: 70%;
        height: auto;
        opacity: 50%;
        z-index: -1;
    }
}

@media all and (orientation: portrait) {
    .page_content {
        padding-top: 24pt;
        padding-bottom: 16pt;
        width: 100%;
    }
    .cornercut {
        position: fixed;
        margin-top: 0pt;
        width: 100%;
        height: auto;
        opacity: 50%;
        z-index: -1;
    }
}

/**************** top level page items ****************/

@media all and (orientation: landscape) {
    .content_border {
        border: 1px solid #d0d0d0;
        background-color: rgba(255, 255, 255, 0.25);
        /* border-radius: 24pt; */
        box-shadow: inset -12pt 12pt 12pt rgba(0, 0, 0, 0.25), inset 10pt -10pt 10pt rgba(255, 255, 255, 0.5);
    }
    .top_level_div {
        margin: 12pt;
        padding: 6pt;
    }
    .content_div_logo_img {
        width: 50%;
        height: auto;
        margin-left: 25%;
    }
}

@media all and (orientation: portrait) {
    .content_border {
        border: 1px solid #d0d0d0;
        background-color: rgba(255, 255, 255, 0.25);
        /* border-radius: 24pt; */
        box-shadow: inset -12pt 12pt 12pt rgba(0, 0, 0, 0.25), inset 10pt -10pt 10pt rgba(255, 255, 255, 0.5);
    }
    .top_level_div {
        margin: 12pt 6pt 12pt 6pt;
    }
    .content_div_logo_img {
        width: 80%;
        height: auto;
        margin-left: 10%;
    }
}


/**************** menu : landscape ****************/

.menu_item a {
    display: block;
    color: #000;
    text-decoration: none;
    text-align: center;
    font-size: 12pt;
    line-height: 1.75;
    height: 100%;
    font-weight: bold;
}

.menu_item_current a {
    display: block;
    color: #000;
    text-decoration: none;
    text-align: center;
    font-size: 12pt;
    line-height: 1.75;
    height: 100%
}

/* tdo; split this out into 'menu.css' i can always make tooling to optimize load time anyway */

/**************** menu : landscape ****************/

@media all and (orientation: landscape) {
    .menu_nav {
        height: 24pt;
        width: 100%;
        /* border: 1px solid black; */
        z-index: 1;
        top: 0;
        left: 0;
        position: fixed;
        background-color: rgba(255, 255, 255, 0.5);
        box-shadow: 0 6pt 6pt rgba(0, 0, 0, 0.5);
    }
    .menu_items {
        display: inline;
        height: 100%;
        overflow: auto;
    }
    #menu_checkbox {
        display: none;
    }
    .menu_label {
        /* border: 1px solid blue; */
        display: none;
    }
    .menu_span {
        display: none;
    }
    .menu_title {
        display: none;
    }
    .menu_item {
        height: 100%;
        display: inline;
        width: 10%;
        height: 100%;
        float: left;
        margin: 0;
        padding-top: 2pt;
        padding-bottom: 2pt;
        font-weight: bold;
    }
    .menu_item_current {
        height: 100%;
        display: inline;
        width: 10%;
        height: 100%;
        float: left;
        margin: 0;
        padding-top:2pt;
        padding-bottom:0pt;
        border-bottom: 2pt solid black;
    }
    .menu_contents {
        height: 24pt;
        width: 100%;
        overflow: hidden;
        /* transition: height 0.33s ease-in-out; */
        background-color: rgba(255, 255, 224, 0.5);
    }
    .menu_item_small_img {
        height: 20pt;
        padding-top: 2pt;
        padding-bottom: 2pt;
    }
    .menu_item_small_a {
        margin-right: 6pt;
        height: 100%;
        /* float: right; */
    }
    .social_buttons {
        height: 100%;
        float: right;
        /* border: 1px solid red;
        margin: -1px; */
    }
}

@media all and (orientation: portrait) {
    .menu_nav {
        width: 100%;
        z-index: 1;
        top: 0;
        left: 0;
        position: fixed;
        height: 24pt;
        background-color: rgba(160, 160, 160, 0.5);
        box-shadow: 0 6pt 6pt rgba(0, 0, 0, 0.5);
    }
    #menu_checkbox {
        /* border: 1px solid blue; */
        display: none;
    }
    .menu_label {
        display: block;
        width: 100%;
        padding-left: 0pt;
        font-size: 16pt;
        float:left;
    }
    /* .menu_label:before {
        content: '\00a0\2630\00a0';
    } */
    .menu_span {
        width: 100%;
        /* border:1px solid red; */
    }
    .menu_title {
        float: right;
        background-color: #f0f;
    }
    .menu_contents {
        height: 0;
        width: 100%;
        overflow: hidden;
        transition: height 0.33s ease-in-out;
        background-color: rgba(255, 255, 255, 0.5);
        box-shadow: 0 6pt 6pt rgba(0, 0, 0, 0.5);
    }
    .menu_items {
        display: block;
        list-style-type: none;
        margin: 0;
        height: calc(7 * 24pt);
    }
    input:checked ~ .menu_contents {
        /* max-height: 100%; */
        height: calc(8*24pt);
        /* transition: max-height 0.50s ease-in-out; */
        transition: height 0.33s ease-in-out;
    }
    .menu_item {
        display: block;
        width: 100%;
        height: 24pt;
        margin-left: 0pt;
        font-weight: bold;
    }
    .menu_item_current {
        display: block;
        width: 100%;
        height: 22pt;
        margin-left: 0pt;
        padding-top:-2pt;
        padding-bottom:-2pt;
        border-bottom: 2pt solid black;
        border-top: 2pt solid black;
    }
    .menu_item_small_img {
        height: 20pt;
        padding-top: 2pt;
        padding-bottom: 2pt;
    }
    .menu_item_small_a {
        margin-right: 6pt;
        height: 100%;
        float: none;
    }
    .social_buttons {
        height: 24pt;
        background-color: rgba(255,255,255,0.75);
    }
}

/*** modal popup : todo; probably portrait/landscape **************************/

.modal {
    display: none;
    position: fixed;
    z-index: 2;
    padding-top: 0px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0, 0, 0);
    background-color: rgba(0, 0, 0, 0.9);
}

.modal_content {
    margin: auto;
    display: block;
    width: 100%;
    height: auto;
    margin-top: 25%;
    /* width: 80%; */
    /*    max-width: 700px; */
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

/* don't know why - only works on desktop anyway and TBH the whole object should be clickable */
.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* DEAD */

/* clean up */
.kicon_shadow_no_bg {
    width: 96pt;
    height:96pt;
    margin-left:8pt;
    margin-right:8pt;
    /* display: inline-block; */
    filter: drop-shadow(-4pt 4pt 4pt rgba(0, 0, 0, 0.5));
}

/* so useful it should be in main */
#overlay {
    visibility: hidden;
    position: fixed;
    left: 8px;
    top: 8px;
    /* width: 100%;
    height: 100%; */
    width:calc(100% - 16px);
    height:calc(100% - 16px);
    text-align:center;
    z-index: 1000;
    background-color: rgba(0,0,0,0.333);
    /* todo; landscape vs portrait */
    /* border:1px solid red; */
}

#ovid {
    width:auto;
    height:100%;
    margins: auto;
    /* padding: 8px; */
    box-shadow: 0pt 0pt 8px 1px  rgba(0, 0, 0, 0.75);
    /* border: 8px solid #88f; */
}

ul {
    margin-left: 16pt;
    font-family: 'kindid';
}

li {
    font-size: 14pt;
    margin-left: 0pt;
    text-align: left;
    list-style-type: disc;
    font-family: 'kindid';
    font-weight: bold;
}
