/* style.css */

:root {
  --bg: #fefaf6;
  --text: #222;
  --accent: #a7bfa7;
  --circle: #a7bfa7;
  --font: 'Outfit', sans-serif;
}

/* Themes */
[data-theme="feu"] {
  --bg: #fff6f3;
  --text: #3b1f1a;
  --accent: #d96e4d;
  --circle: #f2856b;
}

[data-theme="eau"] {
  --bg: #f2f9ff;
  --text: #1f2e3b;
  --accent: #4da3d9;
  --circle: #7cc6f2;
}

[data-theme="feuille"] {
  --bg-color: #E6F2E6;
  --text-color: #2E5D34;
  --accent: #77B28C;
  --shadow-color: #A3C1A1;
}

[data-theme="vent"] {
  --bg: #f9fbfc;
  --text: #2c3e50;
  --accent: #bdc3c7;
  --circle: #dfe6e9;
}

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

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font);
  min-height: 100vh;
  min-width: 100vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  transition: background 0.5s, color 0.5s;
}

header {
  min-width: 150px;
}


.themes:hover svg{
  cursor: pointer;
}

#theme-feu:hover path{
  stroke: #d96e4d;
}

#theme-eau:hover path{
  stroke: #4da3d9;
}

#theme-feuille:hover *{
  stroke: #77B28C;
}

#theme-vent:hover path{
  stroke: #bdc3c7;
}

body[data-theme="feuille"] {
  background-color: var(--bg-color);
  color: var(--text-color);
}

#theme-toggle {
  cursor: pointer;
  font-size: 1.5rem;
  user-select: none;
  transition: transform 0.2s;
}

#theme-toggle:hover {
  transform: scale(1.1);
}

main {
  text-align: center;
}

h1 {
  font-size: 2rem;
  margin-bottom: 2rem;
}

.circle-container {
  height: 200px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 2rem;
}

#circle {
  width: 100px;
  height: 100px;
  background-color: var(--circle);
  border-radius: 50%;
  transition: transform 4s ease-in-out, background-color 0.5s;
}

#instruction {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: #555;
  min-height: 1.5em;
}

.controls {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

button, select {
  font-family: var(--font);
  padding: 0.4rem 1rem;
  font-size: 1rem;
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--text);
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}

button:hover, select:hover {
  background-color: var(--accent);
  color: #fff;
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.5rem;
  }

  #instruction {
    font-size: 1rem;
  }

  #circle {
    width: 80px;
    height: 80px;
  }
}
