@import url("reset.css");

:root {
  --indian-red: #008e7e;
  --white-smoke: #f9f9f9;
  --dim-grey: #0a0a0a94;
  --black: #4ececd;
  --brown: #ab4040;
  --gold: #c3ac6d;
  --red: #008e7e;
  --steel-blue: #1976d2;
  --medium-sea-green: #20c788;
  --negro: #f9f9f9;
}

body {
  height: 100dvh;
  background-color: black;
  display: grid;
  grid-template-columns: 1fr;
  font-family: "Roboto", sans-serif;
}

#restaurant {
  background-image: url("../assets/restaurant.JPG");
}

#school {
  background-image: url("../assets/school.JPG");
}

section {
  background-size: cover;
  position: relative;
}

.backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3);
  z-index: 0;
  transition: all 0.5s;
}

section a {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  transform: translate(-50%, -50%);
  text-decoration: none;
  border: 1px solid var(--indian-red);
  border-radius: 5px;
  padding: 0.25rem 1.5rem;
  font-weight: 700;
  font-size: 1rem;
  transition: border-color 0.3s, background-color 0.3s;
  border-color: var(--white-smoke);
  background-color: var(--white-smoke);
  color: var(--black);
  line-height: 1.5;
}

section:hover .backdrop {
  background-color: rgba(0, 0, 0, 0.5);
}

section a:hover {
  border-color: var(--indian-red);
  background-color: var(--indian-red);
  color: var(--white-smoke);
}

@media (min-width: 768px) {
  body {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  section a {
    font-size: 1.5rem;
    padding: 1rem 2rem;
  }
}
