body {
  margin: 0;
  padding: 0;
  background-image: url('/iceberg.jpg');
  background-size: cover;
  background-position: center;
  font-family: Arial, sans-serif;
  color: #fff;
  text-align: center;
  min-height: 100vh;
}
.overlay {
  background: rgba(0,0,50,0.6);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}
.container {
  position: relative;
  z-index: 2;
  padding: 50px 20px;
}
h1 {
  font-size: 48px;
  margin-bottom: 10px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}
p {
  font-size: 18px;
}
.button-group {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  margin: 20px 0;
}
.button-group input[type="text"], .action-button {
  height: 40px;
}
.action-button {
  padding: 0 20px;
  font-size: 18px;
  border: none;
  border-radius: 5px;
  background: rgba(255,255,255,0.5);
  color: black;
  cursor: pointer;
  transition: background 0.3s;
  font-weight: normal;
  height: 40px;
  line-height: 40px;
}
.action-button:hover {
  background: rgba(255,255,255,0.7);
}
.action-button.generating {
  background: linear-gradient(90deg,#ff0000,#ff9900,#33cc33,#00ccff,#9933ff);
  background-size: 300% 300%;
  animation: rainbowShimmer 2s linear infinite;
  color: blue;
  font-weight: bold;
}
.progress-bar {
  width: 100%;
  background: rgba(255,255,255,0.2);
  border-radius: 5px;
  overflow: hidden;
  height: 10px;
  margin: 10px 0;
  position: relative;
}
.progress {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg,#ff0000,#ff9900,#33cc33,#00ccff,#9933ff);
  background-size: 300% 300%;
  animation: rainbowShimmer 2s linear infinite;
  transition: width 0.3s;
}
.iceberg-chart {
  margin: 50px auto;
  width: 90%;
  max-width: 800px;
  text-align: left;
}
.level {
  margin-bottom: 20px;
  overflow: hidden;
  animation: slideOpen 0.8s ease-out forwards;
  padding: 15px;
  border-radius: 8px;
}
.level[data-depth="1"],
.level[data-depth="2"],
.level[data-depth="3"],
.level[data-depth="4"] {
  background: rgba(0, 0, 50, 0.6);
}
.level[data-depth="5"] {
  background: rgba(0, 0, 40, 0.75);
}
.level[data-depth="6"] {
  background: rgba(0, 0, 20, 0.85);
}
.level[data-depth="7"] {
  background: rgba(0, 0, 0, 0.95);
}
.level-title {
  font-size: 24px;
  margin-bottom: 10px;
  text-decoration: underline;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}
.entries {
  list-style: none;
  padding: 0;
}
.entries li {
  background: rgba(255,255,255,0.1);
  padding: 10px;
  margin-bottom: 5px;
  border-radius: 5px;
  transition: all 0.3s;
  cursor: pointer;
  display: block;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 0.5s forwards;
}
.entries li:hover {
  background: rgba(255,255,255,0.2);
  transform: scale(1.02);
}
.entries li:nth-child(1) {
  animation-delay: 0.1s;
}
.entries li:nth-child(2) {
  animation-delay: 0.2s;
}
.entries li:nth-child(3) {
  animation-delay: 0.3s;
}
.panel-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-out, padding 0.5s ease-out;
  background: rgba(0,0,0,0.5);
  margin-top: 10px;
  border-radius: 5px;
  padding: 0 15px;
  color: #fff;
}
.panel-content.active {
  max-height: 5000px;
  padding: 15px;
}
img.float-left {
  float: left;
  margin-right: 20px;
}
h3 {
  margin-top: 0;
}
p {
  color: #fff;
}
.topic-selector {
  margin-bottom: 15px;
}
.topic-selector select,
.level-selector input {
  padding: 5px 10px;
  font-size: 16px;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  margin-left: 10px;
}
.topic-selector select:focus,
.level-selector input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.5);
}
.controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
}
.level-selector {
  margin-bottom: 15px;
}
#downloadBtn {
  padding: 0 10px;
}
.button-group input[type="text"] {
  height: 40px;
}
.action-button {
  height: 40px;
}
.progress-bar {
  margin-top: 10px;
}
.language-selector {
  position: fixed;
  top: 10px;
  right: 10px;
  z-index: 10;
  display: flex;
  gap: 10px;
  background: rgba(0,0,0,0.5);
  padding: 10px;
  border-radius: 8px;
}
.language-selector a {
  text-decoration: none;
  font-size: 24px;
  transition: transform 0.2s;
}
.language-selector a:hover {
  transform: scale(1.2);
}
.notification {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  transition: opacity 0.5s;
}

.notification.fade-out {
  opacity: 0;
}
@keyframes rainbowShimmer {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}
@keyframes slideOpen {
  from {
    max-height: 0;
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    max-height: 5000px;
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}