:root {
  --color-primary: #5C2C6D;
  --color-secondary: #734D96;
  --color-accent: #C48BFD;

  --color-background: #1F132C;
  --color-surface: #3A2A4F;

  --color-text-main: #F2E9FF;
  --color-text-soft: #BBAACB;
}

body {
  background-color: var(--color-background);
  color: var(--color-text-main);
  font-size: large;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
}

header, footer {
  background-color: var(--color-surface);
  padding: 1rem;
}

h1, h2, h3 {
  color: var(--color-text-main);
}

p {
  color: var(--color-text-soft);
}

a {
  color: var(--color-secondary);
  text-decoration: none;
}

a:hover {
  color: var(--color-accent);
}

button {
  background-color: var(--color-primary);
  color: var(--color-text-main);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: var(--color-secondary);
}

.bar {
  text-align: center;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.bar .discordImage {
  width: 125px; 
  height: 125px; 
  border-radius: 50%;
}

.subjects {
  text-align: center;
  background-color: var(--color-surface);
  margin: 2rem auto; 
  padding: 2rem;
  border-radius: 8px;
  max-width: 90%; 
}

.subjects ul.horizontal-list {
  padding: 0;
  margin: 0;
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.horizontal-list {
  padding: 20px;
  margin: 10px;
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.horizontal-list li {
  color: var(--color-text-soft);
}

.box {
  border: 2px dotted var(--color-secondary);
  display: flex;
  align-items: stretch;
  overflow-x: auto;
  gap: 10px;
  padding: 10px;
}

.box div {
  height: 200px;
  width: 200px;
  flex-shrink: 0;
  background-color: color-mix(in srgb, var(--color-secondary) 20%, transparent);
  border: 2px solid var(--color-secondary);
  border-radius: 5px;
  padding: 5px;
  cursor: pointer;
}

@media (max-width: 600px) {
  body {
    font-size: medium;
  }

  .subjects {
    padding: 1rem;
  }

  .horizontal-list,
  .subjects ul.horizontal-list {
    flex-direction: column;
    align-items: center;
  }

  .box {
    overflow-x: auto;
  }
}
