@font-face {
  font-family: 'LT Glockenspiel';
  src: url('fonts/LT Glockenspiel.ttf') format('truetype');
}

@font-face {
  font-family: 'PlayfairDisplay';
  src: url('fonts/PlayfairDisplay.ttf') format('truetype');
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  padding: 10px;
  box-sizing: border-box;
  background-image: url('images/background.png');
  background-size: cover;        
  background-position: center;   
  background-repeat: no-repeat;  
  background-attachment: fixed;  
}

.headbox {
  position: fixed;
  top: 10px;
  left: 10px;
  background-color: #644e51cc;
  border-radius: 6px;
  padding: 6px;
  z-index: 1000;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.hamburger {
  font-size: 18px;
  color: #f7c65d;
  user-select: none;
  transition: transform 0.3s ease;
}

.hamburger.active {
  transform: rotate(90deg);
}

.dropdown {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease-out;
  background-color: #644e51cc;
  position: absolute;
  top: 40px;
  left: 0;
  border-radius: 6px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  flex-direction: column;
  min-width: 100px;
}

.dropdown.show {
  max-height: 200px;
}

.dropdown a {
  display: block;
  padding: 6px 12px;
  color: #f7c65d;
  text-decoration: none;
  font-size: 12px;
  font-family: 'LT Glockenspiel';
}

.dropdown a:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.section {
  padding: 40px;
  max-width: 1200px;
  margin: auto;
}

h2 {
  font-size: 28px;
  margin-bottom: 30px;
  color: #c14545;
  text-align: center;
  font-family: 'LT Glockenspiel';
}

.card-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.card {
  background-color: #644e51;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.2s ease;
  min-width: 140px;
}

.card:hover {
  transform: translateY(-5px);
}

.card img {
  width: 100%;
  height: auto;
  display: block;
}

.card-info {
  padding: 15px;
  font-family: 'PlayfairDisplay';
}

.card-info h3 {
  margin: 0 0 10px;
  font-size: 18px;
  color: #f7c65d;
}

.category,
.time {
  font-size: 14px;
  color: #f7c65d;
  margin: 4px 0;
}

a {
  text-decoration: none;
}

@media (max-width: 1024px) {
  .card-container {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .card-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .section {
    padding: 20px;
  }

  .card-info h3 {
    font-size: 16px;
  }

  .category,
  .time {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .card-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .headbox {
    width: 40px;
    height: 40px;
    top: 8px;
    left: 8px;
  }

  .hamburger {
    font-size: 24px;
  }

  .dropdown {
    min-width: 120px;
    top: 48px;
  }

  h2 {
    font-size: 20px;
  }

  .card-info {
    padding: 10px;
  }

  .card-info h3 {
    font-size: 14px;
  }

  .category,
  .time {
    font-size: 11px;
  }
}
