 *{
    text-align: center;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    font-family: "Press Start 2P", sans-serif;
    line-height: 2rem;
}

*:focus{
    outline: none;
    box-shadow: none;
}

html, body {
    height: 100%;
    margin: 0;
    background: radial-gradient(ellipse at center, #1a1128 0%, #0c0618 100%);
    background-attachment: fixed;
}

body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,0.02),
    rgba(255,255,255,0.02) 1px,
    transparent 1px,
    transparent 2px
  );
  z-index: 1;
  pointer-events: none;
}

h2, h3, .score, .high-score, .startBtn {
    color: #00ffcc;
    text-shadow: 1px 1px 0 #000, 2px 2px 0 #000, 3px 3px 0 #000;
    z-index: 2;
    position: relative;
}

header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-self: center;
  margin-top: 1rem;
  margin-bottom: 1rem;
  padding: 0 1rem;
  width: 50%;
}

header h2 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.buttons{
    display: flex;
    justify-content: center;
    justify-items: center;
    gap: 0.5rem;
    width: 100%;
    flex-wrap: wrap;
}

.rules, .volume{
    display: flex;
    gap: 0.4rem;
    align-items: center;
    font-size: 0.9rem;
    border-radius: 5px;
    padding: 0.3rem 0.6rem;
    margin: 0.2rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    color: #fff;
    text-shadow: 1px 1px 0 #000, 2px 2px 0 #000, 3px 3px 0 #000;
    z-index: 2;
    position: relative;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin: 1rem auto;
    box-shadow: 0 0 10px #00000044;
}

.rules:active, .volume:active{
    background-color: rgba(255, 255, 255, 0.08);
}

section{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    justify-self: center;
    width: 35rem;
    gap: 1rem;
    margin-top: 5rem;
    margin-bottom: 5rem;
}

section div{
    height: 14rem;
    width: 14rem;
    border-radius: 20%;
    border: 8px solid black;
    cursor: pointer;
    transition: transform 0.1s, box-shadow 0.1s;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.6), 0 0 15px rgba(255,255,255,0.05), 0 0 20px rgba(0, 255, 255, 0.1);
    transition: all 0.2s ease-in-out;
}

.red, .blue, .yellow, .purple {
    transition: all 0.2s ease-in-out;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.6), 0 0 15px rgba(255,255,255,0.05);
    }

.red {
    background-color: #d95980;
    box-shadow: 0 0 15px #d95980aa;
}

.blue{
    background-color: #63aac0;
    box-shadow: 0 0 15px #819ff9aa;
}

.yellow{
    background-color: #f99b45;
    box-shadow: 0 0 15px #f99b45aa;
}

.purple{
    background-color: #819ff9;
    box-shadow: 0 0 15px #63aac0aa;
}

.darken{
    filter: brightness(60%);
}

.btn {
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.btn:focus {
  outline: none;
  box-shadow: none;
}

.startBtn{
    margin-top: 20px;
    margin-bottom: 2rem;
    padding: 10px 20px;
    background-color: black;
    border: 2px solid #00ffcc;
    color: #00ffcc;
    cursor: pointer;
    box-shadow: 0 0 15px #00ffcc66;
    opacity: 0;
    cursor: default;
}

.startBtn:active{
    background-color: #00ffcc95;
    border: 2px solid #00ffcc95;
    box-shadow: 0 0 10px #00ffcc95;
}

.opacity{
    display: none;
}

.score, .high-score {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem auto;
    width: fit-content;
    box-shadow: 0 0 10px #00000044;
}

.shake {
  animation: shake 0.5s;
}

.info{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -500%);
    background-color: #dad9d0;
    padding: 1rem 2rem;
    border-radius: 10px;
    box-shadow: 0rem 0.1rem 5rem #000000af;
    z-index: 999;
    line-height: 1rem;
}

.slide-down{
    animation: 1s 1 normal slideDown;
}

.slide-up{
    animation: 2s 1 normal slideUp;
}

.info h4, .info p, .info ul, .info > ul > li{
    font-size: 1rem;
    background-color: #dad9d0;
    text-align: left;
}

.hidden{
    display: none;
}