/* This is the redesigned stylesheet for your age verification prompt.
  It uses CSS variables from your main stylesheet to create a consistent look.
  The design is now responsive, with a side-by-side layout on desktop and a stacked layout on mobile.
*/

/* Import the 'Satoshi' font if it's not globally available */
@import url('https://api.fontshare.com/v2/css?f[]=satoshi@300,400,500,700,900&display=swap');

:root {
  /* Fallback variables in case the main CSS isn't loaded */
  --body-background-color: rgba(29, 27, 86, 1);
  --grid-module-background-after: rgba(55, 52, 127, 0.8);
  --grid-module-border-color: rgba(255, 255, 255, 0.2);
  --grid-module-border-radius: 12px;
  --base-font-family: "Satoshi", sans-serif;
  --base-font-color: #fff;
  --alt-font-color: #9CA3AF;
  --alt-border-radius: 8px;
  --gradient-background-three: linear-gradient(to bottom right, #59a6f8, #2d649f);
  --button-color-two: rgba(130, 130, 130, 0.25);
  --alt-border-color: rgba(126, 126, 126, .3);
}

#age-verify {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(29, 27, 86, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: opacity 500ms ease, visibility 500ms ease;
  z-index: 9999999999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  visibility: visible;
}

#age-verify.hidden {
  opacity: 0;
  visibility: hidden;
}

#age-verify.hidden .window {
  transform: scale(0.9);
}

#age-verify .window {
  width: 800px;
  height: 500px;
  display: flex;
  flex-direction: row;
  background-color: var(--grid-module-background-after, rgba(55, 52, 127, 0.8));
  border: 1px solid var(--grid-module-border-color, rgba(255, 255, 255, 0.2));
  border-radius: var(--grid-module-border-radius, 12px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  transition: transform 500ms ease;
  transform: scale(1);
}

#age-verify .window .av-image {
  width: 45%;
  height: 100%;
}

#age-verify .window .av-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

#age-verify .window .av-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px;
  position: relative;
  font-family: var(--base-font-family, "Satoshi", sans-serif);
}

.av-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

#age-verify .window .av-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--base-font-color, #fff);
  margin-bottom: 16px;
}

#age-verify .window .av-text {
  font-size: 16px;
  line-height: 1.6;
  color: var(--alt-font-color, #9CA3AF);
  max-width: 320px;
  margin-bottom: 32px;
}

#age-verify .window .av-buttons {
  display: flex;
  gap: 16px;
}

#age-verify .window .av-buttons button {
  width: 150px;
  height: 50px;
  border: none;
  border-radius: var(--alt-border-radius, 8px);
  font-size: 18px;
  font-weight: 600;
  color: var(--base-font-color, #fff);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  font-family: inherit;
}

#age-verify .window .av-buttons button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

#age-verify .window .av-buttons button.yes {
  background: var(--gradient-background-three, linear-gradient(to right, #59a6f8, #2d649f));
}

#age-verify .window .av-buttons button.no {
  background-color: var(--button-color-two, rgba(130, 130, 130, 0.25));
  border: 1px solid var(--alt-border-color, rgba(126, 126, 126, .3));
}

#age-verify .window .bottom {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 15px;
  color: var(--alt-font-color, #9CA3AF);
}

#age-verify .window .bottom a {
  color: #59a6f8;
  text-decoration: none;
  font-size: 15px;
}
#age-verify .window .bottom a:hover {
  text-decoration: underline;
}

#age-verify .window .underBox {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--body-background-color, rgba(29,27,86,1));
  padding: 40px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transform: translateY(100%);
  transition: transform 500ms ease-in-out;
}

#age-verify.under .window .underBox {
  transform: translateY(0);
}

.underBox .title {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}

.underBox .text {
  color: var(--alt-font-color, #9CA3AF);
  line-height: 1.6;
  margin-bottom: 32px;
}

.underBox button.back {
  width: 150px;
  height: 50px;
  border: 1px solid var(--grid-module-border-color, rgba(255, 255, 255, 0.2));
  border-radius: var(--alt-border-radius, 8px);
  background-color: transparent;
  font-size: 18px;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
  font-family: inherit;
}

.underBox button.back:hover {
  background-color: var(--button-color-two, rgba(130, 130, 130, 0.25));
}


@media screen and (max-width: 820px) {
  #age-verify .window {
    flex-direction: column;
    width: 90vw;
    max-width: 400px;
    height: auto;
    max-height: 90vh;
  }
  
  #age-verify .window .av-image {
    width: 100%;
    height: 250px; /* Adjust as needed */
  }

  #age-verify .window .av-section {
    width: 100%;
    padding: 30px 20px;
    min-height: 300px;
  }
  
  #age-verify .window .av-title {
    font-size: 28px;
  }
}
