/* Pilowlava by Anton Moglia and Jéremy Landes (velvetyne.fr) */

@font-face {
    font-family: 'Pilowlava';
    src: url('Pilowlava-Regular.woff2') format('woff2'),
         url('Pilowlava-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

html, body {
        box-sizing: border-box;
        margin: 0;
        padding: 0;
        font-size: 18px;
        font-family: 'Pilowlava';
    }
h1{
        color: #ffff00;
        z-index: 4;
        position: fixed;
        mix-blend-mode: difference;
        font-size: 3em;
        
        margin: 0;
        
    }
.zoe{
    left: 40px;
    top: 15px;
    pointer-events: none;
}
.intro{
    position: fixed;
    display: flex;
    align-items: center;
    z-index: 2;
    margin: 4vh 3vw;
    width: 94.1vw;
    height: 92vh;
    background-color: transparent;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    pointer-events: none;
}
.intro.deblur{
    -webkit-backdrop-filter: initial;
    backdrop-filter: initial;
}
.legal{font-size: 0.6em; margin-top: 14%;}
.project_title{
    bottom: 120px;
    right: 90px;
    pointer-events: none;
}
.language{
    padding-top: 45vh;
    width: 100vw;
    text-align: center;
    position: relative;
    z-index: 3;
    display: none;
}

.button{
    border: 2px solid #4e60fc;
    font-family: 'Pilowlava';
    margin: 10px;
    padding: 15px;
    border-radius: 25px;
}

.button:hover{cursor: pointer; color:  #4e60fc; background-color: white;}
#canvas, .loading-screen {
        position: fixed;
        margin: 4vh 3vw;
        width: 94vw;
        height: 92vh;
        outline-style: solid;
        outline-color: #4e60fc;
        outline-width: 6px;
        display: block;
    }
.loading-screen{
    display: flex;
    align-items: center;
    z-index: 3;
    opacity: 1;
    transition: 1s opacity;
    color: #4e60fc;
    background-color: #cdadde
}
.loading{
	margin: auto;
	animation: load 1.2s infinite 0s ease-in-out;
	animation-direction: alternate;
	text-shadow: 0 0 1px #4e60fc;
}
.loading-screen.fade-out{opacity:0}
/* NOTE: this doesn't apply to main window */
.instructions, .Info_window{
font-family: 'Helvetica';
  /* position: fixed; */
  z-index: 1;
  border: solid 4px #4e60fc;
  background-color: #cdadde;
  transition: all 0.7s;
  /* overflow: scroll; */
  opacity: 0;
  width: 36vw;
  /* height: 44vh; */
  height: max-content;
  margin: auto;
  padding: 2%;
  /* top: 0; */
  display: none;
}
.Info_window{text-align: center;}
.instructions p{text-align: center; display: none;}
/* .inst_info{margin-top: 40px;} */
.inst_title{margin: 0 20%;}
.shown{display: block; pointer-events: auto;}

.project.shown, .Info_window.shown{display: block; opacity: 1;}
.project{
    width: 100vw;
    height: 70vh;
    text-align: center;
    opacity: 0;
    position: fixed;
    transition: all 0.7s;
    z-index: 2;
    top: 15vh;
    display: none;
}
.project img{height: 100%;}
.description{
    font-family: 'Helvetica';
    font-weight: bold;
    font-size: 1em;
    text-align: right;
    margin: 1vh 9.8vw;
    color: white;
}
.credits{
    font-family: 'Avenir book';
    font-size: 0.75em;
    text-align: right;
    margin: 0 9.8vw;
    color: white;
}
.news{
    padding-left: 20px;
    height: 30px;
    font-size: 1.2em;
    /* animation: scrollFull 15s linear infinite; */
    top: 0;
    /* mix-blend-mode: difference; */
    position: fixed;
    white-space: nowrap;
}
.previous, .next{position: fixed; top: 45vh; font-size: 7em; font-family: 'Helvetica'; color:#4e60fc;}
.previous:hover, .next:hover{cursor: pointer; color: white;}
.previous{left: 9.5vw;} .next{right: 9.5vw;}
.menu_container{
    width: 100vh; 
    height: 30px;
    font-size: 1.2em;
    animation: scroll 15s linear infinite;
    bottom: -5px;
    mix-blend-mode: difference;
    position: fixed;
    white-space: nowrap;
 }
.main_menu, .news{
    font-family: 'Helvetica';
    font-weight: bold;
    color:#4e60fc;
}
.main_menu span{padding-right: 50px; list-style-type: none;}
.active{visibility: visible;}
.active, .visited{ font-family: 'Pilowlava'; font-size: 1.5em;}
.visited{
    color: transparent;
    -webkit-text-stroke: 1px #4e60fc;
}
.close{
  float: right;
  margin-right: 10px;
  color:#4e60fc;
mix-blend-mode: normal;
}
.back{
    display: none;
    right: 10vw;
    top: 12vh;
    color: white;
    z-index: 2;
    position: fixed;
    mix-blend-mode: difference;
    font-size: 3em;
}
.back:hover, .close:hover, .zoe:hover{
    cursor: pointer;
}

@keyframes scroll {
    0% {transform: translateX(0)}
    to { transform: translateX(-100%) }
}
@keyframes scrollFull {
    0% {transform: translateX(100%)}
    to { transform: translateX(-100%) }
}
@keyframes load {
    0%{
        opacity: 0.08;
		filter: blur(5px);
		letter-spacing: 3px;
        }
}
@media only screen and (min-device-width : 320px) and (max-device-width : 480px) {
    h1{font-size: 2em;}
    #canvas{height: 79vh; margin: 5vh 3vw;}
    .zoe{width: 100vw; text-align: center; left: 0; top: 25px;}
    .intro{margin: 0; width: 100vw;}
    .language{padding-left: 0; padding-top: 50vh; font-size: 0.9em;}
    .button{font-size: 0.9em;}
    .project_title {bottom: 120px;right: 20px;}
    .back{right: 20px; top: 100px;}
    .instructions, .Info_window{width: 80vw; margin: 30vh 10vw;}
}
