:root {
  font-size: 18px;
}

body {
  font-family: Arial, sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin: 0;
  background-color: #f0f0f0;
}

.container {
  text-align: center;
  background-color: white;
  padding: 1rem;
  border-radius: 0.625rem;
  box-shadow: 0 0 0.625rem rgba(0, 0, 0, 0.1);
  width: auto;
  min-width: 17.5rem;
  max-width: 90vw;
  max-height: 90vh;
  overflow-y: auto;
}

h1 {
  color: #333;
  font-size: 1.8rem;
}

#lotto-numbers-container {
  margin-bottom: 10px;
}

.lotto-set {
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.lotto-number {
  width: 3.125rem;
  height: 3.125rem;
  color: #333;
  background-color: #ffd700;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  font-weight: bold;
  margin: 0.5rem;
}

#generate-btn {
  background-color: #4caf50;
  border: none;
  color: white;
  padding: 0.625rem 1.25rem;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 1rem;
  margin: 1.25rem 0;
  cursor: pointer;
  border-radius: 0.3125rem;
}

#result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  background-color: #f8f8f8;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  display: none;
}

.grid-header {
  font-weight: bold;
  background-color: #4caf50;
  color: white;
  padding: 10px;
  border-radius: 4px;
}

.grid-item {
  padding: 10px;
  background-color: white;
  border-radius: 4px;
  text-align: center;
}

.slider-container {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  width: 90%;
  margin-left: auto;
  margin-right: auto;
}

.slider-label {
  margin-right: 10px;
  width: 4rem;
  text-align: left;
}

.slider {
  -webkit-appearance: none;
  width: 0;
  flex-grow: 1;
  height: 10px;
  border-radius: 5px;
  background: #d3d3d3;
  outline: none;
  opacity: 0.7;
  -webkit-transition: 0.2s;
  transition: opacity 0.2s;
}

.slider:hover {
  opacity: 1;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #04aa6d;
  cursor: pointer;
}

.slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #04aa6d;
  cursor: pointer;
}

.slider-value {
  display: inline-block;
  margin-left: 10px;
}

.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 28px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider-toggle {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: 0.4s;
  transition: 0.4s;
}

.slider-toggle:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: 0.4s;
  transition: 0.4s;
}

input:checked + .slider-toggle {
  background-color: #2196f3;
}

input:focus + .slider-toggle {
  box-shadow: 0 0 1px #2196f3;
}

input:checked + .slider-toggle:before {
  -webkit-transform: translateX(20px);
  -ms-transform: translateX(20px);
  transform: translateX(30px);
}

.slider-toggle.round {
  border-radius: 34px;
}

.slider-toggle.round:before {
  border-radius: 50%;
}

#logo {
  border-radius: 0.625rem;
  width: 100px;
  height: 100px;
}

#version {
  font-size: 0.9rem;
  color: #888;
  text-align: center;
  margin-top: -10px;
  font-weight: normal;
  font-style: italic;
}

#copyright {
  font-size: 0.7rem;
  color: #888;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

#copyright a {
  color: inherit;
  text-decoration: none;
}

@media screen and (max-width: 480px) {
  #result {
    font-size: 0.9rem;
    padding: 0.75rem;
  }
}

@media screen and (max-width: 768px) {
  :root {
    font-size: 14px;
  }
}

@media screen and (max-width: 480px) {
  :root {
    font-size: 12px;
  }
}
