body {
  margin: 0;
  padding: 10px 20px;
  background-color: wheat;
  font-family: Tahoma, Geneva, Verdana, sans-serif;
  color: #222222;
}

body.dark_mode {
  background-color: #121212;
  color: #f0f0f0;
}

html {
  scroll-behavior: smooth;
}

.main {
  background-color: #f0f0f0;
  height: contain;
  border-radius: 30px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  padding: 30px;
  place-items: center;
}

.main a {
  text-decoration: none;
  color: black;
}

body.dark_mode .main {
  background-color: #1e1e1e;
}

body.dark_mode .functions {
  background-color: lightgray;
  border-color: #e67e22;
  color: #ffffff;
}

body.dark_mode .functions:hover {
  border: 3.2px solid rgb(2, 87, 2);
}

body.dark_mode .functions p {
  color: black;
}

.functions {
  background-color: #ffffff;
  border-radius: 20px;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 310px;
  width: 100%;
  padding-top: 20px;
}

.functions {
  border: 2.8px solid #000000;
  transition: all 0.25s ease;
  transition: transform 0.5s ease, ;
}

.functions:hover {
  border: 2.8px solid #e67e22;
  background-color: #f5eccd;
  transform: translateY(-10px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);

}

.functions p {
  font-size: 15px;
  display: flex;
  justify-content: center;
  text-align: center;
}

.header {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  padding: 1rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.name {
  color: red;
  display: inline-block;
  margin-left: 20px;

}

.theme {
  color: rgb(53, 53, 184);
  display: inline-block;

}


img {
  width: 75%;
  height: 70%;
  display: block;
  margin-bottom: 15px;
}


.links {
  display: flex;
  justify-content: space-around;
  max-width: 1800px;
  list-style: none;
}



.clues,
.gallery {
  border-radius: 20px;
}


.links {
  display: flex;
  justify-content: space-around;
  max-width: 1800px;
}

button {
  padding: 10px 20px;
  border-radius: 7px;
  border-color: blue;
  transition: all 0.25s ease-out;
}

button:hover {
  background-color: lightgray;
  transform: translateY(-5px);
}



span {
  display: block;
  color: #2b2b2b;
  font-size: 25px;
  padding-top: 0px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-top: 2px solid green;
  border-bottom: 2px solid green;
  padding: 1px 0 2.5px 0;
}

span:hover {
  color: rgb(0, 0, 0);
  text-decoration: underline;
  cursor: pointer;

}

.header_2 h2 {
  color: Red;
  text-align: center;
}

.header_2 h3 {
  color: red;
  text-align: center;
}

.header_2 p {
  text-align: center;
  line-height: 1.5;
  margin: 0 auto;
}

@media (max-width: 700px) {
  .main {
    grid-template-columns: 1fr;
  }

  .functions {
    height: 310px;
  }
}

@media (max-width: 500px) {
  .links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    align-items: center;
  }
}