@import url('https://fonts.googleapis.com/css2?family=Lora:wght@500&family=Nunito+Sans&display=swap');

* {
    margin: 0;
    padding: 0;
}

/* Add style to the body of webpage */
body {
    background-color: rgb(68, 128, 240);
    font-family: 'Lora', sans-serif;
    font-size: 1.5em;
    text-align: center;
    color: #ffffff;
    text-shadow: 2px 2px 0px black;
}

header {
    margin-bottom: 20px;
    background-color: #05258f;
    border-bottom: 5px solid #ffffff;
    height: 120px;
}

header h1 {
    padding-top: 30px;
    font-family: 'Lora', serif;

}


section h2 {
    margin-bottom: 0px;
    margin-top: 40px;

}


/* Style the images thats are the main buttons of the game*/

#game {
    height: 10px;
    margin-top: 100px;
    background-color: rgb(68, 128, 240);
    ;
}


ul {
    margin-top: 30px;
    font-weight: bold;
}

#image-container {
    display: flex;
    margin-top: 100px;
    margin-bottom: 50px;
    padding-top: 10px;
    height: 200px;
    justify-content: center;

}

img {
    height: 150px;
}

#rock {
    margin-right: 10px;
    display: none;
}

#paper {
    display: none;

}

#scissors {
    margin-left: 10px;
    display: none;

}

#box-area {
    width: 600px;
    height: 425px;
}

#box-area>ul {
    margin-top: 50px;
}

.rps {
    padding-top: 20px;
    background-color: #05258f;
    height: 200px;
    width: 200px;
    padding-top: 1px;
    border: 5px solid #ffffff;
    ;
    border-radius: 15px;


}

.rps:hover {
    cursor: pointer;
    background-color: #5273df;
    transform: scale(1.1);

}

/* style box-area box which will appear before the player starts the game*/
.message-box {
    background-color: #05258f;
    height: 300px;
    width: 600px;
    margin: auto 0px;
    border: 5px solid #ffffff;
    border-radius: 40px;
}

ul {
    margin-top: 30px;
    font-size: 1.8rem;
}

.box-area,
li {
    list-style-type: none;
    padding-left: 5px;
    padding-right: 5px;


}

/* the box which will appear if player loses the game*/

#lose-box {
    display: none;
    margin-bottom: 50px;


}

#lose-box>p {
    margin-top: 80px;
    padding-left: 60px;
    text-align: center;
    font-size: 1.5em;
}

/* the box which will appear if player wins the game*/
#win-box {
    display: none;
    margin-bottom: 50px;
}


#win-box>p {
    margin-top: 80px;
    text-align: center;
    font-size: 1.5em;
}

/* style unordered list at the opening text*/


ul {
    list-style-position: inside;
    margin-bottom: 40px;
}

/* style div contained outside the scores*/

#score-container {
    height: 150px;
    margin-bottom: 0px;


}

/* style computer and users div */

.computer,
.user {
    font-size: 0.9em;
    background-color: #05258f;
    width: 20%;
    border-radius: 40px;
    margin-top: 100px;
    border: 5px solid #ffffff;


}

.computer {
    float: left;
    margin-left: 400px;
    padding-top: 20px;
    height: 40px;
    padding-bottom: 10px;

}

.user {
    float: right;
    margin-right: 400px;
    padding-bottom: 10px;
    padding-top: 20px;
    height: 40px;



}

/* style result div that appears below the images*/
#result {
    font-size: 1.6em;
    font-weight: bold;

}


#message {
    height: 150px;
    margin-bottom: 100px;
    font-size: 1.6em;

}

/* the play game button is styled below*/
#play-game {
    background-color: #05258f;
    border: 5px solid #ffffff;
    height: 80px;
    font-size: 1.2em;
    margin-top: -500px;
    width: 190px;
    border-radius: 40px;
    color: #ffffff;
    text-shadow: 3px 3px 0px black;
    font-family: 'Lora', sans-serif;

}

/* the play again button is styled below*/
#restart-container {
    height: 350px;
    width: 200px;
    margin: auto;
    margin-top: -150px;
    padding-bottom: 5px;

}

#play-game:hover {
    cursor: pointer;
    background-color: #5273df;
    transform: scale(1.1);
    padding-bottom: 5px;
}

#play-again {
    display: none;
    margin: auto;
    height: 80px;
    font-size: 1.2em;
    margin-bottom: 200px;
    width: 190px;
    background-color: #05258f;
    border: 5px solid #ffffff;
    color: white;
    border-radius: 40px;
    padding-bottom: 10px;
    text-shadow: 3px 3px 0px black;
    font-family: 'Lora', sans-serif;
    padding-top: 5px;
    padding-bottom: 80px;
}

#play-again:hover {
    cursor: pointer;
    background-color: #5273df;
    transform: scale(1.1);
}


@media only screen and (max-width: 2600px) {
    .computer {
        margin-left: 700px;

    }

    .user {
        margin-right: 700px;

    }
}

/* make website responsive for large screeens*/
@media only screen and (max-width: 2508px) {
    .computer {
        margin-left: 600px;

    }

    .user {
        margin-right: 600px;

    }
}

@media only screen and (max-width: 2300px) {
    .computer {
        margin-left: 570px;

    }

    .user {
        margin-right: 570px;

    }
}

@media only screen and (max-width: 2008px) {
    .computer {
        margin-left: 500px;

    }

    .user {
        margin-right: 500px;

    }

}

@media only screen and (max-width: 1708px) {
    .computer {
        margin-left: 400px;

    }

    .user {
        margin-right: 400px;

    }
}

@media only screen and (max-width: 1708px) {
    .computer {
        margin-left: 300px;
    }

    .user {
        margin-right: 300px;
    }

}

/* make website responsive for medium size screeens*/

@media only screen and (max-width: 1075px) {
    .computer {
        margin-left: 200px;
    }

    .user {
        margin-right: 200px;
    }

}

@media only screen and (max-width: 898px) {
    .computer {
        margin-left: 150px;
    }

    .user {
        margin-right: 150px;
    }

    .computer,
    .user {

        width: 175px;
        margin-top: 40px;

    }

    #score-container {
        padding-bottom: 10px;

    }

    .rps {
        height: 180px;
        width: 180px;
    }

    #image-container {
        margin-top: 30px;

    }

    #game {
        margin-bottom: 50px;
    }




}

@media only screen and (max-width: 697px) {
    .computer {
        margin-left: 50px;
    }

    .user {
        margin-right: 50px;

    }

    #box-area {
        width: 400px;
        height: 430px;
    }

    #play-game {
        margin-top: 20px;
    }

    #play-again {
        margin-top: 10px;

    }

    #image-container {
        height: 150px;
    }

    #btn-container {
        height: 50px;
    }


}


@media only screen and (max-width: 571px) {
    .rps {
        height: 130px;
        width: 140px;
    }

    img {
        height: 100px;
    }


    .computer,
    .score {
        font-size: 0.8em;
    }

    .computer {
        margin-left: 50px;

    }

    .score {
        margin-right: 50px;


    }

    #game {
        margin-top: 60px;

    }

    #result {
        font-size: 1em;
    }


    #message {
        font-size: 1em;
    }

    #win-box>p {
        font-size: 1.2em;
        padding-top: 20px;

    }

    #lose-box>p {
        font-size: 1.2em;
        padding-top: 30px;
    }

    #win-box {
        width: 350px;
    }

    #lose-box {
        width: 350px;
    }


}

/* make website responsive for small size screeens*/

@media only screen and (max-width: 483px) {
    header {
        height: 180px;
        font-size: 1em;

    }

    #rock {
        margin-right: 0;
    }

    #scissors {
        margin-left: 0;
    }

    .rps {
        height: 100px;
        width: 100px;
    }

    img {
        height: 80px;
    }

    #image-container {
        margin: 0;

    }

    .user {
        margin-right: 40px;
        margin-right: 10px;
        width: 150px;
        font-size: 0.6em;


    }

    .computer {
        margin-left: 40px;
        margin-left: 10px;
        width: 150px;
        font-size: 0.6em;



    }

    .message-box {
        width: 400px;
        height: 250px;
    }

    #play-game {
        margin-top: 80px;
        font-size: 0.8em;


    }

    #box-area {
        width: 320px;
        height: 430px;
    }

    #win-box {
        width: 300px;

    }

    #lose-box {
        width: 300px;
        margin-top: 0;

    }

    #lose-box>p {
        margin-top: 30px;

    }

    #result {
        margin-top: -20px;
    }

    #open-message {
        margin-top: -30px;
    }

    #win-box>p {
        margin-top: 50px;
    }

}

@media only screen and (max-width: 346px) {
    .user {
        margin-right: 10px;
        width: 120px;

    }

    .computer {
        margin-left: 10px;
        width: 120px;
    }

    header {
        height: 180px;

    }

}