/* I need to clean this code a lot. LIKE A LOT */
#page-wrapper {
    height: 10vh;
}

:root {
    font-size: 12px;
}


* {
    box-sizing: border-box;
    /* border: 1px solid gray; */
}

body {
    margin: 0px;
    padding: 0;
    /*                      BACKGROUND FOR BODY                 */
    background-image: url(Assets/alt-background.png);
    background-size: cover !important;
    background-repeat: no-repeat;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: 100% 100%;
    /* THIS makes sure that the bg does not move with the page */
    background-attachment: fixed;

    /* Removes selection of text of the Page */
    -webkit-user-select: none;
    -moz-user-select: -moz-none;
    -ms-user-select: none;
    user-select: none;

}


/* Typography */
body {
    font-family: 'Press Start 2P', cursive;
    color: #070c0c;
}

#result-statement {
    font-size: 2rem;
    text-align: center;
}



#versus-text {
    /* line-height: 8em; */
    font-size: 1.5rem;
    /* border:1px solid black; */
    height: 10%;
    position: relative;
    margin-top: -5%;
    align-self: center;
    /* Still Need to fix align-self to center - 10px */
}

.score {
    font-size: 1.6em;
}

/* Alignment of objects */
#page-wrapper {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

#heading-main {
    text-align: center;
    padding: 2em;
    padding-top: 10vh;
    /* border: 2px solid black; */
    /* text-decoration: 2px underline; */
    font-size: 2em;
    margin: 0 auto;
}

#main-content {
    min-width: 300px;
    max-width: 1440px;
    width: 70%;
    gap: 4em;
    /* border: 1px solid black; */
    margin: 0 auto;
    text-align: center;
}

#stats-display {
    /* max-width: 500px; */
    display: flex;
    gap: 3rem;
    justify-content: center;
    /* added new padding */
    padding: 1em 0;
}

.big-icon {
    width: 60%;
    aspect-ratio: 1;
    /* opacity: 0.7; */
    object-fit: contain;

}


/* I am not sure about this */
#computer-stats,
#player-stats {
    /* min-width:120px; */
    max-width: 200px;
    width: 90%;
}

.selected-image {
    max-width: 170px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    /* background-image: url(Assets/selected-bg.png); */
    border-radius: 20%;
    padding: 2em;
    background: rgba(256, 256, 256, 0.1);
}

/* Making the small icons the correct size */
.small-icon {
    max-height: 70px;
    width: 40%;
    min-width: 30px;
    object-fit: contain;
    margin-top: -100%;
    /* display: inline; */
}

.small-icon.left {
    margin-left: -70%;

}

.small-icon.right {
    margin-right: -60%;
}

#footer {
    text-align: center;
    padding: 0.8em;
    font-size: 1.2em;
    /* background-color: rgba(0,0,0,0.2); */

}

#footer a {
    color: unset;
    text-decoration: none;
}

#footer a:hover {
    text-decoration: underline;
}

.selected-image>img {
    width: 100%;
}

/* =======   STYLE FOR MODAL   ======== */
#modal {
    width: 30%;
    min-width: 220px;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #FFFEE7;
    /* -webkit-text-stroke: 2px #101b1b; */
    text-shadow:
        -2px -2px 0 #000,
        2px -2px 0 #000,
        -2px 2px 0 #000,
        2px 2px 0 #000;
    gap: 2em;
}

#result-image {
    max-width: 120px;
    width: 40%;
}

#modal p {
    margin: 0;
}

#replay {
    width: 40%;
    max-width: 150px;
}


/* Making the hidden class */
.hidden {
    display: none !important;
}


/* Choices section/button */
#choices {
    width: 80%;
    max-width: 500px;
    min-width: 300px;
    /* border: 1px solid black; */
    margin: 2em auto;
    /* padding-top: 3em; */

    /* added this new thing in hurry */
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* padding: 1em; */
}

#choices input {
    width: 20%;
    max-width: 120px;
    aspect-ratio: 1;
    margin: 0px 5%;
    object-fit: contain;
}

#footer span img {
    width: 25px;
    margin-bottom: -0.3em;
    margin-left: 0.4em;
}

/* The Full Screen button */
#fullscreen-btn {
    font-size: 8px;
    border: unset;
    background: rgba(25,25,25,0.2);
    padding: 8px 14px;
    border-radius: 10px;
    cursor: pointer;
    font-family: 'Press Start 2P', cursive;

  }
  


/*              HOVER-ANIMATIONS              */

#choices>input:hover {
    transform: scale(1.2);
    transition: all 120ms ease-in-out;
}

#replay:hover {
    transform: scale(1.1);
    transition: all 100ms ease-in-out;
}

/*                 ANIMATIONS                    */
.shake {
    animation: tilt-n-move-shaking 0.3s linear both;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    perspective: 1000px;
}

@keyframes tilt-n-move-shaking {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    25% {
        transform: translate(15px, 2px) rotate(5deg);
    }

    50% {
        transform: translate(0, 0) rotate(0eg);
    }

    75% {
        transform: translate(-15px, 2px) rotate(-5deg);
    }

    100% {
        transform: translate(0, 0) rotate(0deg);
    }
}

/*                  MEDIA QUERIES                    */
@media screen and (max-width:767px) {

    body {
        background-image: url(Assets/alt-background-2.png);
    }

    #stats-display {
        flex-direction: column;
        gap: 2em;
        align-items: center;
        justify-content: center;
    }

    #computer-stats,
    #player-stats {

        /* defining Width */
        min-width: 250px;
        /* align-self: center; */
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-around;
        /* gap: 4em; */
    }

    #footer {
        text-align: center;
        padding: 0.5em;
        font-size: 1.2em;
        /* background-color: rgba(0,0,0,0.2); */

    }
    #fullscreen-btn {
        border: unset;
        background: rgba(255,255,255,0.2);
        padding: 8px 12px;
    }


    #choices {
        gap: 0.5em;
        padding-top: 1em;
    }

    #versus-text {
        margin: 0;
    }

    .small-icon.left {
        margin-left: -80%;

    }

    .small-icon.right {
        margin-right: -70%;
    }

    #heading-main {
        padding: 1em 2em;
        font-size: 1.6em;
        min-width: 300px;
    }

    /* Removed annoying blue click border on mobile devices */

    input {
        outline: none;
    }

    #replay {
        min-width: 120px;
    }

}