/* ==================
Global Styles
================== */
html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  font-size: 16px;
}

body {
  background-color: #5d5d5d;
}

input,
label,
button,
iframe,
span,
a,
li {
  cursor: inherit;
}

input[type="text"]:focus,
input[type="number"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
textarea:focus {
  cursor: text;
}

.page-wrapper {
  min-height: 100dvh;
  max-width: 1024px;
  margin: 0 auto;
  background-color: #8a8a8a;
  background-image: linear-gradient(to bottom, transparent, #8a8a8a),
    url(Illystra_Images/mist-texture.png);
  background-repeat: no-repeat;
  background-position: top center;
  background-size: 100% 100%;
  border: 3px solid #565757;
  border-radius: 5px;
  box-sizing: border-box;
}

body > * {
  flex: 1 0 auto;
}

/* ==================
Typography
================== */
h1,
h3,
h4,
p {
  margin: 0.5em 0 0 0;
}

h3,
h4 {
  margin-bottom: 0.1em;
}

a {
  color: #0000ff;
  text-decoration: none;
}

a:hover,
a:active {
  color: #606060;
}

p.alt {
  margin: 0.1em 0 0.5em;
}

.font1 {
  font: 16px Verdana, sans-serif;
  text-align: justify;
  text-justify: inter-word;
}
.font2 {
  font: 18px Verdana, sans-serif;
}
.font3 {
  font: 18px Georgia, serif;
  vertical-align: middle;
}
.font4 {
  font-family: "Lucida Handwriting", cursive;
}

.outline {
  text-shadow: 1px 1px 3px #000000;
}

/* ==================
Page Header
================== */
#header {
  width: 100%;
  height: 200px; /* fixed height for the banner */
  background: url(Illystra_Images/Illystra_banner.png) no-repeat center top;
  background-size: 100% 100%; /* stretch to fill exactly */
  border-radius: 5px 5px 0 0;
  text-align: center;
  line-height: 1.2;
  color: #fff;
  font: 150% "Lucida Bright", Georgia, serif;
  font-variant: small-caps;
  text-shadow: -3px -2px #0000ff;
  margin-top: 0;
  margin-bottom: 1.5em;
  padding: 1em 0;
}

#header h1 {
  margin: 0;
  margin-top: 1em;
  padding: 0;
  font-size: 3em;
}

/* ==================
Tabs
================== */
.tabGroup {
  font: 14pt Arial, Verdana, sans-serif;
  width: 100%;
  max-width: 950px;
  margin: auto;
}

.tabGroup > input[type="radio"] {
  position: absolute;
  left: -100px;
  top: -100px;
}

.tabGroup > input[type="radio"] + label {
  display: inline-block;
  padding: 5px 10px;
  border: 1px solid #5d5e5d;
  border-radius: 5px 5px 0 0;
  border-bottom: 0;
  background-color: #d5d5d5;
  font-size: 0.8em;
}

.tabGroup > input[type="radio"]:checked + label {
  background-color: #979797;
  font-weight: bold;
  border-bottom: 1px solid #8e8e8e;
  margin-bottom: -1px;
}

.tabGroup > div {
  display: none;
  padding: 10px;
  border: 1px solid #1f222b;
  border-radius: 0 5px 5px 5px;
  background-color: #e4e5e4;
  overflow: auto;
  box-shadow: 0 0 20px #989898;
  margin-bottom: 1em;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.tab1:checked ~ .tab1,
.tab2:checked ~ .tab2,
.tab3:checked ~ .tab3,
.tab4:checked ~ .tab4,
.tab5:checked ~ .tab5,
.tab6:checked ~ .tab6,
.tab7:checked ~ .tab7,
.tab8:checked ~ .tab8,
.tab9:checked ~ .tab9 {
  display: block;
  opacity: 1;
}

/* ==================
Columns
================== */
.tab-columns-2,
.tab-columns-3 {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.tab-columns-2 .column {
  flex: 1;
  min-width: 280px;
}
.tab-columns-3 .column {
  flex: 1;
  min-width: 220px;
}

@media (max-width: 1024px) {
  .tab-columns-3 {
    flex-wrap: wrap;
  }
  .tab-columns-3 .column {
    flex: 1 1 100%;
  }
}

@media (max-width: 768px) {
  .tab-columns-2 {
    flex-direction: column;
  }
  #header h1 {
    font-size: 1.2em;
  }
  .tabGroup > input[type="radio"] + label {
    font-size: 0.85em;
    padding: 4px 8px;
  }
  .paypal-form {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==================
Lists
================== */
.nobullets {
  list-style: none;
  padding: 0;
  margin: 0;
}
.nobullets li {
  margin: 0;
}

.bullet-arrows {
  list-style: none;
  padding-left: 1.2em;
  margin: 0;
}
.bullet-arrows li::before {
  content: "\27A3";
  margin-right: 0.5em;
  color: black;
}

/* ==================
Social Links
================== */
.social-links {
  list-style: none;
  padding: 0;
  margin: 0;
  white-space: nowrap;
}
.social-links li {
  margin-bottom: 0;
}

.social-links a {
  display: flex;
  align-items: center;
  padding: 0.25em 0.5em;
  color: #000;
  border-radius: 0.25em;
  transition: color 0.2s, background-color 0.2s;
  line-height: 1.5;
  max-width: 100%;
  word-break: keep-all;
}

.social-links a img {
  width: 1.4em;
  height: 1.4em;
  margin-right: 0.5em;
  transition: width 0.2s, height 0.2s;
}

.social-links a:hover {
  color: #3d3d3d;
  background-color: rgba(61, 61, 61, 0.1);
}

.social-links a:hover img {
  width: 1.6em;
  height: 1.6em;
}

.social-links ul {
  list-style: none;
  padding: 0;
  padding-left: 25px;
  margin: 0;
}

/* ==================
Images
================== */
.responsive-img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ==================
Animations
================== */
@keyframes fadeFromBlack {
  0% {
    opacity: 0;
    filter: brightness(0);
  }
  100% {
    opacity: 1;
    filter: brightness(1);
  }
}

.fade-in-black {
  animation: fadeFromBlack 2s ease forwards;
}

/* ==================
Modal Base Styles
================== */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.85);
}

body.modal-open {
  overflow: hidden;
}

.close {
  position: absolute;
  top: 10px;
  right: 20px;
  color: #fff;
  font-size: 32px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1001;
  padding: 10px;
  background-color: rgba(0, 0, 0, 0.4);
  border-radius: 50%;
}

/* ==================
Image Modal Styles
================== */
.modal-content {
  display: block;
  margin: 10% auto;
  max-width: 90vw;
  max-height: 80vh;
  width: auto;
  height: auto;
  border-radius: 8px;
}

/* Optional image animation */
.fade-in-black {
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ==================
PDF Modal Styles
================== */
.pdf-wrapper {
  margin: 0 auto;
  max-width: 1024px;
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

#modalPdf {
  width: 100%;
  height: 100vh;
  border: none;
  display: block;
}

/* ==================
Mobile Responsiveness
================== */
@media (max-width: 600px) {
  .pdf-wrapper {
    max-width: 100vw;
    padding: 0;
  }

  #modalPdf {
    width: 100vw;
    height: 100vh;
  }

  #closePdf,
  #imageModal .close {
    top: 10px;
    right: 15px;
    font-size: 28px;
  }

  .modal-content {
    max-width: 95vw;
    max-height: 75vh;
  }
}
