@import url('https://fonts.googleapis.com/css?family=Roboto');

/* variable */
:root{
    --primary-color: #003699; 
    --dark-color: #333333;
    --light-color: #f4f4f4;
    --lose-color: #dc3545; /*changing the color of the text based on win or lost*/
    --win-color: #28a745;
    /* --modal-duration: 1s; */
}

* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    background: rgb(0, 0, 0);
    color: #333;
}

.container {
    max-width: 1100px;
    margin: auto;
    overflow: hidden;
    padding: 0 2rem; /*on the left and right*/
    text-align: center;
}

.restart-btn{
    display: none; /* initially hidden */
    background: var(--light-color); /*adding a variable*/
    color: #333;
    padding: 0.4rem 1.3rem;
    font-size: 1rem;
    cursor: pointer;
    outline: none;
    border: none;
    margin-bottom: 1rem;
}

.restart-btn:hover{
    background: var(--primary-color);
    color: #fff;
}

.header{
    text-align: center;
    margin: 1rem 0;
}

.header h1{
    margin-bottom: 1rem;
}

.score{ 
    display: grid; /*using the grid system to align the score*/
    grid-template-columns: repeat(2, 1fr); /*1fr gives us 2 even columns*/
    font-size: 1.2rem;
    color: #fff;
}

/* first-child is the pseudo selector*/
/* this only targets the 1st column */
.score p:first-child {
    background: var(--primary-color);
}

/* second-child is the pseudo selector*/
/* this only targets the 2nd column */
.score p:last-child{
    background: var(--dark-color);
} 

.choices{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 2rem;
    margin-top: 3rem;
    text-align: center;

}

/* changes the mouse into a pointer on hover */
.choices{
    cursor: pointer;
}

/* properties below would change the appearance of the icons on hover */
.choice:hover{
color: var(--primary-color);
}

.text-win{
    color: var(--win-color);
}

.text-lose{
    color: var(--lose-color);
}

/* changing the size of the icon at certain break points in-order to make the website responsive */
@media(max-width: 700px){
    .choice{
        font-size: 110px;
    }
}

@media(max-width: 500px){
    .choice{
        font-size: 80px;
    }
}