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

body {
  position: relative;
  min-height: 100vh;
  background-image: url('images/bg.jpg');
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  backdrop-filter: brightness(30%);
  padding-top: 2.5rem;
}

header {
  text-align: center;
  margin-bottom: 2rem;
  color: white;
}

h1 {
  font-size: clamp(2rem, calc(1.48rem + 2.61vw), 3.5rem);
  -webkit-text-stroke: 1px black;
  color: white;
  text-shadow: 3px 3px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000,
    -1px 1px 0 #000, 1px 1px 0 #000;
  text-transform: uppercase;
}

.buttons {
  display: flex;
  justify-content: space-evenly;
  flex-wrap: wrap;
  gap: 1.2rem;
  padding: 0.5rem;
}

button {
  font-size: 20px;
  -webkit-text-stroke: 1px white;
  color: black;
  text-shadow: 3px 3px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000,
    -1px 1px 0 #000, 1px 1px 0 #000;
  display: inline-block;
  padding: 1rem 1.2rem;
  border: none;
  background-color: #dc575b;
  color: white;
  cursor: pointer;
}

.modal {
  position: absolute;
  width: 60%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.3);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  z-index: 1;
}

.hidden {
  display: none;
}

.modal__close {
  position: absolute;
  font-size: 2rem;
  right: 5px;
  top: 5px;
  color: white;
  cursor: pointer;
  background-color: #dc575b;
}

.modal > img {
  width: 100%;
}

.modal > p {
  align-self: center;
  font-size: 18px;
  line-height: 1.4;
  color: #f4f4f4d8;
  background-color: rgba(51, 51, 51, 0.863);
}

/* -------------------------- */
/* CLASSES TO MAKE MODAL WORK */

.hidden {
  display: none;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: hsla(0, 0%, 20%, 0.6);
}

@media (max-width: 770px) {
  .modal {
    grid-template-columns: 1fr;
    width: 90%;
    height: 80vh;
    overflow: auto;
  }
}
