* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Varela Round", sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-x: hidden;
  padding: 20px;
}

.container {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  padding: 40px;
  text-align: center;
  max-width: 500px;
  width: 90%;
  backdrop-filter: blur(10px);
  animation: slideIn 0.8s ease-out;
}

@keyframes slideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.title {
  font-size: 3em;
  color: #4a5568;
  margin-bottom: 10px;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.difficulty-section {
  margin: 30px 0;
}

.difficulty-title {
  font-size: 1.5rem;
  color: #4a5568;
  margin-bottom: 20px;
  font-weight: 600;
}

.difficulty-buttons {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
  margin-bottom: 30px;
}

.difficulty-btn {
  padding: 15px 30px;
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.difficulty-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.5s;
}

.difficulty-btn:hover::before {
  left: 100%;
}

.easy {
  background: linear-gradient(135deg, #48bb78, #38a169);
  color: white;
  box-shadow: 0 4px 15px rgba(72, 187, 120, 0.4);
}

.easy:hover {
  transform: scale(1.01);
  box-shadow: 0 8px 25px rgba(72, 187, 120, 0.6);
}

.medium {
  background: linear-gradient(135deg, #ed8936, #dd6b20);
  color: white;
  box-shadow: 0 4px 15px rgba(237, 137, 54, 0.4);
}

.medium:hover {
  transform: scale(1.01);
  box-shadow: 0 8px 25px rgba(237, 137, 54, 0.6);
}

.hard {
  background: linear-gradient(135deg, #e53e3e, #c53030);
  color: white;
  box-shadow: 0 4px 15px rgba(229, 62, 62, 0.4);
}

.hard:hover {
  transform: scale(1.01);
  box-shadow: 0 8px 25px rgba(229, 62, 62, 0.6);
}

.start-btn {
  background: linear-gradient(135deg, #805ad5, #553c9a);
  color: white;
  border: none;
  padding: 10px 20px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(128, 90, 213, 0.4);
  position: relative;
  overflow: hidden;
}

.start-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.5s;
}

.start-btn:hover::before {
  left: 100%;
}

.start-btn:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 30px rgba(128, 90, 213, 0.6);
}

.modal {
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  animation: fadeIn 0.3s ease;
}
.show{
  display: block
}
.close{
  display: none;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-content {
  background: white;
  margin: 10% auto;
  padding: 30px;
  border-radius: 20px;
  width: 90%;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  animation: modalSlideIn 0.4s ease-out;
}

@keyframes modalSlideIn {
  from {
    transform: translateY(-50px) scale(0.9);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.close-btn {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  margin-top: -10px;
  margin-right: -10px;
}

.close-btn:hover {
  color: #000;
}

.modal-title {
  color: #4a5568;
  font-size: 1.8rem;
  margin-bottom: 20px;
  font-weight: 600;
}

.modal-text {
  color: #718096;
  margin-bottom: 25px;
  line-height: 1.6;
}

.modal-btn {
  background: linear-gradient(135deg, #48bb78, #38a169);
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 25px;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(72, 187, 120, 0.4);
}

.modal-btn:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 20px rgba(72, 187, 120, 0.6);
}

.difficulty-info {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 20px 0;
  padding: 20px;
  background: rgba(128, 90, 213, 0.1);
  border-radius: 12px;
  border-left: 4px solid #805ad5;
}

.info-item {
  color: #4a5568;
  font-weight: 500;
}



@media (min-width: 768px) {
  .container {
    padding: 50px;
  }

  .title {
    font-size: 3.5rem;
  }

  .difficulty-buttons {
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 30px 20px;
  }

  .title {
    font-size: 2.5rem;
  }

  .difficulty-btn,
  .start-btn {
    font-size: 1rem;
    padding: 12px 25px;
  }
}

@media (max-width: 370px) {
  .title {
    font-size: 2rem;
  }

  .difficulty-title {
    font-size: 1.2rem;
  }

  .modal-title {
    font-size: 1.4rem;
  }

  .modal-text {
    font-size: 0.9rem;
    line-height: 1.4;
  }

  .info-item {
    font-size: 0.9rem;
  }

  p {
    font-size: 0.9rem;
    line-height: 1.4;
  }
}
