@font-face {
    font-family:"Azonix" ;
    src: url("../font/azonix.otf"); 
  }

@font-face {
    font-family:"Retro" ;
    src: url("../font/retro.ttf"); 
}

@keyframes vibration {
    0% { transform: translate(0, 0) rotate(0deg); color: rgb(255, 17, 124);}
    25% { transform: translate(5px, 5px) rotate(5deg); color: #f9d423;}
    50% { transform: translate(0, 0) rotate(0deg); color: rgb(255, 17, 124);}
    75% { transform: translate(-5px, 5px) rotate(-5deg);  color: #00f5dc;}
    100% { transform: translate(0, 0) rotate(0deg); color: rgb(255, 17, 124);}
  }

@keyframes rotate{
    0% { transform: translate(0px , 0px) rotate(0deg);}
    100% { transform: translate(50px , 0px) rotate(10deg);}

}


h1{
    font-family: Retro;
    font-size: 70px;
    text-align: center;
    margin-bottom: 150px;
    margin-top: 70px;
    color: rgb(255, 17, 124);
    text-shadow: 3px 3px 40px rgb(243, 51, 111), 0 0 1em rgb(255, 255, 255), 0 0 0.2em rgb(255, 0, 238);
    margin-left: 30%;
    margin-right: 30%;
    cursor: url("../curseur/Arrow.cur"), auto;
    animation: vibration 2s ease-in-out infinite;

    transition: all 1500ms ease-in;
    transform: scale(1);   
}


*{
    margin: 0;
    padding: 0;
    outline: 0;
    box-sizing: border-box;
    user-select: none;
}

body{
    background-color: #020322;
    /*overflow: hidden;*/
}


.rec{
    width: 300px;
    height: 518px;
    margin: 15px;
    border-radius: 15px;
    background-repeat: no-repeat;
    background-size: cover;

    display: inline-block;
    -webkit-transition: all 200ms ease-in;
    -webkit-transform: scale(1); 
    -ms-transition: all 200ms ease-in;
    -ms-transform: scale(1); 
    -moz-transition: all 200ms ease-in;
    -moz-transform: scale(1);
    transition: all 500ms ease-in;
    transform: scale(1);   
}

#rec1{
    background-image: url("../image/Cartes/C1.jpg");
}
#rec2{
    background-image : url("../image/Cartes/C2.png")
}


a{
    cursor: url("../curseur/Arrow.cur"), auto;
    color: white;
}

.rec:hover{
    box-shadow: 0px 0px 150px #000000;
    z-index: 2;
    -webkit-transition: all 200ms ease-in;
    -webkit-transform: scale(1.3);
    -ms-transition: all 200ms ease-in;
    -ms-transform: scale(1.3);   
    -moz-transition: all 200ms ease-in;
    -moz-transform: scale(1.3);
    transition: all 200ms ease-in;
    transform: scale(1.3);
}

#image{
    width: 300px;
    height: 403px;
    border-radius: 15px;
    border-color: 1px 1px rgb(255, 17, 124);
    border: solid rgb(255, 17, 124);
    transition: all 400ms ease-in-out;
}

#image:hover{
  border: solid rgb(255, 235, 17);
  transition: all 400ms ease-in-out;
  animation: rotate 0.5s ease-in;
  animation-fill-mode: forwards;
}

.rectangle{
    display:flex;
    justify-content: center;
}

#accueil_bouton{
    font-size: 25px;
    text-decoration: none;
    color: white;
    font-family: azonix;
}

#accueil_bouton:hover{
    text-shadow: 2px 2px 30px #00f5dc;
    transition: all 300ms ease-in;
    animation: vibration 2s ease-in-out infinite;
}

#bouton{
    margin-top: 40px;
    text-align: center;
}


@media screen and (min-width: 1000px){   /*taille écran PC portable = 1662px */
   
    h1{
     margin-bottom: 80px;
     margin-top: 50px;
    }
 
    .rec{
     background-color: white;
     width: 180px;
     height: 310px;
     margin: 20px;
     border-radius: 5px;
    }
 
    #image{
     width: 180px;
     height: 310px;
     border-radius: 5px;
    }
 }


 @media screen and (max-width: 600px){   /*taille écran TELEPHONE = 500px */

    @keyframes rotate{
        0% { transform: translate(0px , 0px) rotate(0deg);}
        100% { transform: translate(25px , 0px) rotate(5deg);}
    
    }

    body{ 
        overflow-x: hidden;
    }

   

    h1{
     font-size: 40px;
     margin-left: 0px;
     margin-right: 0px;
     margin-bottom: 45px;
     text-align: center;
    }

    .rectangle{
        display: flex;
        flex-wrap: wrap;
    }

    .rec{
        background-color: white;
        width: 180px;
        height: 310px;
        margin: 20px;
        border-radius: 5px;
        margin-left: 25px;
    }
    
    #image{
        width: 180px;
        height: 310px;
        border-radius: 5px;
    }

    #bouton{
        margin-top: 40px;
        text-align: center;
        margin-bottom: 30px;
    }

    .rec:hover{
        transform: scale(1.2);
    }
  }