* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  z-index: 5;
}

body {
  background-image: url("../img/AFPESP_BACK.jpg");
  background-position: left top;
  background-attachment: fixed;
  background-size: 100%;
  height: 90vh;
}

header {
  background-color: rgba(0, 0, 0, 0.466);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0 50px;
  padding: 10px;
}

header img {
  width: 60px;
}

.box {
  display: grid;
  height: 97%;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 20px;
}

.card {
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
  transition: 0.3s;
  width: 300px;
  border-radius: 5px;
  overflow: hidden;
  margin: 20px auto;
}

.card img {
  border-radius: 20px;
  max-height: 400px;
}

.card .container {
  background-color: rgba(0, 0, 0, 0.753);
  border-radius: 20px;
  color: white;
}

.card .container h2 {
  font-size: 2rem;
}
.card .container p {
  font-size: 1.4rem;
  margin: 10px 0 10px 0;
}

.card:hover {
  box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2);
}

.container {
  padding: 2px 16px;
}

.container button {
  background-color: #007bff;
  color: white;
  padding: 12px 15px;
  margin: 5px;
  border: none;
  border-radius: 5px;
  align-self: center;
  justify-self: right;
}

.btn {
  display: inline-block;
  padding: 10px 15px;
  margin: 10px 0;
  background-color: #007bff;
  color: white;
  text-align: center;
  text-decoration: none;
  border-radius: 4px;
}

img {
  border-radius: 5px 5px 0 0;
}

.about {
  position: absolute;
  background-color: rgb(247, 247, 247);
  color: black;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 330px;
  padding: 10px;
  gap: 10px 0;
  height: 450px;
  border-radius: 20px;
  justify-self: center;
  top: 150px;
  z-index: 6;
}

.footer-text {
  width: 100%;
  font-size: 15px;
  color: white;
  text-align: center;
  background-color: rgba(0, 0, 0, 0.466);
}

.close {
  display: none;
}

footer {
  font-size: 15px;
  color: white;
  background-color: rgba(0, 0, 0, 0.466);
  font-size: 12px;
  width: 100%;
  text-align: center;
  height: 18px;
  grid-column: 1 / 2;
}

@media (max-width: 768px) {
  header {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  header h1 {
    font-size: 1.2rem;
  }

  .card {
    width: 100%;
    margin: 0;
  }

  .card .container h2 {
    font-size: 1.5rem;
  }

  .card .container p {
    font-size: 1rem;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  body {
    background-size: cover;
    height: auto;
  }
}
