* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Special Elite', cursive;
  line-height: 1.6;
  background-color: #f5f5f5;
  color: #333;
  letter-spacing: 0.5px;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

h1 {
  text-align: center;
  margin-bottom: 30px;
  color: #0047AB;
  font-family: 'Special Elite', cursive;
  text-transform: uppercase;
  letter-spacing: 2px;
}

h2 {
  margin-bottom: 20px;
  color: #0047AB;
  font-family: 'Special Elite', cursive;
  letter-spacing: 1px;
}

.instruction {
  background-color: #e9f7fe;
  border-left: 4px solid #0047AB;
  padding: 15px;
  margin-bottom: 30px;
  border-radius: 0 5px 5px 0;
}

.winner-card {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 20px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.winner-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.winner-number {
  width: 30px;
  height: 30px;
  background-color: #0047AB;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.winner-country {
  font-size: 1.3rem;
  font-weight: bold;
  font-family: 'Special Elite', cursive;
}

.winner-info {
  margin-left: 40px;
}

.win-count {
  font-weight: bold;
  color: #0047AB;
  font-family: 'Special Elite', cursive;
}

.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.participating-countries {
  margin-bottom: 30px;
}

.countries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  margin-bottom: 30px;
}

.country-item {
  background-color: white;
  padding: 8px 12px;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  font-size: 0.9rem;
  text-align: center;
  border-left: 3px solid #0047AB;
}

.guess-box {
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
}

.guess-list {
  padding-left: 30px;
  margin-bottom: 20px;
}

.guess-list li {
  margin-bottom: 10px;
}

.guess-input {
  width: 100%;
  padding: 8px 12px;
  font-family: 'Special Elite', cursive;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 16px;
}

#check-guesses {
  background-color: #0047AB;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-family: 'Special Elite', cursive;
  font-size: 16px;
  transition: background-color 0.3s;
}

#check-guesses:hover {
  background-color: #003380;
}

.show-winners-btn {
  background-color: #0047AB;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-family: 'Special Elite', cursive;
  font-size: 16px;
  transition: background-color 0.3s;
  display: block;
  margin: 0 auto 30px auto;
}

.show-winners-btn:hover {
  background-color: #003380;
}

#guess-results {
  margin-top: 15px;
  padding: 10px;
  border-radius: 4px;
}

.correct-guess {
  background-color: #dff0d8;
  border-left: 4px solid #5cb85c;
  padding: 5px 10px;
  margin-bottom: 5px;
}

.incorrect-guess {
  background-color: #f2dede;
  border-left: 4px solid #d9534f;
  padding: 5px 10px;
  margin-bottom: 5px;
}

.top-country {
  background-color: #dff0d8;
  border-left: 3px solid #5cb85c;
  font-weight: bold;
}

.genre-detective {
  margin-top: 40px;
  background-color: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.song-clips-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.song-card {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s;
}

.song-card:hover {
  transform: translateY(-5px);
}

.song-info {
  padding: 15px;
  border-bottom: 1px solid #eee;
}

.song-info h3 {
  margin: 0 0 8px 0;
  font-size: 1.1rem;
  color: #0047AB;
}

.genre-selection {
  padding: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.genre-selection select {
  padding: 6px 10px;
  border-radius: 4px;
  border: 1px solid #ccc;
  font-family: 'Special Elite', cursive;
  flex-grow: 1;
}

.result-icon {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.result-icon.correct {
  color: #5cb85c;
}

.result-icon.incorrect {
  color: #d9534f;
}

.genre-info {
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.vocabulary-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.vocab-section {
  background-color: #f8f9fa;
  border-radius: 6px;
  padding: 15px;
  border-left: 4px solid #0047AB;
}

.vocab-section h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.1rem;
  color: #0047AB;
}

.vocab-list {
  padding-left: 20px;
  margin: 0;
}

.vocab-list li {
  margin-bottom: 5px;
  font-size: 0.9rem;
}

#check-genres {
  background-color: #0047AB;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-family: 'Special Elite', cursive;
  font-size: 16px;
  transition: background-color 0.3s;
  margin-bottom: 15px;
}

#check-genres:hover {
  background-color: #003380;
}

.genre-summary {
  background-color: #e9f7fe;
  border-left: 4px solid #0047AB;
  padding: 15px;
  border-radius: 0 5px 5px 0;
}

.genre-results {
  background-color: #e9f7fe;
  border-left: 4px solid #0047AB;
  padding: 15px;
  border-radius: 0 5px 5px 0;
}

.music-styles-section {
  margin: 40px 0;
  background-color: #f8f9fa;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.music-styles-section h2 {
  text-align: center;
  margin-bottom: 20px;
  color: #0047AB;
}

.music-styles-section p {
  text-align: center;
  margin-bottom: 25px;
  font-style: italic;
}

.style-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

.style-category {
  flex-basis: calc(50% - 10px);
  background-color: white;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 10px;
}

.style-category h3 {
  color: #0047AB;
  border-bottom: 2px solid #e9f7fe;
  padding-bottom: 8px;
  margin-bottom: 10px;
  font-family: 'Special Elite', cursive;
}

.style-list {
  list-style-type: none;
  padding: 0;
}

.style-list li {
  margin-bottom: 8px;
  padding: 5px;
  border-bottom: 1px dotted #eee;
}

.style-list li a {
  color: #0047AB;
  text-decoration: none;
  transition: color 0.3s;
}

.style-list li a:hover {
  color: #003380;
  text-decoration: underline;
}

.eurovision-quiz-section {
  margin: 40px 0;
  background-color: #f8f9fa;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.eurovision-quiz-section h2 {
  text-align: center;
  margin-bottom: 20px;
  color: #0047AB;
}

.quiz-instructions {
  text-align: center;
  margin-bottom: 15px;
  font-style: italic;
}

.audio-section {
  background-color: #f0f8ff;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 25px;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.audio-section p {
  margin-bottom: 10px;
  font-weight: bold;
  color: #0047AB;
}

.audio-section audio {
  width: 80%;
  max-width: 400px;
}

.quiz-container {
  background-color: white;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.quiz-question {
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.quiz-question h3 {
  color: #0047AB;
  margin-bottom: 10px;
}

.answer-section {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 15px;
}

.quiz-answer {
  flex-grow: 1;
  padding: 8px 12px;
  font-family: 'Special Elite', cursive;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 16px;
}

.check-answer-btn {
  background-color: #0047AB;
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 4px;
  cursor: pointer;
  font-family: 'Special Elite', cursive;
  transition: background-color 0.3s;
}

.check-answer-btn:hover {
  background-color: #003380;
}

.answer-result {
  min-width: 100px;
  padding: 5px 10px;
  font-weight: bold;
}

.answer-result.correct {
  color: #5cb85c;
}

.answer-result.incorrect {
  color: #d9534f;
}

.quiz-answers {
  margin-top: 30px;
  text-align: center;
}

#show-all-answers {
  background-color: #6c757d;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-family: 'Special Elite', cursive;
  font-size: 16px;
  transition: background-color 0.3s;
  margin-bottom: 15px;
}

#show-all-answers:hover {
  background-color: #5a6268;
}

#all-answers {
  background-color: #e9f7fe;
  border-radius: 8px;
  padding: 15px;
  margin-top: 15px;
  text-align: left;
}

#all-answers h3 {
  color: #0047AB;
  margin-bottom: 10px;
  text-align: center;
}

#all-answers ul {
  padding-left: 20px;
}

#all-answers li {
  margin-bottom: 10px;
}

.jury-report-section {
  margin: 40px 0;
  background-color: #f8f9fa;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.jury-report-section h2 {
  text-align: center;
  margin-bottom: 10px;
  color: #0047AB;
}

.jury-report-section p {
  text-align: center;
  margin-bottom: 15px;
  font-style: italic;
}

.jury-form {
  background-color: white;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  text-align: left;
  max-width: 650px;
  margin: 0 auto;
}

.song-title-input {
  margin-bottom: 15px;
}

.song-title-input label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  color: #0047AB;
}

.song-title-input input {
  width: 100%;
  padding: 10px;
  font-family: 'Special Elite', cursive;
  border: none;
  border-bottom: 2px solid #0047AB;
  border-radius: 0;
  font-size: 16px;
  background-color: #f9f9f9;
}

.criteria-container {
  margin-bottom: 15px;
  display: flex;
  flex-direction: column;
}

.criteria-item {
  margin-bottom: 20px;
  width: 100%;
}

.criteria-item textarea {
  width: 100%;
  height: 80px;
  padding: 5px;
  font-family: 'Special Elite', cursive;
  border: 1px solid #ccc;
  border-radius: 4px;
  resize: vertical;
  background-color: #f9f9f9;
  background-image: linear-gradient(#ccc 1px, transparent 1px);
  background-size: 100% 1.5em;
  line-height: 1.5em;
  margin-bottom: 15px;
}

.jury-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.jury-buttons button {
  background-color: #0047AB;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-family: 'Special Elite', cursive;
  font-size: 16px;
  transition: background-color 0.3s;
}

.jury-buttons button:hover {
  background-color: #003380;
}

.report-preview {
  margin-top: 20px;
  background-color: white;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: none;
  text-align: left;
  max-width: 650px;
  margin: 0 auto;
}

.page-index {
  background-color: #e9f7fe;
  border-radius: 8px;
  padding: 15px 20px;
  margin-bottom: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-index h2 {
  text-align: center;
  margin-bottom: 15px;
  color: #0047AB;
  font-size: 1.3rem;
}

.index-list {
  list-style-type: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.index-list li {
  margin-bottom: 8px;
}

.index-list a {
  color: #0047AB;
  text-decoration: none;
  background-color: white;
  padding: 8px 15px;
  border-radius: 20px;
  display: inline-block;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  font-weight: bold;
}

.index-list a:hover {
  background-color: #0047AB;
  color: white;
  transform: translateY(-2px);
}

.vocabulary-suggestions {
  margin-top: 5px;
  padding: 8px;
  background-color: #f8f9fa;
  border-radius: 4px;
  font-size: 0.9rem;
  border-left: 3px solid #0047AB;
}

.vocabulary-suggestions p {
  margin: 0;
  font-style: italic;
  text-align: left;
}

.show-more-vocab {
  background: none;
  border: none;
  color: #0047AB;
  padding: 2px 5px;
  font-size: 0.8rem;
  cursor: pointer;
  text-decoration: underline;
  font-family: 'Special Elite', cursive;
}

.vocab-dialog {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  z-index: 1000;
  max-width: 80%;
  max-height: 80vh;
  overflow-y: auto;
}

.vocab-dialog h3 {
  color: #0047AB;
  margin-top: 0;
  border-bottom: 2px solid #e9f7fe;
  padding-bottom: 10px;
}

.vocab-list-expanded {
  columns: 2;
  column-gap: 20px;
}

.vocab-list-expanded li {
  margin-bottom: 5px;
}

.vocab-dialog-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: #6c757d;
}

.backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 999;
}

@media (max-width: 600px) {
  .index-list {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 768px) {
  .style-category {
    flex-basis: 100%;
  }
}

@media print {
  body * {
    visibility: hidden;
  }
  #report-preview, #report-preview * {
    visibility: visible;
  }
  #report-preview {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    box-shadow: none;
  }
  .report-document {
    page-break-inside: avoid;
    max-height: 100vh;
    overflow: hidden;
  }
  .report-header {
    margin-bottom: 10px;
  }
  .report-criteria {
    margin-bottom: 10px;
  }
  .report-item {
    margin-bottom: 5px;
  }
  .report-footer {
    margin-top: 10px;
  }
}