.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  height: 100vh;
}

.select-location {
  font-family: Roboto;
  color: white;
  font-size: 75px;
  text-shadow: 8px 8px 16px rgba(0, 0, 0, 0.5);
  font-style: italic;
  font-weight: bolder;
  margin-top: 5vh;
  margin-bottom: 5vh;
}

.grid-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  width: 100%;
  max-width: 750px;
  margin-left: auto;
  margin-right: auto;
  aspect-ratio: 1;
}

.city-block {
  width: 350px;
  height: 350px;
  background-size: cover;
  background-repeat: no-repeat;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s ease;
}

.city-block::before {
  content: "";
  position: absolute; 
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  z-index: -1;
  filter: brightness(0.5);
  transition: filter 0.4s ease;
}

/*Change to .city-block:hover and .city-block:hover::before when more locations are added*/
#toronto:hover {
  transform: scale(1.1);
}

#toronto:hover::before {
  filter: brightness(1);
}

#vaughan:hover {
  transform: scale(1.1);
}

#vaughan:hover::before {
  filter: brightness(1);
}

#richmondhill:hover {
  transform: scale(1.1);
}

#richmondhill:hover::before {
  filter: brightness(1);
}

#oakville:hover {
  transform: scale(1.1);
}

#oakville:hover::before {
  filter: brightness(1);
}

.city-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  text-shadow: 8px 8px 16px rgb(0, 0, 0);
  font-family: Roboto;
  color: white;
  font-weight: bold;
  font-size: 45px;
  text-align: center;
}

.notification {
  position: absolute;
  top: 90%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  text-shadow: 8px 8px 16px rgb(0, 0, 0);
  font-family: Roboto;
  color: rgb(255, 0, 191);
  font-weight: bold;
  font-size: 20px;
  text-align: center;
  white-space: nowrap;
}

#toronto::before {
  background-image: url("/images/toronto.webp");
}

#richmondhill::before {
  background-image: url("/images/richmondhill.webp");
}

#vaughan::before {
  background-image: url("/images/vaughan.webp");
}

#oakville::before {
  background-image: url("/images/oakville.webp");
}

.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 5vh;
}

.logos {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.linkedin {
  max-height: 30px;
  max-width: 30px;
}

.github {
  max-height: 30px;
  max-width: 30px;
  margin-left: 15px;
  filter: brightness(0);
}

.credit-name {
  font-family: Roboto;
  font-size: 20px;
  margin-top: 10px;
}

body {
    background-image: url("/images/background.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-color: black;
    overflow-x: hidden;
    overscroll-behavior-y: none;
}

/*All touch devices*/
@media (pointer:none), (pointer:coarse) {
  #toronto:hover {
    transform: scale(1);
  }

  #toronto::before {
    filter: brightness(1);
  }

  #vaughan:hover {
    transform: scale(1);
  }

  #vaughan::before {
    filter: brightness(1);
  }

  #richmondhill:hover {
    transform: scale(1);
  }

  #richmondhill::before {
    filter: brightness(1);
  }

  #oakville:hover {
    transform: scale(1);
  }

  #oakville::before {
    filter: brightness(1);
  }
}

/*All portrait touch devices*/
@media (pointer:none), (pointer:coarse) and (orientation: portrait) and (max-width: 500px) {
  .select-location {
    font-size: 270%;
  }

  .grid-container {
    min-height: 1500px;
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .city-block {
    margin-left: auto;
    margin-right: auto;
  }
}

@supports (-webkit-background-clip: text) {
  .notification {
      animation: gradientScroll 3s infinite linear;
      color: transparent;
      background: linear-gradient(45deg, red, yellow);
      background-size: 300% 300%;
      -webkit-background-clip: text;
  }
}

@keyframes gradientScroll {
  0% {
      background-position: 100% 0%;
  }
  50% {
      background-position: 0% 100%;
  }
  100% {
      background-position: 100% 0%;
  }
}