@import url("https://fonts.googleapis.com/css2?family=Rubik:wght@600&display=swap");

body {
  /* Light Mode styles */
  --background-color: #f5f5f5;
  --text-color: #333333;
  font-family: "Rubik", sans-serif;
  /* Dark Mode styles */
  --dark-background-color: #111111;
  --dark-text-color: #f5f5f5;
  font-family: "Rubik", sans-serif;
}

body.dark-mode {
  background-color: var(--dark-background-color);
  color: var(--dark-text-color);
}

h1,
h2,
h3 {
  color: #555555;
}

body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3 {
  color: #ffffff;
}

/* Existing styles */

/* Existing styles */

/* Add the following styles for the toggle button */
.toggle-container {
  display: inline-block;
  position: relative;
  width: 50px;
  height: 24px;
}

.toggle-container input {
  display: none;
}

.toggle-switch {
  position: absolute;
  top: 0;
  left: 0;
  width: 50px;
  height: 24px;
  background-color: #ccc;
  border-radius: 24px;
  cursor: pointer;
  transition: background-color 0.4s;
}

.toggle-switch:before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background-color: white;
  border-radius: 50%;
  transition: transform 0.4s;
}

.toggle-container input:checked + .toggle-switch {
  background-color: #00bec7;
}

.toggle-container input:checked + .toggle-switch:before {
  transform: translateX(26px);
}

.toggle-container input:checked + .toggle-switch:after {
  transform: translateX(-12px);
}

/* Additional styles for the mode label */
#mode-label {
  margin-left: 10px;
  font-weight: bold;
  color: var(--text-color);
}

/* Your other CSS styles */

.container {
  max-width: 60%;
  margin: 0 auto;
  padding: 20px;
  background-color: #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

body.dark-mode .container {
  max-width: 60%;
  margin: 0 auto;
  padding: 20px;
  background: linear-gradient(182deg, #360033, #2d5d7b, #0b8793);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

@media (min-width: 768px) and (max-width: 1023px) {
  .container {
    min-width: 800px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }

  body.dark-mode .container {
    min-width: 800px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    background: linear-gradient(182deg, #360033, #2d5d7b, #0b8793);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }

  .forecast-entry {
    padding: 28px;
    background: linear-gradient(to right, #06beb6 0%, #48b1bf 100%);
    border: aqua 2px solid;
    border-radius: 20px;
    margin-bottom: 10px;
    min-width: 400px;
    max-width: 100%;
    width: 380px;
  }

  body.dark-mode .forecast-entry {
    border-radius: 10px;
    border: 8px solid rgb(204 204 204 / 10%);
    background: linear-gradient(182deg, #000000, #343434);
    color: #f5f5f5;
    min-width: 400px;
    max-width: 100%;
    width: 380px;
  }
}

/* Styles for mobile devices */
@media (max-width: 767px) {
  .container {
    width: 100%;
    min-width: 100%;
    margin: 0;
    padding: 10px;
  }

  body.dark-mode .container {
    width: 100%;
    min-width: 100%;
    margin: 0;
    padding: 10px;
    background: linear-gradient(182deg, #360033, #2d5d7b, #0b8793);
  }
}

h1 {
  color: #333333;
  text-align: center;
}

h2 {
  color: #555555;
  margin-top: 20px;
}

h2 {
  color: #555555;
  margin-top: 20px;
}

.current-weather,
.forecast {
  margin-top: 20px;
}

.weather-details {
  border: 1px solid #dddddd;
  padding: 10px;
  background-color: #f9f9f9;
}

.detail {
  margin-bottom: 10px;
}

.label {
  font-weight: bold;
}

.value {
  color: #333333;
}

.forecast-entry {
  padding: 28px;
  background: linear-gradient(to right, #06beb6 0%, #48b1bf 100%);
  border: aqua 2px solid;
  border-radius: 20px;
  margin-bottom: 10px;
}

body.dark-mode .forecast-entry {
  border-radius: 10px;
  border: 8px solid rgb(204 204 204 / 10%);
  background: linear-gradient(182deg, #000000, #343434);
  color: #f5f5f5;
}

.forecast-entry .time {
  font-weight: bold;
  color: #ffffff;
  display: block;
}

body.dark-mode .forecast-entry .time {
  font-weight: bold;
  color: #ffffff;
  display: block;
}

.forecast-entry .temperature {
  color: #333333;
}

.forecast-entry .symbol-phrase {
  font-style: italic;
  color: #666666;
}

span.time {
  display: block;
  clear: both;
  padding-right: 10px;
}

.searchbox {
  position: relative;
  font-size: 2em;
  display: inline;
  top: 50%;
  left: 0;
  width: 450px;
  min-width: 380px;
  max-width: 550px;
  padding: 35px;
  margin: -14px 0 0 -97px;
  background-color: #f2fdff;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgb(4 209 236 / 75%), 0 0 0 20px #ffffffeb;
  transform: scale(0.6);
  font-family: "Rubik", sans-serif;
}

button {
  z-index: 2;
  width: 265px;
  height: 85px;
  position: relative;
  background: linear-gradient(to right, #ffb369 0%, #ff4272 100%);
  display: block;
  border-radius: 25px;
  text-align: center;
  margin: -10px 0 0 -42px;
  font-size: 2em;
  color: rgba(255, 255, 255, 1);
  text-decoration: none;
  line-height: 0;
  transition: all 0.7s ease, line-height 0s ease, color 0.4s ease,
    filter 0.2s ease;
  transform: scale(0.6);
  font-family: "Rubik", sans-serif;
  cursor: pointer;
}

button:hover {
  z-index: 2;
  width: 265px;
  height: 85px;
  position: relative;
  background: linear-gradient(to right, #ffb369 0%, #ff4272 100%);
  display: block;
  border-radius: 25px;
  text-align: center;
  font-size: 2em;
  color: rgba(255, 255, 255, 1);
  text-decoration: none;
  line-height: 0;
  transition: all 0.7s ease, line-height 0s ease, color 0.4s ease,
    filter 0.2s ease;
  transform: scale(0.65);
  font-family: "Rubik", sans-serif;
  cursor: pointer;
}
