@font-face {
    font-family: 'Roboto-Bold';
    src: url(../assets/fonts/Roboto-Bold.ttf) format('truetype');
    font-weight: bold;
    font-style: normal;

}
@font-face{
    font-family: 'Roboto-Regular';
    src: url(../assets/fonts/Roboto-Regular.ttf) format('truetype');
    font-weight: normal;
    font-style: normal;

}

:root{
/* colors */
--color-primary: hsl(4,100%,67%);
--color-slate-dark: hsl(234,29%,20%);
--color-charcoal-light: hsl(235,18%,26%);
--color-grey: hsl(231,7%,65%);
--color-white: hsl(0,0%,100%);

/* Typography */
--font-primary: 'Roboto-Regular', sans-serif;
--font-heading: 'Roboto-Bold', sans-serif;
 
/* border-radius */
--border-r-primary: 5%;
--border-r-secondary: 10px;

/* spacing */
--padding-r-primary: 25px;


}

*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-primary);

}

body {
  background-color: var(--color-charcoal-light);

}

.mainDiv{
  max-width: 60%;
  max-height: 700px;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
  background-color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--padding-r-primary);
  border-radius: var(--border-r-primary);

}

.content {
 font-family: var(--font-primary);
 background-color: white;
 display: flex;
 flex-direction: column;
 justify-content: center;
 align-items: center;
 padding: 3%;
 width: 50%;
 color: var(--color-charcoal-light);
 font-size: 17px;
 line-height: 30px;
}
 
h1{
  font-family: var(--font-heading);
  font-size: 48px;
  color: var(--color-slate-dark);
}


ul{
 list-style-type: none;
 line-height: 40px;
  width: 100%;
}


li {
 display: flex;
 align-items: center;
 gap: 15px;
}

form {
  display:flex;
  flex-direction: column;
  justify-content: space-between;
  align-self: flex-start;
  width: 100%;
  font-family: var(--font-heading);
  
}

label {
  font-size: 14px;
  color: var(--color-slate-dark);
  font-family: var(--font-heading);

}

input,.subscribe-btn, .dismiss-btn {
  padding: 20px;
  font-size: 18px;
  border-radius: var(--border-r-secondary);
  outline: none;

}

input {
  border: 2px solid  var(--color-grey);
 
}

input:focus, input:hover{
  border: 2px solid var(--color-charcoal-light);
  cursor: pointer;

}

.subscribe-btn, .dismiss-btn{
  background-color: var(--color-slate-dark);
  color: var(--color-white);
  border: none;
  outline: none;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  transition-delay: 0.1s;

}

.subscribe-btn:hover, .dismiss-btn:hover{
  background-color: var(--color-primary);

}

.product-image {
  padding: 0;
  width: 425px;
  height: 100%;
  border-radius: var(--border-r-primary);
}

.product-image img {
  width: 100%; 
  height: 100%;
  object-fit: cover;
  border-radius: var(--border-r-primary);

}

.name-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2px;

}

.error-email{
  color: var(--color-primary);
  font-size: 14px;
  font-family: var(--font-heading);
  display: none;

}

.email-input{
 color: var(--color-primary);
 background-color: hsla(4, 100%, 67%, 0.136);
 border: 2px solid var(--color-primary);

}


.success {
  display:none;
  width: 25%;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
  max-height: 430px;
  background-color: var(--color-white);
  border-radius: var(--border-r-primary);
  padding: 40px;
}

.success img {
  width: 50px;
  height: 60px;
}

.success h1 {
  font-size: 45px;
  line-height: 50px;
  color: var(--color-slate-dark);
}

.success p{
  font-size: 13px;
  color: var(--color-charcoal-light);
  line-height: 20px;
}

.success span {
  font-family: var(--font-heading);
}

.dismiss-btn {
  margin-top: 30px;
}

@media (max-width: 858px) {

  body {
    background-color: var(--color-white);
    padding: 0;
  }

  .mainDiv {
    max-width: 100%;
    min-height:850px;
    flex-direction: column-reverse;
    position: relative;
    top: 0;
    margin: 0 0;
    border-radius: 0;
    padding: 0;
  }

  .content{
    padding: 35px;
    line-height: 25px;
    height: 610px;
  
  }

  .mainDiv  h1{
   font-size: 42px;
   line-height: 45px;
  }

  ul{
    list-style-type: none;
    width: 100%;
    margin-bottom: 5px;
   }
   
   li {
    display: flex;
    align-items:start;
    gap: 20px;
    line-height: 25px;
    margin-bottom: 10px;

   }
   
   li img{
    margin-top: 3px;
   }
   li span{
    display: inline-block;
   }

  .content {
    width: 100%;
  }

  .product-image {
    padding: 0;
    width: 100%;
    border-radius: 0px 0px 10px 10px;
    overflow: hidden;
  }

  .product-image img {
    min-width: 100%;  
    object-fit: contain;
    border-radius: 0px 0px 10px 10px;

   }

.success {
  background-color: var(--color-white);
  min-width: 100%;
  min-height: 100vh;
  padding-top: 20px;
  border-radius: 0px;
  justify-content: space-between;
  align-items: center;
  padding-top: 140px;
  position: relative;
}

.dism-form {
  position: absolute;
  bottom: 30px;
  width: 100%;
  left: 0;
  padding: 2% 5%;
}
.dismiss-btn {
 margin-top: 0;
}


}
