@import url("https://fonts.googleapis.com/css?family=Indie+Flower&display=swap");

body {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  min-height: 100vh;
  background-image: url('lightimg.webp');
  color: #000;
  font-family: "Indie Flower", cursive;
  text-align: center;
}

.both {
  width: 50%;
  text-align: center;
}

.quote-container {
  width: 100%;
  height: auto;
  padding: 30px 20px;
  border-radius: 10px;
  background-color: rgba(200, 179, 179, 0.4);
  box-shadow: 0 10px 10px 10px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  position: relative;
  margin: 0 auto;
}

.quote-text {
  font-size: 2rem;
}

.fa-quote-left {
  font-size: 2rem;
}

.quote-author {
  margin-top: 15px;
  font-size: 2rem;
  font-weight: 400;
  font-style: italic;
}

.button-container {
  gap: 100px;
  margin-top: 20px;
  display: flex;
  justify-content: center;
}

button {
  cursor: pointer;
  font-size: 1rem;
  height: 2.5rem;
  border: none;
  border-radius: 10px;
  color: #fff;
  background-color: #333;
  padding: 0.5rem 1.8rem 0.5rem 1.8rem;
  box-shadow: 0 0.3rem rgba(121, 121, 121, 0.65);
}

button:hover {
  filter: brightness(110%);
}

button:active {
  transform: translateY(2px);
  box-shadow: 0 0.1rem rgba(255, 255, 255, 0.65);
}

.font {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 20px;
  font-weight: bold;
  position: absolute;
  top: 5%;
  right: 4%;
}


.dropdown {
  justify-content: space-between;
  display: block;
}

.Category {
  width: 200px;
  padding: 10px;
  font-size: 16px;
  border: 2px solid #ccc;
  border-radius: 4px;
  background-color: #77afd8;
  cursor: pointer;
  font-family: "Indie Flower";
}

.Category:focus {
  border-color: #f8fafb;
  outline: none;
  box-shadow: 0 0 5px rgba(239, 236, 235, 0.5);
}

.Category option {
  padding: 10px;
}

.dark-mode {
  background: url('darkimg.jpg');
  background-repeat: no-repeat;
  background-size: cover;

  .main {
    background: none;
    color: rgb(238, 234, 234);
  }

  .quote-text {
    color: whitesmoke;
  }

  .quote-author {
    color: whitesmoke;
  }

  .container {
    color: whitesmoke;
  }

  .dropdown {
    color: whitesmoke;
  }

  .quotebox {
    background-color: rgba(143, 135, 135, 0.76);
  }
}

.theme-container {
  position: absolute;
  top: 5%;
  left: 5%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-slider {
  display: inline-block;
  height: 34px;
  position: relative;
  width: 60px;
}

.theme-slider input {
  display: none;
}

.slider {
  background-color: #ccc;
  bottom: 0;
  cursor: pointer;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  transition: .4s;
}

.slider:before {
  background-color: #f5eb2f;
  bottom: 4px;
  content: "";
  height: 26px;
  left: 4px;
  position: absolute;
  transition: .4s;
  width: 26px;
}

input:checked+.slider {
  background-color: #767373;
}

input:checked+.slider:before {

  transform: translateX(26px);
}

.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

@media screen and (max-width: 900px) {
  .both {
    width: 90%;
  }

  .quote-container {
    width: 90%;
    padding: 15px;
  }

  .quote-text {
    font-size: 1.5rem;
  }

  .quote-author {
    font-size: 1.5rem;
  }

  .button-container {
    gap: 10px;
  }
}