* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    font-family: Arial, sans-serif;
    background-color: #e3ce6d40;
    color: #343a40;
    overflow: hidden;
}
.content {
    text-align: center;
    width: 100%;
    max-width: 500px;
    max-height: 1200px;
    padding: 20px;
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    
}
h2 {
    margin-bottom: 20px;
    color: #495057;
}
h4 {
    margin-bottom: 30px;
    color: #6c757d;
}
.block {
    display: grid;
    grid-template-columns: repeat(2, 125px);
    grid-template-rows: repeat(2, 125px);
    gap: 5%;
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    margin: 0 auto; /* Ensure grid is centered */
}
.btn {
    width: 100px;
    height: 100px;
    border-radius: 15px;
    border: 4px solid #ced4da;
    cursor: pointer;
    transition: transform 0.2s;
}
.red { background-color: #ff6b6b; }
.green { background-color: #51cf66; }
.blue { background-color: #339af0; }
.orange { background-color: #ffa94d; }

.btn:hover {
    transform: scale(1.05);
}

.flash { background-color: #ffffff; }
.userflash { background-color: rgba(166, 121, 251, 0.782); }

.record {
    margin-top: 20px;
    max-height: 150px; /* Set a max height */
    overflow-y: auto; /* Make it scrollable */
    border-top: 1px solid #adb5bd;
    padding-top: 10px;
}


@media (max-width: 600px) {
    .block {
        grid-template-columns: repeat(2, 80px);
        grid-template-rows: repeat(2, 80px);
    }
    .btn {
        width: 80px;
        height: 80px;
    }

    .content {
        padding: 10px;
        max-width: 300px;
        max-height: 650px;
    }
}


footer {
    text-align: center;
    padding: 10px;
    background-color: #f2dabd;
    color: #5c4c25;
    width: 100%;
    position: fixed;
    bottom: 0;
}

/* body{
    background-color: #e5e5f7;
    opacity: 0.8;
    background-image:  radial-gradient(#444cf7 1.85px, transparent 1.85px), radial-gradient(#444cf7 1.85px, #e5e5f7 1.85px);
    background-size: 74px 74px;
    background-position: 0 0,37px 37px;
    
} */

/* added the highlight to heading h2 */


.heading {
    position: relative;
    z-index: 1;
  }
  
  .heading::before {
    content: '';
    position: absolute;
    z-index: -1;
    top: 0;
    bottom: 0;
    left: -0.25em;
    right: -0.25em;
    background-color: #fc2f70;
    transform-origin: bottom center;
    transform: scaleY(0.1);
    transition: all 0.1s ease-in-out;
  }
  
  .heading:hover::before {
    transform: scaleY(1);
    background-color: hsla(341, 97%, 59%, 0.75);
  }
  

  /* restart button experiment */

  /* From Uiverse.io by alexmaracinaru */ 
  .restart-btn, .clear-btn {
    position: relative;
    margin: auto;
    padding: 12px 18px;
    transition: all 0.2s ease;
    border: none;
    background: none;
    cursor: pointer;
  }
  .restart-btn{
    margin-bottom: 1.5%;
  }
  .restart-btn:before , .clear-btn::before{
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    border-radius: 50px;
    background: #caf9be;
    width: 45px;
    height: 45px;
    transition: all 0.3s ease;
  }
  .clear-btn::before{
    background: #f7bbaa;
  }
  .restart-btn .start ,.clear-btn .clear {
    position: relative;
    font-family: "Ubuntu", sans-serif;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #07b916;
  }
  .clear-btn .clear{
    color: #fb1313;
  }
  
  .restart-btn svg , .clear-btn svg {
    position: relative;
    top: 0;
    margin-left: 10px;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke: #07b916;
    stroke-width: 2;
    transform: translateX(-5px);
    transition: all 0.3s ease;
  }
  .clear-btn svg{
    stroke: #fb1313;
  }
  
  .restart-btn:hover:before , .clear-btn:hover:before{
    width: 100%;
    background: #caf9be;
  }
  .clear-btn:hover:before{
    width: 100%;
    background: #f7bbaa;
  }
  .restart-btn:hover svg , .clear-btn:hover svg{
    transform: translateX(0);
  }
  
  .restart-btn:active , .clear-btn:active{
    transform: scale(0.95);
  }
  
