@import url("https://fonts.googleapis.com/css2?family=Merriweather:wght@300&family=Roboto:wght@100;400&display=swap");body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

code {
  font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
    monospace;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

/* Styles for the modal box */
.modal {
  background: #434343;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  padding: 20px;
  min-width: 300px;
  z-index: 1001;
  border: 1px solid Black;
}

/* Styles for the modal message */
.modal-message {
  color: #ffffff;
  font-size: 16px;
  margin-bottom: 20px;
  text-align: center;
  font-family: "Arial", sans-serif;
}

/* Styles for the action buttons */
.modal-actions {
  display: flex;
  justify-content: space-around;
  padding-top: 10px;
}

/* Button styling */
.modal-confirm,
.clearAll-close {
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  font-size: 14px;
  transition: background-color 0.3s ease;
}

.modal-confirm {
  background-color: #16a34a;
  color: white;
}

.modal-confirm:hover {
  background-color: #45a049;
}

.clearAll-close {
  background-color: #f44336;
  color: white;
}

.clearAll-close:hover {
  background-color: #d32f2f;
}

.modal {
  background-size: cover;
  color: black;
}

.modal-message {
  font-family: "Merriweather", serif;
}

.modal-confirm,
.modal-close {
  font-family: "Roboto", sans-serif;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  background-color: #1a1a1a;
  padding: 20px;
  border-radius: 10px;
  max-width: 500px;
  width: 100%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  color: white;
  font-family: "Times New Roman", serif;
  text-align: center;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: #f44336;
  color: #fff;
  padding: 5px 10px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.modal-close:hover {
  background-color: #d32f2f;
}

.modal h2 {
  font-size: 24px;
  margin-bottom: 10px;
  text-align: center;
}

.stripe-button {
  background-color: #ff6600;
  color: white;
  border: none;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  border-radius: 5px;
  margin: 20px auto 0;
  display: block;
}

@media (max-width: 600px) {
.modal-content {
  margin-top: 100px;
  padding-top: 80px;
}

  .stripe-button {
    margin-top: 120px;
    position: absolute;
    top: -90px;
    left: 5%;
    width: 125px;
  }
  .header-logo {
    width: 50%;
    height: 100%;
  }
  .hide-on-medium {
    display: none;
  }
}

.stripe-button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

.token-select {
  display: flex;
  flex-direction: column;
  margin-top: 20px;
  align-items: flex-start;
}

.token-select label {
  font-size: 14px;
  color: white;
}

.token-select div {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

.token-select input[type="radio"] {
  margin-right: 10px;
  accent-color: green;
  appearance: none;
  width: 16px;
  height: 16px;
  border: 2px solid green;
  background-color: black;
  border-radius: 50%;
  cursor: pointer;
  position: relative;
}

.token-select input[type="radio"]:checked::before {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  background-color: green;
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: 2px;
}

.modal-content p {
  margin-top: 20px;
}

/* Toggle Slider Styles */
.toggle-switch-container {
  display: flex;
  align-items: center;
  gap: 8px;
}

.toggle-label {
  font-size: 0.8rem;
}

.toggle-slider {
  position: relative;
  width: 50px;
  height: 24px;
  background-color: #ccc;
  border-radius: 24px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.toggle-slider.active {
  background-color: green;
}

.toggle-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background-color: white;
  border-radius: 50%;
  transition: transform 0.3s;
}

.toggle-slider.active .toggle-knob {
  transform: translateX(26px);
}

.toggle-container {
  margin: 10px 0;
}.card-container {
  color: black;
  border: 1px solid black;
  width: 250px;
  height: 350px;
  padding: 3px;
  position: relative;
  justify-content: center;
  align-items: center;
  text-align: center;
  display: flex;
  border-radius: 6px;
  box-sizing: border-box;
  background: #171314;
  margin: 0;
  flex-direction: column;
}

.basic-card-background {
  height: 320px;
  width: 235px;
}

.card-background {
  margin: -10% 2% 0% 2%;
  height: 90%;
  border-radius: 6px;
  border-top-right-radius: 6px;
  border-bottom-left-radius: 8%;
  border-bottom-right-radius: 8%;
  background-color: #bbb;
  position: relative;
  background-position: center;
  background-repeat: no-repeat; /* Do not repeat the image */
  background-size: cover; /* Resize the background image to cover the entire container */
}

.card-frame {
  z-index: 1;
  position: relative;
  width: 100%; /* adjusted from 244px */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 315px;
  margin-top: 5px;
}

.frame-header {
  background: linear-gradient(0deg, rgba(201, 216, 201, 0.3), rgba(201, 216, 209, 0.3));
  display: flex;
  margin-top: 0px;
  margin-left: auto;
  margin-right: auto;
  width: 93%; /* or whatever percentage or pixel value you prefer */
  padding: 8px 0;
  justify-content: space-between;
  border-radius: 18px/40px !important;
  font-size: clamp(0.3em, 0.2em, 0.5em);
  position: relative;
  height: 2px;
  align-items: center;
  z-index: 1;
}

.frame-type-line {
  background: linear-gradient(0deg, rgba(201, 216, 201, 0.3), rgba(201, 216, 209, 0.3));
  display: flex;
  width: 93%; /* or whatever percentage or pixel value you prefer */
  padding: 8px 0;
  justify-content: space-between;
  border-radius: 18px/40px !important;
  font-size: clamp(0.3em, 0.2em, 0.5em);
  position: absolute;
  top: 173px; /* Adjust this value to set the vertical position */
  left: 50%; /* Center horizontally */
  transform: translateX(-50%); /* Center horizontally */
  height: 2px;
  align-items: center;
  z-index: 1;
}

.frame-type-line-basic {
  background: linear-gradient(0deg, rgba(201, 216, 201, 0.3), rgba(201, 216, 209, 0.3));
  display: flex;
  margin-top: 0px;
  margin-left: auto;
  margin-right: auto;
  width: 93%; /* or whatever percentage or pixel value you prefer */
  padding: 8px 0;
  justify-content: space-between;
  border-radius: 18px/40px !important;
  font-size: clamp(0.3em, 0.2em, 0.5em);
  position: absolute;
  top: 168px;
  left: 6px;
  height: 2px;
  align-items: center;
  z-index: 10;
}

.name,
.type {
  margin-left: 5px;
  font-weight: 600;
  border-radius: 50% !important;
}

.frame-image {
  width: 91%;
  height: 47%;
  position: absolute;
  top: 25px;
  left: 10px;
  box-sizing: border-box;
  z-index: 0;
}

.frame-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  object-position: center;
}

.frame-image-basic {
  width: 91%;
  height: 47%;
  position: absolute;
  top: 22px;
  left: 10px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
  z-index: 0;
}

.frame-image-basic img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  object-position: center;
}

.mana-icon {
  border-radius: 50%;
  box-sizing: border-box;
  box-shadow: -0.05em 0.12em 0px 0 black;
  height: 15px;
  object-fit: cover;
  margin: 0;
  padding: 0;
  display: inline-block;
  vertical-align: middle;
}

.mana-icon {
  vertical-align: px; /* or '-2px', etc. */
}

.set-symbol {
  width: 20px;
  height: 15px;
}

.frame-text-box {
  margin: 0px 10px;
  background: #d3ded6;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  position: relative;
  height: 125px;
  justify-content: space-between;
  align-items: space-around;
  padding: 10px 2px 0px 2px;
}

.flavour-text {
  font-style: italic;
  padding: 3px 10px;
}

p {
  margin-bottom: 1px;
  margin-top: 0px;
  height: 100%;
}

.power-toughness {
  position: absolute;
  bottom: -12px;
  right: -5px;
  width: 35px;
  height: 17px;
  background-color: #ccc;
  border-radius: 25%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.5);
  z-index: 2;
  border: 1px solid black;
  font-size: clamp(0.5em, 0.8em, 2em);
}

.mana-cost {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: nowrap;
}

.frame-footer {
  position: absolute;
  bottom: -3px; /* Adjust as necessary to place it right at the bottom inside card-background */
  left: 0;
  width: 90%; /* Ensure it spans the entire width */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 10px; /* Add some padding inside the footer */
  background-color: rgba(0, 0, 0, 0); /* Example of semi-transparent black */
}

.ability {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 100%;
}

.ability-cost-container {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1em; /* Adjust as needed */
}

.ability-cost {
  position: absolute;
  font-size: 0.6em;
  color: white;
}

.planeswalker_abilities {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: stretch;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.levels {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  height: 100%;
}

.level-stats {
  min-width: 25px;
  height: 17px;
  background-color: #ccc;
  border-radius: 25%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.5);
  z-index: 1;
  border: 1px solid black;
  font-size: clamp(0.5em, 0.8em, 2em);
}

.card-color-border::before {
  content: "";
  position: absolute;
  top: -1.5px;
  left: -1.5px;
  right: -1.5px;
  bottom: -1.5px;
  border: 1px solid black;
  z-index: 2;
  border-radius: 18px/40px;
  box-sizing: border-box;
}

.card-color-border-square::before {
  content: "";
  position: absolute;
  top: -1.5px;
  left: -1.5px;
  right: -1.5px;
  bottom: -1.5px;
  border: 1px solid black;
  z-index: 1;
  box-sizing: border-box;
}

.textcontainer {
  display: flex;
  flex-direction: column; /* Align children vertically */
  justify-content: flex-start; /* Spread children evenly with space around them */
  align-items: flex-start; /* Center children horizontally */
  height: 100%;
  width: 100%;
}

.flavor-text {
  font-style: italic;
  /* Other styling as needed... */
}

.arcane-proxies-text {
  text-align: left;
  color: white;
  font-size: 6px;
}

.paintbrush {
  align-self: flex-start;
  height: 2%;
  width: 10%;
}

.artist {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 2px;
}

.artist-text {
  align-self: flex-start;
  color: white;
  font-size: 6px;
}

.info,
.basic-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: absolute;
  left: 5px;
  width: 100%;
}

.basic-info {
  bottom: -25px;
}

.info {
  bottom: 5px;
}.planeswalker-cost {
    font-size: .7em;  
    color: white;  
    position: absolute;
    z-index: 4;
}

.planeswalker-borders {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1; 
}

.planeswalker_loyalty {
    position: absolute;
    bottom: -8px; 
    right: -5px; 
    width: 35px; 
    height: 17px; 
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
    font-size: clamp(0.5em, .8em, 2em);
}

.planeswalker_loyalty img {
    position: absolute;
    top: -2px;
    left: 5;
    width: 120%;
    height: auto;
}

.loyalty-text {
    z-index: 3;
    height: 7px; 
    color: white; /* or any other contrasting color */
    font-size: .95em;
    font-weight: bold;
    text-align: center;
}

.planeswalker-image-container img {
    width: 120%;
    height: auto;
}

.planeswalker {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    height: 100%;
}

.planeswalker-cost-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-right: em;
    position: relative;
    width: 20%;
}

.planeswalker.highlight {
    background-color: rgba(186, 0, 0, 0.1);
}

.loyalty-icon{
    position: absolute; 
    left: -10px;
    top:-15px;
}

.planeswalker_text p{
    width: auto;
    height: auto;
    margin: auto;
}


.planeswalker_textcontainer {
  display: flex;
  flex-direction: column; /* Align children vertically */
  justify-content: flex-start; /* Spread children evenly with space around them */
  align-items: flex-start; /* Center children horizontally */
  height: 100%;
  width: 100%;
}


.level-stats-first {
    position: absolute;
    top: 18px; 
    right: 1px; 
    width: 26px; 
    height: 17px; 
    background-color: #ccc; 
    border-radius: 25%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.5);
    z-index: 2;
    border: 1px solid black;
    font-size: clamp(0.5em, .8em, 2em);
}
.split-card-container {
  color: black;
  border: 1px solid black;
  display: flex;
  position: relative;
  flex-direction: column;
  align-items: center; /* Center them vertically */
  justify-content: center; /* Center them horizontally */
  width: 250px;
  height: 350px;
  padding: 3px;
  border-radius: 6px;
  box-sizing: border-box;
  background: #171314;
  margin: 0; /* To center the whole container if needed */
}

.card-half-top,
.card-half-bottom {
  transform-origin: center center; /* Change to center for a pivot point */
  position: absolute; /* Position absolute to overlap within the parent */
}

/* These two styles rotate the card and postion them */
.card-half-top {
  transform: rotate(-90deg) translateX(-55%); /* Adjust translation as needed */
}

.card-half-bottom {
  transform: rotate(-90deg) translateX(55%); /* Adjust translation as needed */
}

.split-card-background {
 height: 230px;
 width: 155px;
 margin: -3% 2% 0% 2%;
 background-color: #bbb;
 position: relative;
 background-position: center;
 background-repeat: no-repeat; /* Do not repeat the image */
 background-size: cover; /* Resize the background image to cover the entire container */

}

.split-card-frame {
 z-index: 1;
 position: relative;
 max-width: 97%;
 max-height: 97%;
 left: 1.2%;
 top: 0.5%;
 display: flex;
 flex-direction: column;
 justify-content: space-between;
}

.frame-split-image {
    width: 90%; 
    height: 65%; 
    position: relative;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

.frame-split-image img {
    width: 100%;
    height: 100%;
    object-fit:fill;
    object-position: center;
    vertical-align: bottom;
}

.split-frame-text-box {
 margin: 0px 8px;
 background: #d3ded6;
 display: flex;
 flex-direction: column;
 box-sizing: border-box;
 position: relative;
 height: 55px; 
 justify-content: space-around;
 align-items: space-around;
}

.split-frame-type-line {
    background: 
        linear-gradient(0deg, rgba(201, 216, 201, .3), rgba(201, 216, 209, .3)); 
    display: flex;
    width: 93%; /* or whatever percentage or pixel value you prefer */
    padding: 8px 0;
    justify-content: space-between;
    border-radius: 18px/40px !important;
    font-size: clamp(0.3em, .2em, .5em);
    position: absolute;
    top: 180px; /* Adjust this value to set the vertical position */
    left: 50%; /* Center horizontally */
    transform: translateX(-50%); /* Center horizontally */
    height: 2px;
    align-items: center;
    z-index: 2;
}

.split-divider{
    
    background-color: #333; /* Dark gray color */
    height: 231px;
    width: 15px; /* Width of the divider, adjust as needed */
    position: absolute;
    top: 55px;
    left: 114px;
    transform: rotate(-90deg) translateX(0);
    z-index: 2; /* Ensure it's above the card halves */
}

.info-split {
    display: flex;
    flex-direction: row;
    align-items: flex-start; 
    position: absolute;
    bottom: 3px;
    left: 5px;
    width: 100%;
}

.arcane-proxies-split {
  position: absolute;
  right: 14px;
  text-align: right;
  color : white;
  font-size: 6px;
}/* These two styles rotate the card and postion them */
.aftermath-card-half-top {
    order: 1;
    height: 390px;
    transform: translateX(-5px);
}

.aftermath-card-half-bottom {
    transform: rotate(90deg) translate(-135px, -120px);
    order: 2;
    transform-origin: bottom left;
}

.aftermath-card-background {
 height: 190px;
 width: 235px;
 margin-top: 6px;
 transform-origin: top;
}

.aftermath-bottom-card-background {
 height: 235px;
 width: 105px;
 margin-left: 5px ;
 background-color: #bbb;
 position: absolute;
}

.aftermath-card-frame {
 z-index: 1;
 position: relative;
 top: 4.5%;
 display: flex;
 flex-direction: column;
 justify-content: space-between;
  transform: scale(1.02)
}


.aftermath-text-box {
 position: absolute;
 bottom: -65px;
 margin: 0px 8px;
 height: 55px;
 width: 215px;
 background: #d3ded6;
 display: flex;
 flex-direction: column;
 justify-content: space-around; 
 box-sizing: border-box;
 overflow: hidden;
}

.aftermath-bottom-text-box {
 position: absolute;
 bottom: -100px;
 margin: 0px 6px;
 height: 75px;
 width: 95px;
 background: #d3ded6;
 display: flex;
 flex-direction: column;
 justify-content: space-around; 
 box-sizing: border-box;
 overflow: hidden;
}

.aftermath-bottom-card-background > .aftermath-bottom-card-frame {
    transform: scale(1.2)  translate(0px, 12px);;
}

.aftermath-frame-type-line {
    background: 
        linear-gradient(0deg, rgba(201, 216, 201, .3), rgba(201, 216, 209, .3)); 
    display: flex;
    width: 93%; /* or whatever percentage or pixel value you prefer */
    padding: 8px 0;
    justify-content: space-between;
    border-radius: 18px/40px !important;
    font-size: clamp(0.3em, .2em, .5em);
    position: absolute;
    top: 100px; /* Adjust this value to set the vertical position */
    left: 50%; /* Center horizontally */
    transform: translateX(-50%); /* Center horizontally */
    height: 2px;
    align-items: center;
    z-index: 1;
}

.aftermath-frame-type-line-bottom {
    background: 
        linear-gradient(0deg, rgba(201, 216, 201, .3), rgba(201, 216, 209, .3)); 
    display: flex;
    width: 93%; /* or whatever percentage or pixel value you prefer */
    padding: 8px 0;
    justify-content: space-between;
    border-radius: 18px/40px !important;
    font-size: clamp(0.3em, .2em, .5em);
    position: absolute;
    top: 85px; /* Adjust this value to set the vertical position */
    left: 50%; /* Center horizontally */
    transform: translateX(-50%); /* Center horizontally */
    height: 2px;
    align-items: center;
    z-index: 1;
}.bottom-section {
 display: flex;
 justify-content: space-between;
 height:  38%;
}

.adventure-bottom {
 display: flex;
 flex-direction: column;
 width: 120px;
}

.adventureframe-header,
.adventureframe-type-line {
 background: linear-gradient( 0deg, rgba(201, 216, 201, .3), rgba(201, 216, 209, .3) );
 display: flex;
 margin-top: 0px;
 padding: 8px 0;
 justify-content: space-between;
 border-radius: 5px 5px;
 font-size: .4em;
 position: relative;
 height: 4px;
 align-items: center;
 width: 108px;;
 margin: 0 6px;
  font-size: clamp(0.2em, .28em, .8em);
  flex-wrap: nowrap;
}

.adventureframe-text-box{
 margin: 0 10px;
 height: 70px;
 width: 90%;
 background: #d3ded6;
 display: flex;
 flex-direction: column;
 justify-content: space-around; 
 box-sizing: border-box;
font-size: clamp(0.4em, 1em, 2em);
 position: relative;
}

.adventureer-text-box {
 width: 100%;
 height: 100%;
 margin-left: -5px;
 background: #d3ded6;
}

.adventureframe-header {
    justify-content:space-between;
}

.adventureframe-header .mana-icon {
    height: 12px; /* adjust this value to suit your needs */
}

.card-color-border-adventure::before {
    content: "";
    position: absolute;
    top: -1.5px;
    left: -1.5px;
    right: -.5px;
    bottom: -1.5px;
    border: 1px solid black;
    z-index: 2;
    border-radius: 18px/40px;
    box-sizing: border-box;
}.flip {
    transform: rotate(180deg);
}

.flip-frame-text-box {
 margin: 0 10px;
 height: 50px;
 background: #d3ded6;
 display: flex;
 flex-direction: column;
 justify-content: space-around; 
 box-sizing: border-box;
 position: relative;
}

.flip-card-background {
 height: 355px;
 width: 230px;
 margin: 0% 2% 0% 2%;
 border-radius: 6px;
 border-top-right-radius: 6px;
 border-bottom-left-radius: 6px;
 border-bottom-right-radius: 6px;
 background-color: #bbb;
 position: relative;
}

.flip-power-toughness {
    position: absolute;
    bottom: -12px; 
    right: -5px; 
    width: 35px; 
    height: 17px; 
    background-color: #ccc; 
    border-radius: 25%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.5);
    font-size: 3em;
    z-index: 2;
}

.arcane-proxies-flip{   
    text-align: left;
    font-size: 6px;
}

.set-symbol-flip {
    position: absolute;
    bottom: 5px; 
    right: 5px; 
    width: 20px;
    height: 15px;
}

.artist-text-flip {
  align-self: flex-start; 
  font-size: 6px;
}

.frame-image-flip {
    width: 91%; 
    height: 47%; 
    position: relative;
    margin-left: 10px;
    margin-right: auto;
    box-sizing: border-box;
    z-index: 0;
}

.frame-image-flip img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit:fill;
    object-position: center;
}

.flip-frame-type-line-top {
    background: 
        linear-gradient(0deg, rgba(201, 216, 201, .3), rgba(201, 216, 209, .3)); 
    display: flex;
    width: 93%; /* or whatever percentage or pixel value you prefer */
    padding: 8px 0;
    justify-content: space-between;
    border-radius: 18px/40px !important;
    font-size: clamp(0.3em, .2em, .5em);
    position: absolute;
    top: 63px; /* Adjust this value to set the vertical position */
    left: 50%; /* Center horizontally */
    transform: translateX(-50%); /* Center horizontally */
    height: 2px;
    align-items: center;
    z-index: 2;
}

.flip-frame-type-line-bottom {
    background: 
        linear-gradient(0deg, rgba(201, 216, 201, .3), rgba(201, 216, 209, .3)); 
    display: flex;
    width: 93%; /* or whatever percentage or pixel value you prefer */
    padding: 8px 0;
    justify-content: space-between;
    border-radius: 18px/40px !important;
    font-size: clamp(0.3em, .2em, .5em);
    position: absolute;
    top: 230px; /* Adjust this value to set the vertical position */
    left: 3%; /* Center horizontally */
    /* transform: translateX(-50%); Center horizontally */
    height: 2px;
    align-items: center;
    z-index: 2;
}.battle-card-background {
    width: 130%;
    height: 70%;
    position: absolute;
    transform: rotate(270deg);
}

.planar-card-background {
    width: 130%;
    height: 70%;
    position: absolute;
    transform: rotate(270deg) translatex(10px);
}


.battle-card-frame {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.battle-frame-header,
.battle-frame-type-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    height: 10%;
    font-size: clamp(0.4em, .3em, .8em);
    background: linear-gradient( 0deg, rgba(201, 216, 201, .3), rgba(201, 216, 209, .3) ); 
    border-radius: 18px/40px;
}

.planar-frame-header,
.planar-frame-type-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 97%;
    height: 7%;
    font-size: clamp(0.4em, .3em, .8em);
    background: linear-gradient( 0deg, rgba(201, 216, 201, .3), rgba(201, 216, 209, .3) ); 
    border-radius: 18px/40px;
}


.battle-frame-image {
    flex-grow: 1;
    width: 88%; /* Adjust as needed */
    max-height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.battle-frame-image img {
    width: 100%;
    height: 100%;
    object-fit: fill;
}

.planar-frame-image {
    flex-grow: 1;
    width: 95%; 
    height: 80%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.planar-frame-image img {
    width: 100%;
    height: 100%;
    object-fit: fill;
}

.battle-frame-text-box {
    margin:  0 10px;
    width: 88%;
    height: 35%;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    justify-content: space-between; 
    align-items: start;
    background: #d3ded6;
    font-size: clamp(0.5em, 1.1em, 3.5em);
}

.planar-frame-text-box {
    margin:  0 10px;
    width: 97%;
    height: 35%;
    display: flex;
    flex-direction: column;
    justify-content: space-between; 
    box-sizing: border-box;
    align-items: start;
    background: #d3ded6;
    font-size: clamp(0.5em, 1.1em, 3.5em);
}

.defense {
    position: absolute;
    bottom: -1px; 
    right: 5px; 
    width: 20px; 
    height: 25px; 
    background-color: #ccc; 
    border: 1px solid black;
    border-radius: 5%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.5);
    font-size: clamp(0.5em, .8em, 2em);
    z-index: 4;
}

.card-color-border-battle::before {
    /* content: "";
    position: absolute;
    top: -1.5px;
    left: -1.5px;
    right: -1.5px;
    bottom: -1.5px;
    border: 1px solid black;
    z-index: 2;
    border-radius: 18px/40px;
    box-sizing: border-box; */
}.saga-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    transform: translateY(-39px);
    width: 95%;
    height:  80%;
    margin-left: 5px;
}

.saga-frame-image {
    max-width: 98px;  
    height: 105%;  
    background-color: #ccc;
}

.saga-frame-image img {
    width: 100%;
    height:  100%;
}

.saga-frame-text-box {
 width: 50%;  
 height: 265px;
 background: #d3ded6;
 display: flex;
 flex-direction: column;
 justify-content: flex-start; 
 box-sizing: border-box;
 position: relative;
 align-items: center;
}

.roman-numeral {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: black; 
    font-weight: bold;
    width: 15px;
    height: 50px;
    padding-top: 10px;
}

.roman-numeral svg {
    color: black;
}

.roman-numeral span {
    position: absolute;
    top: 50%;
    left: 45%;
    transform: translate(-50%, -50%); 
    font-size: 0.6em; 
    z-index: 2;
}

.saga_oracle {
    border-top: 1px solid #000;
    padding-top:5px;
    height: auto;
    position: relative;
}

.frame-type-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hex-icon {
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.numeral-container {
  display: flex;
  flex-direction: row;
  align-items: center; /* this is now horizontal alignment due to row direction */
  justify-content: flex-start;
  position: relative;
  margin-right: .7em;
  width: 100%;
  height: 50%;
}

.numeral-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.numeral-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
}

.abilities {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  
}

.saga_ability {
    display: flex;
    flex-direction: row;
    align-items: flex-start;  /* Align items to the top */
    justify-content: flex-start;
    width: 100%;
    flex: 0 1 auto;  /* Allow elements to take their natural size */
    margin: 0; /* Remove any margin */
    padding: 0; /* Remove padding if not needed */
}

.saga_text .textcontainer {
    height: auto;
    padding: 0;  /* Ensure no padding is adding extra height */
    margin: 0;  /* Ensure no margin is affecting the height */
}

.saga-icon {
    width: 25px;
    padding-bottom: 14.43px; /* Adjusted proportionally */
    position: relative;
    display: flex; /* Adding flex properties to center numeral */
    align-items: center; /* Vertically centering */
    justify-content: center; /* Horizontally centering */
    z-index: 2;
}

.saga-numeral {
    position: absolute;
    bottom: -12px;
}

.saga-frame-type-line {
    background: 
        linear-gradient(0deg, rgba(201, 216, 201, .3), rgba(201, 216, 209, .3)); 
    display: flex;
    width: 93%; /* or whatever percentage or pixel value you prefer */
    padding: 8px 0;
    justify-content: space-between;
    border-radius: 18px/40px !important;
    font-size: clamp(0.3em, .2em, .5em);
    position: absolute;
    top: 280px; /* Adjust this value to set the vertical position */
    left: 50%; /* Center horizontally */
    transform: translateX(-50%); /* Center horizontally */
    height: 2px;
    align-items: center;
    z-index: 1;
}.class-container {
  display: flex;
  flex-direction: row;
  justify-content: center;
  transform: translateY(-39px);
    width: 95%;
    height:  80%;
    margin-left: 7px;
}

.class-frame-image {
  max-width: 92px;  
  height: 105%; 
  order: 1;
}

.class-frame-image img {
  width: 100%;
  height: 100%;
}

.class-frame-text-box {
  width: 50%;  
  height: 265px;
  background: #c5d1c8;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  position: relative;
  order: 2;
}

.level-info {
  width: 100%;
  padding: 0;
  border-radius: 3px;
}

.level-info.highlight {
  background: none;
}

.level-indicator {
  display: flex;
  align-items: center;
  width: 100%;
  margin-bottom: 2px;
  padding: 3px 0;
  border-bottom: none;
  position: relative;
}

.level-text {
  font-weight: bold;
  color: #111;
}

.level-cost {
  position: relative;
  font-weight: bold;
  color: #111;
  padding: 2px 4px;
  background: rgba(0, 0, 0, 0.12);
  border-radius: 4px;
  margin-bottom: 0;
  width: 100%;
  height: 100%;
}

/* Left wing */
.level-cost::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: calc(50% - 3px);
  height: 2px;
  background: rgba(0, 0, 0, 0.4);
}

/* Right wing */
.level-cost::after {
  content: "";
  position: absolute;
  top: -1px;
  right: 0;
  width: calc(50% - 3px);
  height: 2px;
  background: rgba(0, 0, 0, 0.4);
}

/* V shape */
.level-cost .v-shape {
  content: "▼";
  position: absolute;
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(0, 0, 0, 0.4);
  font-size: 8px;
  line-height: 1;
}

/* Remove all elements from first level */
.class_ability:first-of-type .level-cost {
  margin-top: 0;
}

.class_ability:first-of-type .level-cost::before,
.class_ability:first-of-type .level-cost::after,
.class_ability:first-of-type .level-cost .v-shape {
  display: none;
}

.cost-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mana-and-colon {
  display: flex;
  align-items: center;
  white-space: nowrap;
  min-width: fit-content;
  margin-right: 4px;
}

.cost-text {
  flex-grow: 0;
  font-weight: bold;
  width: 33px;
}

.cost-colon {
  margin: 0 1px;
  font-weight: bold;
}

/* Adjust mana symbol size in costs */
.level-cost .mana-symbol {
  height: 1em;
  width: 1em;
  vertical-align: middle;
  margin: 0;
}

.level-cost .textcontainer {
  font-size: 0.85em !important;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 2px;
}

.top {
  height: auto;
  position: relative;
  padding-bottom: 4px;
  margin-bottom: 4px;
  font-style: italic;
}

.top::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 2px;
  background: rgba(0, 0, 0, 0.3);
  clip-path: polygon(0 50%, 2px 0, calc(100% - 2px) 0, 100% 50%, calc(100% - 2px) 100%, 2px 100%);
}

.class_ability {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-bottom: 0;
  padding: 0;
}

.class_oracle {
  width: 100%;
  padding: 1px 0;
  line-height: 1.1;
}

.abilities {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 1px;
  gap: 1px;
}

.class_text .textcontainer,
.class_oracle .textcontainer {
  height: auto;
  padding: 1px;
  margin: 0;
  line-height: 1.1;
}

.class_oracle .mana-symbol {
  height: 1em;
  width: 1em;
  vertical-align: middle;
  margin: 0 1px;
}

.class-frame-type-line {
  background: linear-gradient(0deg, rgba(201, 216, 201, 0.3), rgba(201, 216, 209, 0.3));
  display: flex;
  width: 93%;
  padding: 8px 0;
  justify-content: space-between;
  border-radius: 18px/40px !important;
  font-size: clamp(0.3em, 0.2em, 0.5em);
  position: absolute;
  top: 282px;
  left: 50%;
  transform: translateX(-50%);
  height: 2px;
  align-items: center;
  z-index: 1;
}

.class-icon {
  width: 20px;
  height: 20px;
  position: relative;
  z-index: 2;
}
.case-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    transform: translateY(-39px);
    width: 95%;
    height:  80%;
    margin-left: 7px;
}

.case-frame-image {
  max-width: 92px;  
  height: 105%; 
  order: 1;
}

.case-frame-image img {
  width: 100%;
  height: 100%;
}

.case-frame-text-box {
  width: 50%;  
  height: 265px;
  background: #c5d1c8;
  display: flex;
  flex-direction: column;
  justify-content:space-evenly;
  position: relative;
  order: 2;
}

.case-text {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.case-to-solve {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.case-solved {
    margin-bottom: 5px;
}

.case-text::after,
.case-to-solve::after {
  content: "";
  margin-top: 12px;
  width: 80%;
  height: 2px;
  background: rgba(0, 0, 0, 0.3);
  clip-path: polygon(0 50%, 2px 0, calc(100% - 2px) 0, 100% 50%, calc(100% - 2px) 100%, 2px 100%);
}

.case-frame-type-line {
    background: linear-gradient(0deg, rgba(201, 216, 201, 0.3), rgba(201, 216, 209, 0.3));
    display: flex;
    width: 93%;
    padding: 8px 0;
    justify-content: space-between;
    border-radius: 18px/40px;
    font-size: clamp(0.3em, 0.2em, 0.5em);
    position: absolute;
    top: 282px;
    left: 50%;
    transform: translateX(-50%);
    height: 2px;
    align-items: center;
    z-index: 1;
}

/* Text container adjustments */
.case-frame-text-box .textcontainer {
    height: auto;
    padding: 1px;
    margin: 0;
    line-height: 1.1;
}

/* Mana symbol adjustments */
.case-frame-text-box .mana-symbol {
    height: 1em;
    width: 1em;
    vertical-align: middle;
    margin: 0 1px;
}

.card-frame {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.frame-header {
    margin-bottom: 4px;
} /* Blog Layout Styles */
.blog-layout {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #f8f9fa;
}

.blog-container {
  flex: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
}

.blog-navigation {
  padding: 20px 0;
  border-bottom: 1px solid #e9ecef;
  margin-bottom: 30px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.nav-link {
  color: #6c757d;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: #495057;
  text-decoration: underline;
}

.blog-main {
  flex: 1;
  margin-bottom: 40px;
}

.blog-header {
  text-align: center;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 2px solid #e9ecef;
}

.blog-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #212529;
  margin: 0;
  line-height: 1.2;
}

.blog-content-wrapper {
  background: white;
  border-radius: 8px;
  padding: 40px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 40px;
}

.blog-footer {
  margin-top: auto;
  padding: 30px 0;
  border-top: 1px solid #e9ecef;
  background-color: #f8f9fa;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-content p {
  margin: 0;
  color: #6c757d;
  font-size: 14px;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: #6c757d;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #495057;
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
  .blog-container {
    padding: 0 15px;
  }
  
  .blog-title {
    font-size: 2rem;
  }
  
  .blog-content-wrapper {
    padding: 20px;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  
  .blog-navigation {
    flex-direction: column;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .blog-title {
    font-size: 1.75rem;
  }
  
  .blog-content-wrapper {
    padding: 15px;
  }
}
/* Blog Index Styles */
.blog-index {
  max-width: 1000px;
  margin: 0 auto;
}

.blog-index-intro {
  text-align: center;
  margin-bottom: 50px;
}

.blog-index-description {
  font-size: 1.2rem;
  color: #495057;
  line-height: 1.6;
  margin: 0;
  max-width: 800px;
  margin: 0 auto;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.article-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  overflow: hidden;
  border: 1px solid #e9ecef;
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.article-card-content {
  padding: 30px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.article-card-header {
  margin-bottom: 20px;
}

.article-card-title {
  margin: 0 0 15px 0;
  font-size: 1.4rem;
  line-height: 1.3;
}

.article-card-title a {
  color: #212529;
  text-decoration: none;
  transition: color 0.2s ease;
}

.article-card-title a:hover {
  color: #007bff;
}

.article-card-meta {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  font-size: 14px;
  color: #6c757d;
}

.article-card-date,
.article-card-author {
  font-weight: 500;
}

.article-card-body {
  flex: 1;
  margin-bottom: 25px;
}

.article-card-description {
  color: #495057;
  line-height: 1.6;
  margin: 0;
  font-size: 15px;
}

.article-card-footer {
  margin-top: auto;
}

.read-more-link {
  color: #007bff;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.read-more-link:hover {
  color: #0056b3;
  transform: translateX(3px);
}

.no-articles {
  text-align: center;
  padding: 60px 20px;
  color: #6c757d;
}

.no-articles h3 {
  font-size: 1.5rem;
  margin: 0 0 15px 0;
  color: #495057;
}

.no-articles p {
  font-size: 1.1rem;
  margin: 0;
}

.blog-index-cta {
  text-align: center;
  padding: 50px 30px;
  background: linear-gradient(135deg, #007bff, #0056b3);
  border-radius: 12px;
  color: white;
  margin-top: 50px;
}

.blog-index-cta h3 {
  font-size: 1.8rem;
  margin: 0 0 15px 0;
  font-weight: 600;
}

.blog-index-cta p {
  font-size: 1.1rem;
  margin: 0 0 30px 0;
  opacity: 0.9;
}

.cta-button {
  display: inline-block;
  background: white;
  color: #007bff;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  color: #0056b3;
}

/* Loading Styles */
.blog-loading {
  text-align: center;
  padding: 60px 20px;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #007bff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.blog-loading p {
  color: #6c757d;
  font-size: 16px;
  margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .articles-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .article-card-content {
    padding: 20px;
  }
  
  .article-card-title {
    font-size: 1.3rem;
  }
  
  .article-card-meta {
    flex-direction: column;
    gap: 5px;
  }
  
  .blog-index-cta {
    padding: 40px 20px;
  }
  
  .blog-index-cta h3 {
    font-size: 1.5rem;
  }
  
  .blog-index-description {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .articles-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .article-card-content {
    padding: 15px;
  }
  
  .article-card-title {
    font-size: 1.2rem;
  }
  
  .blog-index-cta h3 {
    font-size: 1.3rem;
  }
  
  .cta-button {
    padding: 12px 25px;
    font-size: 15px;
  }
}
/* Blog Post Styles */
.blog-post {
  max-width: 800px;
  margin: 0 auto;
}

.blog-post-header {
  margin-bottom: 40px;
  text-align: center;
}

.blog-post-meta {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.blog-post-date,
.blog-post-author {
  color: #6c757d;
  font-size: 14px;
  font-weight: 500;
}

.blog-post-description {
  font-size: 1.2rem;
  color: #495057;
  line-height: 1.6;
  margin: 0;
  font-style: italic;
}

.blog-post-content {
  line-height: 1.8;
  color: #212529;
  font-size: 16px;
}

/* Content Styling */
.blog-post-content h2 {
  font-size: 1.8rem;
  font-weight: 600;
  color: #212529;
  margin: 40px 0 20px 0;
  padding-bottom: 10px;
  border-bottom: 2px solid #e9ecef;
}

.blog-post-content h3 {
  font-size: 1.4rem;
  font-weight: 600;
  color: #495057;
  margin: 30px 0 15px 0;
}

.blog-post-content h4 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #495057;
  margin: 25px 0 10px 0;
}

.blog-post-content p {
  margin: 0 0 20px 0;
  line-height: 1.8;
}

.blog-post-content ul,
.blog-post-content ol {
  margin: 20px 0;
  padding-left: 30px;
}

.blog-post-content li {
  margin: 8px 0;
  line-height: 1.6;
}

.blog-post-content strong {
  font-weight: 600;
  color: #212529;
}

.blog-post-content a {
  color: #007bff;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all 0.2s ease;
}

.blog-post-content a:hover {
  color: #0056b3;
  border-bottom-color: #0056b3;
}

.blog-post-content code {
  background-color: #f8f9fa;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 0.9em;
  color: #e83e8c;
}

.blog-post-content blockquote {
  border-left: 4px solid #007bff;
  padding: 15px 20px;
  margin: 20px 0;
  background-color: #f8f9fa;
  font-style: italic;
}

.blog-post-footer {
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid #e9ecef;
}

.blog-post-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.tag {
  background-color: #e9ecef;
  color: #495057;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Loading Styles */
.blog-loading {
  text-align: center;
  padding: 60px 20px;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #007bff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.blog-loading p {
  color: #6c757d;
  font-size: 16px;
  margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .blog-post-meta {
    flex-direction: column;
    gap: 10px;
  }
  
  .blog-post-description {
    font-size: 1.1rem;
  }
  
  .blog-post-content {
    font-size: 15px;
  }
  
  .blog-post-content h2 {
    font-size: 1.6rem;
  }
  
  .blog-post-content h3 {
    font-size: 1.3rem;
  }
  
  .blog-post-content ul,
  .blog-post-content ol {
    padding-left: 20px;
  }
}

@media (max-width: 480px) {
  .blog-post-content h2 {
    font-size: 1.4rem;
  }
  
  .blog-post-content h3 {
    font-size: 1.2rem;
  }
  
  .blog-post-description {
    font-size: 1rem;
  }
}
/* Sitemap Page Styles */
.sitemap-page {
  max-width: 800px;
  margin: 0 auto;
}

.sitemap-intro {
  text-align: center;
  margin-bottom: 40px;
  padding: 20px;
  background-color: #f8f9fa;
  border-radius: 8px;
}

.sitemap-intro p {
  color: #495057;
  font-size: 1.1rem;
  line-height: 1.6;
  margin: 0;
}

.sitemap-sections {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.sitemap-section {
  background: white;
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.sitemap-section h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #212529;
  margin: 0 0 20px 0;
  padding-bottom: 10px;
  border-bottom: 2px solid #e9ecef;
}

.sitemap-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sitemap-item {
  padding: 15px 0;
  border-bottom: 1px solid #f1f3f4;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sitemap-item:last-child {
  border-bottom: none;
}

.sitemap-link {
  color: #007bff;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.1rem;
  transition: color 0.2s ease;
}

.sitemap-link:hover {
  color: #0056b3;
  text-decoration: underline;
}

.sitemap-meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.sitemap-priority,
.sitemap-date {
  font-size: 0.9rem;
  color: #6c757d;
  font-weight: 500;
}

.sitemap-priority {
  background-color: #e9ecef;
  padding: 2px 8px;
  border-radius: 12px;
}

.sitemap-date {
  font-style: italic;
}

.sitemap-footer {
  margin-top: 50px;
  padding: 30px;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  border-radius: 8px;
  text-align: center;
}

.sitemap-footer h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #495057;
  margin: 0 0 15px 0;
}

.sitemap-footer p {
  color: #6c757d;
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
}

.xml-sitemap-link {
  color: #007bff;
  text-decoration: none;
  font-weight: 600;
  font-family: 'Courier New', monospace;
  background-color: #f8f9fa;
  padding: 2px 6px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.xml-sitemap-link:hover {
  color: #0056b3;
  background-color: #e9ecef;
  text-decoration: none;
}

/* Responsive Design */
@media (max-width: 768px) {
  .sitemap-section {
    padding: 20px;
  }
  
  .sitemap-link {
    font-size: 1rem;
  }
  
  .sitemap-meta {
    flex-direction: column;
    gap: 8px;
  }
  
  .sitemap-intro {
    padding: 15px;
  }
  
  .sitemap-intro p {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .sitemap-section {
    padding: 15px;
  }
  
  .sitemap-section h3 {
    font-size: 1.3rem;
  }
  
  .sitemap-footer {
    padding: 20px;
  }
  
  .sitemap-footer h3 {
    font-size: 1.2rem;
  }
}


@keyframes pulsate {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    opacity: 1;
  }
}

html {
  scroll-behavior: smooth;
}

/* Global scrollbar styling */

* {
  scrollbar-width: thin;
  scrollbar-color: #333 #1a1a1a;
}

*::-webkit-scrollbar {
  width: 12px;
}

*::-webkit-scrollbar-track {
  background: #1a1a1a;
  border-radius: 6px;
}

*::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 6px;
  border: 2px solid #1a1a1a;
}

*::-webkit-scrollbar-thumb:hover {
  background: #444;
}

body {
  background-color: #1a1a1a;
  color: #fff;
  font-family: "Times New Roman", serif;
  text-align: center;
  height: 100vh;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* =======================================
   Fonts & Base Styles
   ======================================= */

input:focus,
button:focus {
  outline: none;
  box-shadow: 0 0 5px rgba(0, 255, 255, 0.7);
}

button:hover {
  background-color: #0d1b2a;
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.7);
}

button:disabled,
button:disabled:hover {
  background-color: #ccc;
  color: #666;
  cursor: not-allowed;
  border: 1px solid #999;
  box-shadow: none;
  transform: none;
}

/* =======================================
   Layout Containers
   ======================================= */

.container,
.auth-container,
.agreement-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.container {
  flex-direction: column;
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
  position: relative;
}

.auth-container,
.agreement-container {
  height: 100vh;
}

.agreement-container {
  height: 100%;
}

.content {
  display: flex;
  flex-direction: row;
  height: calc(100vh - 200px);
  width: 100%;
  margin-top: 200px;
  overflow: hidden;
  position: relative;
}

.main-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0;
  margin: 0;
  scroll-padding-top: 20px;
  scroll-behavior: smooth;
}

/* Responsive adjustments for main content */

@media (max-width: 768px) {
  .content {
    flex-direction: column;
    height: auto;
    min-height: calc(100vh - 200px);
    margin-top: 200px;
  }

  .main-content {
    order: 2;
    flex: 1;
    min-height: calc(100vh - 400px);
  }
}

@media (max-width: 600px) {
  .container {
    height: auto;
    min-height: 100vh;
    overflow-y: auto;
  }

  .content {
    margin-top: 200px; /* Increased to account for taller mobile header */
    height: auto;
    min-height: calc(100vh - 200px);
    padding-top: 10px;
    flex-direction: column;
  }

  .main-content {
    min-height: calc(100vh - 260px);
    padding: 0;
    order: 2;
  }
}

/* =======================================
   Header & Navigation – Mobile First
   ======================================= */

.header,
.header-regular,
.header-demo {
  background-color: #1a1a1a;
  padding: 80px 20px 20px;
  height: auto;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  font-size: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-sizing: border-box;
}

.header-regular {
  padding-top: 60px;
}

.header-demo {
  padding-top: 60px;
}

.header-logo {
  width: 60%;
  height: auto;
}

.app-name {
  position: relative;
  left: auto;
  transform: none;
  font-weight: bold;
  height: 50%;
  width: 50%;
}

.left-header-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: #b7b6b6ba;
  margin-top: 10px;
}

.left-header-content p {
  font-size: 0.7em;
  line-height: 1.4;
  font-weight: 300;
  margin: 0;
}

.patreon-img {
  width: 80px;
  height: auto;
}

.patreon-button {
  background: none;
  border: none;
  cursor: pointer;
}

.instructions-text {
  position: relative;
  top: auto;
  left: auto;
  font-size: 0.6em;
  max-width: 90%;
  margin-top: 35px;
  color: #b7b6b6ba;
  text-align: center;
}

@media (min-width: 768px) {
  .header,
  .header-regular,
  .header-demo {
    flex-direction: row;
    justify-content: space-between;
    padding: 200px 30px 40px 30px;
    height: 200px;
    font-size: 24px;
    text-align: left;
  }

  .app-name {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    pointer-events: none;
  }

  .header-regular {
    padding-top: 0px;
    padding-bottom: 40px;
  }

  .header-demo {
    padding-top: 0px;
  }

  .header-text {
    flex-grow: 1;
    text-align: center;
  }

  .header-logo {
    width: 50%;
    height: auto;
    margin-bottom: 0;
  }

  .left-header-content {
    gap: 10px;
    flex-direction: column;
    align-items: flex-start;
    margin-left: 35px;
    padding-right: 10px;
    justify-content: center;
  }

  .instructions-text {
    position: absolute;
    top: 80px;
    left: 20%;
    right: 180px; /* Add right margin to avoid logout button */
    max-width: 300px;
    text-align: left;
    font-size: 0.5em;
    line-height: 1.2;
    font-weight: 300;
    letter-spacing: 0.5px;
    margin: 0;
    height: 100px;
  }
}

@media (max-width: 600px) {
  .header,
  .header-regular,
  .header-demo {
    padding: 10px 10px 20px;
    font-size: 14px;
    height: auto;
    min-height: 180px;
    position: fixed;
    gap: 8px;
  }

  .header-logo {
    width: 80%;
    order: 1;
  }

  .left-header-content {
    order: 2;
    margin-top: 5px;
    gap: 8px;
  }

  .left-header-content p {
    font-size: 0.65em;
    line-height: 1.3;
    margin: 0;
  }

  .instructions-text {
    font-size: 0.55em;
    margin: 8px 0;
    position: static;
    order: 3;
    line-height: 1.3;
    max-width: 95%;
  }

  .header-right {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
  }

  .blog-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.8em;
    padding: 5px 8px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
  }

  .blog-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    text-decoration: none;
  }

  .logout-button {
    font-size: 0.8em;
    padding: 5px 8px;
    order: 4;
  }
}

@media (min-width: 600px) and (max-width: 1023px) {
  .header,
  .header-regular,
  .header-demo {
    /* flex-direction: column; */
    /* align-items: center; */
    padding: 20px 20px 30px;
    font-size: 20px;
    height: auto;
    text-align: center;
  }

  .instructions-text {
    margin: 60px;
    font-size: 0.65em;
    text-align: center;
  }
}

/* .patreon-img {
  opacity: 100;
  width: 100px;
  height: 50px;
}

.patreon-button {
  background-color: transparent;
  border: none;
  cursor: pointer;
}

.patreon-button:hover {
  background-color: transparent;
  box-shadow: none;
} */

/* =======================================
   UI Elements – Sidebar & Sliders
   ======================================= */

.sidebar-container {
  position: relative;
  width: 0;
}

.left-bar {
  left: 0;
}

.right-bar {
  right: 0;
}

.toggle-button {
  position: fixed;
}

.sidebar {
  position: fixed;
  width: 250px;
  height: calc(100vh - 200px);
  top: 200px;
  transition: transform 0.3s ease;
  background-color: #1a1a1a;
  color: #fff;
  padding: 20px;
  box-sizing: border-box;
  border-radius: 8px;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 1000;
  transform: translateX(0);
  scroll-behavior: smooth;
}

.left-bar.closed {
  transform: translateX(-100%);
}

.right-bar.closed {
  transform: translateX(100%);
}

#left-sidebar-toggle-button,
#right-sidebar-toggle-button {
  position: fixed;
  width: 40px;
  height: 40px;
  cursor: pointer;
  background-color: #084b08;
  color: #fff;
  border: none;
  border-radius: 5px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1001;
}

#left-sidebar-toggle-button {
  top: 250px;
  left: 250px;
}

#left-sidebar-toggle-button::before,
#right-sidebar-toggle-button::before {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border-left: 3px solid white;
  border-top: 3px solid white;
  transition: transform 0.3s ease;
}

#left-sidebar-toggle-button::before {
  transform: rotate(135deg);
}

#right-sidebar-toggle-button::before {
  transform: rotate(-45deg) translate(3px, 2px);
}

#right-sidebar-toggle-button {
  top: 250px;
  right: 250px;
}

#left-sidebar-toggle-button.collapsed {
  left: 0px;
}

#right-sidebar-toggle-button.collapsed {
  right: 0px;
}

#left-sidebar-toggle-button.collapsed::before {
  transform: rotate(-45deg) translate(3px, 2px);
}

#right-sidebar-toggle-button.collapsed::before {
  transform: rotate(135deg);
}

.sidebar label {
  display: block;
  width: 100%;
  margin-bottom: 10px;
  text-align: left;
  color: #fff;
}

.sidebar select,
.sidebar input[type="range"],
.sidebar textarea {
  display: block;
  width: 100%;
  margin-bottom: 10px;
}

.sidebar button {
  color: #fff;
  width: 210px;
  padding: 10px 20px;
  margin-bottom: 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
  display: block;
  border: 2px solid rgb(52, 52, 52);
}

.sidebar select,
.sidebar textarea {
  padding: 10px;
  border-radius: 4px;
  background-color: #333;
  color: #fff;
  border: none;
}

.slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 5px;
  background: linear-gradient(to right, #16a34a 0%, #16a34a var(--progress, 50%), #333 var(--progress, 50%), #333 100%);
  outline: none;
  transition: background 0.3s;
  margin-bottom: 10px;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #1a1a1a;
  border: 2px solid #16a34a;
  cursor: pointer;
}

.slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #000;
  border: 3px solid #16a34a;
  cursor: pointer;
}

.advanced-engine-features {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #555;
}

.advanced-engine-features .slider-container {
  margin-bottom: 20px;
}

.slider-container label {
  font-size: 0.9rem;
  text-align: left;
  color: #fff;
  margin-top: 5px;
}

.slider-container {
  margin-bottom: 20px;
}

.counter-section {
  text-align: left;
  margin-bottom: 20px;
}

.counter-section label {
  font-size: 1.2rem;
  font-weight: bold;
  color: #fff;
}

.counter-section span {
  font-size: 2rem;
  font-weight: bold;
  color: #16a34a;
}

.left-sidebar,
.right-sidebar {
  position: fixed;
  top: 200px;
  height: calc(100vh - 200px);
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 999;
  scroll-behavior: smooth;
}

.left-sidebar {
  left: 0;
  width: 250px;
}

.right-sidebar {
  right: 0;
  width: 250px;
}

.sidebar::-webkit-scrollbar {
  width: 8px;
}

.sidebar::-webkit-scrollbar-track {
  background: #1a1a1a;
  border-radius: 4px;
}

.sidebar::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 4px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
  background: #444;
}

.collapsible-section {
  margin-bottom: 20px;
}

.collapsible-section button,
.collapsible-section button:hover {
  background-color: #084b08;
}

.collapsible-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
  max-height: none;
  overflow: visible;
}

.collapsible-content {
  border: 1px solid red;
  background: rgba(255, 0, 0, 0.1);
}

.themed-prompts-section {
  margin-bottom: 20px;
}

.themed-prompts-section button,
.themed-prompts-section button:hover {
  background-color: #1a1a1a;
}

.tooltip-wrapper {
  position: relative;
  display: inline-block;
  margin-left: 5px;
}

.tooltip-text {
  visibility: hidden;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: -35px;
  transform: none;
  background-color: #333;
  color: white;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 14px;
  max-width: 200px;
  width: max-content;
  word-wrap: break-word;
  opacity: 0;
  transition: opacity 0.3s;
}

.tooltip-wrapper:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

.tooltip-text::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 10px;
  margin-left: -15px;
  border-width: 5px;
  border-style: solid;
  border-color: #333 transparent transparent transparent;
}

.tooltip-icon {
  margin-right: 8px;
  cursor: help;
}

.loading-banner {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  width: 60vw;
  max-width: 400px;
  padding: 1rem;
  box-sizing: border-box;
  background-color: #121212;
  border: 1px solid #2e2e2e;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  color: #30d5c8;
  text-align: center;
  font-family: "Orbitron", sans-serif;
  letter-spacing: 1px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  transition: all 0.3s ease-in-out;
}

.loading-banner-text {
  animation: pulsate 1.5s infinite; 
  font-size: 1.2rem;
  font-weight: 600;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

/* Styles for the modal box */

.modal {
  background: #434343;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  padding: 20px;
  min-width: 300px;
  z-index: 1001;
  border: 1px solid Black;
}

/* Styles for the modal message */

.modal-message {
  color: #ffffff;
  font-size: 16px;
  margin-bottom: 20px;
  text-align: center;
  font-family: "Arial", sans-serif;
}

/* Styles for the action buttons */

.modal-actions {
  display: flex;
  justify-content: space-around;
  padding-top: 10px;
}

/* Button styling */

.modal-confirm,
.modal-close {
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  font-size: 14px;
  transition: background-color 0.3s ease;
}

.modal-confirm {
  background-color: #16a34a;
  color: white;
}

.modal-confirm:hover {
  background-color: #45a049;
}

.modal-close {
  background-color: #f44336;
  color: white;
}

.modal-close:hover {
  background-color: #d32f2f;
}

.modal {
  background-size: cover;
  color: black;
}

.modal-message {
  font-family: "Merriweather", serif;
}

.modal-confirm,
.modal-close {
  font-family: "Roboto", sans-serif;
}

/* =======================================
   Buttons
   ======================================= */

.button-container,
.form-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 8px;
  flex-direction: row;
}

button,
.form-button,
.submit,
.clear,
.logout-button,
.login-btn,
.delete-button {
  color: white;
  border: none;
  cursor: pointer;
  border-radius: 5px;
  padding: 10px 20px;
  transition: background-color 0.2s ease;
}

.form-button {
  background-color: #555;
  font-size: 16px;
  margin: 10px;
}

.form-button:hover {
  background-color: #777;
}

.submit {
  background-color: #27272a;
}

.submit:hover {
  background-color: #27272a;
}

.clear {
  background-color: #7f1d1d;
}

.clear:hover,
.delete-button,
.delete-button:hover {
  background-color: darkred;
}

#clear-errors-button {
  display: block;
  margin: 8px auto 0 auto;
  background-color: #f44336;
}

#clear-errors-button:hover {
  background-color: #d32f2f;
}

.logout-button {
  position: absolute;
  background-color: #1a1a1a;
  right: 5px;
  margin-right: 55px;
  width: 150px;
  z-index: 1001;
}

.logout-button:hover {
  background-color: #1a1a1a;
}

/* Desktop-specific logout button styles */

@media (min-width: 768px) {
  .logout-button {
    position: absolute;
    top: 30px;
    right: 40px;
    margin-right: 0;
    width: 120px;
    z-index: 1001;
  }
}

/* Tablet-specific logout button styles */

@media (min-width: 600px) and (max-width: 767px) {
  .logout-button {
    position: absolute;
    top: 15px;
    right: 20px;
    margin-right: 0;
    width: 100px;
    font-size: 0.9em;
    z-index: 1001;
  }
}

/* Mobile-specific logout button styles */

@media (max-width: 600px) {
  .logout-button {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 0.8em;
    padding: 5px 8px;
    width: auto;
    min-width: 70px;
    margin-right: 0;
    z-index: 1001;
  }
}

.login-btn {
  width: 100%;
  background-color: #16a34a;
  border-radius: 3px;
  padding: 10px 15px;
}

.login-btn:hover {
  background-color: #45a049;
}

.delete-button {
  margin-top: 10px;
  outline: none;
  box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
  align-self: center;
}

/* =======================================
   UI Elements – error message
   ======================================= */

.counter-section {
  margin-bottom: 20px;
}

.error-message,
.message-content {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin-bottom: 20px;
}

.message-content label {
  max-width: 30px;
}

.message-content span {
  width: 200px;
  flex-grow: 1;
}

.message-section {
  margin-bottom: 50px;
}

.error-highlight {
  color: red;
  text-shadow: 0 0 5px red;
}

.validation-error {
  position: absolute;
  bottom: -18px;
  left: 0;
  color: #ff6b6b;
  font-size: 12px;
}

.error-container {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60%;
  max-width: 350px;
  height: 200px;
  padding: 20px;
  background-color: #2a2a2a;
  color: white;
  border-radius: 8px;
  z-index: 9999;
  font-size: 16px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  border: 5px solid #f44336;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.error-container p {
  margin: 0;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.error-container button {
  margin-top: auto;
  padding: 10px 15px;
  background-color: #f44336;
  border: none;
  border-radius: 5px;
  color: white;
  cursor: pointer;
  transition: background-color 0.3s;
}

.error-container button:hover {
  background-color: #d32f2f;
}

/* .agreement-card,


.form-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-grow: 0;
}


.card-form-container {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  flex: 1;
  padding: 20px;
  box-sizing: border-box;
  min-height: 0;
  height: 100%;
}

#card-results {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 5px;
  margin: 0 -5px;
  overflow-y: auto;
  flex-grow: 1;
  padding-left: 250px;
  padding-right: 250px;
}

.card-box {
  display: flex;
  flex: 0 1 200px;
  flex-direction: column;
  align-items: center;
  margin: 15px 30px;
  max-width: 200px;
}

.card-name {
  font-size: 18px;
  font-weight: bold;
}

.card-image {
  max-width: 200px;
  margin-top: 10px;
}

.card-text {
  margin-top: 10px;
}

.card-rules {
  font-style: italic;
  margin-top: 10px;
}

.card-form-container {
  width: 100%;
}

.image-container img {
  transition: opacity 0.3s ease-in-out;
  will-change: opacity;
} */

/* =======================================
   UI Elements – Cards & Sections (Mobile First)
   ======================================= */

.agreement-card,
.card {
  width: 90%;
  max-width: 420px;
  height: auto;
  padding: 20px;
  background-color: #111112;
  border-radius: 5px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
  color: #fff;
  margin: 0 auto 20px;
}

.card {
  max-width: 320px;
  padding: 10px 20px;
}

.form-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  flex-shrink: 0;
}

.main-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.input-box {
  width: 95%;
  padding: 10px;
  margin: 10px 0 20px;
  background-color: #333;
  border: none;
  color: #fff;
  font-size: 16px;
  box-sizing: border-box;
  min-height: 60px;
}

.card-form-container {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  flex: 1;
  min-height: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  padding: 20px;
}

#card-results {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 0;
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1;
  min-height: 0;
}

.card-box {
  flex: 1 1 100%;
  max-width: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 10px auto;
}

.card-name {
  font-size: 18px;
  font-weight: bold;
  text-align: center;
}

.card-image {
  width: 100%;
  max-width: 200px;
  margin-top: 10px;
}

.card-text,
.card-rules {
  margin-top: 10px;
  text-align: center;
}

.card-rules {
  font-style: italic;
}

.image-container img {
  transition: opacity 0.3s ease-in-out;
  will-change: opacity;
}

/* Custom scrollbar for card results */

#card-results::-webkit-scrollbar {
  width: 12px;
}

#card-results::-webkit-scrollbar-track {
  background: #1a1a1a;
  border-radius: 6px;
}

#card-results::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 6px;
  border: 2px solid #1a1a1a;
}

#card-results::-webkit-scrollbar-thumb:hover {
  background: #444;
}

/* Smooth scroll behavior for card results */

#card-results {
  scroll-behavior: smooth;
  scroll-padding: 20px;
}

/* Mobile-specific adjustments */

@media (max-width: 600px) {
  .card-form-container {
    padding: 10px;
    height: auto;
    min-height: calc(100vh - 300px);
    padding-top: 20px; /* Add extra top padding for mobile */
  }

  .form-wrapper {
    margin-bottom: 20px;
    margin-top: 15px; /* Add top margin to push form down */
  }

  .input-box {
    width: 100%;
    margin: 25px 0 15px; 
    font-size: 16px;
    min-height: 80px;
  }

  #card-results {
    padding: 10px 0;
    gap: 15px;
    min-height: 200px;
  }

  .card-box {
    margin: 5px auto;
    max-width: 95%;
  }
}

@media (min-width: 768px) {
  .form-wrapper {
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
  }

  .main-form {
    width: 100%;
    max-width: 600px;
  }

  #card-results {
    justify-content: flex-start;
    gap: 15px;
    padding: 20px;
  }

  .card-box {
    flex: 0 1 200px;
    max-width: 200px;
    margin: 10px;
  }
}

@media (min-width: 1200px) {
  .main-form {
    width: 100%;
    max-width: 800px;
  }

  .input-box {
    width: 100%;
  }

  #card-results {
    gap: 20px;
    padding: 20px 40px;
  }

  .card-box {
    flex: 0 1 220px;
    max-width: 220px;
  }
}

/* =======================================
   Authentication & Login/Signup
   ======================================= */

.auth-container .card input[type="email"],
.auth-container .card input[type="password"],
.auth-container .card input[type="text"],
.auth-input,
.login-input,
.forgot-password-form-container input  {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 15px;
  margin-bottom: 10px;
  border: none;
  border-radius: 3px;
  color: #fff;
  outline: none;
}

.auth-container .card input[type],
.auth-input {
  background-color: #383e49;
}

.login-input {
  background-color: #151515;
}

.auth-header,
.login-header,
.forgot-password-form-container h2 {
  text-align: center;
  margin-bottom: 20px;
}

.auth-btn,
.resend-btn,
.forgot-password-form-container button {
  width: 100%;
  padding: 10px 15px;
  background-color: #16a34a;
  color: #fff;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.auth-btn:hover,
.resend-btn:hover,
.forgot-password-form-container button:hover {
  background-color: #45a049;
}

.resend-btn {
  width: 100px;
  margin-top: 30px;
}

.auth-error-message,
.login-error-message {
  color: #ff6b6b;
  text-align: left;
  margin-top: 15px;
}

.auth-error-message li {
  margin-top: 5px;
}

.login-error-message {
  text-align: center;
}

.validated-input-container {
  position: relative;
}

.login-container {
  width: 100%;
  padding: 20px 0;
  background-color: #111112;
  border-radius: 5px;
  box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.1);
  color: #fff;
}

.login-label {
  margin-bottom: 5px;
  text-align: left;
  height: auto;
}

.label-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.link {
  font-size: 14px;
  color: #3498db;
  text-decoration: none;
}

.link :hover {
  text-decoration: underline;
}

.register-link {
  color: #66666c;
}

.forgot-password-link {
  margin-top: 10px;
  text-align: center;
}

.forgot-password-link a {
  color: #007bff;
  text-decoration: none;
}

.forgot-password-link a:hover {
  text-decoration: underline;
}

.forgot-password-form-container {
  max-width: 400px;
  margin: 0 auto;
  padding: 20px;
  text-align: center;
}

.forgot-password-form-container h2 {
  margin-bottom: 20px;
}

.forgot-password-form-container input,
.forgot-password-form-container button {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
}

/* =======================================
   Requirements
   ======================================= */

.requirements-container {
  margin-top: 20px;
  padding: 10px 20px;
  background-color: #333;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  color: #fff;
}

.requirements-container h4,
.requirements-header {
  text-align: center;
  font-size: 18px;
  margin-bottom: 10px;
}

.requirements-container ul,
.requirements-list {
  list-style-type: none;
  padding-left: 0;
  padding: 0;
  margin: 0;
}

.requirements-container li,
.requirements-list li {
  color: #aaa;
  margin-bottom: 5px;
}

.pagination-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: auto;
  padding: 20px 0;
}

.pagination-controls button,
.pagination-controls span {
  margin: 0 10px;
  padding: 5px 10px;
  min-width: 75px;
  cursor: pointer;
}

.pagination-controls button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

/* =======================================
   Media Queries
   ======================================= */

/* @media (max-width: 770px) {

  #left-sidebar-toggle-button.collapsed {
    transform: none;
    left: 10px;
  }

  #right-sidebar-toggle-button.collapsed {
    transform: translate(100%, 0%);
    right: 90px;
  }

  #right-sidebar-toggle-button.collapsed::before,
  #right-sidebar-toggle-button.collapsed::after {
    transform: rotate(45deg);
  }

  .logout-button {
    position: absolute;
    top: 20px;
    max-width: 100px;
    margin-right: 0;
  }

  #card-results {
    justify-content: center;
    align-items: flex-start;
    padding-left: 0;
    padding-right: 0;
  }
} */

/* @media (max-width: 770px) {
  .left-header-content {
    position: absolute;
    top: 80px;
    bottom: 0;
  }

  .header {
    display: flex;
    flex-direction: column;
    padding: 20px 0;
    justify-content: space-around;
  }

  .left-header-content,
  .app-name,
  .logout-button {
    width: 100%;
    text-align: center;
    margin: 10px 0;
  }

  .left-header-content {
    order: 1;
  }

  .app-name {
    position: static;
    left: auto;
    transform: none;
    order: 0;
  }

  .logout-button {
    order: 2;
  }

  .hide-on-medium {
    display: none;
  }
}

@media (max-width: 600px) {
  .purchase-credits-text {
    display: none;
  }
  .header-regular {
    padding-top: 10px;
  }

  /* Ensure proper spacing for mobile header elements */

.app-name {
    margin-bottom: 8px;
    max-width: fit-content;
  }

.left-header-content {
    margin-top: 5px;
  }

.left-sidebar,
  .right-sidebar {
    position: static;
    width: 100%;
    height: auto;
    order: 1;
    margin-bottom: 10px;
  }

#left-sidebar-toggle-button,
  #right-sidebar-toggle-button {
    top: 130px;
  }

