@import url('https://fonts.googleapis.com/css2?family=Gajraj+One&display=swap');

body {
    background-color:rgb(196, 17, 17); /*url(/img/paysage.jpg) center/cover;*/
    min-height: 100vh 
}

* {
    margin: 0;
    padding: 0;
}


h1 {
    color: rgb(255, 162, 0); 
    font-size: 99px;
    text-shadow: 3px 3px 8px rgba(255, 0, 0, 0.311);
    font-family: 'Gajraj One', cursive;
    padding-left: 20px;
}
 main {
    background-color:rgb(255, 162, 0);
    min-height: 500px;
    width: 80%;
    margin: 0 auto;
    border: 2px solid rgb(0, 0, 63);
    border-radius: 5px;
    box-shadow: 5px 5px 20px 2px rgba(0, 0, 63, 0.667);
    padding-left: 10px;
    padding-right: 10px;
    padding-top: 15px;
 }

 h2{
    margin: 0;
 }

 .flexboxTest {
    border: 2px solid rgb(0, 0, 63);
    border-radius: 10px;

 }

 .flexboxTest ul {
    padding: 0;
    display: flex;
    justify-content: space-around;
 }

 .flexboxTest li {
    list-style: none;
    height: 120px;
    width: 160px;
    margin: 10px;
    background-color: rgb(0, 0, 100);
    border-radius: 12px;
    /*centrer un element dans un seul "li"*/
    display: flex;
    justify-content: center; 
    align-items: center;
 }

 .grid {
    margin-top: 20px;
    margin-bottom: 15px;
    border: 2px solid rgb(0, 0, 100);
    border-radius: 12px;
 }

 .grid-container {
    display: grid;
    grid-template-columns: 30% 70%;
 }

 .grid img {
    width: 80%;
    margin: 20px auto;
    display: block;
 }

 form {
    margin: 10px auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr 1fr;
    grid-template-areas: 
    "i1 i2"
    "ta ta"
    "bt bt";
 }

 input, 
 textarea {
    margin: 5px;
    border: 1px solid rgb(0, 0, 100);
    padding: 10px;
    font-family: 'Gajraj One', cursive;
    border-radius: 12px;
 }

 textarea {
    grid-area: ta;
    height: 40px;
    resize: none;
 }

 /*  une classe = .
     une balise = le nom de la balise 
     un id = # avec le nom de l'id  */

#boutonValidation {
    grid-area: bt;
    cursor: pointer;
    background-color: rgb(0, 0, 100);
    transition: 1.2s;
}

#boutonValidation:hover {
    background-color: rgb(250, 0, 150);
    color: grey;
}

/*responsive*/

@media screen and (max-width: 900px) {
    .grid-container {
        display: block;
    }

    .grid-container img {
        width: 40%;
    }
}

@media screen and (max-width: 610px) {
    form {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr;
        grid-template-areas:
        "i1"
        "i2"
        "ta"
        "bt" ;
    }
    
}