@font-face {
    font-family: "MortalKombat4";
    src: url("./fonts/MK4.woff") format("woff"),
      url("./fonts/MK4.woff2") format("woff2");
    font-weight: normal;
    font-style: normal;
  }
*{
    margin:0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'MortalKombat4', serif;
}

html,body{
    height: 100%;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body{
    background-color: #191919;
    font-family: 'MortalKombat4', serif;

}

.slide{
    position: relative;
    width: 100%;
    min-height: 100vh;
  
}

.sep{
    width: 100%;
    height: 1vh;
    background-color: #ffad01;

}

/************** navigation - logo *************************/

nav{
    width: 800px;
    position: absolute;
    right: 3%;
    top: 5%;
}

nav ul{
    display: flex;
    width: 100%;
    list-style: none;
}

nav ul li{
    flex: 1;
}

nav ul li a{
    display: block;
    width: 100%;
    text-align: center;
    color: #ffad01;
    text-decoration: none;
    font-size: 1.5em;
}

#logo{
    width: 100px;
    height: 86px;
    background-image: url(images/logo.png);
    background-position: center center;
    background-size: cover;
    position: absolute;
    left: 3%;
    top: 2%;
}

/***************** home **************************/

#home{
    perspective: 600px;
    
}

#dragon{
    background-image: url(images/dragon.png);
    width: 630px;
    height: 630px;
    background-size: cover;
    background-position: center center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%) rotateY(180deg);
    opacity: 0;
    animation-name: opa;
    animation-duration: 6s;
    animation-fill-mode: forwards;
    animation-iteration-count: 1;
    z-index: 1;
}

#mkLogo{
    background-image: url(images/mk11_logo.png);
    width: 798px;
    height: 204px;
    background-size: cover;
    background-position: center center;
    position: absolute; 
    top: 70%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    opacity: 0;
    animation-name: logo;
    animation-delay: 6s;
    animation-fill-mode: forwards;
    animation-duration: 4s;
}

@keyframes opa{
    0%{
        opacity: 0;
        transform: translate(-50%,-50%) rotateY(180deg);
    }
    100%{
        opacity: 1;
        transform: translate(-50%,-50%) rotateY(0deg);
    }
}

@keyframes logo{
    from{
        opacity: 0;
    }
    to{
        opacity: 1;
    }
}


/******************* présentation *****************/

#presentation{
    display: flex;
    background-color: #fdfdec;
}

#presg{
    width: 40%;
    height: 100vh;
    background-image: url(images/scorpion.gif);
    background-size: cover;
    background-position: top center;
}

#presd{
    width: 60%;
    min-height: 100%;
    background-color: #fdfdec;
    padding: 100px;
}

#presd p{
    margin-top: 10px;
}

/**************** personnages *******************/

#perso{
    display: flex;
    flex-wrap: wrap;
}

.perso{
    width: 25%;
    height: 50vh;
    background-size: cover;
    background-position: center center;
    filter: grayscale(1);
    transition: all 1s;
    position: relative;
    cursor: pointer;
    text-shadow: 1px 1px 5px black;
}

.perso a{
    text-decoration: none;
    color: #ffad01;
    position: absolute;
    font-size: 5vw;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    opacity: 0;
    transition: opacity 1s;
    text-align: center;
}

.perso:hover{
    filter: grayscale(0);
    box-shadow: 0 0 90px #191919 inset, 0 0 50px #191919 inset;
}

.perso:hover a{
    opacity: 1;
}
/************** galerie ************************/

.up{
    width: 100%;
    height: 20vh;
    background-image: url(images/wall.jpeg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    background-attachment: fixed;
    position: relative;
    border-bottom: solid 1vh #ffad01;
}

.up h1{
    color: #ffad01;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    font-size: 5em;
    text-shadow: 2px 2px 5px #191919;
}

#gal{
    width: 90%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 0 auto;
    padding-bottom: 5vh;
}

.galimg{
    width: 430px;
    height: 280px;
    border: solid 10px #ffad01;
    margin-top: 10vh;
    cursor: pointer;
    background-size: cover;
    background-position: center center;
}

.fond{
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    position: relative;
    opacity: 0;
    transition: opacity 1s;
}

.galimg:hover .fond{
    opacity: 1;
}

.fond a{
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    color: #ffad01;
    text-decoration: none;
    text-align: center;
    font-size: 3em;
    text-shadow: 2px 2px 4px #191919;
}

.fond a:hover{
    color: #fdfdec;
}

/*************** contact ******************/

#contact{
    display: flex;
}

#contg{
    background-color: #fdfdec;
    width: 55vw;
    min-height: 100vh;
    padding: 100px 100px 0 100px;
}

#contg p{
    font-size: 2em;
    margin: 30px auto;
}

#contg p input{
    font-size: 1em;
}

#contg p textarea{
    font-size: 1em;
    width: 85%;
    height: 30vh;
    resize: none;
}

#contd{
    width: 45vw;
    height: 100vh;
    background-image: url(images/contact.gif);
    background-size: cover;
    background-position: center center;
}

label[for=nom]{
    margin-right: 40px;
}

label[for=mail]{
    margin-right: 10px;
}

footer{
    width: 100%;
    height: 7vh;
    line-height: 7vh;
    color: #ffad01;
    text-align: center;
}



@media all and (max-width: 1000px){
    nav{
        width: 100%;
    }
    nav ul{
        flex-direction: column;
    }
    nav ul li{
        line-height: 30px;
    }

    .up h1{
        font-size: 4em;
    }

    #dragon{
        animation-name: none;
        opacity: 1;
        transform: translate(-50%,-40%) scale(0.6);
    }

    #mkLogo{
        display: none;
    }

    #presentation{
        flex-direction: column;
    }

    #presg{
        width: 100%;
        height: 30vh;
    }
    #presd{
        width: 100%;
    }

    #perso{
        flex-direction: column;
    }

    .perso{
        width: 100%;
    }

    .perso h2{
        font-size: 3em;
        opacity: 1;
    }

    #gal{
        justify-content: center;
    }

    .galimg{
        width: 350px;
        margin: 10vh auto 0;
    }

    #contact{
        flex-direction: column;
    
    }

    #contd{
        width: 100%;
        height: 30vh;
        order: 1;
       
    }

    #contg{
        width: 100%;
        order: 2;
        text-align: center;
        padding: 50px 0 0 0;
    }

    #contg p input{
        width: 80%;
      
    }

    label{
        display: block;
    }

}
/***********************PersoPage***************/
.persoPage
{
    text-align:center;
    color: #ffad01;
    width:100%;
    position: relative;
}
.persoPage p
{
    max-width:80%;
    margin:0 auto 5%;
    color:white;
}
.back
{
    text-decoration: none;
    color: white;
    padding:0.5% 2%;
    background-color: #ffad01;
}
.persoPage .sep
{
    margin-top:0.5%;
}
.trait
{
    color:#ffad01;
    text-align: center;
    line-height: 500%;
}
.connect
{
    color:white;
    text-align: center;
    line-height: 250%;
    font-size: 20px;
    height:100%;
    width:100%;
}
.connect form
{
    height:20%;
}
.connect p
{
    width:30%;
    height:30%;
    margin: 1% auto;
    position:relative;
}
.connect label
{
    position: absolute;
    left:20%;
}
.connect p input
{
    left:40%;
    position:absolute;
    width:40%;
    height:70%;
    padding:5%;
    border-radius:5px;
}
.connect p input[type="submit"]
{
    width:24%;
    left:38%;
    font-size:100%;
    height:50%;
    padding:0;
}
.admin
{
    color:white;
    text-align: center;
}
.admin .content
{
    width:60%;
    text-align: justify;
    margin:0 auto;
    font-size:20px;;
}
.admin .content>h1
{
    margin-bottom: 1%;
}
.content>form input
{
    padding: 1% 1.5%;
    background-color: #ffad01;
    border:none;
    font-size:20px;
    border-radius: 3px;
    float:left;
}
.content>a
{
    text-decoration: none;
    padding: 1% 1.5%;
    background-color: #636363;
    color:white;
    border:none;
    font-size:20px;
    border-radius: 3px;
    float:left;
    margin-left:10px;
}
.adminDiv
{
    margin-top:5%;
}
input[value='Ajouter']
{
    margin:1% 0 3%;
    padding: 1% 1.5%;
    background-color: #00a2ff;
    color:white;
    border:none;
    font-size:20px;
    border-radius: 3px;
}
.adminDiv table
{
    width:80%;
    margin:0 auto;
    border-collapse: collapse;
    line-height: 200%;
    font-size: 20px;
}
.adminDiv table th,.adminDiv table td
{
    border-top:solid 1px white;
}
.adminDiv table .tablePId
{
    width:9%;
    padding-left:1%;
}
.adminDiv table .tablePNom
{
    width:35%;
}
.adminDiv table .tablePAction
{
    width:55%;
}
.adminDiv table form input
{
    float:left;
    font-size:20px;
    padding: 1% 1.5%;
    margin: 0 1%;
}
.tableGId
{
    width:9%;
    padding-left:1%;
}
.tableGImage
{
    width:35%;
}
.tableGNom
{
    width:35%;
}
.tableGImage>a, .tablePNom>a
{
    text-decoration: none;
    color:blue;
}
.tableGAction
{
    width:20%;
}
.tableCId
{
    width:9%;
    padding-left:1%;
}
.tableCMail
{
    width:35%;
}
.tableCNom
{
    width:35%;
}
.tableCNom input
{
    background:none;
    color:blue;
    border:none;
}
.tableCAction
{
    width:20%;
}
.adminDiv table form input[value='Delete'],
{
    color: white;
    background-color: crimson;
    border: none;
}
.adminDiv table form input[value='Modify']
{
    background-color: #ffad01;
    border: none;
}
/****AdminTraitView****/
.traitViewA
{
    text-align: center;
    width:100%;
    height:100%;
    color:white;
}
.A
{
    width:40%;
    text-align: justify;
    margin:0 auto;
    line-height:300%;
}
.A select,.A input[type="text"],.A textarea
{
    resize: none;
    padding: 1% 1.5%;
    font-size:20px;
    width:100%;
    border-radius: 3px;
}
.back
{
    color:white;
    background-color:gray;
    padding: 1% 1.5%;
    border-radius: 3px;
    font-size:20px;
}
.A input[value='Oui']
{
    color:white;
    background-color:crimson;
    padding: 1% 1.5%;
    margin-top:0.8%;
    margin-right: 1%;
    border-radius: 3px;
    font-size:20px;
    border:none;
    float:left;
}