/* === Global Reset === */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  margin: 0;
}

body {
  font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
  background-color: #3b3b3b;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main{
  flex: 1;
}

.explain-container {
  display: flex;
  justify-content: flex-start;
  padding: 20px;
  width: 100%;
}

.explain-link {
  display: inline-block;
  background-color: #77b5fe;
  color: black;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1rem;
  border: 2px solid black;
  max-width: fit-content;
}

/* === Header === */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(to right, #8225b8, #77b5fe);
  color: white;
  padding: 5px 20px;
}

.logo {
  height: 100px;
  width: auto;
  border: 3px solid black;
  border-radius: 10%;
}

.header-right{
  text-decoration: none;
  font-size: 50px;
  color: #8225b8;
  -webkit-text-stroke: 2px black;
  cursor: default;
  
}

.nav-link{
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}
.nav-link:hover{
    text-decoration: none;
}

/* === Main Content ===  all fancy like with ===*/
main.project-container {
  flex: 1;
  padding: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

/* === Game Thing === */
.tree-game {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 90px;
  color: white;
}

.question-box{
  text-align: center;
  font-size: 40px;
  background-color: white;
  color:#000000;
  padding: 70px;
  border-radius: 10%;
}

.button-container {
  display: flex;
  gap: 150px;
  margin-bottom: 30px;
  margin-top: 30px;
}

.button-container button {
  font-size: 1.5rem;
  padding: 15px 30px;
  border: none;
  border-radius: 10px;
  background-color: #77b5fe;
  color: black;
  cursor: pointer;
  font-weight: bold;
}

.button-container button:hover {
  background-color: #58a3f3;
}

/* Learning card */
.add-question {
  margin: 30px auto;
  padding: 25px 40px;
  background-color: #6cb0ff;
  border-radius: 10px;
  width: fit-content;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.add-question p {
  font-size: 1.4rem;
  font-weight: 300;
  color: black;
  text-align: center;
  margin-bottom: 15px;
}

.add-question label {
  font-size: 1.2rem;
  font-weight: 300;
  color: black;
  margin: 10px 0 5px 0;
  width: 100%;
  text-align: left;
  background: none;
}

.add-question input {
  padding: 8px;
  font-size: 1rem;
  border-radius: 6px;
  border: 2px solid black;
  outline: none;
  width: 250px;
  margin-bottom: 10px;
}

#submitNew {
  margin-top: 15px;
  padding: 10px 25px;
  font-size: 1.1rem;
  font-weight: bold;
  color: black;
  background-color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

#submitNew:hover {
  background-color: #f0f0f0;
}

#playAgainBtn {
  font-size: 1.4rem;
  padding: 14px 28px;
  background-color: #a460f9;
  border: none;
  border-radius: 10px;
  color: white;
  font-weight: bold;
  cursor: pointer;
  margin-top: 20px;
}

#playAgainBtn:hover {
  background-color: #9349e2;
}



/* === Footer === */
footer {
  background: linear-gradient(to right, #8225b8, #77b5fe);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.1rem;
  flex-wrap: wrap;
  width: 100%;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: x-large;
}

.footer-left img {
  height: 50px;
  width: 50px;
}

.footer-right {
  font-size: 1.5rem;
}

.footer-right a {
  color: white;
  text-decoration: none;
}

.footer-right a:hover {
  text-decoration: underline;
}

/* === Mobile Responsive === */
@media (max-width: 600px) {
  header {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .header-right {
    margin-top: 8px;
  }

  footer {
    flex-direction: column;
    text-align: 10px;
  }

  .footer-right {
    margin-top: 5px;
  }

  .project-card {
    width: 90%;
  }
}