/* Main Stylesheet */

:root {
  --primary-color: #cfbb8a;
  --secondary-color: #e8dec8;
  --text-color: #000;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text-color);
  background-color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
  position: relative;
}

body.home-page {
  flex-direction: column;
}

.home-disclaimer {
  position: fixed;
  bottom: 0;
  left: 0;
  flex: 0 0 auto;
  width: 100%;
  /* max-width: 1200px; */
  padding: 10px 20px;
  color: #000;
  font-size: 11px;
  line-height: 1.2;
  background: #fff;
  z-index: 10;
}

.home-disclaimer h2 {
  margin-bottom: 4px;
  font-size: 10px;
}

.home-disclaimer p + p {
  margin-top: 6px;
}

.logo {
  position: fixed;
  top: 20px;
  left: 20px;
  width: 250px;
  height: auto;
  z-index: 1000;
}

/* Mobile responsive logo */
@media (max-width: 900px) {
  .logo {
    width: 180px;
    top: 15px;
    left: 15px;
  }
}

svg {

  width: auto;
  height: 80vh;
  display: block;
}

body.home-page svg {
  flex: 0 1 auto;
  max-width: 100%;
}

/* SVG component hover effects */
svg .cls-8 {
  transition: fill 0.3s ease;
}

svg .cls-8:hover {
  fill: #ba9e66 !important;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  svg {
    max-width: 90vw;
    height: auto;
  }
}

/* Mobile landscape orientation */
@media (max-height: 500px) and (orientation: landscape) {
  svg {
    max-width: 90vw;
    max-height: 80vh;
    height: auto;
  }

  body {
    padding: 10px;
    min-height: auto;
  }
}

/* Small mobile devices */
@media (max-width: 480px) {
  svg {
    max-width: 95vw;
    height: auto;
  }

  body {
    padding: 10px;
  }
}

.heartbeat {
	-webkit-animation: heartbeat 1.5s ease-in-out infinite both;
	        animation: heartbeat 1.5s ease-in-out infinite both;
            cursor: pointer;
}

/**
 * ----------------------------------------
 * animation heartbeat
 * ----------------------------------------
 */
@-webkit-keyframes heartbeat {
  from {
    opacity: 1;
    -webkit-filter: drop-shadow(0 0 0 rgba(237, 28, 36, 0));
            filter: drop-shadow(0 0 0 rgba(237, 28, 36, 0));
  }
  10% {
    opacity: 0.7;
    -webkit-filter: drop-shadow(0 0 2px rgba(237, 28, 36, 0.8));
            filter: drop-shadow(0 0 2px rgba(237, 28, 36, 0.8));
  }
  17% {
    opacity: 1;
    -webkit-filter: drop-shadow(0 0 8px rgba(237, 28, 36, 1));
            filter: drop-shadow(0 0 8px rgba(237, 28, 36, 1));
  }
  33% {
    opacity: 0.7;
    -webkit-filter: drop-shadow(0 0 2px rgba(237, 28, 36, 0.8));
            filter: drop-shadow(0 0 2px rgba(237, 28, 36, 0.8));
  }
  45% {
    opacity: 1;
    -webkit-filter: drop-shadow(0 0 0 rgba(237, 28, 36, 0));
            filter: drop-shadow(0 0 0 rgba(237, 28, 36, 0));
  }
}
@keyframes heartbeat {
  from {
    opacity: 1;
    filter: drop-shadow(0 0 0 rgba(237, 28, 36, 0));
  }
  10% {
    opacity: 0.7;
    filter: drop-shadow(0 0 2px rgba(237, 28, 36, 0.8));
  }
  17% {
    opacity: 1;
    filter: drop-shadow(0 0 8px rgba(237, 28, 36, 1));
  }
  33% {
    opacity: 0.7;
    filter: drop-shadow(0 0 2px rgba(237, 28, 36, 0.8));
  }
  45% {
    opacity: 1;
    filter: drop-shadow(0 0 0 rgba(237, 28, 36, 0));
  }
}





/* Add your styles below */

/* Level Page Styles */
.button-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px;
}

.button-group {
  display: flex;
  flex-direction: row;
  gap: 5px;
  flex-wrap: wrap;
  align-items: center;
}

.button-group h3 {
  display: none;
}

.button-group:first-of-type .group-buttons {
  justify-content: flex-end;
}

.group-buttons {
  display: flex;
  flex-direction: row;
  gap: 10px;
  flex-wrap: wrap;
  width: 100%;
}

/* Mobile responsive button grid */
@media (max-width: 768px) {
  .button-grid {
    gap: 10px;
    padding: 15px;
    max-width: 95vw;
  }

  .group-buttons {
    grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));
    gap: 8px;
  }

  .button-group h3 {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .button-grid {
    gap: 10px;
    padding: 10px;
  }

  .group-buttons {
    grid-template-columns: repeat(auto-fit, minmax(45px, 1fr));
    gap: 6px;
  }

  .button-group h3 {
    font-size: 13px;
    padding: 8px 0 3px 0;
  }
}

.level-button {
  background: #cfbb8a;
  color: black;
  border: none;
  border-radius: 2px;
  padding: 12px 12px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.level-button:hover {
  background: #998675;
  transform: scale(1.05);
}

.level-button:active {
  transform: scale(0.95);
}

/* Mobile responsive level buttons */
@media (max-width: 768px) {
  .level-button {
    padding: 10px 6px;
    font-size: 13px;
    min-height: 45px;
  }
}

@media (max-width: 480px) {
  .level-button {
    padding: 8px 8px;
    font-size: 12px;
    min-height: 40px;
  }
  .button-group:first-of-type .group-buttons {
  justify-content: flex-start;
}
}

/* Popup Styles */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.popup-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.popup-image {
  max-width: 100%;
  max-height: 80vh;
  display: block;
  margin: 0 auto;
}

.popup-controls {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.popup-close {
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.popup-nav {
  display: flex;
  gap: 10px;
}

.popup-prev, .popup-next {
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.popup-prev:hover, .popup-next:hover, .popup-close:hover {
  background: rgba(0, 0, 0, 0.9);
}

.back-button {
  position: fixed;
  top: 20px;
  left: 20px;
  background: #cfbb8a;
  color: black;
  border: none;
  border-radius: 50px;
  padding: 18px 20px;
  font-size: 16px;
  cursor: pointer;
  z-index: 100;
}

.back-button:hover {
  background: #998675;
}
/* Mobile responsive back button */
@media (max-width: 768px) {
  .back-button {
    top: 15px;
    left: 15px;
    padding: 15px 15px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .back-button {
    top: 10px;
    left: 10px;
    padding: 12px 12px;
    font-size: 13px;
  }
}
