/* AI Generated Code */
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: auto;
    background-color: #2b2b2b;
	background-image: url('/assets/bgtexture.png');
}


.image-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.image-container img {
    display: block;
    max-width: 98%;
}
.image-container img:first-child {
    position: relative;
    z-index: 1;
}
.image-container img:last-child {
    position: absolute;
    z-index: 2;
    /* -webkit-mask-image: url(<?php echo $random_mask; ?>);
    mask-image: url(<?php echo $random_mask; ?>); */
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    mask-position: center;
    -webkit-mask-position: center; /* For Safari */
    mask-size: contain;
    -webkit-mask-size: contain;/* For Safari */
}

.hide-me {
    display: none !important;
}

.preview-art {
    min-height: 100%;
    aspect-ratio: 1 /1;
    position: absolute;
    top: 0;
    left: 0;
    background-color: #AEAEAE;
    z-index: 1;
    overflow: hidden;
    max-height: 100%;
    margin-left: 0;
    margin-top: 0;
    border: 4px solid #DEDEDE;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-art img {
    position: absolute;
    max-height: 150%;
    top: -30%;
    left: -10%;
}

.preview-mask {
    min-height: 100%;
    aspect-ratio: 1 /1;
    position: absolute;
    top: 0;
    right: 0;
    background-color: #AEAEAE;
    z-index: 1;
    margin-right: 0;
    margin-top: 0;
    border: 4px solid #DEDEDE;
    border-radius: 5px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.share {
    min-height: 5%;
    min-width: 20%;
    position: absolute;
    top: 0;
    right: 0;
    background-color: #AEAEAE;
    z-index: 9999;
    overflow: hidden;
}

.logo {
    min-width: 7%;
    aspect-ratio: 1 / 1;
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 9999;
    overflow: hidden;
    margin-left: 1.125em;
    margin-bottom: 1.125em;
}

.xlogo {
    min-height: 5%;
    max-width: 10%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 9999;
    right: 0;
    margin: 0 auto;
    overflow: hidden;
    margin-top: 1em;
}

.music {
    min-height: 5%;
    max-width: 20%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 9999;
    right: 0;
    margin: 0 auto;
    overflow: hidden;
}

.controls {
    min-height: 5%;
    max-width: 50%;
    position: absolute;
    top: 0.5rem;
    left: 0;
    z-index: 9999;
    right: 0;
    margin: 0 auto;
    text-align: center;
    color: #F6F6F6;
    font-family: monospace,sans-serif;
    font-size: 14px;
    text-shadow: 1px 1px #2E2E2E;
}

.info {
    min-width: 3%;
    aspect-ratio: 1 / 1;
    position: absolute;
    bottom: 5rem;
    right: 0.45rem;
    left: auto;
    z-index: 9999;
    overflow: hidden;
    /* padding-right: 1.125em;
    padding-bottom: 1.125em; */
}

.save-me {
    min-width: 3%;
    aspect-ratio: 1 / 1;
    position: absolute;
    bottom: 5rem;
    left: 0;
    z-index: 9999;
    overflow: hidden;
    /* padding-right: 1.125em;
    padding-bottom: 1.125em; */
}

.remash {
    min-width: 3%;
    aspect-ratio: 1 / 1;
    position: absolute;
    bottom: 5rem;
    left: auto;
    right: 4.45em;
    z-index: 9999;
    overflow: hidden;
    /* padding-right: 1.125em;
    padding-bottom: 1.125em; */
}

.save-me {
    min-width: 3%;
    aspect-ratio: 1 / 1;
    position: absolute;
    bottom: 5rem;
    right: auto;
    left: 0.45em;
    z-index: 9999;
    overflow: hidden;
    /* padding-right: 1.125em;
    padding-bottom: 1.125em; */
}

.splash {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #2B2B2B;
    color: #F6F6F6;
    font-family: sans-serif;
    text-align: center;
    z-index: 9999;
}

.splash__title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.splash__text {
    font-size: 1rem;
    max-width: 535px;
}

.Xnext {
    max-height: 25%;
    min-width: 5%;
    position: absolute;
    top: 0;
    right: 0;
    z-index: 9999;
    bottom: 0;
    margin: auto 0;
}

.next {
    min-width: 3%;
    aspect-ratio: 1 / 1;
    position: absolute;
    bottom: 0;
    right: 0;
    z-index: 9999;
    overflow: hidden;
    padding-right: 1.125em;
    padding-bottom: 1.125em;
}

@keyframes rotate {
    from {transform: rotate(0deg)}
    to {transform: rotate(360deg)}
}

@keyframes rotate-anti {
    from {transform: rotate(50deg)}
    to {transform: rotate(-310deg)}
}

.refresh-start {
    animation-name: rotate;
    animation-duration: 10s;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
    animation-play-state: running;
}

.timer-start {
    animation-name: rotate-anti;
    animation-duration: 7s;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
    animation-play-state: running;
}

.filename {
    z-index: 9999;
    position: absolute;
    margin: 0.25em;
    font-family: monospace, sans-serif;
    color: #F6F6F6;
    font-size: 1.25rem;
    background-color: #0B0B0B;
    -webkit-background-clip: text;
    -moz-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: rgba(245,245,245,0.5) 1px 2px 1px;
}

.image-container img:last-child.active {
    -webkit-mask-composite: destination-out;
    mask-composite: destination-out;
}

.toggle-switch {
    display: inline-block;
    position: relative;
    width: 60px;
    height: 34px;
    margin: 10px;
}
.toggle-switch input[type="checkbox"] {
    display: none;
}
.toggle-switch label {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 34px;
    background-color: #AEAEAE;
    cursor: pointer;
    transition: all 0.3s ease;
}
.toggle-switch label:before {
    content: "";
    display: block;
    position: absolute;
    top: 2px;
    left: 2px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}
.toggle-switch input[type="checkbox"]:checked + label {
    background-color: #CC2727;
}
.toggle-switch input[type="checkbox"]:checked + label:before {
    transform: translateX(26px);
}

.menu {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: transparent;
  border-top: 1px solid transparent;
  padding: 10px;
  position: fixed;
  bottom: 0;
  left: auto;
  right: 0;
  z-index: 9999;
}

.menu .cta-buttons {
  left: 0 !important;
  right: auto;
}

.menu__button-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.menu__button {
  background-color: transparent;
  border: none;
  cursor: pointer;
  margin: 0 5px;
  padding: 5px;
  font-size: 1.8rem;
  font-weight: bold;
  color: #fff;
  text-transform: uppercase;
  flex: 1;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}
.menu__button:hover {
  background-color: transparent;
  /* border-radius: 5px;
  border: 1px solid #F6F6F6; */
}

.menu__button:hover ~ .fas {
	color: #CC2727;
	transition: 0.7s;
}

.home-show {
    display: none; 
}

.mobile-only {
    display: none !important; 
}

.quote-container {
    /* position: absolute;
    top: 10%;
    left: 10%;
    right: 10%;
    bottom: 10%; */
    display: flex;
    align-items: center;
    text-align: center;
    justify-content: center;
    flex-wrap: wrap;
    font-size: 4rem;
    line-height: 1.2;
    letter-spacing: 0.0125em;
    word-spacing: 0.2em;
    text-transform: uppercase;
    background-image: url(<?php echo $selected_images[0]; ?>);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 900;
    -webkit-text-stroke-width: 1px;
    -webkit-text-stroke-color: #F6F6F6;
    word-break: break-word;
	z-index: 99;
}
.title-container {
    position: relative;
	width: 100%;
    bottom: 10%;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 2vw;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background-image: url(<?php echo $files; ?>);
    background-clip: text;
    -webkit-background-clip: text;
    font-weight: 700;
    background-clip: text;
    -webkit-background-clip: text;
    color: #AEAEAE;
    background-image: url(<?php echo $files; ?>);
}

/* Updated styles for input form */
#title-input {
    width: 96%;
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.5vw;
    padding: 5px;
    box-sizing: border-box;
}

.title-holder {
    /* position: absolute; */
    bottom: 1vh;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 2vw;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background-image: url(<?php echo $files; ?>);
    background-clip: text;
    -webkit-background-clip: text;
    font-weight: 700;
    background-clip: text;
    -webkit-background-clip: text;
    color: #AEAEAE;
    background-image: url(<?php echo $files; ?>);
	margin-left: auto;
	margin-right: auto;
}

#version-list {
    max-width: 90%;
    z-index: 99;
    line-height: 2rem;
}

.display-none {
  display: none;
}

.display-block {
  display: block;
}


/* Media Queries */
@media screen and (max-width: 600px) {
  .menu__button {
    font-size: 0;
    margin: 5px;
    padding: 4px;
    border-radius: 50%;
	margin-left: 0;
  }
  .menu__button i {
    font-size: 24px;
  }

    .fa .fas {
        font-size: 1.8rem;
    }

    .links {
        min-height: 5%;
        max-width: 90%;
        position: absolute;
        top: 2rem;
        left: 0;
        z-index: 9999;
        right: 0;
        margin: 0 auto;
        text-align: center;
        color: #F6F6F6;
        font-family: monospace,sans-serif;
        font-size: 14px;
    }
    /* unvisited link
    a:link {
      color: #CC2727;
    } */

    /* visited link
    a:visited {
      color: #AEAEAE;
    } */

    /* mouse over link
    a:hover {
      color: #F6F6F6;
    } */

    /* selected link
    a:active {
      color: yellow;
    } */

    .mobile-only {
        display: block !important; 
    }
    
    .menu {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 10px;
      position: fixed;
      bottom: 0;
      left: 0;
      right: 0;
      z-index: 9999;
    }
    
    .remash {
        right: auto !important;
        left: 1.55rem !important;
    }
    
    .info {
        left: auto !important;
        right: 1.35rem !important;
    }
    
    #version-list {
        max-width: 90%;
        z-index: 99;
        line-height: 1.25rem;
    }
    
    .quote-container {
        font-size: 4rem;
    }
}

@media screen and (max-width: 767px) { /* Mobile */
    .links {
        bottom: 6rem !important;
        top: auto !important;
    }
    
    .mobile-only {
        display: block !important; 
    }
    
    .menu {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 10px;
      position: fixed;
      bottom: 0;
      left: 0;
      right: 0;
      z-index: 9999;
    }
    
    .remash {
        right: auto !important;
        left: 1.55rem !important;
    }
    
    .info {
        left: auto !important;
        right: 1.35rem !important;
    }
    
    #version-list {
        max-width: 90%;
        z-index: 99;
        line-height: 1.25rem;
    }
    
    .quote-container {
        font-size: 4rem;
    }
}

@media screen and (max-width: 1199px) { /* CUSTOM - QUOTE */
    .title-container {
        top: 0;
        bottom: auto;
        left: auto;
        right: 0;
        min-height: 12%;
        aspect-ratio: 1 /1;
        position: absolute;
        top: 0;
        right: 0;
        background-color: #AEAEAE;
        z-index: 9999;
        overflow: hidden;
        max-height: 100%;
        margin-right: 0.75em;
        margin-top: 0.75em;
        border: 4px solid #DEDEDE;
        border-radius: 5px;
    }
    
    #title-input {
        width: 100%;
        max-width: 139px;
        margin: 0;
        font-size: 0.85em;
        padding: 0px;
        box-sizing: border-box;
    }
    
    .hide-mobile {
        display: none !important; 
    }
}