body {
    text-align: center;
}


h2 {
    font-size: 1rem;
    color: rgb(17, 92, 67);
}

#higestScore{
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    color: rgb(5, 90, 48);
}

.game-nav {
    margin: 0 auto;
    margin-bottom: 2rem;
    border: 1px solid grey;
    border-radius: 0.5rem;
    background-color: #d0d5d6;
    width: 95%;
}

.btn-container {
    margin: 0 auto;
    width: fit-content;
    display: grid;
    grid-template-rows: repeat(2, 1fr);
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 1rem;
}

.btn {
    height: 10rem;
    width: 10rem;
    border: 0.5rem solid black;
    border-radius: 2rem;
}

.red {
    background-color: #d55075;
}


.green {
    background-color: #58a0b9;
}

.yellow {
    background-color: #fa903b;
}

.purple {
    background-color: #7794f8;
}

.flash {
    background-color: white;
}

.userflash {
    background-color: aquamarine;
}


.restart {
    margin-top: 1.5rem;
    padding: 0.5rem 1em;
    border-radius: 0.5rem;
    background-color: #12757996;
    font-size: 1.2rem;
}


/* Shake animation */
@keyframes shake {
  0% { transform: translateX(0); }
  20% { transform: translateX(-10px); }
  40% { transform: translateX(10px); }
  60% { transform: translateX(-10px); }
  80% { transform: translateX(10px); }
  100% { transform: translateX(0); }
}

.shake {
  animation: shake 0.4s;
}


.info a {
    font-size: 1rem;
    text-decoration: underline;
    color: #0000EE;
    cursor: pointer;
}



/* rules */
.modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  justify-content: center;
  align-items: center;
}

.modal:target {
  display: flex;
}


.modal-content {
  background: #fff;
  text-align: left;
  padding: 20px;
  border-radius: 12px;
  width: 300px;
  max-width: 80%;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  position: relative;
}

.close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 22px;
  text-decoration: none;
  color: #333;
  font-weight: bold;
}
