/* === Import Google Font === */

/* === Root Variables === */
:root {
  --primary-color: #0077cc;
  --background: #f4f6f8;
  --text: #333;
  --white: #fff;
}

/* === Reset and Base === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}



body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(-45deg, hwb(207 80% 4%), hwb(183 73% 4%), hwb(140 78% 4%), hsl(180, 11%, 96%));
  background-size: 400% 400%;
  animation: animatedGradient 12s ease infinite;
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  cursor: url('https://cur.cursors-4u.net/nature/nat-11/nat1074.cur'), auto;
  user-select: none;
}

/* Keyframes for background animation */
@keyframes animatedGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* === Dressing Container === */
#dressing {
  position: relative;
  width: 320px;
  background-color: var(--white);
  padding: 20px;
  border-radius: 12px;
 
  margin-bottom: 30px;
  text-align: center;
  overflow: hidden;
  animation: fadeSlideIn 0.8s ease-out;
}

#t-shirt {
  width: 100%;
  height: auto;
  transition: background-color 0.6s ease, filter 0.6s ease, transform 0.3s ease;
}

.design {
  position: absolute;
  top: 35%;
  left: 35%;
  width: 80px;
  height: 80px;
 
  pointer-events: none;
  animation: bounceIn 0.5s ease-out;
  transition: transform 0.3s;
}

/* === Buttons === */
button {
  font-size: 14px;
  border: none;
  border-radius: 999px;
  padding: 8px 16px;
  margin: 6px;
  background-color: var(--primary-color);
  color: var(--white);
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
  font-family: 'Delius Unicase'
}

@media (max-width: 600px) {
  button {
  font-size: 10px;
  font-family: 'Delius Unicase'
  
}
}

button:hover {
  background-color: #005fa3;
  transform: scale(1.05);
}

#show-order{
  font-size: 20px;
  border: none;
  border-radius: 999px;
  padding: 8px 16px;
  margin: 6px;
  background-color: var(--primary-color);
  color: var(--white);
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
  width: 100%;
}

#show-order:hover{
  background-color: #005fa3;
  transform: scale(1.05);
}

/* === Color Picker === */
#my-colours {
  margin: 20px 0;
  background-color: rgb(240, 250, 250, 1);;
  padding: 15px;
  border-radius: 10px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 320px;
}



.choose.active {
  border: 3px solid dodgerblue;
  box-shadow: 0 0 5px dodgerblue;
}

.choose:hover {
  transform: scale(1.2);
  border: 2px solid var(--primary-color);
}

#red { background: red; }
#yellow { background: yellow; }
#ash { background: gray; }
#black { background: black; }

#brown { background: brown; }
#pink { background: pink; }
#white { background: white; }
#seablue { background: #ADD8E6; }

/* === Sidebar === */
#design-div {
  background:rgb(240, 250, 250, 1);
  border-radius: 10px;
  padding: 20px;
  margin-top: 20px;
  text-align: center;
}
#design-div-on-order{
 
  
  padding: 20px;
  margin-top: 20px;
  text-align: center;
}

/* === Hamburger button === */
#modal-button {
  position: fixed;
  top: 5px;
  left: 15px;
  z-index: 1001;
  font-size: 20px;
  padding: 8px 12px;
  
  color: white;
}

/* === Footer === */
footer {
  
  bottom: 0;
  width: 100%;
  background-color: var(--primary-color);
  color: white;
  text-align: center;
  padding: 20px 0;
  font-size: 14px;
  height: auto;
  
  margin: top 20px; ;
  
}

.ooter{
  font-size: small;
}

/* === Controls === */
#controls {
  background:rgb(240, 250, 250, 1);;
  border-radius: 10px;
  padding: 20px;
  margin-top: 20px;
  text-align: center;
  animation: fadeSlideIn 1s ease-out 0.4s;
  animation-fill-mode: both;
  height: auto;
}

#controls input[type="range"] {
  width: 90%;
  margin: 10px 0;
  height: 6px;
  background: #ddd;
  border-radius: 5px;
  outline: none;
}

#controls input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 20px;
  width: 20px;
  background: #4CAF50;
  border-radius: 50%;
  cursor: pointer;
}

#controls input[type="range"]::-moz-range-thumb {
  height: 20px;
  width: 20px;
  background: #4CAF50;
  border-radius: 50%;
  cursor: pointer;
}

/* === Modals === */
#modal, #modaltwo, #modalyou, #modaltwog ,#modalthree{
  display: none;
  position: fixed;
  z-index: 999;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  justify-content: center;
  align-items: center;
  width: auto;
  animation: slideIn 0.7s ease;
}
#modalfour{
  display: none;
  left: 13%;
  top: 9%;
  height: 100%; ;
  width: 100%;
  animation: slideIn 0.7s ease;
  z-index: 9999;
  position: fixed;
}
#modal_big{
  top: 0px;;
  height: 100%; ;
  width: 50vw;
  animation: slideIn 0.7s ease;
  z-index: 9999;
  position: fixed;
  background-color:white;
  display: flex;
  transition: left 0.5s ease;
  position: fixed;
  left:-100%;
  display:flex;
  
}

#slide_in_modal{
  background-color:yellow;
  padding: 20px;
  border-radius: 5px;
  left: 0%;
  background-color: yellow
  
}
@media(min-width :584px){
  #modal_big{
  top: 0px;;
  height: 100%; ;
  width: 20vw;
  animation: slideIn 0.7s ease;
  z-index: 9999;
  position: fixed;
  background-color:white;
  display: flex;
  transition: left 0.5s ease;
  position: fixed;
  left:-100%;
  display:flex;
  
}
}
@media(min-width :1024px){
  #modal_big{
  top: 0px;
  height: 100%; ;
  width: 20vw;
  animation: slideIn 0.7s ease;
  z-index: 9999;
  position: fixed;
  background-color:white;
  display: flex;
  transition: left 0.5s ease;
  position: fixed;
  left:-100%;
  display:flex;
 
}

  body{
    display: flex ;
    justify-content: flex-start;
    height: auto;
  }
  

}
#modal_big.show{
  left: 0;
}
/* Container for the switch */
.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

/* Hide the actual checkbox */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* Track of the switch */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 34px;
}

/* The circle (thumb) */
.slider::before {
  content: "";
  position: absolute;
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}


/* Move track and circle when checked */
input:checked + .slider {
  background-color: #4CAF50;
}

input:checked + .slider::before {
  transform: translateX(26px);
}
#move_me {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}



#modal-contentfour{
  background: rgb(188, 147, 255);
  height: 50px;
  width: 300px;
  text-align: center;
  border-radius: 20px;
}


#modaltwo , #modalthree{
  background-color: rgba(0,0,0,0.6);
  backdrop-filter: blur(3px);
  overflow-y: auto;
  overflow-x: auto;
  padding: 40px 20px;
  
}

#modal-content, #modal-contenttwoh, #modal-contentyou {
  background-color: var(--white);
  padding: 20px;
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  animation: fadeIn 0.4s ease-in-out;
}

#cent{
  text-align: center;
  color: #0077cc;
}

#modal-contenttwo,#modal-contentthree {
  background: white;
  padding: 30px;
  border-radius: 15px;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  animation: slideIn 0.4s ease;
  position: relative;
  
  margin: auto;
  overflow-x: auto;
width: fit-content;
}

#modal-contenttwo h1, #modal-contentfour h1 {
  font-size: 24px;
  color: var(--primary-color);
  margin-bottom: 20px;
  text-align: center;
}
#modal-contentthree h1 {
  font-size: 24px;
  color: var(--primary-color);
  margin-bottom: 20px;
  text-align: center;
}

#modal-contenttwo label {
  font-weight: 600;
  display: block;
  margin-top: 12px;
  margin-bottom: 6px;
  color: #333;
}
#modal-contentthree label {
  font-weight: 600;
  display: block;
  margin-top: 12px;
  margin-bottom: 6px;
  color: #333;
}

#modal-contenttwo input,
#modal-contenttwo textarea {
  width: 100%;
  padding: 10px 12px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 8px;
  margin-bottom: 10px;
  background-color: #f9f9f9;
  transition: border 0.3s;
}

#modal-contenttwo , input:focus,
#modal-contenttwo textarea:focus {
  border-color: var(--primary-color);
  outline: none;
}
#modal-contentthree , input:focus,
#modal-contentthree textarea:focus {
  border-color: var(--primary-color);
  outline: none;
}

#modal-contenttwo button[type="submit"] {
  background-color: var(--primary-color);
  color: white;
  padding: 12px 18px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  width: 100%;
  margin-top: 15px;
  font-weight: bold;
  transition: background 0.3s;
}

#modal-contentthree button[type="submit"] {
  background-color: var(--primary-color);
  color: white;
  padding: 12px 18px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  width: 100%;
  margin-top: 15px;
  font-weight: bold;
  transition: background 0.3s;
}
#modal-contenttwo button[type="submit"]:hover {
  background-color: #005fa3;
}
#modal-contentthree button[type="submit"]:hover {
  background-color: #005fa3;
}

/* Close Buttons */
#close-modal, #close-modaltwo, #close-modalyou ,#close-modalthree ,#close-modalfour{
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 24px;
  cursor: pointer;
  color: var(--text);
  transition: color 0.3s;
}

#close-modaltwo:hover {
  color: red;
}
#close-modalthree:hover {
  color: red;
}
#close_me:hover{
  color: red;
}
#close_me{
  font-size: 50px;
  font-weight: bold;
  
  border-radius: 10%;
  transition:background-color 0.3s ease;
  top: 0px;
  left: 1px;
  position: absolute;
}


/* Modal Images */
#modal-content img {
  width: 120px;
  height: 120px;
  margin: 10px;
  border-radius: 8px;
  object-fit: contain;
  cursor: pointer;
}

#uploaded{
  border-radius: 0%;
}

img {
  -webkit-user-drag: none;
  user-select: none;
}

/* === Design Gallery === */
.design-gallery {
  
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 20px;
  max-height: 300px;
  overflow-y: auto;
 
  background: #f9f9f9;
  margin-left: 10px;
   margin-right: 20px; 
   margin-top: 15px; /* add top spacing */
 
}

.design-wrapper {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: 12px;
  overflow: hidden;
  background: #f0f0f0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  margin-left: 10px;
   display: inline-block; /* shrink to fit image width */
  
  margin-right: 20px; /* space between each design */
   padding-left: 8px;   /* add internal space */
  padding-right: 8px;
  box-sizing: border-box; /* important so padding doesn’t increase size */
}

.design-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Spinner for loading */
.spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 32px;
  height: 32px;
  transform: translate(-50%, -50%);
  z-index: 2;
}

/* Hidden elements */
#keep, #keeep {
  display: none;
}

/* === Gallery Container === */
#gallery-container {
  width: 319px;
  height: auto;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);

}

#gallery-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: opacity 1s ease-in-out;
}

/* === Loading Overlay === */
#page-loaderr {
  position: fixed;
  top: 0%;
  left: 0%;
  width: 100vw;
  height: 100vh;
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  background-color: #00ff99;
 
}

.css-spinner {
  width: 40px;
  height: 40px;
  border: 5px solid transparent;
  border-top: 5px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  display: none;
  
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.spinnerr {
  width: 20px;
  height: 20px;
  background-color: var(--primary-color, #00ff99);
  border-radius: 50%;
  animation: pulse 1s ease-in-out infinite;
  
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.5);
    opacity: 0.5;
  }
}


/* === Animations === */
@keyframes fadeSlideIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounceIn {
  0%, 20%, 40%, 60%, 80%, 100% {
    transform: translateY(0);
  }
  30% {
    transform: translateY(-12px);
  }
  50% {
    transform: translateY(-6px);
  }
  70% {
    transform: translateY(-4px);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideIn {
  from { transform: translateY(-20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* === Responsive Mobile Styles === */
@media screen and (max-width: 600px) {
  body {
    padding-top: 20px;
  }

  #dressing {
    
    padding: 15px;
  }

  #t-shirt {
    width: 100%;
  }

  #my-colours {
    
    justify-content: center;
  }
  .color-options{
      display: flex;
      justify-content : content ;
      flex-wrap: wrap;
      gap: 12px;
  }

  .choose {
    width: 30px;
    height: 30px;
  }

  #gallery-container {
   
    height: auto;
    overflow: visible;
  }

  /* Make gallery scroll horizontally on small screens */
  .design-gallery {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    max-height: 140px;
  }

 .design-wrapper {
  min-width: 80px;
  height: 100px;
  flex-shrink: 0;
  margin-right: 10px; /* space between each item horizontally */
  /* or */
  padding: 5px; /* space inside each item */
  object-fit: contain;
  height: auto;
  display: inline-block;
}

  /* Hide scrollbar for WebKit browsers */
  .design-gallery::-webkit-scrollbar {
    display: none;
  }
  /* Hide scrollbar for Firefox */
  .design-gallery {
    scrollbar-width: none;
  }
}

#modalyout{
  display: none;
}


.react{
  position:relative;

}

#modalthree{
  display: none;
}

.contact{
  height: 40px; ;
  width: 40px;
  border-radius: 25px;
  vertical-align: middle;
}

a {
  color: black;
}

.slideshow-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 10px;
  height: auto;
  margin-bottom: 40px;
  overflow: visible;
}

.image-frame {
  width: 320px;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  perspective: 1200px;

}

#gallery-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.6s ease, opacity 0.4s ease;
  border-radius: 20px;
  backface-visibility: hidden;
}

#gallery-image.animate {
  transform: rotateY(180deg) scale(0.96);
  opacity: 0.5;
  filter: blur(1px) brightness(0.9);
}

.side-preview {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.side-preview:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

@media (max-width: 400px) {
  #modal-button {
    font-size: 10px;
    padding: 6px 10px;
    top: calc(10px + env(safe-area-inset-top, 0px));
    left: -5%
  }
}

@media (max-width: 414px) {
  .fixed-top-left {
    font-size: 15px;
    padding: 5px 8px;
    top: calc(10px + env(safe-area-inset-top, 0px));
    left: calc(10px + env(safe-area-inset-left, 0px));
  }
}
@media (max-width: 360px) {
  #modal-button {
    font-size: 13.5px;
    padding: 4px 6px;
  }
}

#no_use{
  height: 12px;
  width: 100vw;
  display: none;
  overflow: hidden;
}



#preview_collection{
  height:100px;
  width: 50px;
}

#say_hi{
  display : none
}
/* Smartphones (portrait) */
@media (max-width: 600px) {
  #video_player{
    width: 100%;
    height: auto;
    object-fit: cover;
    top: 37%;
    position: fixed;
  }
}

#video_player{
    width: 100%;
    height: auto;
    position: fixed;
    top: 35vh;
}

@media (min-width:1024px){
  #video_player{
    width: 100%;
    height: auto;
    position: fixed;
    top: -5%;
}
}



.footer a {
  color: #ffffff;
  text-decoration: none;
  margin: 0 0.4rem;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: #00ffcc;
}

.footer .social {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.footer .contact-icon {
  width: 25px;
  height: 25px;
  vertical-align: middle;
  transition: transform 0.3s ease;
}

.footer .contact-icon:hover {
  transform: scale(1.2);
}

.footer .links {
  margin: 0.8rem 0;
}

#gift {
  position: fixed;
  bottom: 120px;
  right: 20px;
  z-index: 9999;
  cursor: pointer;
  display: none;
}

#gift img {
  width: 60px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
}

#gift img:hover {
  transform: scale(1.1);
}

/* Gift Button */
#gift-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  cursor: pointer;
  z-index: 9999;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
  transition: transform 0.3s;
}

#gift-button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

#gift-button:hover {
  transform: scale(1.1);
}

/* Modal Container */
#gift-modal {
  position: fixed;
  bottom: -300px; /* Hidden initially */
  right: 10px;
  width: 280px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  padding: 15px;
  z-index: 9998;
  transition: bottom 0.5s ease;
}

/* Modal visible */
#gift-modal.show {
  bottom: 90px; /* Slides up */
}

/* Modal Content */
#gift-modal .modal-content {
  position: relative;
  font-family: sans-serif;
}

#gift-modal h3 {
  margin-top: 0;
  color: #e91e63;
}

#gift-modal #close-modal5 {
  position: absolute;
  top: 5px;
  right: 10px;
  font-size: 20px;
  cursor: pointer;
  color: gray;
}





