:root {
  --header-background-color: var(--primary-color);
}

html {
  height: 100%;
}

body {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: var(--primary-color);
  font-family: var(--font);
}

.container {
  flex: 1 0 auto;
  width: 100%;
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 1rem;
  box-sizing: border-box;
}

.levels {
  display: flex;
  flex-direction: column;
  color: var(--text-color);
  padding-bottom: 40px;
}

.levels-title {
  margin-top: 60px;
  color: var(--secondary-color);
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.levels-container {
  display: flex;
  gap: 8px;
  width: 100%;
  flex-wrap: wrap;
  justify-content: center;
}

.card {
  background-color: var(--secondary-color);
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    background-color 0.3s;
  text-decoration: none;
  color: inherit;
  margin-bottom: 10px;
  width: calc(33.333% - 10px);
  min-width: 300px;
  aspect-ratio: 5/5;
  position: relative;
}

.card:hover {
  background-color: #f5f5f5;
  transform: translateY(-5px);
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2);
}

.card-avatar {
  flex: 1; /* Fill remaining space */
  width: 100%;
  min-height: 0; /* Prevents flex overflow issues */
  object-fit: cover; /* Crop instead of stretching */
}

.card-content {
  flex-shrink: 0;
  width: 100%;
  padding: 16px;
  background-color: var(--secondary-color);
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.card-title {
  color: var(--text-color);
  font-weight: 700;
  font-size: 1.25rem;
  margin: 0;
}

.card-subtitle {
  color: var(--sub-text-color);
  font-size: var(--small-text);
  margin: 8px 0 0 0;
}

@media (max-width: 1200px) {
  .container {
    width: calc(100vw - 30px);
  }
  .pc-nav {
    display: none;
  }
  .pri-nav,
  .menu-toggle {
    display: flex;
  }
}

@media (max-width: 768px) {
  .mob-nav,
  .menu-toggle {
    display: flex;
  }
  .card {
    width: calc(50% - 10px);
  }
}

@media (max-width: 550px) {
  .card {
    width: 100%;
  }
}

::-webkit-scrollbar {
  width: 0px;
  background: transparent;
}
