* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Satoshi", sans-serif;
  scroll-behavior: smooth;
}
html,
body,
section,
footer {
  overflow-x: hidden;
}
body {
  background: rgb(255, 248, 240);
  background: -moz-linear-gradient(
    338deg,
    rgba(255, 248, 240, 1) 0%,
    rgba(200, 245, 255, 1) 47%,
    rgba(255, 200, 170, 1) 100%
  );
  background: -webkit-linear-gradient(
    338deg,
    rgba(255, 248, 240, 1) 0%,
    rgba(200, 245, 255, 1) 47%,
    rgba(255, 200, 170, 1) 100%
  );
  background: linear-gradient(
    338deg,
    rgba(255, 248, 240, 1) 0%,
    rgba(200, 245, 255, 1) 47%,
    rgba(255, 200, 170, 1) 100%
  );
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  min-height: 100vh;
}

nav {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  margin: 2rem;
}
.homeButton {
  border: 1px solid black;
  padding: 0.6rem 1.1rem;
  border-radius: 21px;
  color: black;
  text-decoration: none;
  transition: 0.2s ease;
  margin: 0.5rem;
}
.links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: row;
  margin: 2rem;
}
.homeButton:hover {
  background: black;
  color: white;
}
main h1 {
  margin: 2rem;
  font-size: 2.5rem;
  text-align: center;
}

.block {
  width: 500px;
  min-height: 120px;
  background: #ffb56b;
  padding: 1rem;
  margin-block: 0.5rem;
  border-radius: 20px;
}
.white {
  background: #fff;
}
.blocks {
  padding: 1rem;
  border: 2px solid black;
  width: 560px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 20px;
  background: white;
  margin-bottom: 2rem;
}
.block p {
  font-size: 1.25rem;
  font-weight: 800;
  color: white;
  margin-bottom: 0.5rem;
  background: none;
}
.white p {
  color: black;
}
.block span {
  font-size: 1.1rem;
  background: none;
}
@media (max-width: 750px) {
  .homeButton {
    display: block;
	margin: 0;
  }
	
  .other {
    display: none;
  }


}
@media (max-width: 550px) {
  main h1 {
    font-size: 2.5rem;
  }
  .logo img {
    width: 200px;
  }
  .blocks {
    width: 350px;
    margin-bottom: 5rem;
  }
  .block {
    width: 300px;
  }
	
  .links {
	 margin-left: auto;
  }
	
  
}
@media (max-width: 390px) {
  .documentTitle {
    font-size: 1.1rem;
    font-weight: 600;
  }
  .documentSubtitle {
    opacity: 0.8;
    font-size: 0.8rem;
  }
  .logo img {
    width: 150px;
  }
  .blocks {
    margin-bottom: 5rem;
  }
  .blocks {
    width: 300px;
    margin-bottom: 5rem;
  }
  .block {
    width: 250px;
  }
  .homeButton {
	transform:scale(0.9);
  }
}
main {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 0 4vw;
}
.centered {
  text-align: center;
}


@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.fade-out {
  animation: fadeOut 0.3s forwards;
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}
@media only screen and (max-width: 400px) {
  .num {
    font-size: 2rem;
  }
  #PTitle {
    font-size: 1.3rem;
  }
  #PSubTitle {
    font-size: 1rem;
  }
}
/* Hide links and display hamburger icon on smaller screens */
#links {
  display: flex;
  align-items: center;
  justify-content: center;
  list-style: none;
  margin-right: 2rem;
}

#hamburger-icon {
  display: none;
  cursor: pointer;
  width: 30px;
  margin-right: 1rem;
}

#mobile-links {
  position: fixed;
  top: 0;
  right: 0;
  width: 250px;
  height: 100%;
  background-color: white;
  box-shadow: -2px 0px 5px rgba(0, 0, 0, 0.5);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  padding-top: 60px;
  list-style: none;
  z-index: 2000;
}

#mobile-links li {
  padding: 15px;
}

#mobile-links li a {
  color: black;
  text-decoration: none;
  font-weight: 600;
}

#mobile-links.open {
  transform: translateX(0);
}

@media (max-width: 956px) {
  #links {
    display: none;
  }
  #hamburger-icon {
    display: block;
  }
  #mobile-links a {
    margin-inline: 0.5rem;
    padding: 0.8rem 1rem;
    font-size: 0.8rem;
  }
}
