/* 1. Preflight: A basic reset for consistent styling across browsers. */
*,
::before,
::after {
  box-sizing: border-box;
  border-width: 0;
  border-style: solid;
  border-color: #e5e7eb; /* A default border color */
}

html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  -moz-tab-size: 4;
  tab-size: 4;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

body {
  margin: 0;
  line-height: inherit;
}

h1, h2, h3, h4, h5, h6 {
  font-size: inherit;
  font-weight: inherit;
}

button {
  font-family: inherit;
  font-size: 100%;
  font-weight: inherit;
  line-height: inherit;
  color: inherit;
  margin: 0;
  padding: 0;
  text-transform: none;
  background-color: transparent;
  background-image: none;
  cursor: pointer;
  -webkit-appearance: button;
  appearance: button;
}

a {
  color: inherit;
  text-decoration: inherit;
}

/* 2. CSS variables for the design system (inspired by Tailwind's theme) */
:root {
  --color-background: gray-50; /* gray-50 */
  --color-text: gray-800; /* gray-800 */
  --color-primary: #3b82f6; /* blue-500 */
  --color-primary-hover: #1d4ed8; /* blue-700 */
  --color-white: white;
  --color-border: #d1d5db; /* gray-300 */

  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

/* 3. Body and base styles */
body {
  background-color: var(--color-background);
  color: var(--color-text);
}

/* 4. App layout styles */
#root {
  min-height: 100vh;
  display: flex;
  align-items: top;
  justify-content: center;
  padding: 1rem;
}
.app-wrapper {
  width: 600px;
  max-width: 100%;
}

/* 5. Component styles for the game */
.game-container {
  background-color: #8d99ae;
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: var(--shadow-lg);
  text-align: center;
  width: inherit;
}

.game-title {
  font-size: 2.5rem; /* text-2xl */
  line-height: 2rem;
  font-weight: 700; /* font-bold */
  margin-bottom: 1rem; /* mb-4 */
  text-align: center;
}

.game-instructions {
  font-size: 1rem;
  text-align: center;
}

.game-panel {
  background-color: #c12029;
  padding: 1rem;
  border-radius: 0.5rem;
  box-shadow: var(--shadow-lg);
  margin-bottom: 1rem;
}

.spinner-box {
  height: 100px;
  width: 100px;
  border-radius: 50%;
  margin: auto;
}

.number-display {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; /* font-mono */
  font-size: 2.0rem; /* text-6xl */
  line-height: 1;
  padding: 1rem; /* p-4 */
  border: 2px solid var(--color-border);
  border-radius: 0.375rem; /* rounded-md */
  margin: 1.5rem 0; /* my-6 */
  background-color: #ffffff;
  text-align: center;
}

.chosen-numbers {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; /* font-mono */
  font-size: 1.8rem; /* text-6xl */
  line-height: 1;
  padding: 1rem; /* p-4 */
  border: 2px solid var(--color-border);
  border-radius: 0.375rem; /* rounded-md */
  margin: 1.5rem 0; /* my-6 */
}

.action-button {
  background-color: var(--color-primary);
  color: var(--color-white);
  font-weight: 700; /* font-bold */
  padding: 0.5rem 1rem; /* py-2 px-4 */
  border-radius: 0.25rem; /* rounded */
  transition: background-color 150ms ease-in-out;
}

.action-button:hover {
  background-color:   var(--color-primary-hover); 
}

.action-button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.game-footer {
  font-size: 1rem;
  text-align: center;
  margin-top: 1rem; /* mb-4 */
}

/* 6. Responsive Design (Media Queries) */
/* Styles for tablets and mobile devices (screens smaller than 768px) */
@media (max-width: 768px) {
  .app-wrapper {
    width: 100%;
  }

  .game-container {
    padding: 1rem;
  }

  .game-title {
    font-size: 2rem;
  }

  .number-display,
  .chosen-numbers {
    font-size: 1.5rem;
    padding: 0.75rem;
  }
}

/* 7. Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-content {
  background-color: var(--color-white);
  padding: 1.5rem;
  border-radius: 0.5rem;
  box-shadow: var(--shadow-lg);
  width: 90%;
  max-width: 500px;
  text-align: center;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 0.75rem;
  margin-bottom: 1rem;
}

.modal-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
}

.modal-close-button {
  font-size: 2rem;
  line-height: 1;
  color: var(--color-text);
}

.modal-body p {
  margin: 0.5rem 0;
  font-size: 1.1rem;
}

.modal-footer {
  margin-top: 1.5rem;
}/*
 *@tailwind base;
 *@tailwind components;
 *@tailwind utilities;
 */
