/* submit-music.css */
@import url('/tailwind.css');
@import url('/app/global.css');

.custom-link {
    background-color: #000;
    color: #fff !important;
    padding: 4px 10px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    line-height: 1;
    
    /* Remove all browser default outlines and borders */
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

html, body {
    min-height: 100vh !important;
    width: 100% !important;
}

/* Prevent scrolling when modal is open */
body.modal-open {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
    height: 100% !important;
}

/* Create a pseudo-element for the background image to have better control */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("/assets/img/72454569_p0.jpg");
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position-x: -.625rem;
    background-position-y: 100%;
    background-size: 424px 600px;
    z-index: 0;
    pointer-events: none;
}

/* Hide the image visually but keep it for screen readers */
.submit-music-image-container {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.artSubmissionForm-blur {
    backdrop-filter: blur(0.25rem);
}

.policyCard {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    filter: drop-shadow(0 4px 3px rgba(0, 0, 0, 0.07)) drop-shadow(0 2px 2px rgba(0, 0, 0, 0.06));
    display: flex !important;
    align-items: center;
    justify-content: center;
    z-index: 9999 !important;
    /* padding-left: 13rem;
    padding-right: 13rem; */
    padding: 13rem;
    overflow-y: auto;
    overscroll-behavior: contain;
    align-items: baseline;
}

/* Hidden state for policy modal */
.policyCard.hidden {
    display: none !important;
}

.closePolicyFix {
    padding-right: 0.313rem;
}

.policyCardSpace {
   background-color: white;
   border-radius: 0.5rem;
   box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
   max-width: 65rem;
   width: 100%;
   max-height: 90vh;
   overflow: auto;
   position: relative;
   z-index: 10000;
}

/* Alternative: If you want to use a dark mode class instead */
.dark .policyCardSpace {
   background-color: rgb(24, 24, 27);
}

/* Prevent touch scrolling on mobile when modal is open */
.policyCard {
    touch-action: none;
}

.policyCardSpace {
    touch-action: auto;
}

.assistant-watching-you {
    font-family: var(--font-inter) !important;
    font-size: .75rem !important;
    font-weight: 600 !important;
    position: fixed;
    position: absolute;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(0.125rem);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    height: auto;
    width: max-content;
    max-width: 95%;
    border-radius: 1rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    padding-top: .5rem;
    padding-bottom: .5rem;
    color: white;
    white-space: pre-line;
    transition: all 450ms ease;
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
    z-index: 20;
}

/* Visible state - add this class to show the element */
.assistant-watching-you.visible {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.hey-assistent {
    font-family: var(--font-inter) !important;
    font-size: .75rem !important;
    font-weight: 600 !important;
    position: fixed;
    position: absolute;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(0.125rem);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    gap: 0.125rem;
    width: max-content;
    max-width: 95%;
    padding: 1rem;
    border-radius: 1rem;
    filter: drop-shadow(0 4px 3px rgba(0, 0, 0, 0.07)) drop-shadow(0 2px 2px rgba(0, 0, 0, 0.06));
    color: white;
    line-height: 1.25;
    transition: all 450ms ease;
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
    z-index: 20;
}

/* Visible state - add this class to show the element */
.hey-assistent.visible {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}














/* Making submit-art.php responsive on all devices */

/* Desktop | 1281px - 1440px  */
@media (max-width: 1280px) {
  /* None, coded on macbook m1 pro */
}

/* Medium Laptop/Desktop | 1515px - 1920px */
@media (max-width: 1515px) {
 /* None, coded on macbook m1 pro */
}

/* Small Laptop/Desktop | 1024px - 1280px */
@media (max-width: 1024px) {
  /* None, coded on macbook m1 pro */
}

/* Mobile Small Portrait (Normal) () | up to 480px */
/* S20+, iPhone 12, iPhone 13 */
@media (max-width: 480px) and (orientation: portrait) {
  body::before {
    background-size: 250px 354px;
    background-position: left bottom;
  }

  h1.font-bold.text-6xl.text-black {
    padding-top: 4rem !important;
  }

  .policy-choose {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  p.custom-link {
    font-size: .85rem;
    max-width: 90%;
    margin-top: 1rem;
  }

  .mb-10 {
    margin-bottom: 2rem;
  }

  #artSubmissionForm {
    max-width: 100%;
    padding: 1.5rem;
    margin: 2rem auto;
  }

  body::before {
    background-image: none;
  }

  #postAcceptanceCard {
    opacity: 0;
  }

  .policyCard {
    padding: 1rem;
    align-items: center;
    max-height: 100vh;
  }

  .text-xl {
    font-size: 1.15rem;
  }

  .policy-choose {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .policy-choose .flex.space-x-4 {
    justify-content: center;
    space-x: 0;
    gap: 0.75rem;
  }

  .policy-choose label {
    padding-left: .85rem;
  }

  .policy-choose .flex.space-x-4 button {
    flex: 1;
  }

  .policyCardSpace {
    max-width: 90vw;
    max-height: 80vh;
    overflow-x: clip;
  }
}

/* Mobile Small Landscape (Seitlich gehlaten) | up to 950px */
/* S20+, iPhone 14, iPhone 15 Pro in Landscape (Seitlich gehlaten) */
@media (max-width: 950px) and (orientation: landscape) {
  body::before {
    background-size: 200px 283px;
    background-position: left bottom;
  }

  .pt-10 {
    padding-top: 0rem !important;
  }

  p.custom-link {
    font-size: 0.9rem;
    margin-top: 0.5rem;
  }

  .mb-10 {
    margin-bottom: 1rem;
  }

  #artSubmissionForm {
    max-width: 80%;
    padding: 1rem;
    margin: 1rem auto;
  }

  body::before {
    background-image: none;
  }

  #postAcceptanceCard {
    opacity: 0;
  }

  .policyCard {
    padding: 0.5rem;
    padding-top: 1.5rem;
    max-height: 100vh;
  }

  .text-xl {
    font-size: 1.1rem;
  }

  .policy-choose {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }

  .policy-choose .flex.space-x-4 {
    justify-content: center;
    space-x: 0;
    gap: 0.5rem;
  }

  .policy-choose label {
    padding-left: 0.5rem;
  }

  .policy-choose .flex.space-x-4 button {
    flex: 1;
  }

  .policyCardSpace {
    max-width: 95vw;
    max-height: 85vh;
    overflow-x: clip;
  }

  .hey-assistent {
    top: 10% !important;
    left: 2% !important;
    font-size: 0.65rem !important;
    padding: 0.75rem;
  }

  .assistant-watching-you {
    top: 12% !important;
    right: 60% !important;
    font-size: 0.65rem !important;
    padding: 0.75rem;
  }
}

/* Mobile Large Portrait (Normal) | 481px - 600px */
/* iPhone 14 Pro Max, Pixel 7 Pro, larger phones */
@media (min-width: 481px) and (max-width: 600px) and (orientation: portrait) {
  body::before {
    background-size: 300px 425px;
    background-position: left bottom;
  }

  h1 {
    font-size: 3.5rem !important;
    padding-top: 2.5rem !important;
  }

  p.custom-link {
    font-size: 1.1rem;
    max-width: 85%;
    margin-top: 1.5rem;
  }

  .mb-10 {
    margin-bottom: 2.5rem;
  }

  #artSubmissionForm {
    max-width: 85%;
    padding: 2rem;
    margin: 3rem auto;
  }

  .policyCard {
    padding: 1.5rem;
  }

  .hey-assistent {
    top: 14% !important;
    left: 3% !important;
    right: 3% !important;
    max-width: 85%;
    font-size: 0.75rem !important;
  }

  .assistant-watching-you {
    top: 17% !important;
    right: 3% !important;
    left: 3% !important;
    max-width: 85%;
    font-size: 0.75rem !important;
  }
}

/* Tablet Portrait (Normal) | 601px - 1024px */
@media (min-width: 601px) and (max-width: 1024px) and (orientation: portrait) {
  body::before {
    background-image: none;
  }

  h1 {
    font-size: 4rem !important;
    padding-top: 3rem !important;
  }

  p.custom-link {
    font-size: 1.1rem;
    margin-top: 2rem;
  }

  .mb-10 {
    margin-bottom: 3rem;
  }

  #artSubmissionForm {
    max-width: 80%;
    padding: 2.5rem;
    margin: 4rem auto;
  }

  #postAcceptanceCard {
    opacity: 0;
  }

  .policyCard {
    padding: 2rem;
    padding-top: 23rem;
    max-height: 100vh;
  }

  .text-xl {
    font-size: 1.25rem;
  }

  .policy-choose {
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
  }

  .policy-choose .flex.space-x-4 {
    justify-content: center;
    space-x: 0;
    gap: 1rem;
  }

  .policy-choose label {
    padding-left: 1rem;
  }

  .policy-choose .flex.space-x-4 button {
    flex: 1;
  }

  .policyCardSpace {
    max-width: 85vw;
    max-height: 80vh;
    overflow-x: clip;
  }
}

/* Tablet Landscape (Seitlich gehlaten) | 951px - 1366px */
@media (min-width: 951px) and (max-width: 1366px) and (orientation: landscape) {
  body::before {
    background-size: 320px 453px;
    background-position: left bottom;
  }

  h1 {
    font-size: 4.5rem !important;
    padding-top: 2rem !important;
  }

  p.custom-link {
    font-size: 1.1rem;
    margin-top: 1.5rem;
  }

  .mb-10 {
    margin-bottom: 2rem;
  }

  #artSubmissionForm {
    max-width: 60%;
    padding: 2rem;
    margin: 3rem auto;
  }

  #postAcceptanceCard {
    opacity: 1;
  }

  .artSubmissionForm-blur {
    backdrop-filter: none;
  }

  .policyCard {
    padding: 2rem 8rem;
    padding-top: 13rem;
    max-height: 100vh;
  }

  .text-xl {
    font-size: 1.3rem;
  }

  .policy-choose {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .policy-choose .flex.space-x-4 {
    justify-content: center;
    space-x: 0;
    gap: 1rem;
  }

  .policy-choose label {
    padding-left: 0.75rem;
  }

  .policy-choose .flex.space-x-4 button {
    flex: 1;
  }

  .policyCardSpace {
    max-width: 90vw;
    max-height: 75vh;
    overflow-x: clip;
  }

  .hey-assistent {
    top: 16% !important;
    left: 2.5% !important;
    font-size: 0.75rem !important;
  }

  .assistant-watching-you {
    top: 14.5% !important;
    right: 63.5% !important;
    font-size: 0.75rem !important;
  }
}