@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Neucha&family=Rock+Salt&display=swap');

html {
    display: flex;
    flex-direction: column;    /* Organize the header, main e footer in columns */
    margin: 0;
    height: 100vh;    /* takes up all the screen height */

}

body {

    display: flex;
    align-items: center;
    flex-direction: column;
    margin: 0;
    height: 100%;

}

main {
    flex: 1;    /* takes up all the space from the header down to the footer */
    display: flex;
    justify-content: center;
    align-items: center;    /* Centralize the content vertically */
}

header {
    width: 100%;
    background-color: rgb(173, 216, 220);
    font-family: "Rock Salt", cursive;
    line-height: 15px;
    text-align: center;
    box-shadow: -4px 4px 4px #7a8f88;
    padding: 10px 0;    /* add padding for adjust consistency*/
}

header>h2 {
    font-size: 1.2rem;
}

.logo {
    vertical-align: middle;
    width: 30px;

}

.game-area {
    display: flex;
    flex-direction: row;    /* Keep .player and .computer side by side */
    justify-content: center;
    align-items: center;
    width: 80%;
    height:  auto; 
    font-family: "Neucha", cursive;
}

.buttons {
    padding-top: 2%;
    text-align: center;
}

.control {
    font-family: "Neucha", cursive;
    margin: 5px 2px;
    display: inline-block;
    font-size: 1.4rem;
    height: 50px;
    width: 120px;
}

.control:hover {
    background-color: rgb(57, 209, 201);
}

#messages {
    font-family: "Rock Salt", cursive;
    text-align: center;
    font-size: 0.8rem;

}

.space {
    text-align: center;
    align-content: center;
    height: 25px;
}

.player {
    margin-right: 2%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: rgb(173, 203, 230);
    box-shadow: -4px 4px 4px #5a66744e;
    width: 50%;
    height: 80%;
    padding-bottom: 1%;    /* adjusting to fit into main */
}

#player-image {
    width: 100%;
    

}

.computer {
    margin-left: 2%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: rgb(249, 151, 151);
    box-shadow: -4px 4px 4px #74615a4e;
    width: 50%;
    height: 80%;
    padding-bottom: 1%;    /* adjusting to fit into main */
}

#computer-image {
    width:100%;
}

footer {
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: "Montserrat", sans-serif;
    color: rgb(36, 36, 36);
    background-color: rgb(240, 145, 110);
    box-shadow: -4px 4px 4px #5a66744e;
    height: 10vh;
    width: 100%;

}


.text-content {
    margin: 0;
    font-size: 0.6rem;
    text-align: center;
}





/*Media query for screens sizes smaller than IphonePro Max(400px)*/
@media (max-width: 400px) {
    .game-area {
        flex-direction: column;
        width: 100%;
    }

    .control {
        margin: 2px;
        height: 30px;
        width: 80px;
    }

    .buttons {
        padding-top: 7px;
        margin-bottom: 5px;
    }

    .player,
    .computer {
        justify-content: flex-start;
        padding-left: 10px;
        padding-right: 10px;
        margin: 0;
        
    }
    .player{
        
        margin-bottom:10px ;
    }

       

    .computer>p, .player>p {
        margin: 10px 0 7px 0;
    }

    #messages {
        font-size: 8px;
    }

    header {
        padding: 0;
    }

    header>h2 {
        margin: 10px 0;
    }
}

/*Changing font size for screnns sizes like IphonePro Max(400px) and bigger*/
@media screen and (min-width: 430px) {
    .text-content {
        font-size: 0.8rem;
    }
}

@media screen and (min-width: 768px) {

      .computer>p, .player>p {
    padding-top: 1%;
    margin: 7px 0;
     }

     .computer, .player{
         padding-bottom:10px;
         
     }

    .text-content {
        font-size: 0.75rem;
    }

    .game-area{
        width: 90%;
    }

     #computer-image,#player-image{
     width: 70%;
    
    } 

    #messages {
        margin: 10px 0;
    }

    .game-area {
        margin-top: 1.5%;
         height: auto;
    }

}

/*Changing font size for screen up to 992 and larger*/
@media screen and (min-width: 992px) {
    .text-content {
        font-size: 1rem;

    }
    
  .player,
    .computer {
       
        width: 43%;
    
    }


    .game-area {
        font-size: 1.2rem;
       
        width:100%;
        padding-bottom: 0.5%;
    }

    #messages {
        padding-top: 2%;
    }

}


/*correcting the extra space generated by the enlargement of .player and .computer for XXL screens*/
@media screen and (min-width: 1450px) {

    .player,
    .computer {
        font-size: 1.8rem;
        margin-bottom: 0;
        width: 40%;

    }
  #computer-image,#player-image{
     width: 55%;
    } 

    .text-content {
        font-size: 1.4rem;
    }

    #messages {
        margin: 0;
    }


}