@import url('https://fonts.googleapis.com/css2?family=Barlow+Semi+Condensed:wght@500;600&family=Big+Shoulders+Display:wght@700&family=Josefin+Sans:wght@300;400;600&family=Karla:wght@400;700&family=Kumbh+Sans:wght@400;700&family=League+Spartan:wght@400;500;700&family=Lexend+Deca&family=Manrope:wght@500;700&family=Open+Sans&family=Poppins:wght@200;400;600&family=Raleway:wght@400;700&display=swap');


:root{
	--primary:hsl(0, 93%, 68%);
	--secondary:hsl(0, 36%, 70%);
	--tertiary:hsl(0, 6%, 24%);
    --after-tertiary:hsl(0, 80%, 86%);
	--white:hsl(0, 0%, 100%);
	--primary-accent:hsl(0, 100%, 98%);
	--secondary-accent:hsl(0, 74%, 74%);
    --input:hsla(0, 36%, 70%, 0.74);
    --border:hsla(0, 6%, 24%, 0.205);
	--soft-edge:8px;
	--rounded-edge:40px;
	--circle-border:50%;
	--fs-small: 0.85rem;
	--fs-medium:0.95rem;
	--fs-large:3.5rem;
	--fw-light: 300;
	--fw-medium: 400;
	--fw-bold: 600;
	
}

/*___________________________________________Reset_____________________________________________*/


/* Box sizing rules */

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Remove default margin */

body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  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 body defaults */

body {
  min-height: 100vh;
  text-rendering: optimizeSpeed;
  line-height: 1.5;
}

/* 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) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


/*______________________________________________Utility Classes____________________________________________*/

.alert{
    opacity: 1!important;
}

.shake {
    animation: shake 0.3s ease-in-out 3;
  }

/*_______________________Page Styles_______________________*/

body{
    font-family: 'Josefin Sans', sans-serif;
    background-image: linear-gradient(135deg, hsl(0, 0%, 100%), hsl(0, 100%, 98%));
}

.container{
    padding: 0;
}

.logo{
    padding:2rem;
}

.logo img{
    width: 6rem;
}

.model-image-div img{
    width: 100%;
}

.text-div{
    padding: 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    gap: 1rem;
    max-width: 36rem;
}

h1{
    text-transform: uppercase;
    letter-spacing: 6px;
    line-height: 36px;
    font-weight: var(--fw-bold);
    color: var(--tertiary);
}

.h1-initial{
     font-weight: var(--fw-light);
     color: var(--secondary);
}

p{
    font-size: var(--fs-small);
    color: var(--secondary);
    font-weight: var(--fw-medium);
}

.form{
    margin-bottom: 3rem;
    position: relative;
}

.form input:focus{
    outline: 1px solid;
    background-color: transparent;
}

#email-text-box{
    border-radius: var(--rounded-edge);
    padding: 0.5rem;
    border: 1px solid var(--border);
    width: 100%;
    color: var(--secondary);
    background-color: transparent;
}

::placeholder{
    font-size: var(--fs-small);
    font-weight: var(--fw-medium);
    color: var(--border);
}

button{
    position: absolute;
    display: flex;
    align-items: center;
    bottom: 0;
    right: 0;
    padding: 0.85rem 1.45rem;
    border-radius: var(--rounded-edge);
    border: 0;
    background-image: linear-gradient(to right, hsl(0, 80%, 86%), hsl(0, 74%, 74%));
    box-shadow:0px 20px 20px 1px hsla(0, 36%, 70%, 0.288);
    cursor: pointer;

}

button img{
    width: 0.65rem;
}

.warning{
    position: absolute;
    left: 1rem;
    bottom: -2rem;
}

.warning-text{
    font-size: var(--fs-small);
    color:red;
    opacity: 0;
}

.warning-icon{
    position: absolute;
    right: 4rem;
    bottom: 0.5rem;
    opacity: 0;
}

.model-img-desktop-div{
    max-height: 0;
    overflow: hidden; 
}

@media screen and (min-width:768px) {
    .logo img{
        width: 9rem;
    }
}

@media screen and (min-width:1005px) {
    main{
        display: flex;
        justify-content: space-between;
        max-height: 100vh;
    }
    .container{
        display: flex;
        flex-direction: column;
        flex-grow: 1;
        justify-content: center;
        align-items: center;
        gap:2rem;
        background-image: url(./images/bg-pattern-desktop.svg);
        background-size: cover;
        background-repeat: no-repeat;
    }
    .logo{
        margin-left: -15rem;
        margin-top: -4rem;
        padding: 0;
    }
    .model-image-div{
        height: 0;
        overflow: hidden;
    }
    .model-img-desktop-div{
        max-height: 100%;
    }
    .text-div{
        padding-top: 4rem;
        max-width: 28rem;
        text-align: left;
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }
    h1{
        font-size: var(--fs-large);
        line-height: 4rem;
        font-weight: 600;
        letter-spacing: 0.65rem;
    }
    p{
        font-size: var(--fs-medium);
    }
    .form{
        margin-bottom: 0;
        position: relative;
    }
    .warning-icon{
        position: absolute;
        right: 6rem;
        bottom: 1rem;
        opacity: 0;
    }    
    #email-text-box{
        padding: 0.85rem;
    }
    button{
        padding: 1.15rem 2.45rem;
    }
}

@keyframes shake {
    0% { transform: translateX(0); }
    20% { transform: translateX(-5px); }
    40% { transform: translateX(5px); }
    60% { transform: translateX(-5px); }
    80% { transform: translateX(5px); }
    100% { transform: translateX(0); }
  }