@import url('https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@400;700&display=swap');

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

body {
  background: url("bg2.jpg");
  backdrop-filter: saturate(35%);
  background-size: contain;
}

.darkMode {
  background-image: url('bg.jpg');
}

.container {
  background: rgba(213, 212, 212, 0.8);
}

.darkMode .container {
  background: rgba(10, 10, 10, 0.8);
}

h1 {
  width: 100%;
  height: 140px;  
  text-align: center;
  margin-bottom: 5px;
  overflow: hidden;
}

h1 img {
  max-width: 100%;  
  height: auto;  
  object-fit: contain;  
}

h2 {
  text-align: center;
  font-size: 100px;
  font-family: "Source Sans Pro";
  font-weight: bolder;
  color: black;
  text-align: center;
  text-shadow: 2px 2px 5px rgb(173, 93, 93);
  height: 50px;
  margin: 0;
}

.darkMode h2 {
  text-align: center;
  font-size: 100px;
  font-family: "Source Sans Pro";
  font-weight: bolder;
  color: white;
  text-align: center;
  text-shadow: 2px 2px 5px rgb(173, 93, 93);
  height: 50px;
  margin: 0;
}

#find:hover{
  background-color: #f0f0f0;
  color: #333;}

.darkMode #find {
  background-color: black;
  color:white;
  border: 1px solid white; 
  transition: background-color 0.3s, color 0.3s; 
}

.darkMode #find:hover {
  background-color: #333; 
  color: #ccc; 
}

.d-flex {
  display: flex;
  justify-content: center; 
  align-items: center; 
  flex-wrap: wrap; 
  margin-top: 0;
}

.toggleSwitch {
  display: block;
  margin: 0 auto;
  position: relative;
  margin-top: 10px;
  width: 60px;
  height: 30px;
  cursor: pointer;
}

.toggleSlider {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  border-radius: 30px;
  transition: background-color 0.3s;
}

.toggleSlider::before {
  position: absolute;
  content: "";
  height: 24px;
  width: 24px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  border-radius: 50%;
  transition: transform 0.3s;
}

.darkMode .toggleSlider {
  background-color: #333;
}

.darkMode .toggleSlider::before {
  transform: translateX(30px);
}

label{
  color:black;
  font-size: 20px;
}

.darkMode label{
  color:white;
  font-size: 20px;
}

#dogSelector {
  position: relative;
  overflow-y: auto;
  max-height: 200px; 
  width: 300px;
  margin: 0 auto; 
  text-align: center;
}

.darkMode #dogSelector {
  position: relative;
  overflow-y: auto;  
  max-height: 200px; 
  width: 300px;
  margin: 0 auto; 
  text-align: center; 
  background-color: black; 
  color: white; 
  border: 1px solid white; 
}

#search {
  font-size: 22px;
  font-weight: bold;
  color: rgb(15, 15, 15);
  text-align: center;
}

#dogs .card {
  background-color: white;
  color: black;
  border: 2px solid black;
}

#dogs .card img {
  object-fit: cover;
  object-position: center;
}

.cardBody {
  background: white;
  height: 50px;
  text-align: center;
  padding-top: 10px;
  border-top: solid black;
}

.darkMode #dogs .card {
  background-color: black;
  color: white;
  border: 2px solid white;
  } 

.darkMode .cardBody {
  background: black;
  text-align: center;
  border-top: solid white;
}

#find {
  margin-top: 10px;
  background-color: white;
  color:black;
  border: rgb(17, 30, 30);
}


@media (max-width: 480px) {
  #dogSelector {
      width: 150px;
      font-size: 0.9rem; 
      padding: 8px;
  }
}