/* Base CSS File */

/* Define custom properties (CSS Variables) in :root */
:root {
    --color-primary: #585293;
    --color-secondary: #32153E;
    --color-light: #F1F1F0;
    --font-family-base: "Plus Jakarta Sans", serif;
}

/* Global Styles */
html, body {
    font-family: var(--font-family-base);
    background: var(--color-primary);
    color: white;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    height: 100%;
}

@media screen and (min-width: 1340px) and (max-width: 1629px) {
    html, body {
        zoom: 0.9;
    }
}

@media screen and (min-width: 1281px) and (max-width: 1339px) {
    html, body {
        zoom: 0.85;
    }
}

@media screen and (max-width: 1280px) and (max-height: 650px) {
    html, body {
        height: auto;
    }
}

/* Container Styles */
.container {
    position: relative;
    max-width: 1623px;
    height: 673px;
    display: flex;
    justify-content: center;
    align-items: center;
}

@media screen and (max-width: 1280px) {
    .container {
        max-width: 80%;
        height: auto;
        flex-direction: column;
    }
}

@media screen and (max-width: 1280px) and (max-height: 650px) {
    .container {
        height: 650px;
    }
}

@media screen and (max-width: 799px) {
    .container {
        max-width: 90%;
    }
}

#content-wrapper {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Button Styles */
.button-primary {
    background: var(--color-secondary);
    border: 0;
    margin: 0;
    border-radius: 300px;
    transition: all 0.2s ease-in-out;
}

.button-primary:hover, .button-primary:focus {
    background: var(--color-primary);
}

/* Header Styles */
#page-header {
    position: absolute;
    left: 280px;
    bottom: 3px;
    width: 519px;
    height: 672px;
}

@media screen and (max-width: 1280px) {
    #page-header {
        display: none;
    } 
}

/* Title Styles */
#title {
    padding: 134px 0 110px;
}

@media screen and (max-width: 1280px) {
    #title {
        padding: 43px 0;
    }
}

#title h1 {
    font-family: var(--font-family-base);
    font-size: 22px;
    font-weight: 400;
    line-height: 1;
    color: white;
    letter-spacing: 0.07em;
    text-align: center;
    margin: 0;
}

@media screen and (max-width: 1280px) {
    #title h1 {
        line-height: normal;
    }
}

/* Form Styles */
#form form, #form fieldset {
    position: relative;
    margin: 0;
}

#form input {
    font-family: var(--font-family-base);
    font-size: 18px;
    font-weight: normal;
    background: var(--color-light);
    color: black;
    margin: 0;
    padding: 5px 190px 5px 36px;
    border: 0;
    height: 71px;
    width: 100%;
    border-radius: 300px;
}

#form input::placeholder {
    color: black;
}

@media screen and (max-width: 799px) {
    #form input {
        padding: 5px 100px 5px 28px;
    }
}

#form button {
    position: absolute;
    top: 0;
    right: 10px;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: auto;
    width: 160px;
    height: 53px;
    text-indent: -9999px;
}

@media screen and (max-width: 799px) {
    #form button {
        width: 80px;
        height: 48px;
    } 
}

@media screen and (max-width: 399px) {
    #form button {
        width: 40px;
        height: 48px;
    }  
}

#form button::after {
    position: absolute;
    content: "";
    height: 24px;
    width: 24px;
    background: transparent url("../images/search_icon.svg") no-repeat center center;
}

#form p {
    font-family: var(--font-family-base);
    font-size: 17px;
    font-weight: 400;
    text-align: center;
    margin: 0;
    padding: 30px 0 0;
    letter-spacing: 0.07em;
}

/* Wrapper Styles */
#wrapper {
    position: absolute;
    right: 209px;
    width: 522px;
    height: 672px;
}

@media screen and (max-width: 1280px) {
    #wrapper {
        position: relative;
        height: auto;
        width: 100%;
        right: inherit;
        display: flex;
        flex-direction: column;
        order: 2;
    }
}

/* Footer Styles */
#page-footer {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    line-height: 0;
    width: 100%;
    height: 191px;
}

@media screen and (min-width: 1281px) {
    #page-footer img.mobile-img {
        display: none;
    }
}

@media screen and (max-width: 1280px) {
    #page-footer {
        position: relative;
        height: auto;
        margin: 0 0 15px;
        display: flex;
        flex-direction: column;
        order: 1;
    }

    #page-footer img.desktop-img {
        display: none;
    }

    #page-footer img {
        height: auto;
    }
}
