/** DESIGN FOR FIRST PAGE **/

@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300&family=Oswald&display=swap');

* {
    margin: 0;
    padding: 0;
    border: none;
}

body {
    background: lightblue;
    font-family: Lato, sans-serif;
    font-weight: 300;
    color: black;
}

/**  top title of the page (Rock | Paper | Scissors) and its positioning on the page **/

#title-of-page {
    text-align: center;
    padding-top: 3%;
    letter-spacing: 3px;
}

/**  buttons to choose which page you want to visit on the site (Home, Play or Feedback) **/

#menu {
    text-align: center;
    font-size: 110%;
    letter-spacing: 3px;
}

#home, #play, #feedback {
    text-decoration: none;
    text-transform: uppercase;
}

/**  text (can you beat the computer and also the rules of the game) **/

#question, #rules {
    text-align: center;
    padding-top: 25px;
}

/** design of the front page information **/

#question {
    max-width: 550px;
    width: 90%;
    background: white;
    margin: 17vh auto 0 auto;
    padding: 40px;
    border-radius: 3px;
    box-sizing: border-box;
    margin-bottom: 30px;
}

/** DESIGN OF PLAY PAGE **/

/* Game layout */

.heading {
    text-align: center;
    padding-top: 10px;
    padding-bottom: 10px;
}

.game-area {
    background-color: white;
    box-sizing: border-box;
    width: 85%;
    height: 100%;
    max-height: 100%;
    max-width: 950px;
    margin-left: auto;
    margin-right: auto;
    padding: 1%;
}

/* buttons */

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

.selection {
    cursor: pointer;
    transition: 150ms;
}

.selection:hover {
    transform: scale(1.02);
}

#picture1 {
    height: 350px;
    width: 300px;
}

#picture2 {
    height: 350px;
    width: 300px;
}

#picture3 {
    height: 350px;
    width: 300px;
}

/* scores */

.results {
    margin-top: 20px;
    display: grid;
    justify-content: center;
    grid-template-columns: repeat(2, 1fr);
    justify-items:center;
    align-items: center;
}

.result-score {
    margin-left: 10px;
}

.result-selection {
    opacity: 25%;
    font-size: 200px;
}

.result-selection.winner {
    opacity: 100%;

}

/** restart game button **/

#restart {
   font-size: 16px;
   cursor: pointer;
   transition: 150ms;
   background-color: white;
   border-radius: 50px;
   width: 33%;
   margin-left: 33%;
   margin-bottom: 2%;
   margin-top: 2%;
}

#restart:hover {
    transform: scale(1.02);
}


/** FORM PAGE **/

/** register form **/

#main {
    padding-bottom: 50px;
}

form {
    max-width: 550px;
    width: 90%;
    background: white;
    margin: 17vh auto 0 auto;
    padding: 40px;
    border-radius: 3px;
    box-sizing: border-box;
}

h1 {
    margin: 0;
    text-align: center;
}

label {
    display: block;
    margin: 20px 0;
}

input, textarea {
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
    outline: none;
    resize: none;
    border: none;
    border-bottom: 1px solid black;
}

input[type="text"]:focus, textarea:focus {
    border-bottom: 1px solid lightblue;
}

.center {
    text-align: center;
}

input[type="submit"] {
    margin-top: 30px;
    width: 90%;
    max-width: 200px;
    background: lightblue;
    cursor: pointer;
    border-radius: 50px;
}

.error {
    color: red;
}

.error-border {
    border-bottom: 1px solid red;
}

#success {
    color: green;
}

/** restart game button **/

.submit {
    text-align: center;
}    

/** Footer **/

#footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 60px;   
    background: #87CEFA;  
    text-align: center;
}

/** Media Query **/

@media only screen and (max-width: 1116px) {
    .game-area {
        max-width: 80%;
    }

    #picture1 {
        height: 80%;
        width: 80%;
    }

    #picture2 {
        height: 80%;
        width: 80%;
    }

    #picture3 {
        height: 80%;
        width: 80%;
    }

    .result-selection {
        font-size: 3rem;
    }
}




