/* common.css */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');
input[type="number"] {

    -moz-appearance: textfield; /* For Firefox */ 
  
  }
  
  
  
  input[type="number"]::-webkit-outer-spin-button, 
  
  input[type="number"]::-webkit-inner-spin-button {
  
    -webkit-appearance: none; 
  
    margin: 0; 
  
  } 
  
body {
    font-family: 'Poppins', sans-serif;
    background: #F6EEE0; /* Cream */
    color: #A45C40; /* Desert Sun */
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
}

.container {
    background: #E4B7A0; /* Peach */
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 400px;
    text-align: center;
    animation: fadeIn 1s ease-in-out;
}

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

h1 {
    color: #A45C40; /* Desert Sun */
    margin-bottom: 1.5rem;
    font-size: 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

button {
    background: #C38370; /* Coral */
    color: #F6EEE0; /* Cream */
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    margin: 0.5rem;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

button:hover {
    background: #A45C40; /* Desert Sun */
    transform: translateY(-3px);
}

button:disabled {
    background: #E4B7A0; /* Peach */
    cursor: not-allowed;
    transform: none;
}

#game-state {
    margin-top: 1.5rem;
}

#game-state p {
    margin: 0.5rem 0;
    font-size: 1rem;
    color: #A45C40; /* Desert Sun */
}

.roomjoin { 
    width: 60%;
    padding: 0.75rem;
    background: #F6EEE0; /* Cream */
    border: 2px solid #A45C40; /* Desert Sun */
    border-radius: 8px;
    color: #A45C40; /* Desert Sun */
    font-size: 1rem;
    text-align: center;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

#rematch-button, #quit-button {
    margin: 10px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
}

#rematch-button {
    background-color: #A45C40;
    color: white;
}


#quit-button {
    background-color: #A45C40;
    color: white;
}

/* Responsive adjustments for small phones */
@media (max-width: 480px) {
  body {
    padding: 1rem;
  }
  .container {
    width: 95%;
    max-width: 95%;
    padding: 1.5rem;
  }
  h1 {
    font-size: 2.5rem;
  }
  button {
    padding: 1rem 2rem;
    font-size: 1.2rem;
  }
  input[type="number"],
  .roomjoin {
    font-size: 1.1rem;
    padding: 1rem;
  }
}

/* Responsive adjustments for tablets (up to 768px) */
@media (min-width: 481px) and (max-width: 768px) {
  .container {
    width: 90%;
    max-width: 600px;
    padding: 2rem;
  }
  h1 {
    font-size: 2.2rem;
  }
  button {
    padding: 1rem 2rem;
    font-size: 1.1rem;
  }
  input[type="number"],
  .roomjoin {
    font-size: 1.1rem;
    padding: 0.9rem;
  }
}

/* Responsive adjustments for iPad (up to 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .container {
    width: 85%;
    max-width: 700px;
    padding: 2.5rem;
  }
  h1 {
    font-size: 2.5rem;
  }
  button {
    padding: 1.1rem 2.2rem;
    font-size: 1.2rem;
  }
  input[type="number"],
  .roomjoin {
    font-size: 1.2rem;
    padding: 1rem;
  }
}

/* Additional adjustments for larger screens if necessary */
@media (min-width: 1025px) {
  .container {
    max-width: 800px;
  }
}
