/* GENERAL */

* {
    /* TODO: Find the reset CSS style */
    margin: 0px;
    padding: 0px;
    z-index: 0;
/*    font-family: sans-serif;*/
    font-family: "Zapf Dingbats", sans-serif;
}

html, body {
/*    min-height: 100vh;*/
}

#toggle {
    position: fixed;
    height: 0px;
/*    z-index: 100;*/
}

.menu-backdrop {
    position: fixed;
    top: 0px;
    left: 0px;
    right: 0px;
    background-color: white;
    height: 50px;
    z-index: 2;
}

/* TODO: Use flexbox for the menu items scale? Also makes using margin easier to distance the outlines! */
.menu {
    position: fixed;
    top: 0px;
    left: 0px;
    right: 0px;
    max-width: 920px;
    height: 40px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 10px;
    padding-right: 10px;
    padding-top: 10px;
    margin-bottom: -10px;
    background-color: white;
    z-index: 3;
    border-bottom: solid 3px black;
    font-size: 16px;
    overflow: hidden;
}

.menu ul {
    list-style-type: none;
    overflow: visible;
}

.menu ul li {
    float: left;
    width: 16.5%;
/*    width: 20%;*/
}

.hover-brackets a:hover::before {
    content: "\2770\ ";
}

.hover-brackets a:hover::after {
    content: " \2771";
}

.menu ul li a {
    display: block;
    width: 100%;
    text-decoration: none;
    text-align: center;
    padding-top: 11px;
    padding-bottom: 11px;
    color: #464862;
    border-radius: 5px;
    font-family: 'Montserrat Alternates', sans-serif;
}

.menu ul li a:hover {
    color: black;
}

.menu ul li a:active {
    font-weight: bold;
}

.menu ul li .active, .menu ul li .active:hover, .menu ul li .active:active {
    color: black;
    font-weight: bold;
}

.menu .lang {
    font-size: 10px;
    line-height: 40px;
    float: right;
    text-align: right;
}

.menu .lang a {
    display: inline;
}

.menu ul .lang a:hover {
    color: #528eff;
}

#logo {
    margin-top: -7px;
    width: 60px;
}

@media screen and (max-width: 620px) {
    .menu ul li:nth-child(1) {
        width: 18%;
    }
    .menu ul li:nth-child(2) {
        width: 18%;
    }
    .menu ul li:nth-child(3) {
        width: 18%;
    }
    .menu ul li:nth-child(4) {
        width: 18%;
    }
    .menu ul li:nth-child(5) {
        width: 18%;
    }
    .menu ul li:nth-child(6) {
        width: 10%;
    }
    .hover-brackets a:hover::before, .hover-brackets a:hover::after {
        content: none;
    }
    .menu ul li a:hover {
        color: #528eff;
    }
}

@media screen and (max-width: 450px) {
    .menu ul li {
        width: 100% !important;
    }
    .menu ul li:nth-child(1) {
        align-content: center;
    }
    .menu .lang {
        float: left;
        text-align: center;
        font-size: 16px;
    }
    #toggle:checked ~ .menu {
        height: 250px;
    }
    .menu ul li:nth-child(1) {
        position: relative;
        left: calc(50vw - 40px);
    }

/*
    .menu ul li:nth-child(n+2) {
        display: none !important;
    }
*/
}

.content {
    position: relative;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: -14px;
    min-height: calc(100vh - 111px);
/*    min-height: 100vh;*/
    padding: 10px;
    padding-top: 70px;
    padding-bottom: 22px;
    z-index: 0;
}

h1, h2 {
    margin-top: 30px;
    margin-bottom: 10px;
    font-family: 'Montserrat Alternates', sans-serif;
}

.footer {
/*    position: fixed;*/
    max-width: 920px;
    margin-left: auto;
    margin-right: auto;
/*    height: 14px;*/
    padding: 8px;
    font-size: 12px;
    z-index: 1;
    border-top: 3px black solid;
/*    background-color: red;*/
    text-align: center;
/*    color: lightgray;*/
}

/*
.footer-lang {
    position: fixed;
    bottom: 0px;
    left: 0px;
    right: 0px;
    padding: 8px;
    font-size: 12px;
    z-index: 2;
    text-align: center;
}
*/

.flag {
    width: 100px;
    height: 80px;
    background-color: blue;
}

.flag img {
    width: 100px;
    height: 68px;
}

.flag span {
    width: 100px;
    font-size: 12px;
    line-height: 8px;
}

.linkbox:link, .linkbox:visited, .linkbox:hover, .linkbox:active {
    text-decoration: none;
    color: black;
}

/* ANNOUNCEMENT */
.announcement {
    background-color: black;
    border-radius: 8px;
    margin-bottom: 10px;
    color: white;
    padding: 10px;
}

.announcement-title {
    font-size: 2em;
    font-variant-caps: small-caps;
    margin-bottom: 10px;
}

.announcement-description {
    text-align: center;
}

/* BIO */
.bio-img {
    width: 372px;
    max-width: 40vw;
/*    max-height: 50vh;*/
    float: left;
    margin-bottom: 30px;
}

.bio-text {
/*    margin-left: min(calc(40vw + 50px), 422px);*/
    margin-left: calc(40vw + 50px);
    
}
@media screen and (min-width: 936px) {
    .bio-text {
        margin-left: 422px; /* 372 + 50 = 422*/
    }
}
@media screen and (max-width: 500px) {
    .bio-text {
        margin-left: 0px;
    }
    .bio-img {
        float: none;
        max-width: none;
        width: calc(100vw - 20px);
    }
}

.bio-text p {
    padding-bottom: 15px;
}

.bio-center {
    text-align: center;
}

.ohanian {
    font-family: 'Montserrat Alternates', sans-serif;
    font-size: 2em;
}

/* PORTFOLIO */
.gridder {
    list-style-type: none;
}

.gridder-list { 
    display: inline-block;
    vertical-align: top;
    margin-right: 15px;
    margin-bottom: 15px;
}

.gridder-list:hover {
    border: 5px solid black;
    margin-left: -5px;
    margin-top: -5px;
    margin-right: 10px;
    margin-bottom: 10px;
    padding-bottom: -10px;/*FIXME*/
}

.gridder-list img {
    display: block;
}

.gridder-show { 
    display: block;
    float: left;
    width: 100%;
    position: relative;
}

.gridder-content {
    display: none;
}

.gridder-expanded-content {
    justify-content: center;
}

.gridder-expanded-content img {
    max-width: calc(100vw - 20px);
    max-height: calc(100vh - 100px);
}

.gridder-show {
    padding: 0px;   
    background: #EEE;
    margin-bottom: 1%;
}

.gridder-navigation {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
}

.gr-nav {
    margin: 5px;
    color: white;
    font-size: 20px;
    width: 50px;
    height: 50px;
/*
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: 100px;
*/
    text-shadow: 0px 0px 15px black;
}

.gr-nav:before {
    padding-top: 15px;
    padding-left: 11px;
}

.gr-nav:hover:before {
    color: #c2d7ff;
}

.gr-next {
    float: right;
}

.gr-prev {
    float: left;
}

.gr-close {
    float: right;
}

/* CONTACT */
input, button, textarea {
    border: 1.5px black solid;
    border-radius: 5px;
    padding: 5px;
    margin-bottom: 10px;
    background-color: white;
    font-size: 1em;
/*    width: calc(100% - 13px);*/
    width: 100%;
    outline: none;
    box-sizing: border-box;
}

textarea {
    resize: vertical;
    height: 3em;
    min-height: 2em;
    transition: height 0.2s;
/*    overflow: hidden;*/
}

form *:focus {
    border-color: #c2d7ff;
}

button[type="submit"] {
    color: white;
    background-color: black;
    padding: 10px;
    cursor: pointer;
/*    width: calc(100% - 0px);*/
}

form span {
}

/* EVENTS */
.events {
    list-style: none;
}

.event {
    background-color: whitesmoke;
    border-radius: 10px;
    margin-bottom: 10px;
    padding: 7px;
    padding-left: 0px;
    border: 1px gray solid;
}

.event:hover {
    background-color: #dce8ff;
}

.event-title {
    font-size: 1.5em;
}

.event-whenwhere {
    font-size: 0.8em;
}

.event-date {
    float: left;
    width: 80px;
    text-align: center;
}

.event-date * {
    display: block;
}

.event-day {
    color: red;
    font-size: 45px;
}

.event-month {
    color: black;
    font-size: 20px;
}

.event-year {
    color: black;
    font-size: 14px;
}

.event-description {
    text-overflow: ellipsis;
    margin-left: 80px;
    margin-top: 5px;
}

 
.icon-bell:before { content: '\e800'; } /* '' */
.icon-mail:before { content: '\e801'; } /* '' */
.icon-close:before { content: '\e802'; } /* '' */
.icon-left:before { content: '\e803'; } /* '' */
.icon-right:before { content: '\e804'; } /* '' */
.icon-plane:before { content: '\e805'; } /* '' */
.icon-horn:before { content: '\e806'; } /* '' */
.icon-horn-loud:before { content: '\e807'; } /* '' */

/* MISC */
.anchor {
    position: relative;
    display: block;
    visibility: hidden;
    top: -100px;
}

.msg-box p {
    margin-bottom: 10px;
    margin-top: 50px;
}

.msg-box {
    position: absolute;
    margin-left: -150px;
    widows: 300x;
    left: 50%;
}
