/*********************/
/* Custom Properties */
/*********************/
:root{

  /* Custom Colours */
  --clr-main-10: #EBB42C;
  --clr-main-20: #012B28;

  --clr-accent-10: #F5DA96;
  --clr-accent-20: #809594;



  /* Custom Fonts */
  --ff-main: "Epilogue", sans-serif;

  /* Custom Font Weights */
  --fw-reg: 300;
  --fw-bold: 700;

  /* Custom Font Sizes */

  --fs-p: 1rem;
  --fs-title: 1.5rem;

  /* Custom spacing */
  --spc-sm: 2rem;

  /* Custom Border Radius */
  --br: 0px 75px 0px 75px;

  /* Media Queries */

  --tablet-w: 700px;
  --desktop-w: 1100px;


}

/* End of Custom Properties */


/* CSS Reset - Used Andy Bells */
/* Box sizing rules */
*,
*::before,
*::after {
box-sizing: border-box;
}

/* Remove default margin */
body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
margin-block-end: 0;
margin: 0;
}

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul[role='list'],
ol[role='list'] {
list-style: none;
}

/* Set core root defaults */
html:focus-within {
scroll-behavior: smooth;
}

/* Set core body defaults */
body {
min-height: 100vh;
text-rendering: optimizeSpeed;
line-height: 1.5;
margin: 0;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
text-decoration-skip-ink: auto;
}

/* Make images easier to work with */
img,
picture {
max-width: 100%;
display: block;
}

/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
font: inherit;
}

/* Remove all animations, transitions and smooth scroll for people that prefer not to see them */
@media (prefers-reduced-motion: reduce) {
html:focus-within {
  scroll-behavior: auto;
}

*,
*::before,
*::after {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
  scroll-behavior: auto !important;
}
}

a{
  text-decoration: none;
  color: var(--clr-main-20);
}

/* End of CSS Reset */


/*******************/
/* Utility Classes */
/*******************/

body{
  font-family: "Epilogue", sans-serif;
  font-weight: 700;
  font-size: var(--fs-p);
  color: var(--clr-main-20);
  background-image: url("images/cross-scratches.png");
}

.bdr-dbl-radius{
  border-radius: var(--br);
}

.fw-bold{
  font-weight: var(--fw-bold);
}

.fw-reg{
  font-weight: var(--fw-reg);
}

p{
  font-size: var(--fs-p);
  color: var(--clr-main-20);
  font-weight: var(--fw-reg);
}

h1{
  font-size: var(--fs-title);
  color: var(--clr-main-20);
  font-weight: var(--fw-reg);
}


h3{
  font-size: var(--fs-p);
  color: var(--clr-main-20);
  font-weight: var(--fw-bold);
}

.btn{
  position: relative;
  font-size: var(--fs-p);
  color: var(--clr-main-20);
  font-weight: var(--fw-bold);
  background: none;
  border: var(--clr-main-20) 3px solid;
  border-radius: 8px;
  height: 50px;
  width: 150px;
  box-shadow: 2px 4px 8px #00000050;

}

.seam {
  position: relative;
  display: block;
  padding: 3px 9px;
  border: 3px dashed var(--clr-main-20);
  border-radius: 3px;
  text-align: center;
}

.btn:hover{
  /* color: var(--clr-accent-10); */
  /* background: var(--clr-main-20); */
  scale: 1;
  /* animation: hoverAnim 0.2s linear; */
  box-shadow: 0px 2px 4px #00000050;
}

@keyframes hoverAnim {
  50%{
    scale: 1.1;
  }
  
}



/*******************/
/* General Styling */
/*******************/

/* Sale Section */

.sale{
  height: 40px;
  background-color: var(--clr-accent-20);
  text-align: center;
  line-height: 40px;
}


/* Navigation */

.navigation{
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  flex-wrap: flex;
  justify-content: space-around;
  gap: var(--spc-sm);
  align-items: center;
  padding: var(--spc-sm);
}

.logo img{
  width: 100px;
  animation: logoFadeIn 2s ease-in-out;
}

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

nav{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spc-sm);
}


.nav-button{
  width: 50px;
  background: none;
  margin: 0;
  border: none;
}

nav ul{
  list-style: none;
  padding: 0;
  display: none;
  flex-direction: column;
  gap: var(--spc-sm);
  z-index: 1000;
  align-items: center;

}

nav ul li a:hover{
  text-decoration: underline;
}

/* Tablet Sizes */
@media(min-width: 790px){
  .nav-button{
    display:none;
  }

  nav ul{
    display: inline;
  }

  nav ul li{
    float: left;
    margin-right: var(--spc-sm);
  }

  .navigation{
    flex-direction: row;
    justify-content: center;
    gap: calc((var(--spc-sm))*3);
  }
}

/* hero section */

.hero-image-container{
  
  /* background: linear-gradient(#F5DA9600,#F5DA9600,var(--clr-accent-10)); */
  margin-top: var(--spc-sm);
  padding: var(--spc-sm);
  position: relative;
}

.hero-image{
  border: dashed 3px  var(--clr-main-20);
  border-radius: var(--br);
  overflow: hidden;
  position:relative;
  display:flex;
  /* background: url(images/heroimageSquare.png); */
  background-color: black;
  height: 500px;
  
}

.hero-image img {
  width:100%;
  height:100%;
  opacity: 0;
  position:absolute;
  animation:movement 50s ease-in-out infinite;
  object-fit: cover;
}


.hero-image img:nth-child(2) {
  width:100%;
  height:100%;
  opacity: 1;
  left:0%;
  position:absolute;
  transform:translateY(0px);
  object-fit:cover;
  animation:movementMain 50s ease-in-out infinite;
}

.product-discount-main{
  position: absolute;
  text-align: center;
  width: 400px;
  top: 70px;
  left: -90px;
  transform: rotate(320deg);
  background-color: white;
  z-index: 900;
  font-size: 1.5rem;
}


@media(min-width: 790px){
  .hero-image img:nth-child(1) {
    object-fit:cover;
  }
  
}


@media(min-width: 1100px){

  .hero-image-container{
    /* background: linear-gradient(#F5DA9600,#F5DA9600,var(--clr-accent-10)); */
  }

  .hero-image{
    max-width: 1100px;
    height: 700px;
    margin: 0 auto;
  }

  .hero-image img{
    height: 100%;
    width: 100%;
    object-fit: cover;
  }
}

  /*********************/
  /* carousel Animation*/
  /*********************/


  @keyframes movement {
    0%{
      opacity:0;
    }
     20%{
      opacity:1;
    }
    40%{
      opacity:0;
      scale:1.1;
    }
    100%{
      opacity:0;
    }
  }

  @keyframes movementMain {
    0%{
      opacity:1;
    }
     5%{
      opacity:1;
    }
    40%{
      opacity:0;
      scale:1.1;
    }
    100%{
      opacity:0;
    }
  }
  
  img:nth-child(2){
    animation-delay:10s;
  }
  img:nth-child(3){
    animation-delay:20s;
  }
  img:nth-child(4){
    animation-delay:30s;
  }
  img:nth-child(5){
    animation-delay:40s;
  }

  /* End of Carousel */


/* Info strip */

.info-strip{
  height: 50px;
  /* background-color: var(--clr-main-20); */
  background-color: var(--clr-accent-10);
  display: none;
}

@media(min-width: 1100px){
  .info-strip{
    display:none;
  }
}

/* product strip */

.product-highlight{
  padding: var(--spc-sm);
  max-width: 1100px;
  margin: var(--spc-sm) auto 0 auto;
}

.product-cards{
  margin-top: var(--spc-sm);
  display: flex;
  flex-direction: column;
  gap: var(--spc-sm);
}

.product-card{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(var(--spc-sm)/5);
  position: relative;
}

.product-card:hover{
  
  img{
    box-shadow: 0px 2px 4px #00000050;;
  }
}


.product-card img{
  border-radius: var(--br);
  box-shadow: 2px 4px 8px #00000050;
}

.product-card h3{
  margin-top: 0.5rem;
}

.product-discount{
  position: absolute;
  text-align: center;
  width: 100px;
  top: 10px;
  left: -30px;
  transform: rotate(320deg);
  background-color: white;
  background-image: url("images/cross-scratches.png");
}

.strikedPrice{
  text-decoration: line-through;
}

/* Tablet Size Product Highlights */
@media(min-width: 790px){
  .product-highlight h3{
    float: left;

  }

  .product-highlight p{
    float: right;
  }
  
  .product-cards{
    margin-top: calc(var(--spc-sm)*2);
    flex-direction: row;
  }

  .product-card{
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: calc(var(--spc-sm)/5)
  }

}

/* Main section */


main{
  border-top: 3px dashed var(--clr-main-20);
  border-bottom: 3px dashed var(--clr-main-20);
  background-color: var(--clr-accent-10);
  background-image: url("images/45-degree-fabric-dark.png");
  margin-top: var(--spc-sm);
  animation: moveIn linear;
  animation-timeline: view(1800px 5px);
  padding-bottom: calc(var(--spc-sm)*4)
}

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

.main-wrapper{
  padding: var(--spc-sm);
  max-width: 800px;
  margin: 0 auto;
}

.main-title{
  display: flex;
  flex-direction: column;
  align-items: center;
}

.main-title h1{
  text-transform: uppercase;
}

.main-title img{
  width: 64px;
}

.main-block{
  margin-top: var(--spc-sm);
}


.main-block-left, .main-block-right{
  opacity: 0;
  display: flex;
  flex-direction: column;
  gap: var(--spc-sm);
  align-items: center;
  text-align: center;
}

.main-block-left img, .main-block-right img{
  width: 128px;
}

.main-block-left p, .main-block-right p{
  font-size: 1.5rem;
}


.first-block-anim{
  animation: moveFirst 1s ease-in-out forwards;
}

@keyframes moveFirst {
  from{
    transform: translateX(-100px);
    opacity: 0;
  }to{
    transform: translateX(0px);
    opacity: 1;
  }
  
}

.second-block-anim{
  animation: moveSecond 1s ease-in-out forwards;
}

@keyframes moveSecond {
  from{
    transform: translateX(+100px);
    opacity: 0;
  }to{
    transform: translateX(0px);
    opacity: 1;
  }
  
}

.third-block-anim{
  animation: moveFirst 1s ease-in-out;
}

@keyframes moveFirst {
  from{
    transform: translateX(-100px);
    opacity: 0;
  }to{
    transform: translateX(0px);
    opacity: 1;
  }
  
}

@media(min-width: 790px){

  .main-title h1{
    font-size: 2rem;
  }

  .main-title h3{
    font-size: 1.5rem;
  }

  #workathomeImg{
    width: 180px;
    border-radius: var(--br);
  }
  .main-block{
    margin-top: 5rem;
    height:290px;
  }

  .main-block-left{
    flex-direction: row;
    flex-wrap:wrap;
    max-width: 380px;
    text-align: left;
  } 

  .main-block-right{
    flex-direction: row;
    flex-wrap:wrap;
    max-width: 350px;
    text-align: left;
    float:right;    
  }
}


/* personalise section */

.personalise-section{
  display: grid;
  grid-template-rows: 1fr 1fr;
  animation: personaliseFade linear;
  animation-timeline: view(1400px 10px);
}

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

.section-left-wrapper{
  background-color: var(--clr-accent-20);
  background-image: url("images/cloth-alike.png");
  display:flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.section-left{
  max-width: 600px;
  display:flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--spc-sm);
}

.section-left p{
  font-size: 1.3rem;
}

.section-left h1{
  font-size: 2rem;
}

.section-right img{
  height: 100%;
  width: 100%;
  object-fit: cover;
  
}

@media(min-width: 790px){
  .personalise-section{
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr;
  }
}

/* Social Media Section */

.socials{
  margin-top: var(--spc-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spc-sm);
}

.social-container{
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spc-sm);
  padding: var(--spc-sm);
}

.social-container img{
  width: 128px;
}

@media(min-width: 790px){
  .socials{
    flex-direction: row;
    justify-content: space-between;
    max-width: 1000px;
    margin: 0 auto;
  }

  .social-container img{
    width: 128px;
  }

  .social-container h3{
    font-size: 2rem;
  }
}

/* footer */

footer{
  background-color: var(--clr-main-20);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: var(--spc-sm);
  padding: var(--spc-sm);

}

footer p{
  color: var(--clr-main-10);
}

footer a{
  color: var(--clr-main-10);
}




/* About Us */

.about-wrapper{
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spc-sm);
  max-width: 1100px;
  margin: var(--spc-sm) auto;
  padding: var(--spc-sm);
}

.about-section p{
  font-size: 1.5rem;
}

.about-section h3{
  font-size: 2rem;
}

@media(min-width: 790px){
  .about-wrapper{
    grid-template-columns: 1fr 1fr;
  }
}



/* Contact Form */

.contact-section{
  margin-top: 5rem;
}

.contact-form{
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.form-input-wrapper{
  display:flex;
  flex-wrap:wrap;
  justify-content: space-between;
  gap: 2rem;
}

.form-input{
  border: none;
  border-radius: 8px;
  height: 40px;
  width: 300px;
  padding: 1rem;
  background-color: var(--clr-accent-10);
  background-image: url("images/cross-scratches.png");
}

.form-message-section{
  margin-top: 2rem;
}

.form-input-message{
  background-color: var(--clr-accent-10);
  background-image: url("images/cross-scratches.png");
  border: none;
  border-radius: 8px;
  height: 200px;
  width: 100%;
  padding: 1rem;
}

/***************/
/* Cookies Box */
/***************/

:root {
  --purple: #3B3646;
  --red: #EE4B5A;
}

/* Cookie Dialog */
#gdpr-cookie-message {
  position: fixed;
  right: 30px;
  bottom: 30px;
  max-width: 550px;
  background-color: var(--clr-main-20);
  padding: 20px;
  border-radius: 5px;
  box-shadow: 0 6px 6px rgba(0, 0, 0, 0.25);
  margin-left: 30px;
  font-family: system-ui;
  z-index: 1000;
}

#gdpr-cookie-message h4 {
  color: var(--clr-main-10);
  font-family: 'Quicksand', sans-serif;
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 10px;
}

#gdpr-cookie-message p {
  color: var(--clr-main-10);
  font-size: 15px;
  line-height: 1.5em;
}

#gdpr-cookie-message p:last-child {
  margin-bottom: 0;
  text-align: right;
}

#gdpr-cookie-message a {
  color: var(--clr-main-10);
  text-decoration: none;
  font-size: 15px;
  padding-bottom: 2px;
  border-bottom: 1px dotted rgba(255, 255, 255, 0.75);
  transition: all 0.3s ease-in;
}

#gdpr-cookie-message a:hover {
  color: white;
  border-bottom-color: var(--red);
  transition: all 0.3s ease-in;
}

#gdpr-cookie-message button {
  border: none;
  background: var(--red);
  color: white;
  font-family: 'Quicksand', sans-serif;
  font-size: 15px;
  padding: 7px;
  border-radius: 3px;
  margin-left: 15px;
  cursor: pointer;
  transition: all 0.3s ease-in;
}

#gdpr-cookie-message button:hover {
  background: white;
  color: var(--red);
  transition: all 0.3s ease-in;
}