@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:ital,wght@0,100..700;1,100..700&display=swap');

:root {
    --pink-400: hsl(0, 59%, 77%);
    --pink-500: hsl(0, 82%, 74%);
    --red-500: hsl(0, 93%, 68%);
    --gray-900: hsl(0, 6%, 24%);
    --white: hsl(0, 0%, 100%);
}

::selection {
    background-color: var(--pink-500);
    color: var(--white);
}

html, body {
    margin: 0;
    padding: 0;
    overflow-y: hidden;
    font-family: "Josefin Sans";
    color: var(--pink-400);
}

.mainContainer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    width: 250px;
}

.rightSideContainer {
    display: block;
    height: 100vh;
}

.rightSideContainer img {
    height: 100%;
}

.mobileHeroImage {
    display: none;
}

.leftSideContainer {
    margin-left: 200px;
}

.leftSideContainer h1 {
    font-size: 80px;
    font-weight: 300;
    letter-spacing: 10px;
    margin: 0px;
    margin-top: 125px;
}

.leftSideContainer h2 {
    color: var(--gray-900);
    font-size: 80px;
    font-weight: 600;
    letter-spacing: 22px;
    margin: 0px;
}

.leftSideContainer p {
    font-size: 20px;
    text-align: justify;
    width: 500px;
    margin-top: 40px;
}

input[type="text"] {
    outline: 0;
    border: 0;
    font-family: "Josefin Sans";
    font-size: 20px;
    margin-top: 8px;
    margin-bottom: 4px;
    color: var(--gray-900);
    margin-left: 25px;
    width: 100%;
    margin-right: 25px;
}

.inputContainer {
    margin-top: 80px;
    border: 1px solid var(--pink-400);
    border-radius: 1313px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 600px;
    margin-right: 50px;
}

.inputContainerLeftSide {
    display: flex;
    align-items: center;
}

#errorSign {
    margin-right: 30px;
    width: 30px;
    height: 100%;
    display: none;
}

.inputButtonContainer {
    display: flex;
    justify-content: center;
    align-items: center;
}

#submitButton {
    background: linear-gradient(90deg, var(--pink-400), var(--pink-500));
    padding: 20px;
    border: 0;
    border-radius: 1313px;
    cursor: pointer;
}

#submitButton img {
    padding-left: 30px;
    padding-right: 30px;
    transition: 0.2s;
}

#submitButton:hover img {
    transform: scale(1.3);
    transition: 0.2s;
}

.invalidEmailErrorMessage {
    display: none;
    color: var(--red-500);
    font-size: 16px;
    font-weight: 400;
}

@media (max-width: 1600px) {
    html, body {
        overflow-y: auto;
    }

    .leftSideContainer {
        margin-left: 100px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    
    .leftSideContainer p {
        text-align: center;
    }
}

@media (max-width: 1450px) {
    .leftSideContainer {
        margin-left: 50px;
    }
}

@media (max-width: 1250px) {
    .logo {
        margin-top: 45px;
    }

    .rightSideContainer {
        display: none;
    }

    .leftSideContainer {
        margin: 0 auto;
    }

    .leftSideContainer h1 {
        margin-top: 0px;
    }

    .mobileHeroImage {
        margin: 50px;
        display: block;
        width: 80%;
        border-radius: 40px;
        border: 3px solid var(--pink-400);
        box-shadow: 5px 5px 5px solid var(--pink-500);
    }

    .inputContainer {
        margin-top: 45px;
        margin-bottom: 45px;
        margin-right: 0px;
    }
}

@media (max-width: 650px) {
    .leftSideContainer {
        margin: 0px;
        width: 100%;
    }

    .mobileHeroImage {
        width: 100%;
        margin-left: 0px;
        margin-right: 0px;
        border-radius: 0px;
        border: none;
        border-top: 5px solid var(--pink-400);
        border-bottom: 5px solid var(--pink-400);
    }

    .leftSideContainer h1 {
        font-size: 50px;
    }

    .leftSideContainer h2 {
        font-size: 60px;
    }

    .leftSideContainer p {
        width: 80%;
    }

    .inputContainer {
        width: 90%;
    }

    #submitButton img {
        padding-left: 7px;
        padding-right: 7px;
    }
}

@media (max-width: 430px) {
    .leftSideContainer h1 {
        font-size: 40px;
        font-weight: 500;
    }

    .leftSideContainer h2 {
        font-size: 40px;
    }
}

@media (max-width: 340px) {
    .leftSideContainer h1 {
        font-size: 30px;
    }

    .leftSideContainer h2 {
        font-size: 30px;
    }

    .leftSideContainer p {
        font-size: 18px;
    }
}

@media (max-width: 270px) {
    .leftSideContainer h1 {
        font-size: 15px;
    }

    .leftSideContainer h2 {
        font-size: 15px;
    }
}