* {
  margin: 0;
  padding: 0;
  font-family: sans-serif;
}

body {
  width: 100%;
  background-color: #F0F0F0;
}


nav {
  
  border-bottom: 1px solid #d6d6d6;
  display: block;
  position: relative;
  margin: 0 auto;
  width: 520px;
  height: 58px;
}

.nav-anchor {
  display: inline-block;
  margin: 0 auto;
  width: auto;
  background-color: rgba(0, 0, 0, 0.0);
  position: absolute;
  left: 0;
  text-decoration: none;
}

.nav-button {
  margin: 10px auto;
  width: auto;
  background-color: #000;
  height: auto;
  border-radius: 100px;
  padding: 12px;
  text-align: center;
  font-size: 12px;
  text-transform: uppercase;
  appearance: none;
  outline: none;
  box-shadow: none;
  border: 0;
  text-align: center;
  color: #FFF;
  position: absolute;
  right: 0;
  transition: all .25s ease-in-out;
}

#overlay {
  padding: 16px 16px auto 16px;
  display: none;
  position: fixed;
  z-index: 999;
  height: 100vh;
  width: 100vw;
  background-color: #ffffff;
  overflow: scroll;
}

.viz-container {
  display: grid;
  grid-template-columns: auto auto;
  padding: 4px;
  margin: 0 auto 24px auto;
  background-color: #F5F5F5;
  width: fit-content;
  border-radius: 14px;
}

.viz-square {
  margin: 4px;
  border-radius: 8px;
  background-color: #35D879;
  height: 80px;
  width: 80px;
}

p.sqaure-title {
  font-size: 12px;
  text-transform: uppercase;
  padding: 0;
  margin: 0;
}

.stat-container {
  margin: 40px auto;
  width: 520px;

}
.stat {
  border-top: 1px solid #d6d6d6;
  padding-top: 8px;
  margin: 0px 16px 16px 16px;
}

.stat-label {
  float: left;
  padding: 0;
  margin: 0;
  font-size: 12px;
  text-transform: uppercase;
}

.stat-digit {
  text-align: right;
  padding: 0;
  margin: 0;
  font-size: 24px;
  text-transform: uppercase;

}



.yellow {
  color: #ffcb20;
}

.red {
  color: #ff5517;
}

.green {
  color: #35d879;
}

.blue {
  color: #0759f7;
}

.label {
  background-color: #d5d5d5;
  border-radius: 4px;
  color: #000;
  text-transform: uppercase;
  font-size: 10.5px;
  font-weight: 600;
  padding: 3px 6px;
  transform: translate(10px, 0px);
  letter-spacing: .02em;
}

.outline {
  background-color: rgba(0, 0, 0, 0.1);
}

/*.nav-button:nth-of-type(1) {
    background-color: rgba(0, 0, 0, 0.0);
    border: 1px solid #cccccc;
    color: #000;
    position: absolute;
    left: 0;
}

.nav-button:nth-of-type(1) {
  position: absolute;
  right: 0;
}*/

.inner-anchor {
  position: relative;
  background-color: rgba(0, 0, 0, 0.0);
  border: 1px solid #cccccc;
  color: #000;
}


/* Toast notification styles */
.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #333;
  color: #fff;
  padding: 10px 20px;
  border-radius: 5px;
  font-size: 14px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  opacity: 0;
  pointer-events: none; /* Prevent interaction */
  transition: opacity 0.5s ease, transform 0.5s ease;
  z-index: 9999; /* Ensure it's above other content */
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0); /* Visible state */
}

h1 {
 width: 100%;
  text-align: center;
  margin: 24px auto 0;
  font-size: 32px;
}

h2 {
  width: 100%;
  text-align: center;
  font-size: 28px;
  font-weight: 200;
}

h2#end-title {
  width: calc(100% - 32px);
  text-align: center;
  margin: 24px auto 0;
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -.02em;
  margin-bottom: 40px;
}

p {
  text-align: center;
  margin: 16px auto 16px;
  font-size: 18px;
}

span {
  color: #C7C7C7;
}

.square {
  background-color: white;
  border-radius: 10px;
  position: relative;
}

.container {
  margin: 24px auto 0 auto;
  width: 520px;
  height: 520px;
  background-color: #F0F0F0;
  display: grid;
  grid-template-columns: calc(50% - 5px) calc(50% - 5px);
  grid-row: auto auto;
  grid-column-gap: 10px;
  grid-row-gap: 10px;
}

.colors {
  display: flex;
  gap: 12px;
  margin: 60px auto 0;
  width: 76px;
  height: 32px;
}

.circle {
  height: 32px;
  width: 32px;
  background-color: #FFCB20;
  border-radius: 50%;
}

.clue {
  position: relative;
  width: 100%;
  margin: 24px auto;
}

input {
  height: 20px;
  width: 198px;
  margin: 12px;
  padding: 16px;
  text-align: center;
  font-size: 16px;
  text-transform: uppercase;
  border-radius: 8px;
  background-color: #f0f0f0;
  appearance: none;
  outline: none;
  box-shadow: none;
  border: 1px solid #d6d6d6;
}

/*input {
  height: 40px;
  width: 394px;
  margin: 24px;
  padding: 32px;
  text-align: center;
  font-size: 28px;
  text-transform: uppercase;
  border-radius: 16px;
  background-color: #f0f0f0;
  appearance: none;
  outline: none;
  box-shadow: none;
  border: 2px solid #d6d6d6;
  transform: scale3d(.5, .5, .5);
}*/

form {
  position: absolute;
  bottom: 0;
  left: 0;
}

button  {
  display: block;
  position: relative;
  margin: 10px auto;
  width: 520px;
  background-color: #000;
  height: 60px;
  border-radius: 10px;
  padding: 16px;
  text-align: center;
  font-size: 15px;
  text-transform: uppercase;
  appearance: none;
  outline: none;
  box-shadow: none;
  border: 0;
  text-align: center;
  font-size: 15px;
  color: #FFF;
  transition: all .25s ease-in-out;
}

button:hover {
  background-color: #2A6AFF;
}

button.hint:hover {
  background-color: rgba(0, 0, 0, 0.15);
}


.hint {
  width: auto;
  padding: 0 40px;
  color: #000;
  border-radius: 100px;
  height: 48px;
  background-color: rgba(0, 0, 0, 0);
  border: 1px solid rgba(0, 0, 0, .35);
}

.hint-box {
  padding: 12px 24px;
  border-radius: 10px;
  background-color: #ffff;
/*  border: 1px solid #d6d6d6;*/
  margin: 10px auto;
  width: 472px;
  text-align: center;
}

#back {
  margin-bottom: 40px;
}

.helper {
  padding: 12px 24px;
  border-radius: 10px;
  background-color: #f0f0f0;
  border: 1px solid #d6d6d6;
  margin: 32px auto;
  width: 472px;
}

.helper-text {
  font-size: 16px;
  line-height: 130%;
  color: rgba(0, 0, 0, .65);
  text-align: left;
}

.footer {
  text-align: center;
}

.fine-print{
  text-align: center;
  font-size: 12px;
  padding-bottom: 0;
}

.fine-print-overlay{
  padding-bottom: 0px;
}

/*.timer-display {
    position: absolute;
    width: auto;
    left: 50%;
    transform: translateX(-50%);
    margin: 19px auto;
    font-size: 15px; 
    background-color: rgba(0, 0, 0, 0.0);
}*/

 @media (max-width: 550px) {

    h1 {
    font-size: 6.25vw;
    }

    h2 {
      font-size: 4.5vw;
    }

    p {
      font-size: 16px;
    }


    .timer-display {
        margin: 19px auto;
        font-size: 12px; 
    }

    .helper {
      width: calc(100vw - 72px);
      padding: 6px 24px;
    }

   .hint-box {
      width: calc(100vw - 72px);
      padding: 12px 24px;
    }

    .hint {
      height: 40px;
    }

    .footer {
      text-align: center;
    }

    .fine-print{
      text-align: center;
      font-size: 12px;
    }

    .container {
      width: calc(100vw - 20px);
      height: calc(100vw - 20px);
    }

    .colors {
      gap: 8px;
      margin: calc(18vw - 28px) auto 0;
      width: 56px;
      height: 12px;
    }

    .circle {
      height: 24px;
      width: 24px;
    }

    .stat-container {
      width: 100vw;
    }


    input {
      width: calc(50vw - 72px);
      height: 10px;
    }



    button {
      width: calc(100vw - 20px);
    }

     nav {
      width: calc(100vw - 20px);
    }

     nav ul { 

         display: none; 

     }

    .fine-print-overlay{
      padding-bottom: 80px;
    }

 }


