/* variables */
:root{
    --bg-color:rgba(228, 53, 9, 0.9);
    --heading-color:rgba(55, 13, 207, 0.99);
    --button-color:#1d8be6;
    --game-color:#FA951F;
}

/* reset */
*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body{
    font-family:'Roboto', sans-serif;
    text-align: center;
    justify-content: center;

    background: var(--bg-color);
    color: #fff;
}

img{
    width:100%;
}

a{
    text-decoration: none;
}

/* heading */
h1{
    font-size: 4.5rem;
    font-style: italic;
    padding-top: 1rem;
    padding-bottom: 1rem;

    color: var(--heading-color);
}

/* score */
.score-box{
    display: flex;
    flex-direction: row;
    justify-content: center;
    margin: 0rem auto;
}

.score-box .score{
    font-size: 2rem;
    font-weight: 200;
    text-align: center;
    padding:0.3rem 1rem;
}

.score-box button{
    text-align: center;
    font-size: 2rem;

    cursor: pointer;

    padding:0.3rem 1rem;
    border-radius: 8px;
    border: none;

    background: var(--button-color);
    color: #fff;
}

/* hover property added */
.score-box button:hover{    
    background: #59a4e2;
}

.score-box button.visible{
    visibility: visible;
  opacity: 1;
  transition: opacity 1s linear;

}

.score-box button.hidden {
    visibility: hidden;
    opacity: 0;
    transition:visibility 0s 1s , opacity 1s linear;
}

/* time-left */
.score-box p{
    font-size: 2rem;
    
    padding:0.3rem 1rem;
}



.game {
    display:flex;
    flex-wrap:wrap;

    max-width: 60rem;
    height: 30rem;

    margin-left: auto;
    margin-right: auto;
    margin-top: 1.5rem;
    padding: 0.2rem 0.5rem;
    cursor: crosshair;
    
    background-color:var(--game-color);
    border-radius: 10px;

}

.hole{
    flex: 1 0 33.33%;

    overflow: hidden;
    position: relative;
}

.hole::after{
    display:block;

    background: url(dirt.png) bottom center no-repeat;
    background-size:contain;

    content: '';

    width: 100%;
    height:60%;

    position: absolute;
    z-index: 2;
    bottom: -30px;
}

.mole {
    background: url(mole.svg) bottom center no-repeat;
    background-size: 50%;

    position: absolute;
    top: 100%;
    width: 100%;
    height: 100%;

    transition: all 0.4s;
}

.hole.up .mole{
    top:0;
}

/* footer */
.footer{
    text-align: center;
    padding: 1.5rem;
    margin-top: 3rem;


    font-size: 1rem;

    color: #fff;
}

.footer a{
    font-style: italic;
    font-weight: 200;
    transition: 0.5s ease;
    color:#fff;
}

.footer a:hover{
    color: var(--button-color);
}

/* modal */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 3; /* Sit on top */
    padding-top: 10rem; /* Location of the box */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
  }
  
  /* Modal Content */
  .modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    border-radius: 5px;
    max-width: 55%;
  }
  
  /* The Close Button */
  .close {
    color: #aaaaaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
  }
  
.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

.modal-content h2{
    color: var(--heading-color);

    font-size: 3rem;
}

.modal-content p{
    color: #FA951F;

    padding-top: 0.5rem;

    font-size: 1.5rem;
}

.modal-content .reload{
    color: var(--bg-color);

    padding-top: 0.5rem;

    cursor: pointer;

    transition: 0.5s ease;
}

.reload:hover{
    transform: rotate(20deg);
}
