@import url('https://fonts.googleapis.com/css2?family=Domine:wght@400..700&family=Merriweather+Sans:ital,wght@0,300..800;1,300..800&family=Mirza:wght@400;500;600;700&display=swap');
* {
    box-sizing: border-box;
}

html {
    font-size: 0.875rem;
    scroll-behavior: smooth;
    transition: 300ms;
}

body {
    background-color: #3a5f7a;
     font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif, sans-serif;
     font-weight: 300;
     line-height: 1.5;
     color: aliceblue;
     padding: 0;
     margin: 0;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    padding: 0;
    margin: 1em auto;
}

li {
    list-style-type: none;
}

header {
    padding: 2em;
    text-align: center;
   background-color: #1e3a4f;
}

h1 {
     font-family: "Domine", serif;
}

/*styling for the first section - ABOUT */

#main {
    max-width: 1100px;
    margin: 1em auto;
    border-radius: 6px;
   box-shadow: rgba(0, 0, 0, 0.16) 9px 1px 4px;
     display: flex;
    justify-content: space-evenly;
    align-items: center;
    vertical-align: middle;
}

   


#main-image img {
    max-width: 500px;
    display: block;
}


#about-text {
    padding: 4em;
    max-width: 500px;
}

/* end of the style for ABOUT section */

/* GAME SECTION */

 #game,
 #rules {
    max-width: 1100px;
    margin: 1em auto;
    border-radius: 6px;
    box-shadow: rgba(0, 0, 0, 0.16) 9px 1px 4px;
    vertical-align: middle;
    padding: 2em;
    text-align: center;
}

#selections {
    display: flex;
    justify-content: space-around;
    max-width: 600px;
    margin: 0 auto;
    padding: 0;

}

#selections section {
    width: 120px;
    height: 120px;
    background-color: #D9D9D9;
    padding: 2em;
    border: 5px solid #d4a713;
    border-radius: 50%;
    margin-bottom: 1em;
}




#selections section:hover {
    background-color: #678caf;
    transform: scale(1.1);
}



.emoji {
    font-size: 40px;
    cursor: pointer;
     user-select: none;
     pointer-events: none;
}


.message {
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    margin: 3em auto;
    min-width: 60%;
}

#score {
    display: flex;
    justify-content: space-evenly;
    max-width: 500px;
    margin: auto;
    
}

.score-item {
     display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1em;
}

#score div {
    background-color: #1e3a4f;
    width: 120px;
    height: 120px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    font-weight: 700;
    user-select: none;
}

.score-item h2 {
    font-size: 1rem;
    margin-top: 0.1em;
    letter-spacing: 0.05em;
}

#result {
    height: 3.5em;
    vertical-align: middle;
    font-size: 2rem;
    font-weight: bold;
    margin: 2em;
    padding: 1em;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
    border-radius: 2%;
    user-select: none;
    pointer-events: none;
}



#score-name {
    margin: auto;
   display: flex;
    justify-content: space-evenly;
    max-width: 510px;
    text-align: center;
}


#new-game {
    display: none;
    max-width: 250px;
    margin: auto;
}


/*RULES SECTION*/


    .steps li {
      align-items: center;
      font-size: 0.95rem;
      color: rgba(255,255,255,0.9);
      line-height: 1.75;
      font-size: 1.15rem;
    }


    .button {
        display: inline-block;
        font-size: 1.75em;
        font-weight: 600;
        background-color: #678caf;
        padding: .75em 2em;
        border-radius: 2%;
    }

    .button:hover {
        background-color:rgba(255,255,255,0.9); 
        color: #678caf;
        transition: 420ms ease-in-out;
    }

    .rules-heading {
        font-size: 1.7rem;
    }

    .rules-sub {
        text-align: center;
        margin: 0;
        padding: 0;
        text-transform: uppercase;
        font-size: 1.14rem;
        font-weight: bold;
    }

    footer {
        text-align: center;
    }

    footer {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;

    }

    footer img {
        display: block;
        width: 20px;
        height: 20px;
    }

/* RESPONSIVE */

    @media screen and (max-width: 550px) {
        html {
            font-size: 70%;
       }
       #selections {
        max-width: 400px;
       }
       #selections section {
    width: 85px;
    height: 85px;
    background-color: #D9D9D9;
    padding: .5em;

}
.emoji {
    font-size: 45px;
}

.message {
    font-size: 9px;
    margin: 1em auto;
    min-width: 80%;
}

#result {
    height: 3.2em;
    font-size: 1.1rem;
    margin: 1.75em;
    padding: .75em;
    border-radius: unset;
}

#rules {
    font-size: 1.6rem;
    padding: 1em;
    padding-top: .25em;
}
section#score {
    height: 110px;
    width: 320px;
}

#score div {
    width: 80px;
    height: 80px;
    font-size: 2.5rem;
    padding: .2em;
}

 .button {
        font-size: 1.45em;
        padding: .45em 1.5em;
    }

}