* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Roboto", sans-serif;
}

.popup-close {
  position: absolute;
  top: 10px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.5rem;
  font-weight: bold;
  color: #38302e;
  cursor: pointer;
}

.popup-close:hover {
  color: #4bb3fd;
}

.popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.popup-content {
  position: relative;
  background: #ffffff;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  width: 90%;
  max-width: 400px;
}

.popup-content h2 {
  margin-bottom: 10px;
  color: #4bb3fd;
}

.popup-content p {
  margin-bottom: 20px;
  color: #38302e;
}

.popup-content .button {
  display: inline-block;
  padding: 10px 20px;
  background-color: #4bb3fd;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
}

.popup-content .button:hover {
  background-color: #0cce6b;
}

#home-body {
  background-color: #f0e9cc;
  color: #38302e;
}

.segment {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  padding: 40px;
  background-color: #f5f5f5;
  gap: 20px;
}

#slanted-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}

#divider {
  width: 20px;
  height: 220px;
  background-color: #38302e;
  clip-path: polygon(85% 0, 100% 0, 15% 100%, 0 100%);
}

h1,
h2,
h3 {
  font-family: "Space Mono", monospace;
  margin-bottom: 10px;
}

p {
  font-family: "Roboto", sans-serif;
  line-height: 1.5;
}

#main-head {
  font-size: 2.5em;
}

.ele1 {
  max-width: 400px;
  text-align: center;
}

.ele2 {
  max-width: 600px;
  padding: 20px;
  background-color: #CFC7D2;
  border-radius: 8px;
  box-shadow: 0 4px 8px #0000001a;
}

.imgtxt {
  max-width: 40%;
}

#homeSection2 {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 40px;
  background-color: #f5f5f5;
}

.sdg-item {
  width: 300px;
  background-color: #f0e9cc;
  border: 1px solid #a69f77;
  border-radius: 10px;
  box-shadow: 0 4px 8px #0000001a;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.sdg-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px #00000033;
}

.sdg-item a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.sdg-item article {
  padding: 20px;
  text-align: center;
}

.sdg-item img {
  width: 100%;
  height: auto;
  border-bottom: 1px solid #a69f77;
}

.sdg-item h2 {
  font-size: 1.2rem;
  color: #38302e;
  margin: 10px 0;
}

.sdg-item p {
  font-size: 1rem;
  color: #38302e;
  margin: 0;
}

#signup-form {
  max-width: 400px;
  margin: 0 auto;
  padding: 20px;
  background-color: #f0e9cc;
  border: 1px solid #a69f77;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 6px #000000;
}

#signup-form label {
  display: block;
  margin: 10px 0 5px;
  font-weight: bold;
}

#signup-form .name-fields {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

#signup-form input[type="text"],
#signup-form input[type="email"],
#signup-form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #a69f77;
  border-radius: 5px;
}

#signup-form textarea {
  height: 80px;
  resize: vertical;
}

#signup-form button {
  padding: 10px 20px;
  background-color: #f5e693;
  color: #38302e;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
}

#signup-form button:hover {
  background-color: #688c4e;
}

.message {
  margin-top: 15px;
  font-size: 0.9rem;
  font-weight: bold;
}

.unsubscribe {
  font-size: 10px;
}

@media (max-width: 1105px) {
  #divider {
    display: none;
  }
}

@media (max-width: 1100px) {
  .segment {
    flex-direction: column;
    text-align: center;
  }

  .imgtxt {
    display: none;
  }

  .sdg-item {
    width: 90%;
  }

  h1,
  h2,
  h3 {
    font-size: 1.5rem;
  }

  .segment,
  #homeSection2 {
    padding: 10px;
    gap: 15px;
  }

  .sdg-item {
    width: 100%;
  }

  #signup-form {
    padding: 10px;
  }

  #signup-form button {
    padding: 8px 15px;
    font-size: 0.9rem;
  }
}
