h1, h2, .late, a{
    font-family: 'Fira Mono', monospace;
}

p, h3 {
    font-family: 'Fira Sans', sans-serif;
}

body{
    margin: 0;
    padding: 0;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    background: center left url(/ressources/img/polymanga_22.png);
    background-color: #e5e5e5;
    background-size: cover;

}

#app{
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    display: grid;
    grid-template-rows: 50px auto;
}


nav{
    width: 100%;
    background-color: #7545d5;
    display: grid;
    grid-template-columns: 60px auto;
    height: 50px;

}

nav h1{
    color: white;
    font-size: 5vw;
    line-height: 50px;
    margin: 0;
}

nav .hamburger {
    position: relative;
    z-index: 50;
}

nav .hamburger .line{
    height: 3px;
    width: 40px;
    margin-left: 10px;
    background-color: white;
    position: absolute;

    opacity: 1;
    transform: rotate(0deg);

    transition: all .1s;

}

nav .hamburger .line:first-child{
    top: 12px;
}

nav .hamburger .line:nth-child(2){
    top: 23.5px;
}

nav .hamburger .line:last-child{
    bottom: 12px;
}


nav .slider{
    top: 0;
    height: 100vh;
    width: 80vw;
    left: -80vw;
    position: fixed;
    background-color: white;
    z-index: 10;
    transition: all .2s;
}

nav .slider ul{
    padding: 0;
    margin-top: 70px;
    list-style: none;
}

nav .slider ul li a{
    padding: 16px;
    display: block;
    /*border-top: solid #7545d5 2px;*/
    font-size: 1.2em;
    color: #7545d5;
    cursor: pointer;
    text-decoration: none;
}

nav .slider ul li:last-child a{
    /*border-bottom: solid #7545d5 2px;*/
}

nav .slider ul li a:hover, nav .slider ul li.active  a{
    background-color: #7545d5;
    color: white;
}

nav.active .slider{
    left: 0;
}



nav.active h1{
    color: #7545d5;
    z-index: 50;
}

nav.active .hamburger .line{
    background-color: #7545d5;
}

nav.active .hamburger .line:first-child{
    top: 23.5px;
    transform: rotate(45deg);
}

nav.active .hamburger .line:nth-child(2){
    opacity: 0;
    top: 23.5px;
}

nav.active .hamburger .line:last-child{
    bottom: 23.5px;
    transform: rotate(-45deg);
}













section{
    height: 100%;
    width: 100%;

    overflow-x: hidden;
    overflow-y: auto;
}

section .salle h2{
    color: #7545d5;
    margin-left: 16px;
    margin-top: 50px;
    font-weight: bold;
}

section .salle:first-child h2{
    margin-top: 20px;
}

section .pannel{
    margin: 16px;
    padding: 16px;
    background-color: white;
    opacity: .9;
    box-shadow: 0 1px 1px 0 rgba(0,0,0,.06), 0 2px 5px 0 rgba(0,0,0,.2);
    border-radius: 3px;
}

section .pannel *{
    margin: 5px 0;
}

section .pannel *:first-child{
    margin-top: 0;
}

section .pannel .late {
    font-weight: bold;
    color: #E41616;
    margin-left: 10px;
}

section .pannel *:last-child{
    margin-bottom: 0;
}


section .pannel.full, section .pannel.canceled{
    background-color: #E41616;
    color: white;
}

section .pannel.full .late, section .pannel.canceled .late {
    font-weight: bold;
    color: white;
}

section .pannel.full .accent, section .pannel.canceled .accent{
    font-family: 'Fira Mono', monospace;
    font-weight: bold;
}


section .pannel.flush{
    background-color: #292929;
    color: white;
}

section .pannel.flush *{
    display: inline-block;
}

section .pannel.flush .time{
    margin-left: 30px;
}



.closed #closed{
    display: flex;
}


#closed{
    height: 100vh;
    width: 100vw;
    position: fixed;
    z-index: 1000;

    left: 0;
    top: 0;

    text-align: center;

    display: none;
    align-items: center;
    justify-content: center;

    flex-direction: column;
}

#closed h2{
    color: white;
    font-size: 4vw;
    margin: 20px;
}

#closed p{
    color: white;
    font-size: 2.5vw;
    opacity: .8;
}

#closed img{
    width: 70%;
}







@media only screen and (min-width: 720px) {

    body{
        display: flex;
        align-items: center;
        justify-content: center;
    }

    #app{
        height: calc(100vh - 60px);
        width: 720px;
        overflow: hidden;
        display: grid;
        grid-template-rows: 50px auto;
        background-color: white;
        box-shadow: 0 1px 1px 0 rgba(0,0,0,.06), 0 2px 5px 0 rgba(0,0,0,.2);

    }

    nav h1{
        font-size: 2em;
    }

    nav .slider{
        top: -50px;
        height: 100vh;
        width: calc(720px * 0.8);
        left: -80vw;
        position: relative;
        background-color: white;
        z-index: 10;
        transition: all .2s;
        box-shadow: 0 1px 1px 0 rgba(0,0,0,.06), 0 2px 5px 0 rgba(0,0,0,.2);
    }
}


@media only screen and (min-width: 1220px) {

    #app{
        height: calc(100vh - 60px);
        width: 1200px;
        overflow: hidden;
        display: grid;
        grid-template-rows: 50px auto;
        background-color: white;
        box-shadow: 0 1px 1px 0 rgba(0,0,0,.06), 0 2px 5px 0 rgba(0,0,0,.2);

    }

    #page-name{
        display: none;
    }

    nav{
        display: block;
    }

    nav h1 {
        margin-left: 16px;
        color: white!important;
    }

    nav .slider, .hamburger{
        display: none;
    }

    #salles{
        display: grid;
        grid-template-columns:50% 50%;
        height: auto;
        grid-auto-rows: max-content;
    }

    section .salle h2{
        margin-top: 30px!important;
    }
}
