/* feature toggle - needs testing in live */
#display-message, .row.message {
/*  display: none !important;*/
}

/*
@font-face {
  font-family: 'TT Firs Neue Trl';
  font-style: normal;
  font-weight: 400;
  src: local('TT Firs Neue Trl'), url('/fonts/ttfirsneue.ttf') format('truetype');
}
*/

.sgw {
  font-family: "Space Grotesk", sans-serif;
  font-optical-sizing: auto;
  font-weight: <weight>;
  font-style: normal;
}


html {
  height: 100%;
}

body {
  margin: 0;
  padding: 0;
/*
  width: 100%;
  height: 100%;
*/
  background-color: #000;
  color: white;
  font-size: 1.5em;
  font-family: 'TT Firs Neue Trl', sans-serif;
  
  margin: 0;
  background-color: black;
/*  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;*/
}

 .wrapper {
  border: 1px solid #9200c7;
  border-radius: 20px;
/*  box-shadow: 0 0 5px hotpink, 0 0 15px pink, 0 0 20px pink;*/
  box-shadow: 0 0 5px #d62e8a, 0 0 15px #ef9eca, 0 0 20px #ef9eca;
  padding: 20px;
  margin: 20px;
 overflow: hidden;
}

#main {
/*
  max-width: 70vw;
  min-height: 400px;
*/
/*  margin: 5vh auto;*/
  margin: 0 auto;
/*  text-align: center;*/
  display: flex;
  flex-wrap: wrap;
  background-color: white;
  gap: 1px;
}
.col1, .col2 {
  background: black;
  flex-basis: 0;
  flex-grow: 1;

}
.col1 {
/*  float: left;*/
/*  width: 45%;*/
}
.col2 {
/*  float: right;*/
/*  width: 45%;*/
}




p.welcome {
  max-width: 450px;
  margin-top: 5px;
  margin-bottom: 10px;
  font-size: 0.8em;
  text-align: center;
}

#instructions2 {
  max-width: 500px;
  margin: 3em auto 0 auto;
}
.airpods-image {
  display: flex;
  margin-top: 3em;
}
.col1 {
  flex: 1;
}
.col2 {
  flex: 1;
  text-align: left;
  padding-left: 1em;
}
.airpods-image img {
  max-width: 100%;
  width:100px;
  margin: 0 auto;
  display: inline-block;
  
}

#desktop {
/*  display: none;*/
}

/*@media (min-width: 768px) {*/
/*
  #desktop {
    font-size: 0.7em;
    display: block;
    color: black;
    width: 240px;
    overflow: hidden;
    text-align: center;
    background: white;
    border-radius: 10px;
    padding: 0 10px;
    z-index:9999;
    margin: 0 auto 0 auto;
  }
  #desktop p {
    margin: 10px 0 5px 0;
    font-size: 0.9em;
  }
  #desktop a {
    color: navy;
  }
  
  #desktop:active {
  cursor: grabbing;
}

  #desktop img {
    max-width: 100%;
    max-height: 150px;
  }
*/
/*}*/

.logo {
  max-width: 100%;
  width: 170px;
  display: block;
  margin: 20px 0;
}



/* Text styles 
-------------------------------------------- */

h1 {
  font-size: 1.1em;
  max-width: 550px;
  font-weight: normal;
  margin: 20px 0 0 0;
}

#instructions2 {
  font-size: 0.7em;
}
.click-above {
  
}
.headphones {
  margin-top: 0;
}
.permissions {
  font-size: 12px;
  color: rgb(170,170,170);
  margin-top: 1em;
}

 .tfi {
   -webkit-animation: text-focus-in 0.5s cubic-bezier(0.550, 0.085, 0.680, 0.530) both;
           animation: text-focus-in 0.5s cubic-bezier(0.550, 0.085, 0.680, 0.530) both;   
 }
 .tfi1 {
   -webkit-animation: text-focus-in 1s cubic-bezier(0.550, 0.085, 0.680, 0.530) both;
           animation: text-focus-in 1s cubic-bezier(0.550, 0.085, 0.680, 0.530) both;   
 }
.tfi2 {
   -webkit-animation: text-focus-in 2.6s cubic-bezier(0.550, 0.085, 0.680, 0.530) both;
           animation: text-focus-in 2.6s cubic-bezier(0.550, 0.085, 0.680, 0.530) both;   
 }
.tfi3 {
   -webkit-animation: text-focus-in 1.4s cubic-bezier(0.550, 0.085, 0.680, 0.530) both;
           animation: text-focus-in 1.4s cubic-bezier(0.550, 0.085, 0.680, 0.530) both;   
 }


/* Buttons
-------------------------------------------- */
#psilocybin,
#mdma,
#lsd,
#ayuhasca {
  background-color: unset;
  border-width: 0;
}
#psilocybin img,
#mdma img,
#lsd img,
#ayuhasca img {
  max-width: 200px;
  width:100px;
}


/* HR
--------------------------- */
.elegant-hr {
  border: none;
  height: 1px;
  background-color: black;
  position: relative;
  margin: 20px 0;
  width: 100%;
}



 /* ----------------------------------------------
  * Generated by Animista on 2024-1-24 17:11:39
  * Licensed under FreeBSD License.
  * See http://animista.net/license for more info. 
  * w: http://animista.net, t: @cssanimista
  * ---------------------------------------------- */
 
 /**
  * ----------------------------------------
  * animation text-focus-in
  * ----------------------------------------
  */
 @-webkit-keyframes text-focus-in {
   0% {
     -webkit-filter: blur(12px);
             filter: blur(12px);
     opacity: 0;
   }
   100% {
     -webkit-filter: blur(0px);
             filter: blur(0px);
     opacity: 1;
   }
 }
 @keyframes text-focus-in {
   0% {
     -webkit-filter: blur(12px);
             filter: blur(12px);
     opacity: 0;
   }
   100% {
     -webkit-filter: blur(0px);
             filter: blur(0px);
     opacity: 1;
   }
 }


/* Image generation
-------------------------------------------- */



.row {
  flex: 1;
  display: flex;
  flex-direction: row;
  align-items: center; 
  justify-content: center;
  padding: 10px 0 0 0;
}

.rowlabel {
  flex: 1;
  font-size: 0.8em;
  padding: 0 2em 0 0;
  text-align: right;
}
.rowform {
  flex: 3;
}

.col1 .row {
  margin: 0 auto;
  max-width: 600px;
}

#fetch-image-btn {
  margin: 40px 0 20px 0;
  display: inline-block;
  padding: 15px 30px;
  font-size: 0.9em;
/*  font-weight: bold;*/
  color: #fff; 
/*  background: linear-gradient(145deg, #ef9eca, #d62e8a); */
  background: linear-gradient(145deg, #83368c, #d62e8a); 
  border: none;
  border-radius: 12px; 
  box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.3), 4px 4px 8px rgba(201, 100, 178, 0.71); 
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  font-family: 'TT Firs Neue Trl', sans-serif;
}



#fetch-image-btn:active {
  background: linear-gradient(145deg, #edbdc5, #f8a2e8); 
  box-shadow: inset 4px 4px 6px rgba(0, 0, 0, 0.4), inset -4px -4px 6px rgba(255, 255, 255, 0.4);
  transform: translateY(2px); 
}



#image-display {
/*  border-radius: 50%;*/
/*  overflow: hidden;*/
  margin: 20px 0 24px 0;
  border: 2px solid white;
  background: #ddd;
  max-width: 100%;
  min-width: 350px;
  border-radius: 10px;
}

/* Loading for images 
-------------------------------------------- */
#loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  visibility: hidden;
  z-index: 999;
}
.spinner {
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top: 4px solid #fff;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}


/* Mockup & radios
-------------------------------------------- */
.mockup img {
  max-height: 250px;
  display: none;
}

.radio-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1rem;
}

.radio-label {
  cursor: pointer;
}

.radio-label input[type="radio"] {
  display: none;
}

.radio-label span {
  display: inline-block;
  padding: 10px 20px;
  background-color: #f0f0f0;
  border-radius: 10px;
  box-shadow: 5px 5px 10px #ccc, -5px -5px 10px #ffffff;
  transition: all 0.3s ease;
}

.radio-label:hover span {
  box-shadow: inset 5px 5px 10px #ccc, inset -5px -5px 10px #ffffff;
}

.radio-label input[type="radio"]:checked + span {
  background-color: hotpink;
  color: white;
  box-shadow: inset 5px 5px 10px rgba(0, 0, 0, 0.2), inset -5px -5px 10px rgba(255, 255, 255, 0.5);
}


/* Footer
---------------------------------------- */
#footer {
  background: white;
  color: black;
  padding: 20px;
  font-size: 0.7em;
  min-height: 100px;
  margin-top: 4em;
}
.footer {
  padding: 20px 0; 
}

.footer-intro-container {
  max-width: 80vw;
  margin: 0 auto 40px auto;
  text-align: center;
  display: flex;
}
.footer-intro {
  flex: 1;
}
.footer-container {
  display: flex;
  justify-content: space-between;
  max-width: 80vw;
  margin: 0 auto;
  gap: 20px; 
}
.footer img {
  max-width: 200px;
  max-height:25px;
}
.footer .footer-column:nth-of-type(2) img {
  max-height: 40px;
}
#footer a {
/*  text-decoration: none;*/
  color: navy;
}

.footer-column {
  flex: 1; 
  min-width: 200px; 
  min-height: 100px; 
}


/* WIDGETS
---------------------------------------- */
.widgets {
  flex-direction: column;
}
.color-picker {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-bottom: 20px;
  margin-top: 20px;
}

.color-circle {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.2s;
}

.color-circle:hover {
  transform: scale(1.1);
}

.color-circle[data-color="white"] { background-color: white; }
.color-circle[data-color="burgundy"] { background-color: red; }
.color-circle[data-color="orange"] { background-color: orange; }
.color-circle[data-color="yellow"] { background-color: yellow; }
.color-circle[data-color="green"] { background-color: green; }
.color-circle[data-color="blue"] { background-color: blue; }
.color-circle[data-color="indigo"] { background-color: indigo; }
.color-circle[data-color="violet"] { background-color: violet; }
.color-circle[data-color="black"] { background-color: black; }

.color-circle.active {
  border: 2px solid white;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
  transform: scale(1.25);
}


.sliders label, .horizontal-slider label {
/*
  display: flex;
  flex-direction: column;
  align-items: center;
*/
  margin: 10px;
}
.sliders.vertical label {
  display: block;
  width: 100%;
/*
  position: absolute;
  top: 47%;
*/
  font-size: 0.8em;
}
.sliders.vertical label input {
/*  margin-top: 150px;*/
}
.sliders.vertical .left {
/*
  left: 20%;
  width: 50px;
*/
}
.sliders.vertical .right {
/*
  right: 20%;
  width: 50px;
*/
}
.vertical-slider {
/*  transform: rotate(-90deg) translateY(-50%);*/
  width: 75%;
}
.intensity {
}
.luminosity {
}
.horizontal-slider input {
  width: 200px;
}

.emoji-toggles {
  display: flex;
  flex-wrap: wrap; 
  gap: 10px; 
  justify-content: center; 
  margin-top: 20px;
  max-width: 500px; 
  margin-left: auto; 
  margin-right: auto;
}

.emoji-toggle {
  font-size: 41px; /* 2em  */
  cursor: pointer;
  width: 50px; 
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid transparent; 
  border-radius: 50%; 
  transition: transform 0.2s, border-color 0.2s;
}

.emoji-toggle:hover {
  transform: scale(1.2); 
}

.emoji-toggle.active {
  background: hotpink;
}




/* Rotate loading effect 
---------------------------------------- */
@keyframes rotateImg {
  0% {
    transform: rotateY(0deg);
  }
  100% {
    transform: rotateY(360deg);
  }
}

#image-display.rotating {
  animation: rotateImg 4s linear infinite;
}


/* Sharing 
---------------------------------------- */
.share-container {
  margin-top: 0;
  margin-bottom: 30px;
  text-align: left;
  gap: 10px;
  flex-wrap: wrap;
}
.share-header {
  text-align: center;
  margin-top: 35px;
  margin-bottom: 10px;
}

.share-container p {
  margin-bottom: 10px;
  font-weight: bold;
}

.share-container button,
.share-container a.share-button, 
#save-message {
/*  background-color: #fff;*/
  color: #000;
  border: 1px solid #000;
  border-radius: 5px;
  padding: 6px 12px;
  margin-right: 8px;
  text-decoration: none;
  font-size: 17px;
  cursor: pointer;
  transition: background-color 0.2s;
  background: linear-gradient(145deg, #83368c, #d62e8a); 
  color: white;
/*  font-weight: bold;*/
  box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.3), 4px 4px 8px rgba(201, 100, 178, 0.71); 
}
#save-message {
  box-shadow: none;
  margin: 15px auto 0 auto;
  display: block;
  width: 6em;
  text-align: center;
}

.share-container button:hover,
.share-container a.share-button:hover {
  background-color: #f0f0f0;
}


.share-header,
.share-container {
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  visibility: hidden; /* Ensures it doesn't take space when hidden */
}

.share-header.show,
.share-container.show {
  opacity: 1;
  visibility: visible;
}


/* Modal 
---------------------------------------- */

.hidden {
  display: none !important;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  font-size: 0.9em;
}
.modal h2 {
  font-size: 1.3em;
  font-weight: normal;
}

.modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 500px;
  width: 50%;
  background: white;
  color: black;
  padding: 20px 40px 60px 40px;
  border-radius: 5px;
  text-align: center;
}

.close-button {
  position: absolute;
  right: 10px;
  cursor: pointer;
  top: 0px;
  font-size: 40px;
}

.modal input[type=email],
.modal button {
  border-radius: 5px;
  padding: 5px 20px;
  font-size: 1em;
  margin-top: 20px;
  border-color: #d62e8a;
}
.modal input[type=email] {
/*  background: #ffbde1;*/
  background: #ffe9f5;
}


#email-status {
  margin-top: 10px;
  color: green;
}

#email-status.error {
  color: red;
}

#submitEmail {
/*  background-color: #fff;*/
  color: #000;
  border: 1px solid #000;
  border-radius: 5px;
  padding: 6px 12px;
  margin-right: 8px;
  text-decoration: none;
/*  font-size: 20px;*/
  cursor: pointer;
  transition: background-color 0.2s;
  background: linear-gradient(145deg, #83368c, #d62e8a); 
  color: white;
/*  font-weight: bold;*/
/*  box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.3), 4px 4px 8px rgba(201, 100, 178, 0.71); */


}


/* Share message */
.row.message {
  display: block;
  padding: 0;
}
.message {
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.5s ease-in-out;

}
.message.show {
  opacity: 1;
  visibility: visible;
}
.message label {
  margin: 0 auto;
  display: block;
  font-size: 0.8em;
  max-width: 500px;
  text-align: center;
}
.message textarea {
  display: block;
  width: 88%;
  max-width: 460px;
  height: 3em;
  border-radius: 10px;
  margin: 10px auto 0 auto;
  background: #292929;
  color: #fff;
  padding: 20px;
  font-family: 'TT Firs Neue Trl', sans-serif;
  font-size: 0.8em;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5);
  resize: none;
  border: none;
}


#char-count {
  font-size: 0.6em;
  text-align: center;
  color: #afafaf;
}
