/* ===== GLOBAL ===== */
body {
  margin: 0;
  font-family: 'Science Gothic', sans-serif;
  background-color: #f9f9f9;
}

/* ===== HEADER / NAV ===== */
header {
  width: 100%;
}

.topnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #333;
  padding: 10px 20px;
  box-sizing: border-box;
}

#person {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: white;
}

#logo_personal {
  border: 3px solid orangered;
  border-radius: 15px;
  margin-right: 10px;
}

#title_name {
  font-size: 20px;
  color: white;
}

.nav-links {
  display: flex;
  gap: 25px;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-size: 18px;
  padding: 6px 8px;
  border-radius: 5px;
  transition: 0.2s;
  cursor: pointer;
}

.nav-links a:hover {
  background-color: white;
  color: black;
}

/* ===== GAME LAYOUT ===== */
#main {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 40px;
}

.hero {
  font-family: "Noto Serif", serif;
  font-size: 40px;
  font-weight: 900;
  margin-bottom: 20px;
}

.pin {
  width: 50px;
  height: 50px;
  text-align: center;
  font-size: 28px;
  margin: 5px;
  border: 2px solid rgb(204, 175, 175);
  border-radius: 5px;
}

#submit {
  margin-top: 20px;
  width: 120px;
  height: 50px;
  border-radius: 10px;
  border: none;
  background-color: lightgray;
  font-size: 18px;
  font-family: "Noto Serif", serif;
  cursor: pointer;
}

#submit:hover {
  background-color: #ccc;
}

/* ===== MOBILE ===== */
@media (max-width: 700px) {
  .nav-links {
    gap: 15px;
  }

  #title_name {
    font-size: 16px;
  }

  .nav-links a {
    font-size: 16px;
    padding: 4px 6px;
  }

  .pin {
    width: 40px;
    height: 40px;
    font-size: 20px;
    margin: 3px;
  }

  #main > div {
    margin: 5px 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
  }
}

/* ===== TUTORIAL MENU ===== */
#tutorialMenu {
  position: fixed;
  top: 0;
  right: -200%; /* completely offscreen */
  width: 300px;
  height: 100%;
  background-color: #f2f2f2;
  box-shadow: -2px 0 5px rgba(0, 0, 0, 0.3);
  padding: 20px;
  transition: right 0.3s ease;
  z-index: 1000;
}

#tutorialMenu.active {
  right: 0; /* slide in when active */
}

#tutorialMenu button {
  margin-top: 20px;
  padding: 8px 12px;
  border: none;
  background-color: #333;
  color: white;
  cursor: pointer;
}