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

/* Body and overall properties of the DOM */
body    {
    background-color: #2e2e2e;
}

/* Text properties */
#title {
    font-family: 'Wallpoet';
    color: #ffffff;
    font-size: 50px;
    text-align: center;
    display: flex;
    justify-content: center;
    margin-top: 50px;
}

#score, #scoretext, #result  {
    font-family: 'Wallpoet';
    color: #ffffff65;
    font-size: 30px;
    text-align: center;
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

p  {
    font-family: 'Wallpoet';
    color: #ffffff;
    font-size: 50px;
    display: flex;
    justify-content: center;
}

footer  {
    display: flex;
    justify-content: end;
}

#footloose  {
    font-size: 20px;
    color: #d4d4d438;
    margin-top: 50px;
    width: auto;
}

.fa-brands   {
    color: #d4d4d438;
}

/*---Player properties---
Player field */
.hands  {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

/* Player hands */
#rock   {
    color: transparent;
    background-color: #b90000;
    border-radius: 50%;
    border: 5px solid #b90000;
    height: 150px;
    width: 150px;
    margin: 0 15px 0 15px;
    cursor: pointer;
    background: url(../images/rock.webp) no-repeat center bottom;
    background-size: 102%;
    object-fit: cover;
    box-shadow: -10px 10px 20px #333333, 10px -10px 20px #111111;
}

#paper  {
    color: transparent;
    background-color: #b90000;
    border-radius: 50%;
    border: 5px solid #b90000;
    height: 150px;
    width: 150px;
    margin: 0 15px 0 15px;
    cursor: pointer;
    background: url(../images/paper.webp) no-repeat center bottom;
    background-size: 102%;
    object-fit: cover;
    box-shadow: -10px 10px 20px #333333, 10px -10px 20px #111111;
}

#scissors   {
    color: transparent;
    background-color: #b90000;
    border-radius: 50%;
    border: 5px solid #b90000;
    height: 150px;
    width: 150px;
    margin: 0 15px 0 15px;
    cursor: pointer;
    background: url(../images/scissors.webp) no-repeat center bottom;
    background-size: 102%;
    object-fit: cover;
    box-shadow: -10px 10px 20px #333333, 10px -10px 20px #111111;
}

button:hover    {
    transform: scale(1.1);
    transition: 100ms;
    border-color: #ff0000;
}

/* Reset Button */
#reset  {
    font-family: 'Wallpoet';
    font-size: 15px;
    color: #ffffff;
    background-color: #b90000;
    border-radius: 50%;
    height: 80px;
    width: 80px;
    cursor: pointer;
    box-shadow: -10px 10px 20px #333333, 10px -10px 20px #111111;
}

#reset:hover    {
    color: #ffffff;
    background-color: #111111;
}


/*---Computer properties---
COM field*/
#versusPanel   {
    display: flex;
    justify-content: center;
}
/* COM hand/Button */
#comHand, #userHand  {
    border-radius: 20%;
    border: 5px solid #b90000;
    height: 200px;
    width: 200px;
    box-shadow: -10px 10px 20px #333333, 10px -10px 20px #111111;
}

.comHand    {
    border-radius: 20%;
    border: 5px solid #b90000;
    height: 180px;
    width: 180px;
    box-shadow: -10px 10px 20px #333333, 10px -10px 20px #111111;
}

#comHand, .comHand    {
    transform: scaleX(-1);
}

/* Modal properties */
#modalBackground    {
    background-color: #000000bb;
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: fixed;
    top: 0;
    left: 0;
}

#modalWindow {
    background-color: #2e2e2e;
    border-radius: 25px;
    height: 95%;
    width: 95%;
    position: fixed;
    max-height: 100%;
    overflow-y: auto;
}

.modalTitle {
    font-family: 'Wallpoet';
    color: #ffffff;
}

.modalText  {
    font-family: 'Wallpoet';
    color: #ffffff65;
    font-size: 25px;
    margin-left: 50px;
    margin-right: 50px;
}

#modalImg {
    border-radius: 5%;
    border: 2.5px dashed #ffffff65;
}

#start  {
    border-radius: 2%;
    font-family: 'Wallpoet';
    font-size: 30px;
    cursor: pointer;
    margin-bottom: 20px;
}

#start:hover    {
    color: #ffffff;
    background-color: #111111;
    border-color: #b90000;
}

/* Media Queries */
@media screen and (max-width: 945px)    {

    #modalWindow {
        background-color: #2e2e2e;
        border-radius: 25px;
        height: 100%;
        width: 100%;
    }

    .modaltext{
        font-family: 'Wallpoet';
        color: #ffffff65;
        font-size: 15px;
        margin-left: 25px;
        margin-right: 25px;
    }

    footer  {
        display: flex;
        justify-content: center;
    }
}

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

    #title {
        font-size: 30px;
    }

    #score, #scoretext, #result  {
        font-size: 15px;
    }

    #rock, #paper, #scissors    {
        border-radius: 50%;
        border: 5px solid #b90000;
        height: 120px;
        width: 120px;
        margin: 0 5px 0 5px;
        cursor: pointer;
    }

    #userHand, #comHand {
        border-radius: 20%;
        border: 5px solid #b90000;
        height: 160px;
        width: 160px;
        margin: 0 5px 0 5px;
    }
    
    .modalText  {
        font-family: 'Wallpoet';
        color: #ffffff65;
        font-size: 25px;
        margin-left: 25px;
        margin-right: 25px;
    }

    #start  {
        border-radius: 2%;
        font-family: 'Wallpoet';
        font-size: 20px;
        cursor: pointer;
    }

    footer  {
        display: flex;
        justify-content: center;
    }
}

@media screen and (max-width: 740px)    {
    #title, #versus  {
        font-size: 20px;
    }

    #result {
        font-size: 15px;
    }

    #rock, #paper, #scissors    {
        border-radius: 50%;
        border: 2.5px solid #b90000;
        height: 100px;
        width: 100px;
        margin: 0 5px 0 5px;
        cursor: pointer;
    }

    #userHand, #comHand {
        border-radius: 20%;
        border: 5px solid #b90000;
        margin-left: 10px;
        margin-right: 10px;
        height: 125px;
        width: 125px;
        margin: 0 5px 0 5px;
        }

    .modalText  {
        font-family: 'Wallpoet';
        color: #ffffff65;
        font-size: 15px;
        margin-left: 10px;
        margin-right: 10px;
    }
    #start  {
        border-radius: 2%;
        font-family: 'Wallpoet';
        font-size: 15px;
        cursor: pointer;
    }
}

@media screen and (max-width: 600px)    {

    #modalWindow {
        background-color: #2e2e2e;
        border-radius: 25px;
        height: 100%;
        width: 100%;
    }

    .modaltext{
        font-family: 'Wallpoet';
        color: #ffffff65;
        font-size: 15px;
        margin-left: 25px;
        margin-right: 25px;
    }

    footer  {
        display: flex;
        justify-content: center;
    }
}

@media screen and (max-width: 470px)    {

    #title, #versus  {
        font-size: 20px;
    }

    #result {
        font-size: 15px;
    }

    #rock, #paper, #scissors    {
        border-radius: 50%;
        border: 2.5px solid #b90000;
        height: 100px;
        width: 100px;
        margin: 0 5px 0 5px;
        cursor: pointer;
    }

    #userHand, #comHand {
        border-radius: 20%;
        border: 5px solid #b90000;
        margin-left: 10px;
        margin-right: 10px;
        height: 100px;
        width: 100px;
        margin: 0 5px 0 5px;
        }

    .modalText  {
        font-family: 'Wallpoet';
        color: #ffffff65;
        font-size: 15px;
        margin-left: 10px;
        margin-right: 10px;
    }
    #start  {
        border-radius: 2%;
        font-family: 'Wallpoet';
        font-size: 15px;
        cursor: pointer;
    }

    footer  {
        display: flex;
        justify-content: center;
    }
}

@media screen and (max-width: 380px)    {

    #title, #versus  {
        font-size: 15px;
    }

    #result {
        font-size: 15px;
    }

    #rock, #paper, #scissors    {
        height: 75px;
        width: 75px;
    }

    #userHand, #comHand {
        height: 80px;
        width: 80px;
        }

    .modalText  {
        font-size: 15px;
        margin-left: 10px;
        margin-right: 10px;
    }

    #modalImg   {
    width: 80%; 
    }  

    #start  {
        font-size: 15px;
    }

    #footloose  {
        font-size: 15px;
    }
}