@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300&family=Righteous&family=Russo+One&display=swap');

/*global*/

body {
    background-image: url("../images/fond.jpg");
    background-attachment: fixed;
	background-repeat : no-repeat;
    font-family: 'Russo One', sans-serif;
    font-size: 1.1em;
}

header {
    background-color: #111;
    color: white;
    text-align: center;
    border-radius: 0 0 20px 20px;
    margin: 0 7%;
    margin-top: -0.5em;
    padding-top: 0.5em;
}

main {
    background-color: white;
    margin: 0 7%;
    padding: 0 10px;
    padding-top: 0.1em;
    padding-bottom: 1em;
    border-radius: 20px;
    font-family: 'Poppins', sans-serif;
    box-shadow: 10px 10px 20px 3px rgb(0 0 0 / 50%);
}

footer {
    background-color: #111;
    position: relative;
    color: white;
    text-align: center;
    border-radius: 20px 20px 0 0;
    margin: 0 7%;
    margin-bottom: -0.5em;
    margin-top: 1em;
    padding: 0.1em 0
}

h1, h2, h3, h4 {
    font-family: 'Righteous', cursive;
    margin: auto;
}

h1 {
    text-align: center;
    text-shadow: 5px 5px 4px rgba(0, 0, 0, 0.3);
    font-size: xxx-large;
    display: inline-block;
    margin-top: 0.5em;
}

.titre {
    text-align: center;
}

/*retour en haut de page*/

.up {
    position: fixed;
    bottom: 5%;
    right: 2%;
}

/*animation*/

.pokeball {
    display: inline-block;
    margin: 0 1em;
}

.pokeball#pk_g {
    animation: spin_g 5s linear infinite;
}

.pokeball#pk_d {
    animation: spin_d 5s linear infinite;
}

@keyframes spin_g {
    from {
      transform: rotate(0deg);
    }
    to {
      transform: rotate(360deg);
    }
}

@keyframes spin_d {
    from {
      transform: rotate(0deg);
    }
    to {
      transform: rotate(-360deg);
    }
}

/*barre de naviguation*/

nav li a {
    text-decoration: none;
    padding: 14px 16px;
    color: white;
}

nav li {
    display: inline-block;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    font-size: larger;
    transition: background-color 0.5s;
    border-radius: 1rem 1rem 0 0;
}

nav li:hover {
    background-color: #223059;

}

.active {
    background-color: #416BBF;
    border-radius: 1rem 1rem 0 0;
}

/*section et article - global mais principalement utiliser sur la page index*/

section {
    background-color: #F2E3B3;
    margin: 40px;
    padding: 1em;
    border-radius: 5px;
    border: 1px solid #666;
}

section p {
    margin: 5%;
}

.bloc, .droite, .gauche {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: justify;
}

.bloc {
    margin: 0 2%;
}

.droite {
    margin-right: 5%
}

.gauche {
    margin-left: 5%
}

.gauche p, .droite p {
    width: 50%;
}

.episode {
    display: block;
    margin: auto;
}

/*tableaux - page jeux*/

table {
    text-align: center;
    border-spacing: 20px;
    margin: auto;
}

table tr td:nth-child(2) {
    text-align: left;
}

th {
    font-family: 'Righteous', cursive;
    font-size: larger;
}

/*formulaire - page questionnaire*/

fieldset {
    border-radius: 5px;
}

fieldset p {
    margin: 3%;
    font-size: 1.2em;
    margin-left: 30%;
}

fieldset input#prenom, fieldset input#nom, fieldset input#pkmn_pref {
    width: 380px;
    height: 35px;
}

fieldset label[for="nom"], fieldset label[for="prenom"], fieldset label[for="pkmn_pref"] {
    width: 200px;
    display: inline-block;
}

legend {
    font-size: 1.2em;
    font-weight: bold;
    padding: 0 1em;
}

input[type=radio], input[type=checkbox], select#types {
    margin-left: 10%;
}

#types {
    font-size: 0.9em;
    font-family: 'Poppins', sans-serif;
}

button {
    border: 4px outset #223059;
    border-radius: 5px;
    font-size: 1.2em;
    padding: 0.2em;
    margin: 0 0.5em;
    cursor: pointer;
    background-color: #416BBF;
    transition: background-color 0.5s;
    color: white;
    width: 10em;
    font-family: 'Russo One', sans-serif;
}

button:hover {
    background-color: #223059;
}

.center {
    text-align: center;
    margin: 1% 0;
}