@import url('https://fonts.googleapis.com/css?family=Bangers');
@import url('https://fonts.googleapis.com/css?family=Roboto&display=swap');
@import url('https://fonts.googleapis.com/css?family=Boogaloo');

@import "reset.css";

/*-------- General -----------*/
* {
    box-sizing: border-box;
}
html {
    font-size: 62.5%;
}

body {
    font-family: 'Bangers', cursive;
    background-color: #ff9933;
    color: #211809;
}

#main {
    flex-direction: column;
    min-height: 100vh;
    display: flex;
}

.content {
    flex: 1;
}

footer {
    /*background-color: #000;*/
    background: -webkit-linear-gradient(#F65E01,#D62300);
    background: -moz-linear-gradient(#F65E01,#D62300);
    background: -o-linear-gradient(#F65E01,#D62300);
    background: linear-gradient(#F65E01,#D62300);
    height:7.33rem;
    margin-top: 1rem;
    color: #fff;
    font-family: 'Roboto', sans-serif;
    font-size: 1.45rem;
}

footer p {
    text-shadow: 0 1px 0 rgba(255, 255, 255, .4);
    text-align: center;
    margin-top: 1.9rem;
}

.links {
    display: table;
    margin: 1.45rem  auto;
    width: 69%;
}

.partner {
    display: table-cell;
    padding: 0 .5rem;
    text-align: center;
}

.partner a {
    font-family: 'Bangers', cursive;
    font-size: 1.9rem;
    color: rgba(0, 0, 0, .8);
    text-decoration: none;
    text-shadow: 0 1px 0 rgba(255, 255, 255, .4);
    transition: all .2s .1s;
}

.partner a:hover {
    color: rgba(255,255,255,.7);
}

#logo {
    text-align: center;
}

#img {
    margin: 0;
    width:auto;
}

.description {
    font-family: 'Boogaloo', cursive;
}

/*-------  Navigation -----------*/
.navigation {
    display: table;
    width: 75%;
    margin: -3px auto 0 auto;
    padding: 0;
    background: -webkit-linear-gradient(#F65E01,#D62300);
    background: -moz-linear-gradient(#F65E01,#D62300);
    background: -o-linear-gradient(#F65E01,#D62300);
    background: linear-gradient(#F65E01,#D62300);
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .3),
    0 3px 5px rgba(0, 0, 0, .2),
    0 5px 10px rgba(0, 0, 0, .2),
    0 20px 20px rgba(0, 0, 0, .15);
}

#nav-bar {
    padding:0;
}

.btn-nav {
    display: table-cell;
}

.navs-link {
    display: block;
    text-align: center;
    font-size: 3.25rem;
    color: rgba(0, 0, 0, .7);
    text-decoration: none;
    padding: 1rem 1rem 2.1rem 1rem;
    transition: all .3s .1s;
    text-shadow: 0 1px 0 rgba(255, 255, 255, .4);
    box-shadow:
    0 -1px 0 hsl(10, 100%, 32%) inset,
    0 -2px 0 hsl(10, 100%, 38%) inset,
    0 -3px 0 hsl(10, 100%, 44%) inset,
    0 -4px 0 hsl(10, 100%, 50%) inset,
    0 -5px 0 hsl(10, 100%, 60%) inset;
    position: relative;
    border-right: rgba(185, 146, 0, 0.5) 1px dashed;
}


.navs-link::before{
    content: '';
    position: absolute;
    left: 50%;
    bottom: 1rem;
    margin-left: -2px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(0, 0, 0, .5);
}

.navs-link:hover::before,
.navs-link:focus::before{
    background: rgba(255, 255, 255, .7);
    box-shadow: 0 0 2px white,
    0 -1px 0 rgba(0, 0, 0, .4);
}

.btn-nav:first-child a{
    border-radius: 3px 0 0 3px;
}
.btn-nav:last-child a{
    border-radius: 0 3px 3px 0;
    border-right: 0;
}

.navs-link:hover,
.navs-link:focus{
    padding: 1rem 2.8rem 2.1rem 2.8rem;
    background: rgba(180,180,0,.2);
    box-shadow:
    0 -1px 0 hsl(10, 100%, 42%) inset,
    0 -2px 0 hsl(10, 100%, 48%) inset,
    0 -3px 0 hsl(10, 100%, 54%) inset,
    0 -4px 0 hsl(10, 100%, 60%) inset,
    0 -5px 0 hsl(10, 100%, 66%) inset;
    transition: all .3s 0s;
}

.navs-link:active{
    background: linear-gradient(rgba(0,0,0,.2),rgba(0,0,0,.1));
    box-shadow: 0 0 2px rgba(0,0,0,.3) inset;
}

.navs-link.active {
    color: rgba(255,255,255,.7);
}

.navs-link.active:before {
    background: rgba(255, 255, 255, .7);
}

.toggle-nav {
    display: none;
}

.close.visible {
    display: none;
}

/*--------- Accueil -----------*/

#home {
   margin: 1.3rem 2.5rem;
   padding: 1.3rem;
}

#pres{
    border-right: #211809 dashed 1px;
}

#home h2 {
    text-align: center;
    font-size: 5.2rem;
    margin: 2.3rem 0;
}

#pres p {
    text-align: justify;
    font-size: 3.1rem;
    text-indent: 2rem;
    padding: 1.8rem 2.2rem 0 0;
    line-height: 1.2;
}

#news li {
    text-align: justify;
    font-size: 3.1rem;
    padding: 1.8rem 0 0 2.2rem;
    line-height: 1.2;
}

#news li a {
    color: #211809;
    text-decoration: none;
    transition: text-shadow 0.2s ease;
}

#news li a:hover {
    text-shadow: 0.35px 0 0 currentColor;
}

/*-------- Personnages ------------*/

#view {
    background-image: url('../img/background.png');
    border: #d5f8ff 6px groove;
    border-radius:3%;
    max-width: 100%;
    color :#fff;
    margin: auto 0;
    font-family: 'Bangers', cursive;
    padding : 0 1rem;
}

#view:not(.visible) {
    display: none;
}

#message:not(.visible) {
    display: none;
}

#message h3 {
    transform-origin: 0 0;
    transform: rotate(20deg);
    font-size: 3rem;
    margin: 8rem 0 0 11rem;
}

#characters {
    padding: 0 1.2rem;
}

#chars {
    margin: 0 .15rem;
}

.perso {
    padding: .5rem;
}

.portrait {
    padding: 0 !important;
    border: #d5f8ff 3px groove;
    border-radius: 50%;
    max-width: 100%;
    box-shadow: 0 0 1px 2px rgba(19, 19, 19, 0.6),
    inset 0 0 2px rgba(19, 19, 19, 0.6);
}

.portrait:hover {
    cursor: pointer;
    border-width: 4px;
    border-color: #fb5400;
    box-shadow: inset 0 0 0 rgba(251,81,0,0.4), 0 0 1px 2px rgba(251,81,0,0.6);
}

.big-portrait {
    max-width: 100%;
    border: #c17713 4px groove;
    border-radius: 8px;
}

.name-char {
    font-size: 3.75rem;
    text-align: center;
    margin: 1.5rem 0;
    text-shadow: 2px 2px 0 rgba(255, 255, 255, .4);
}

.link {
    text-align: center;
    box-shadow: inset 0 1px 0 0 #fce2c1;
    background:linear-gradient(to bottom, #ffc477 5%, #fb9e25 100%);
    border-radius:6px;
    border:1px solid #eeb44f;
    color:#ffffff;
    font-weight:bold;
    text-decoration:none;
    text-shadow:0 1px 0 #ccb97e;
    transition: all .2s .1s;
}

.download-char {
    font-size: 2.3rem;
    padding:.75rem 1rem;
    display:inline-block;
}

.link:hover {
    background:linear-gradient(to bottom, #fb9e25 5%, #ffc477 100%);
}

.update {
    margin: 2rem 0;
    font-size: 2rem;
}

.char-infos {
    margin: 2.3rem 0;
    font-size: 2rem;
    text-align: justify;
    line-height: 1.1;
}

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

#select-type {
    padding: .65em;
    margin: 2rem auto;
    width: 75%;
    text-align: center;
}

.select-button {
    margin: 0 2rem;
    padding: 0 2rem;
    color: rgba(15, 15, 15, .55);
    font-family: 'Bangers', cursive;
    text-align: center;
    font-size: 2.3rem;
    text-shadow: 0 1px 0 rgba(255, 255, 255, .4);
    background: none;
    border: none;
    position: relative;
    cursor: pointer;
    transition: all .2s;
}

.select-button:not(:last-child):before {
    content: '';
    position: absolute;
    left: 125%;
    bottom: .9rem;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(0, 0, 0, .75);
    cursor: none;
}

.select-button.mixitup-control-active {
    color: rgba(0, 0, 0, .7);
}

.select-button:hover {
    color: rgba(0, 0, 0, .7);
    padding: 0 3.5rem;
}

.close-view {
    display: none;
}

/*-------- Stages ------------*/

#stages {
    margin: 0 2.5rem;
}

.stage {
    padding: .5rem;
    text-align: center;
}

.stage-infos {
    border: #d5f8ff 6px groove;
    border-radius:45px;
    box-shadow: 0 0 2px 2px rgba(19, 19, 19, 0.6),
    0 0 2px rgba(19, 19, 19, 0.6) inset;
}

.image-stage {
    width: 100%;
    border-bottom: #d5f8ff 6px groove;
    border-top-left-radius: 39px;
    border-top-right-radius: 39px;
}

.stage-name {
    display: inline-block;
    margin: .35rem 0;
    text-decoration: none;
    color:rgba(0, 0, 0, .7);
    text-shadow: 0 1px 0 rgba(255, 255, 255, .4);
    font-size: 2.5rem;
}

.stage-infos:hover .stage-name {
    color: #fff;
}

.stage-infos:hover .image-stage {
    border-color: #fb5400;
}

.stage-infos:hover {
    border-color: #fb5400;
    box-shadow: inset 0 0 0 rgba(251,81,0,0.4), 0 0 1.5em rgba(251,81,0,0.6);
}

/*-------- Screenpacks ------------*/
#screenpacks {
    margin: 0 2.5rem;
}

.screenpack {
    border: #d5f8ff 6px groove;
    border-radius:2%;
    margin-bottom: 2rem;
    padding: 1rem;
    background-image: url('../img/background.png');
    box-shadow: 0 0 2px 2px rgba(19, 19, 19, 0.6),
    0 0 2px rgba(19, 19, 19, 0.6) inset;
}

.video-screenpack {
    border: 1px solid rgba(222,222,222,.35);
    border-radius: .75rem;
    min-width: 100%;
}

.screenpack-name {
    color :#fff;
    font-family: 'Bangers', cursive;
    font-size: 2.7rem;
    text-shadow: 2px 2px 0 rgba(255, 255, 255, .4);
}

.screen {
    color :#fff;
    font-size: 2.4rem;
    text-align: justify;
    line-height: 1.2;
    margin : 2.75rem 0;
    text-indent: 3rem;
    padding: 0 .75rem 0 0;
}

.download-screenpack {
    font-size: 2.5rem;
    padding:.75rem 1rem;
    display: inline-block;
}

.other-link {
    margin : 1rem 20%;
    font-size: 2.3rem;
    display:block;
    padding:.75rem 1rem;
}

.other-links {
    color :#fff;
    font-size: 2.3rem;
    margin: 1.55rem 0;
}

.carousel-img {
    border: 1px solid rgba(222,222,222,.35);
    border-radius: .75rem;
    width: 100%;
}

.swiper-button-next, .swiper-button-prev {
    color:#fff;
}

.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    opacity: .7;
}

.swiper-pagination-bullet-active {
    background: #fff;
}

/*--------- Projects ---------------*/

#projects {
    margin: 4rem;
}

.project {
    margin: 1.8rem 0;
    border: #d5f8ff 6px groove;
    border-radius:10px;
    padding: 1rem;
    background-image: url('../img/background.png');
    box-shadow: 0 0 2px 2px rgba(19, 19, 19, 0.6),
    0 0 2px rgba(19, 19, 19, 0.6) inset;
}

.video-projet {
    border: 1px solid rgba(222,222,222,.35);
    border-radius: .75rem;
    min-width: 100%;
}

.project-title {
    color :#fff;
    font-family: 'Bangers', cursive;
    font-size: 4rem;
    text-shadow: 2px 2px 0 rgba(255, 255, 255, .4);
    text-align: center;
    margin: .5rem 0 1.5rem 0;
}

.project-infos {
    color :#fff;
    text-align: justify;
    font-size: 2.4rem;
    line-height: 1.2;
    margin : 2.75rem 0;
    text-indent: 3rem;
    padding: 0 .75rem 0 0;
}

.project-infos p:last-child{
    margin-top: 1rem;
}

/*!***** Media queries ******!*/

@media screen and (max-width: 1449px){
    .download-char {
        font-size: 1.9rem;
        padding: .65rem 1rem;
    }

    #view {
        padding: 0 1rem;
    }

    .name-char {
        font-size: 2.55rem;
        margin: 1.4rem 0;
    }

    .sprite {
        max-width: 100%;
    }

    .char-infos {
        margin: 1.5rem 0;
        font-size: 1.75rem;
    }

    .stage-name {
        font-size: 2rem;
    }

    #screenpacks {
        margin: 0 1.5rem;
    }

    .screenpack-name {
        font-size: 2.2rem;
    }

    .screen {
        font-size: 1.9rem;
        line-height: 1.1;
        margin : 3rem 0;
        text-indent: 1.7rem;
        padding: 0 .65rem 0 0;
    }

    #projects {
        margin: 3rem;
    }
}

@media screen and (max-width: 1199px) {
    #img {
        width: 100%;
        height: auto;
    }

    .links {
        width:80%;
    }

    .partner a {
        font-size: 1.8rem;
    }

    .update {
        margin: 1.4rem 0;
    }

    #message h3 {
        margin: 6rem 0 0 8rem;
    }

    .char-infos {
        margin: 1.25rem 0;
        font-size: 1.65rem;
    }

    .stage-name {
        font-size: 2.2rem;
    }

    .download-screenpack {
        font-size: 3.6rem;
        padding: 1rem 1.5rem;
    }

    .screenpack-name {
        font-size: 3rem;
        margin-top: 2rem;
    }

    .screen {
        font-size: 2.3rem;
        line-height: 1.3;
        margin : 3.8rem 0;
        text-indent: 3rem;
        padding: 0 1.1rem 0 0;
    }

    .other-link {
        margin : 1rem 25%;
        font-size: 2.8rem;
    }

    #projects {
        margin: 2.2rem;
    }
}

@media screen and (max-width: 979px) {
    .navs-link {
        font-size: 2.7rem;
    }

    .links {
        width:92%;
    }

    .update {
        margin: 1rem 0;
        font-size: 1.65rem;
    }

    #select-type {
        width: 90%;
    }

    .perso {
        padding: .5rem;
    }

    .download-char {
        padding: .7rem;
    }

    .stage-name {
        font-size: 2.4rem;
    }

    #screenpacks {
        margin: 0 1rem;
    }

    .screenpack-name {
        font-size: 2.8rem;
        margin-top: 1.8rem;
    }

    .screen {
        font-size: 2.1rem;
        line-height: 1.3;
        margin : 3.2rem 0;
        text-indent: 3rem;
        padding: 0 1rem 0 0;
    }

    .other-link {
        margin : .5rem ;
        display: inline-block;
    }

    #projects {
        margin: 1.5rem;
    }
}

@media screen and (max-width: 767px) {
    #nav-bar.visible {
        display: none !important;
    }

    .toggle-nav {
        display: inline-block;
        background: -webkit-linear-gradient(#F65E01, #D62300);
        background: -moz-linear-gradient(#F65E01, #D62300);
        background: -o-linear-gradient(#F65E01, #D62300);
        background: linear-gradient(#F65E01, #D62300);
        padding: 1.1em;
        border-radius: 3px;
        box-shadow: 0 -1px 0 hsl(10, 100%, 32%) inset,
        0 -2px 0 hsl(10, 100%, 38%) inset,
        0 -3px 0 hsl(10, 100%, 44%) inset,
        0 -4px 0 hsl(10, 100%, 50%) inset,
        0 -5px 0 hsl(10, 100%, 60%) inset;
        margin: -3px 0 0 0;
        width: 100%;
    }

    .toggle-nav.visible {
        position: absolute;
        bottom: 0;
        z-index: 3;
    }

    .toggle-nav-link {
        color: rgba(255, 255, 255, .7);
        font-size: 28px;
        text-decoration: none;
        margin-left: 92%;
    }

    .navigation {
        width: 100%;
        display: flex;
        flex-direction: column;
        text-align: center;
    }

    .navs-link {
        width: 100%;
        display: inline-block;
        font-size: 5.85rem;
        padding-bottom: 3.4rem;
    }

    .navs-link:hover,
    .navs-link:focus {
        padding-bottom: 3.4rem;
    }

    .navs-link::before {
        bottom: 10%;
        width: 14px;
        height: 14px;
    }

    #nav-bar {
        position: absolute;
        width: 100%;
        z-index: 2;
    }

    .content:not(.visible) {
        display: none;
    }

    #home {
        margin: 0;
        padding: .8rem;
    }

    #home h2 {
        margin: 1.1rem 0;
    }

    #pres {
        border-right: 0;
        border-bottom: #211809 dashed 1px;
        padding-bottom: 2rem;
    }

    #pres p {
        padding: 1.2rem 0 0 0;
    }

    #news li {
        padding: 1.2rem 0 0 2.2rem;
    }

    .links {
        width: 100%;
    }

    .partner a {
        font-size: 1.65rem;
    }

    footer p {
        font-size: 1.4rem;
    }

    #select-type {
        width: 100%;
    }

    .select-button {
        padding: 0 1rem;
        margin: 0 1.9rem;
    }

    .select-button:hover {
        padding: 0 2.1rem;
    }

    .close-view.visible {
        display: block;
        text-align: center;
        margin-top: 2rem;
    }

    .close-view a {
        text-decoration: none;
        color: #fff;
        font-size: 4rem;
    }

    #chars:not(.visible) {
        display: none;
    }

    #chars {
        max-height: 100%;
    }

    #message {
        display: none;
    }

    .name-char {
        font-size: 4.55rem;
        margin: 1.4rem 0;
    }

    .char-infos {
        margin: 2rem 0;
        font-size: 2.65rem;
    }

    .update {
        margin: 1.5rem 0;
        font-size: 2.65rem;
    }

    .big-portrait {
        min-width: 100%;
    }

    .download-char {
        font-size: 3.1rem;
        padding: .75rem 1rem;
    }

    .stage-name {
        font-size: 2.65rem;
    }

    #screenpacks {
        margin: 0 .45rem;
    }

    .screenpack-name {
        font-size: 3.4rem;
        margin-top: 1.3rem;
    }

    .screen {
        font-size: 2.5rem;
        line-height: 1.2;
        margin : 2rem 0;
        text-indent: 2rem;
        padding: 0 1rem 0 2rem;
    }

    .other-link {
        margin : .5rem 1rem;
        font-size: 3rem;
    }

    .other-links {
        margin : 1.2rem 0;
    }

    .video-projet {
        margin-bottom: 1rem;
    }

    #projects {
        margin: 0;
    }
}

@media screen and (max-width: 575px) {
    .partner a {
        font-size: 1.5rem;
    }

    footer p {
        font-size: 1.2rem;
        margin-top: 1.3rem;
    }

    #select-type {
        padding: 0;
    }

    .select-button {
        padding: 0 1rem;
        margin: 0 1.1rem;
    }

    .select-button:hover {
        padding: 0 1.2rem;
    }

    .download-char {
        font-size: 4.2rem;
        padding: 1.2rem 1.5rem;
        margin-top: 1.5rem;
    }

    .big-portrait {
        min-width: 75%;
        margin: 1rem auto;
        display: block;
    }

    .sprite {
        display: none;
    }

    #stages {
        margin: 0 .85rem;
    }

    /* .image-stage {
        width: 48rem;
    } */

    .stage-name {
        font-size: 3rem;
    }

    #screenpacks {
        margin: 0;
    }

    .video-projet, .video-screenpack {
       max-width: 100%;
    }
}

@media screen and (max-width: 475px) {
    .download-char {
        font-size: 3rem;
        padding: .85rem .65rem;
    }

    .big-portrait {
        min-width: 90%;
    }

    .stage-name {
        font-size: 2.5rem;
    }
}