@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap');

body 
{
  font-family: 'Inter', sans-serif;
  background-color: #f0f4f8;
  color: #333333;
  text-align: center;
  padding: 40px 20px;
  margin: 0;
  user-select: none;
}

h1 
{
  font-size: 2rem;
  margin-bottom: 20px;
}

select, button 
{
  padding: 10px 16px;
  font-size: 16px;
  margin: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

button 
{
  background-color: #007BFF;
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button:hover 
{
  background-color: #0056b3;
}

#forecastInfo 
{
  margin-top: 30px;
}

.loading 
{
  font-style: italic;
}

.error 
{
  color: #b81d13;
  font-weight: 600;
}

.forecast-container 
{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 50px;
    margin-top: 30px;
    padding-bottom: 40px;
}
  
.forecast-day 
{
  background: #ffffff;
  padding: 20px;
  border-radius: 10px;
  width: 250px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.forecast-day:hover 
{
  transform: scale(1.03);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.forecast-day h3 
{
  margin-top: 0;
  color: #007BFF;
}

.forecast-day p 
{
  margin: 8px 0;
  font-size: 14px;
  line-height: 1.4;
}

.flip-card 
{
    width: 250px;
    height: 220px;
    perspective: 1000px;
    cursor: pointer;
    flex-shrink: 0; 
}
  
  
.flip-card-inner 
{
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.flip-card-inner.flipped 
{
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back 
{
    position: absolute;
    width: 100%;
    height: 100%;
    padding: 20px;
    border-radius: 10px;
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    backface-visibility: hidden;
}

.flip-card-front 
{
    z-index: 2;
}

.flip-card-back 
{
    transform: rotateY(180deg);
}

/* Dark Mode Styles */
body.dark-mode 
{
    background-color: #121212;
    color: #f0f0f0;
}

body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3 
{
    color: #90caf9;
}

body.dark-mode button 
{
    background-color: #333;
    color: #f0f0f0;
    border: 1px solid #555;
}

body.dark-mode button:hover 
{
    background-color: #339CFF;
    box-shadow: 0 0 10px #339CFF66;
}

body.dark-mode .flip-card-front,
body.dark-mode .flip-card-back,
body.dark-mode .forecast-day 
{
    background-color: #1e1e1e;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.08);
}

body.dark-mode .error 
{
    color: #ff6b6b;
}

#toggleDarkMode 
{
    font-size: 20px;
    background: none;
    border: none;
    cursor: pointer;
    margin-bottom: 20px;
    transition: transform 0.2s ease;
    color: #000000;
}

#toggleDarkMode:hover 
{
    transform: scale(1.2);
}