/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

/* HTML5 display-role reset for older browsers */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
    display: block;
}

body {
    line-height: 1.5;
    font-size: 16px;
}

ol,
ul {
    list-style: none;
}

blockquote,
q {
    quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
    content: '';
    content: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}


/* ====== FONTS & BUTTONS ====== */

b,
strong {
    font-weight: bold;
}

i,
em {
    font-style: italic;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    display: block;
    font-family: 'Manrope', Arial, Helvetica, sans-serif;
    line-height: 100%;
    font-weight: 900;
}

h1 {
    font-weight: bold;
    font-size: 2em;
    margin: 0 auto 1em auto;
    color: white;
    box-sizing: border-box;
    width: 100%;
    text-align: center;
}

h4,
h5 {
    line-height: 1.3;
    font-size: 1.1em;
    margin-bottom: 12px;
}

h4 {
    font-size: 1.2em;
    margin-bottom: 24px;
}

p {
    line-height: 1.5;
}

a {
    color: inherit;
    text-decoration: none;
}

a:visited {
    color: inherit;
}

button,
input[type=submit] {
    font-family: 'Changa', Arial, Helvetica, sans-serif;
    font-weight: bold;
    cursor: pointer;
}


/* ====== GLOBAL BEHAVIOR CLASSES ======*/
.hidden {
    display: none !important;
}

.no-scroll {
    overflow-y: hidden;
}


/* ====== STRUCTURE CSS ====== */
body {
    font-family: "Manrope", sans-serif;
    font-weight: 500;
    color: black;
    background-color: rgb(238, 238, 238);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-image: url(../img/global/gradient-bg.jpg);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow: hidden;
}

@media screen and (max-width: 767px) {
    #mobile-notice {
        display: flex;
    }
}

#wordmark-body {
    position: absolute;
    top: -1.5vw;
    right: -1.5vw;
    width: 40vw;
}

#game-frame {
    position: relative;
    text-align: center;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    box-sizing: border-box;
    /*    border: 1px solid red;*/
}


/* ===== DESKTOP ICONS ===== */
#desktop-icons-wrapper {
    position: fixed;
    top: 5%;
    right: 100px;
}

#desktop-icons-wrapper .desktop-icon {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 50px;
    margin-left: auto;
    margin-bottom: 2em;
    cursor: pointer;
    color: black;
    font-weight: 600;
}

#desktop-icons-wrapper .desktop-icon a {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#desktop-icons-wrapper figure {
    width: 50px;
    margin-bottom: 5px;
    display: inline-block;
}

#desktop-icons-wrapper figure img,
#desktop-icons-wrapper figure svg {
    border-radius: 0;
    height: auto;
    width: auto;
}

#desktop-icons-wrapper figcaption {
    white-space: nowrap;
    font-size: .8em;
    line-height: 1.25;
}



/* ===== MATERIAL MODALS ===== */
.material-window {
    margin: auto;
    position: absolute;
    top: 24px;
    left: 24px;
    z-index: 995;
    display: flex;
    flex-direction: column;
    width: 40vw;
    height: 30vw;
    border: 2px solid black;
    background-color: #cccccc;
    box-sizing: border-box;
    transition: transform .3s;
}

.material-window:nth-of-type(2) {
    top: 48px;
    left: 48px;
}

.material-window:nth-of-type(3) {
    top: 72px;
    left: 72px;
}

.material-window:nth-of-type(4) {
    top: 96px;
    left: 96px;
}

.material-window:nth-of-type(5) {
    top: 120px;
    left: 120px;
}

.material-window:nth-of-type(6) {
    top: 144px;
    left: 144px;
}

.material-window:nth-of-type(6) {
    top: 168px;
    left: 168px;
}

.ui-draggable-handle {
    cursor: grab;
}

.business-window-open,
.events-window-open,
.conferences-window-open,
.publications-window-open,
.curatorial-statement-window-open,
.cool-stuff-window-open,
.the-next-window-open {
    transform: scale(1);
    z-index: 999;
}

.business-window-close,
.events-window-close,
.conferences-window-close,
.publications-window-close,
.curatorial-statement-window-close,
.cool-stuff-window-close,
.the-next-window-close {
    transform: scale(0);
    z-index: 0;
}

.material-header {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    position: relative;
    border-style: solid;
    border-width: 2px 2px 0;
    border-color: #e0e0e0;
    background-color: #cccccc;
    background: url(../img/global/lex-background-left.svg) left no-repeat, url(../img/global/lex-background-right.svg) right no-repeat, url(../img/global/lex-background.svg) repeat;
    background-size: auto 24px;
}

.material-header h3 {
    text-align: center;
    background-color: #cccccc;
    padding: .25em;
    margin-top: 1px;
    font-size: 14px;
    font-weight: 600;
}

.material-header button {
    height: 15px;
    width: 15px;
    margin: .5em .5em .5em 0;
    position: absolute;
    right: .25em;
}

.material-window article {
    height: 100%;
    width: calc(100% - 10px);
    border: 2px solid black;
    margin: 5px;
    box-sizing: border-box;
    background-color: white;
    padding: 2%;
    text-align: left;
    overflow-y: auto;
}

.material-window article p {
    margin-bottom: 24px;
}

.material-window article .address-mat a:last-of-type {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.material-window article .address-mat {
    margin-bottom: 24px;
}

.material-window article .address-mat a img {
    height: 16px;
    margin: 0;
    margin-right: 4px;
    flex: 0;
}

.material-window article .address-mat::after {
    content: '';
    width: 100%;
    height: 1px;
    background-color: #ccc;
    display: block;
    margin-top: 24px;
}

.material-window article .address-mat p {
    margin-bottom: 0;
}

.material-window article .address-mat p span {
    font-weight: bold;
}

.material-window article .address-mat a {
    margin-top: 12px;
    font-weight: 700;
    color: #3b83ed;
}

.material-window article img {
    width: 100%;
    margin-bottom: 12px;
}

/*============ Desktop Icons ============*/

.st0 {
    fill: url(#radial-gradient);
}

.st1 {
    fill: url(#linear-gradient);
}

.st2 {
    fill: #fff;
}

.st3 {
    fill: #e9131b;
}

#desktop-icons-wrapper img {
    display: block;
}

#desktop-icons-wrapper .icon-open img {
    display: none;
}

#desktop-icons-wrapper svg {
    display: none;
}

#desktop-icons-wrapper .icon-open svg {
    display: block;
}

.icon-close img {
    animation: iconClose 0.15s ease-out 0s 1 forwards;
}

.icon-open svg #Flap {
    animation: iconOpenFlap 0.15s ease-out 0s 1 forwards;
}

.icon-open svg #Letter {
    animation: iconOpenLetter 0.2s ease-out 0s 1 forwards;
}

.icon-open svg #Envelope {
    animation: iconOpenEnvelope 0.15s ease-out 0s 1 forwards;
}

@keyframes iconClose {
    from {
        transform: scale(1, 1.16) translateY(-3px);
    }

    to {
        transform: scale(1, 1) translateY(0px);
    }
}

@keyframes iconOpenFlap {
    from {
        transform: scale(1, 1.25) translateY(-13px);
    }

    to {
        transform: scale(1, 1) translateY(0px);
    }
}

@keyframes iconOpenLetter {
    from {
        transform: translateY(150px);
    }

    to {
        transform: translateY(0px);
    }
}

@keyframes iconOpenEnvelope {
    from {
        transform: scale(1, 1.1) translateY(-55px);
    }

    to {
        transform: scale(1, 1) translateY(0px);
    }
}





@media only screen and (max-width: 1024px) {
    .material-window {
        margin: auto;
        position: absolute;
        top: 0px;
        left: 4px;
        z-index: 995;
        display: flex;
        flex-direction: column;
        width: 99%;
        height: 80vh;
        border: 2px solid black;
        background-color: #cccccc;
        box-sizing: border-box;
        transition: transform .3s;
    }

    .material-window:nth-of-type(2), .material-window:nth-of-type(3), .material-window:nth-of-type(4), .material-window:nth-of-type(5), .material-window:nth-of-type(6), .material-window:nth-of-type(7) {
        top: 0px;
        left: 4px;
    }
}