@import url('https://fonts.googleapis.com/css2?family=Climate+Crisis&family=Signika+Negative:wght@300;400;600&family=Dela+Gothic+One&display=swap');

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

html, body {
  min-height: 100vh;
  width: 100%;
  background-color: #3C3744;
  font-family: 'Dela Gothic One', sans-serif;
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
}

main {
  flex-grow: 1;
}

.font-climate {
  font-family: 'Climate Crisis', sans-serif;
}

header {
  background-color: #3C3744;
  padding: 2px;
  text-align: center;
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  border-bottom: 2px solid #C0C0C0;
}

.content {
  margin-top: 150px;
  display: flex;
  justify-content: space-around;
  padding: 20px;
  flex-wrap: wrap;
}

.card {
  position: relative;
  width: 30%;
  height: 250px;
  margin: 20px 0;
  background-color: #db9721;
  border-radius: 15px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card .subtitle {
  position: absolute;
  bottom: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 10px 0;
  text-align: center;
  font-size: 1.2rem;
  font-weight: bold;
  font-family: 'Signika Negative', sans-serif;
}

.card:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.card:hover .subtitle {
  background-color: rgba(0, 0, 0, 0.8);
}

.info-box {
  display: none;
  background-color: #3C3744;
  padding: 20px;
  border-radius: 15px;
  color: white;
  width: 90%;
  max-width: 90%;
  margin: 20px auto;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  max-height: 400px;
}

.info-box h2 {
  text-align: center;
  font-size: 2rem;
  font-family: 'Climate Crisis', sans-serif;
  margin: 0;
  padding-bottom: 10px;
  color: #db9721;
}

.info-box p {
  font-family: 'Signika Negative', sans-serif;
  font-size: 1.125rem;
  line-height: 1.6;
}

footer {
  background-color: #3C3744;
  width: 100%;
  position: relative;
  z-index: 1;
  padding: 20px 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.social-link:hover {
  color: #db9721;
}

@media (max-width: 768px) {
  .card {
    width: 45%;
  }
  .info-box {
    width: 95%;
  }
}

@media (max-width: 640px) {
  .card {
    width: 90%;
  }
  .info-box h2 {
    font-size: 1.5rem;
  }
  .info-box p {
    font-size: 1rem;
  }
}