* {
  margin: 0;
  box-sizing: border-box;
}

body {
  background-color: white;
  color: black;
  font-family: Arial, sans-serif;
  transition: background 0.4s, color 0.4s;
}


body.dark-mode {
  background-color: #121212;
  color: white;
}


#menu {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: black;
  height: 95px;
  width: 100%;
}

#container-header {
  display: flex;
  padding: 18px 50px;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 0 10px darkblue;
}

.botao {
  width: 100px;
  background-color: blue;
  border: none;
  border-radius: 25px;
  padding: 1rem 2rem;
  color: white;
  font-weight: 600;
  text-align: center;
}


#divGrid {
 display:grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 200px);
  justify-items: center;
  padding: 5%;
  gap:40px;
}

.car1 {
 background-color: #000000;
  color: white;
  display: flex;
  justify-content:center;
  align-items:center;
  font-size: 1.2rem;
  cursor: pointer;
  border-radius: 10px;
  transition: transform 0.2s;
}

.card:hover { transform: scale(1.05); }


.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left:0; top:0;
  width:100%; height:100%;
  background-color: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: white;
  color: black;
  padding: 20px;
  border-radius: 10px;
  width: 80%;
  max-width: 500px;
  position: relative;
}

.modal-content p { margin: 0; }

.close {
  position: absolute;
  top:10px;
  right:15px;
  font-size: 1.5rem;
  cursor: pointer;
}

dialog {
  border: none;
  border-radius: 10px;
  padding: 20px;
}

dialog p { margin: 0; }


.botao2 {
  width: 200px;
  background-color: blue;
  border: none;
  border-radius: 25px;
  padding: 1rem;
  color: white;
}


.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #ccc;
  border-radius: 34px;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  border-radius: 50%;
  transition: .4s;
}

input:checked + .slider {
  background-color: #2196F3;
}

input:checked + .slider:before {
  transform: translateX(26px);
}