*{
  /* border: red 2px solid; */
}

/* Native dialog backdrop */
dialog.modal::backdrop {
  background-color: rgba(0, 0, 0, 1);
}

/* Dialog base styling */
dialog.modal {
  border: none;
  padding: 0;
  background: transparent;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  
  width: 100%;
  height: 100%;
  /* z-index: 1000; */
}

/* Wrapper to center content */
.modal-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  padding: 1rem;
}

/* Modal content inside dialog */
.modal-content {
  height: fit-content;
  max-width: 800px;
  max-height: 55vh;
  max-height: clamp(60vh, 80vh, 90vh);

  background-color: white;
  padding: 2rem;
  border-radius: 10px;
  width: 90%;
  overflow-y: auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  animation: fadeIn 0.3s ease;
  margin: auto;
  /* border: hotpink 3px solid;  */
}

/* Fade-in animation */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* Close button */
.close {
  float: right;
  font-size: 1.5rem;
  font-weight: bold;
  cursor: pointer;
  color: #333;
}

/* Tab buttons */
.tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin: 2rem;
}

.tabs button {
  padding: 0.5rem 1rem;
  background: #eee;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
}

.tabs button.active {
  background: #d4cbb8;
}

/* Tab content */
.tab-content {
  display: none;
  text-align: center;
}

.tab-content.active {
  display: block;
}

/* Titles and text */
.version-dialog-title {
  font-size: clamp(1.25rem, 5vw, 3rem);
  color: #6b4f2c;
  margin-bottom: 0.5em;
  text-decoration: underline;
}

.version-display-reference {
  font-family: "Cheese";
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 1rem;
}


.grateful-text {
  font-family: "Candy", sans-serif;
  font-size: 24px;
  margin-top: 25px;
}

hr {
  margin: 10px;
}

/* Load button */
.load-button {
  display: block;
  margin: 1.5rem auto 0;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  background-color: #6b4f2c;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.version-title{
  /* font-size: 1.5rem; */
  font-size: clamp(1.25rem, 5vw, 2.5rem);
  margin-bottom: 0.25rem;
  color: #6b4f2c;
}

/* Responsive font scaling */
@media (max-width: 600px) {
  body {
    font-size: 1rem;
  }
  h1 {
    font-size: 1.5rem;
  }
  .tabs button {
    font-size: 0.9rem;
  }
  .modal-content {
    font-size: 1rem;
    max-height: 80vh;
  }
}

@media (min-width: 601px) and (max-width: 1024px) {
  body {
    font-size: 1.15rem;
  }
  h1 {
    font-size: 2.2rem;
  }
  .modal-content {
    font-size: 1.15rem;
  }
}

@media (min-width: 1025px) {
  body {
    font-size: 1.2rem;
  }
  h1 {
    font-size: 2.4rem;
  }
  .modal-content {
    font-size: 1.2rem;
  }
}
