/* General Page Styles */
body {
  font-family: 'Roboto', sans-serif;
  background: linear-gradient(135deg, #1c1c1c, #333333);
  color: #e0e0e0;
  padding-top: 80px;
  margin: 0;
}

.page-container {
  text-align: center;
  padding: 20px;
  max-width: 900px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  color: #333;
}

.page-title {
  font-size: 2.5em;
  margin-bottom: 10px;
  position: relative;
  color: #333;
}

.page-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background-color: #ffdd00;
  margin: 10px auto 0;
  border-radius: 2px;
}

.page-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #555;
}

/* Poll Styles */
.poll-option {
  display: block;
  margin-bottom: 10px;
  font-size: 1.2em;
}

.poll-option input {
  margin-right: 10px;
}

.vote-button {
  padding: 10px 20px;
  background-color: #ffdd00;
  border: none;
  border-radius: 5px;
  color: #333;
  cursor: pointer;
  font-size: 1.2em;
}

.vote-button:hover {
  background-color: #e6c700;
}

/* Code Editor Styles */
#editor-container {
  margin-top: 20px;
  background: #282c34;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
  padding: 20px;
}

#editor {
  height: 400px;
  font-size: 1.2em;
  border-radius: 10px;
  margin-bottom: 10px;
  color: #e0e0e0;
}

.editor-buttons {
  display: flex;
  justify-content: space-between;
}

.editor-buttons button {
  padding: 10px 20px;
  background-color: #ffdd00;
  border: none;
  border-radius: 5px;
  color: #333;
  cursor: pointer;
  font-size: 1.2em;
  margin-right: 10px;
}

.editor-buttons button:hover {
  background-color: #e6c700;
}

#achievement-counter {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background: #ffdd00;
  color: #333;
  padding: 10px 15px;
  border-radius: 50px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  font-size: 1em;
  font-weight: bold;
  cursor: pointer;
  z-index: 1000;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#achievement-counter:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

#achievement-count {
  display: inline-block;
  padding-left: 10px;
}

pre#output {
  background: #1e1e1e;
  color: #fff;
  padding: 20px;
  border-radius: 10px;
  overflow-x: auto;
  font-size: 1.2em;
  margin-top: 20px;
}

.popup {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: #ffdd00;
  padding: 10px 20px;
  border-radius: 5px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
  z-index: 1000;
}

/* Academy Section */
.academy-section {
  margin-bottom: 60px;
}

.learning-path {
  display: flex;
  align-items: flex-start;
  position: relative;
  margin-bottom: 40px;
}

.path-heading {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 1.5em;
  font-weight: bold;
  color: #ffdd00;
  transform: rotate(180deg);
  margin-right: 20px;
  margin-left: 10px;
  background: rgba(0, 0, 0, 0.1);
  padding: 10px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.path-content {
  display: flex;
  align-items: flex-start;
  flex-wrap: nowrap;
  gap: 20px;
}

/* Cards */
.academy-card-large,
.academy-card-small {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.academy-card-large {
  flex: 0 0 300px;
  max-width: 300px;
}

.academy-card-large img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-bottom: 3px solid #ffdd00;
}

.academy-card-small {
  min-width: 150px;
  max-width: 150px;
}

.academy-card-small img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-bottom: 3px solid #ffdd00;
}

.academy-card-content {
  padding: 15px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
}

.academy-card-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  color: #333;
}

.academy-card-excerpt {
  font-size: 1em;
  color: #333;
  margin-bottom: 15px;
  flex-grow: 1;
}

.academy-modules {
  display: flex;
  overflow-x: auto;
  gap: 10px;
  padding: 10px;
}

.academy-card-small.locked {
  filter: grayscale(100%);
  pointer-events: none;
}

.academy-card-small:hover,
.academy-card-large:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

/* Poll Styles */
.poll-option {
  display: block;
  margin-bottom: 10px;
  font-size: 1.2em;
}

.poll-option input {
  margin-right: 10px;
}

/* Code Block Styles */
pre {
  background: #282c34;
  color: #e0e0e0;
  padding: 20px;
  border-radius: 10px;
  overflow-x: auto;
  font-size: 1.2em;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  margin-bottom: 20px;
  line-height: 1.5;
}

code {
  background: #2e2e2e;
  color: #ffdd00;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 1.1em;
}

/* Media Queries for Responsive Design */
@media screen and (max-width: 768px) {
  .learning-path {
    flex-direction: column;
    align-items: center;
  }

  .path-heading {
    writing-mode: horizontal-tb;
    transform: rotate(0deg);
    position: static;
    margin-bottom: 10px;
  }

  .path-content {
    flex-direction: column;
    align-items: center;
  }

  .academy-card-large {
    width: 100%;
  }

  .academy-modules {
    width: 100%;
  }

  .academy-card-small {
    min-width: 100px;
    max-width: 100px;
  }

  .page-container {
    padding: 15px;
  }

  .page-title {
    font-size: 2em;
  }

  .page-description {
    font-size: 1em;
  }

  #editor {
    height: 300px;
  }

  .editor-buttons button {
    font-size: 1em;
  }

  pre#output {
    font-size: 1em;
  }
}
