/* Base styles */
body {
  background-color: black;
  font-family: Verdana, sans-serif;
  font-size: 15px;
  margin: 0;
  padding: 0;
}

.container {
  max-width: 700px;
  width: 90%;
  margin: 0 auto;
  background-color: rgb(24, 14, 64);
  color: white;
  border: 2px solid white;
}

/* Main content */
#main-content {
  margin: 5px auto;
  padding: 15px;
  height: 500px;
  overflow-y: auto;
  box-sizing: border-box;
}

.legend-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 30px;
}

.legend-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  transition: transform 0.2s ease;
}

.legend-icon:hover {
  transform: scale(1.1);
}

.thank-you-box {
  background-color: rgba(20, 15, 45, 0.95);
  border: 1px solid #6ba4ff;
  border-radius: 10px;
  padding: 20px;
  margin-top: 30px;
  color: #cdd6ff;
  box-shadow: 0 0 12px rgba(106, 167, 255, 0.3);
}

.thank-you-box h3 {
  color: #ffffff;
  text-align: center;
  margin-bottom: 15px;
  text-shadow: 0 0 6px #6ba4ff;
}

.thank-you-box p {
  margin-bottom: 12px;
  line-height: 1.6;
}

h2 {
  box-shadow: 0px 0px 12px 0px rgba(122, 122, 255, 0.993);
  padding: 5px;
}

blockquote {
  font-style: italic;
}

table {
  font-size: 14px;
  margin-top: 10px;
  margin-bottom: 50px;
  text-align: center;
}

td {
  border: 1px solid #6ba4ff;
  padding: 10px;
}

.go-back {
  cursor: pointer;
  height: auto;
}

/* Scrollbar */
#main-content::-webkit-scrollbar {
  width: 10px;
}

#main-content::-webkit-scrollbar-track {
  background: rgb(20, 20, 40);
  border-radius: 5px;
}

#main-content::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, #2a4fff, #6ba4ff);
  border-radius: 5px;
}

#main-content::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to bottom, #1e3fff, #4d8fff);
}

/* Navigation */
footer {
  position: sticky;
  bottom: 0;
  background-image: url(common/nav.png);
  background-size: cover;
  height: auto;
  padding: 10px 0;
  z-index: 1000;
}

.nav-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.nav-icon {
  width: 128px;
  height: 90px;
  cursor: pointer;
  transition: box-shadow 0.2s, border 0.2s;
}

.nav-icon.active {
  box-shadow: 0 0 10px 4px rgba(255, 255, 255, 0.8);
  border: 2px solid white;
  border-radius: 8px;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-icon {
    width: 80px;
    height: auto;
  }

  #main-content {
    height: auto;
    padding-bottom: 100px;
  }
}

/* Content blocks */
.main-flexbox {
  display: flex;
  flex-direction: row;
  gap: 20px;
  align-items: flex-start;
  background-color: rgb(24, 14, 64);
  padding: 15px;
  border: 1px solid #6ba4ff;
  border-radius: 8px;
  margin-bottom: 20px;
}

.main-drive {
  text-align: center;
  background-color: rgb(24, 14, 64);
  padding: 15px;
  border: 1px solid #6ba4ff;
  border-radius: 8px;
  margin-bottom: 20px;
}

.mog-image img {
  max-width: 180px;
  height: auto;
  padding: 5px;
}

.main-text {
  flex: 1;
  color: white;
}

.updates-section {
  background-color: rgb(15, 10, 40);
  border: 1px solid #6ba4ff;
  padding: 15px;
  border-radius: 8px;
  margin-top: 20px;
  color: #cdd6ff;
  box-shadow: 0 0 8px rgba(106, 167, 255, 0.4);
}

.updates-section ul {
  padding-left: 20px;
}

.updates-section li {
  margin-bottom: 10px;
  line-height: 1.6;
}

/* Links */
a {
  color: #6ba4ff;
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease;
}

a::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: -3px;
  left: 0;
  background: linear-gradient(to right, #2a4fff, #6ba4ff);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

a:hover {
  color: #ffffff;
}

a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}