* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, html {
  height: 100%;
  font-family: 'Georgia', serif;
  background-color: #fdf6e3;
  overflow: hidden;
}

#background {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: none;
}

#soundToggleBtn {
  width: 40px;
  height: 40px;
  position: absolute;
  padding: 0;
  top: 10px;
  left: 10px;
  z-index: 101;
  background: rgba(65, 65, 64, 0.4);
  color: white;
  border: none;
  font-size: 16px;
  cursor: pointer;
}
.img{
  width: 40px;
  height: 40px;
  position: absolute;
  padding: 0;
  top: 10px;
  left: 10px;
  z-index: 101;
  background: rgba(65, 65, 64, 0.4);
  color: white;
  border: none;
  font-size: 16px;
  cursor: pointer;
}

.overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: rgba(253, 246, 227, 0.95);
  color: #292b2a;
  text-align: center;
  padding: 2rem;
  z-index: 100;
}

.fade {
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.fade.show {
  opacity: 1;
}

.button-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}

button {
  background: #f1e7cf;
  border: none;
  color: #2e2e2e;
  padding: 1rem 2rem;
  font-size: 1.2rem;
  border-radius: 12px;
  cursor: pointer;
  width: 200px;
  transition: background 0.3s;
}

button:hover {
  background: #e8dbba;
}

#zenMessage {
  position: absolute;
  bottom: 20%;
  width: 100%;
  padding-left: 10px;
  padding-right: 10px;
  text-align: center;
  font-size: 1.5rem;
  color: rgba(253, 246, 227, 0.95);
  opacity: 0;
  transition: opacity 1s;
}

#timerDisplay {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  color: white;
}

#endScreen {
  position: absolute;
  bottom: 5%;
  width: 100%;
  text-align: center;
  opacity: 0;
  transition: opacity 1s;
  z-index: 10;
}

#link {
  color: rgba(253, 246, 227, 0.95);
  font-family: 'Segoe UI Semibold';
  text-decoration: none;
  font-style: italic;
}

/* Cookie Consent Box */
#cookie-box {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  background-color: white;
  border-radius: 12px;
  padding: 24px 30px;
  width: 90%;
  max-width: 420px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  text-align: center;
  font-family: 'Segoe UI', Tahoma, sans-serif;
  z-index: 1000;
  animation: fadeIn 0.5s ease-in-out;
}

#cookie-box h2 {
  margin-bottom: 1rem;
  font-size: 1.8rem;
}

#cookie-box p {
  max-width: 600px;
  font-size: 1rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

#cookie-box a {
  color: #a2d5f2;
  cursor: pointer;
  text-decoration: underline;
  margin: 0 0.5rem;
}

#cookie-box .button-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

#cookie-box .btn {
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#cookie-box .btn-accept {
  background-color: #4caf50;
  color: white;
}

#cookie-box .btn-accept:hover {
  background-color: #45a045;
}

#cookie-box .btn-decline {
  background-color: #f44336;
  color: white;
}

#cookie-box .btn-decline:hover {
  background-color: #d32f2f;
}

/* Modal Styling */
.modal {
  display: none;
  position: fixed;
  z-index: 9998;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  overflow: auto;
}

.modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 20px;
  border-radius: 10px;
  max-width: 600px;
  width: 90%;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  font-family: 'Georgia', serif;
  position: relative;
}

.modal-content h3 {
  color: #2d5fff;
}

.close {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 24px;
  color: #aaa;
  cursor: pointer;
}

.close:hover {
  color: #000;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px) translateX(-50%); }
  to { opacity: 1; transform: translateY(0) translateX(-50%); }
}
