input.code-box {
      width: 50px;
      height: 60px;
      font-size: 28px;
      text-align: center;
      border-radius: 8px;
      border: 2px solid #30363d;
      color: #000;
    }

    p{
      color: black;
    }

    .code-box:focus {
      outline: 4px solid #ff5b58;
    }

    .separator {
      font-size: 28px;
      line-height: 60px;
      color: #c9d1d9;
    }

    .mainframe {
      width: 100%;
      height: 100vh;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 20px;
    }

    body {
      margin: 0;
      padding: 0;
      color: rgb(252, 242, 237);
      font-family: 'Gambetta', sans-serif;
      background: #f4f7f6;
    }

    h1{
        font-size: 32px;
        margin: 0;
        padding: 0;
        color: #000000;
    }

    .code{
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 10px;
    }

    input.name-input {
      width: 411.8px;
      height: 60px;
      font-size: 28px;
      text-align: center;
      border-radius: 8px;
      border: 2px solid #30363d;
      color: #000;
    }

    .name-input:focus {
      outline: 4px solid #ff5b58;
    }

    button#joinGameBtn {
      width: 411.8px;
      height: 60px;
      font-size: 20px;
      text-align: center;
      border-radius: 8px;
      background-color: #ff5b58;
      color: #fff;
      border: none;
      cursor: pointer;
    }

    #joinGameBtn:focus {
      outline: 4px solid #ff5b58;
    }

    #joinGameBtn:hover {
      background-color: #ff7f7d;
    }

    .main-content-area {
      width: 100vw;
      height: fit-content;
      min-height: 100vh;
      background: rgb(252, 242, 237);
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .content-block {
      background: transparent;
      border-radius: 12px;
      text-align: center;
      height: 100vh;
      display: flex;
    align-content: flex-end;
    color: black;
    width: 100%;
    position: absolute;
    }

    .sliders{
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 3px;
    }

    #messages {
      color: #d0021b;
      background: #f8d7da;
      border: 1px solid #f5c6cb;
      padding: 12px 18px;
      border-radius: 8px;
      text-align: center;
      margin-bottom: 18px;
      font-weight: 600;
      min-height: 20px;
      display: none;
    }
    #messages.visible { display: block; }

    h1, h2, h3 {
      font-family: 'Fredoka One', 'Roboto Slab', 'Gambetta', cursive;
      color: #4a90e2;
      margin-top: 0;
      font-weight: 400;
      letter-spacing: 1px;
    }
    h1 { font-size: 2.2em; margin-bottom: 18px; }
    h2 { font-size: 1.5em; margin-bottom: 15px; border-bottom: 2px solid white; padding-bottom: 8px; display: inline-block; color: white;}
    h3 { font-size: 1.2em; color: #5a6677; margin-top: 24px; margin-bottom: 12px; }

    .join-form label {
      display: block;
      font-weight: 600;
      margin-top: 12px;
      margin-bottom: 6px;
      color: #333a45;
    }
    .join-form input[type="text"] {
      width: 80%;
      padding: 12px 16px;
      margin-top: 4px;
      border: 1px solid #d8dde4;
      border-radius: 8px;
      font-size: 1.05em;
      transition: border-color 0.2s, box-shadow 0.2s;
    }
    .join-form input[type="text"]:focus {
      border-color: #4a90e2;
      outline: none;
      box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.18);
    }

    button, .success-btn {
      background-color: #4a90e2;
      color: #fff;
      padding: 14px 30px;
      border: none;
      border-radius: 8px;
      cursor: pointer;
      font-size: 1.1em;
      font-family: 'Poppins', sans-serif;
      font-weight: 600;
      transition: background-color 0.2s, transform 0.1s, box-shadow 0.2s;
      text-transform: uppercase;
      letter-spacing: 1px;
      box-shadow: 0 2px 5px rgba(0,0,0,0.08);
    }
    button:hover, .success-btn:hover {
      background-color: #357abd;
      transform: translateY(-2px);
      box-shadow: 0 4px 8px rgba(0,0,0,0.13);
    }
    button:active, .success-btn:active {
      transform: translateY(0px);
      box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    }
    button:disabled {
      background-color: #adb5bd;
      cursor: not-allowed;
      box-shadow: none;
      transform: none;
    }
    .success-btn { background-color: #7ed321; }
    .success-btn:hover { background-color: #68b31b; }

    .slider-container {
      margin: 12px 0;
      padding: 12px 10px;
      background: #f0f4f8;
      border-radius: 10px;
      text-align: left;
      display: flex;
      align-items: center;
      gap: 10px;
    }
    .slider-container label {
      width: 60px;
      font-weight: 600;
      color: #5a6677;
    }
    .slider-container input[type="range"] {
      width: 180px;
      margin: 0 10px;
      cursor: pointer;
    }
    .slider-container span {
      width: 40px;
      text-align: right;
      font-weight: 600;
      font-size: 1.1em;
      color: #4a90e2;
    }

    .color-preview {
      width: 100px;
      height: 100px;
      border: 4px solid #333a45;
      border-radius: 10px;
      margin: 16px auto;
      box-shadow: 0 3px 8px rgba(0,0,0,0.13);
      transition: transform 0.2s;
    }
    .color-preview:hover { transform: scale(1.05); }
    #playerTargetColorGuessing { width: 120px; height: 120px; margin: 10px auto 18px auto; border-width: 0px; border-color: transparent; }
    #playerGuessPreview { width: 140px; height: 140px; margin-bottom: 18px; }

    #timerPlayer {
      font-size: 2em;
      font-weight: 700;
      font-family: 'Fredoka One', cursive;
      color: #d0021b;
      text-align: center;
      margin: 18px 0;
      padding: 10px;
      background: #fff0f1;
      border: 2px solid #d0021b;
      border-radius: 10px;
    }

    .comparison-colors {
      display: flex;
      justify-content: space-around;
      align-items: flex-start;
      margin: 18px 0;
      flex-wrap: wrap;
    }
    .comparison-colors > div { text-align: center; margin: 8px; }
    .comparison-colors .color-preview { width: 90px; height: 90px; margin-bottom: 8px; }
    .comparison-colors p { margin-top: 0; font-weight: 600; font-size: 1em; color: #333a45; }

    .score-emphasis { font-weight: 700; color: #7ed321; font-size: 1.1em; }
    .total-score-emphasis { font-weight: 700; color: #4a90e2; font-size: 1.2em; }
    .info-message { font-style: italic; color: #f5a623; margin: 10px 0; font-weight: 600; }

    #leaderboardPlayer, #finalScoresPlayer {
      list-style-type: none;
      padding: 0;
      margin: 12px 0;
    }
    #leaderboardPlayer li, #finalScoresPlayer li {
      padding: 10px 14px;
      border-bottom: 1px solid #d8dde4;
      background: #fdfdfd;
      color: black;
      border-radius: 8px;
      margin-bottom: 7px;
      font-size: 1em;
      transition: background 0.2s;
      box-shadow: 0 2px 4px rgba(0,0,0,0.04);
    }
    #leaderboardPlayer li.is-self, #finalScoresPlayer li.is-self {
      background: #50e3c2;
      color: #333a45;
      font-weight: 700;
    }

    @media (max-width: 600px) {
      .main-content-area { max-width: 98vw; padding: 10px 2vw 20px 2vw; }
      .color-preview, #playerGuessPreview, #playerTargetColorGuessing { width: 70px !important; height: 70px !important; }
      .slider-container input[type="range"] { width: 90px; }
      button, .success-btn { padding: 10px 10px; font-size: 1em; }
    }

    .fullscreen-color {
      position: fixed;
      top: 0;
      left: 0;
      width: 100vw;
      height: 100vh;
      z-index: -1;
    }

    .circular-timer {
      position: fixed;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      z-index: 10;
    }

    .circular-timer svg {
      width: 150px;
      height: 150px;
    }

    .circular-timer circle {
      fill: none;
      stroke: #fff;
      stroke-width: 8;
      stroke-linecap: round;
      transform: rotate(-90deg);
      transform-origin: 50% 50%;
      transition: stroke-dashoffset 1s linear;
    }

    .circular-timer text {
      font-size: 2.5em;
      font-weight: bold;
      text-anchor: middle;
      fill: #fff;
      filter: drop-shadow(0 0 3px rgba(0,0,0,0.5));
    }

    #gamePlayScreen {
      position: relative;
      z-index: 20;
    }

    .controls-container {
      background: rgba(255, 255, 255, 0.9);
      border-radius: 15px;
      padding: 20px;
      margin-top: 20px;
      box-shadow: 0 5px 25px rgba(0,0,0,0.2);
    }

    .slider_c_u_m{
      display: flex;
      align-items: center;
      justify-content: center;
      margin-bottom: 20px;
      padding: 0 10px;
      background: #f0f4f8;
      gap: 20px;
      max-height: 200px;
  }

  .display_rounds{
    position: absolute;
    top: 0;
    right: 0;
    width: 100vw;
    display: flex;
    flex-direction: column;
  }

  .display_rounds > *{
    color: white !important;
  }

  #joinScreen{
  flex-direction: column;
    display: flex;
    height: 100vh;  
    align-items: center;
    justify-content: center;
}
  
#waitingScreen{
    flex-direction: column;
    display: flex;
    height: 100vh;  
    align-items: center;
    justify-content: center;
    color: black;

}

#waitingScreen h2{
    font-size: 32px;
    margin: 0;
    padding: 0;
    color: #000000;
}