 body {
    font-family: 'Fredoka', sans-serif;
    background: linear-gradient(135deg, #a1c4fd 0%, #c2e9fb 100%);
    min-height: 100vh;
    color: #333;
  }

  /* Modal Container */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.6);
}

/* Modal Content Box */
.modal-content {
  background-color: #fff;
  margin: 15% auto;
  padding: 20px;
  border-radius: 8px;
  width: 80%;
  max-width: 500px;
  font-family: sans-serif;
}

/* Close Button */
.close {
  color: #aaa;
  float: right;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover {
  color: black;
}


  #level-info {
    background-color: #ffffffcc;
    border: 2px dashed #6c5ce7;
    font-size: 1rem;
  }
  
  body.dark-mode #level-info {
  background-color: #2a2a3d;
  color: #ffffff;
  border-color: #444;
  }


  .game-card {
    background-color: white;
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin-top: 2rem;
    transition: all 0.3s ease-in-out;
  }

  .btn {
    border-radius: 12px;
  }

  .btn-primary {
    background-color: #6c5ce7;
    border: none;
  }

  .btn-success {
    background-color: #00b894;
    border: none;
  }

  .btn-warning {
    background-color: #fdcb6e;
    border: none;
  }

  .form-control {
    border-radius: 12px;
  }

  #rhyme-history {
    max-height: 200px;
    overflow-y: auto;
    border-top: 1px solid #ccc;
    margin-top: 1rem;
  }

  #progress-container {
  width: 80%;
  height: 20px;
  background-color: #ddd;
  border-radius: 10px;
  overflow: hidden;
  margin: 0 auto;
}

#progress-bar {
  height: 100%;
  background-color: #6c5ce7;
  width: 100%;
  transition: width 1s linear;
}

body.dark-mode {
  background-color: #1e1e2f;
  color: #ffffff;
}

body.dark-mode .game-card {
  background-color: #2a2a3d;
  color: #ffffff;
  border-color: #444;
}

body.dark-mode input,
body.dark-mode .form-control {
  background-color: #333;
  color: #fff;
  border: 1px solid #555;
}

body.dark-mode .btn-success {
  background-color: #4caf50;
}

body.dark-mode #progress-bar {
  background-color: #00b894;
}



  #welcome-screen,
  #game-screen,
  #end-screen {
    transition: all 0.3s ease-in-out;
  }

  .fade-in {
    animation: fadeIn 0.6s ease-in;
  }

  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
  }
