@import url(styles.css);

.part1 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100vh;
}

.part1 .part1-text {
    border: 1px solid var(--primary-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 32px;
    margin: 0 24px 0 0;
    padding: 32px 56px;
    border-radius: 24px;
    box-shadow: 0 4px 24px 0 rgba(0, 0, 0, 0.08);
    width: 423px;
    height: 660px;
}

.part1 .part1-text h1 {
    width: 328px;
    height: 108px;
}

.part1 .part1-text a {
    font-family: "Inter", sans-serif;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    color: var(--white-color);
    padding: 16px 24px;
    border-radius: 8px;
    opacity: 0.9;
    background-color: var(--primary-color);
    border: 3px solid var(--primary-color);
    transition: background-color 0.7s ease;
}

.part1 .part1-text a:hover {
    border: 3px solid var(--primary-color);
    color: var(--primary-color);
    background-color: var(--white-color);
    transition: background-color 0.7s ease;
}

.part1 .part1-image img {
    border-radius: 24px;
    width: 871px;
    height: 660px;
    object-fit: cover;
}

@media screen and (min-width: 320px) {
    .part1 {
        justify-content: center;
        align-items: center;
        display: flex;
        border: 1px solid var(--primary-color);
        width: 100%;
        height: 458px;
        flex-direction: column-reverse;
        border-radius: 24px;
        gap: 16px;
        box-shadow: 0 4px 24px 0 rgba(0, 0, 0, 0.08);
        padding: 16px;
    }
    
    .part1 .part1-text {
        align-items: center;
        justify-content: center;
        border: none;
        padding: 0;
        margin: 0;
        gap: 0;
        height: auto;
        box-shadow: none;
        width: 100%;
    }

    .part1 .part1-text h1 {
        height: 24px;
        font-size: 120%;
        font-weight: 900;
        font-family: "Inter", sans-serif;
        text-align: center;
    }

    .part1 .part1-text p {
        width: 100%;
        font-size: 14px;
        font-family: "Open Sans", sans-serif;
        white-space: normal;
        word-wrap: break-word;
    }

    .part1 .part1-image {
        display: flex;
        justify-content: center;
    }

    .part1 .part1-image img {
        width: 100%;
        height: 231px;
        object-fit: cover;
    }
}

@media screen and (min-width: 800px) { 
    .part1 {
        height: 550px;
        align-items: center !important;
    }

    .part1 .part1-text {
        gap: 20px;
    }

    .part1 .part1-text h1 {
        font-size: 28px;
        width: auto;
    }
    
    .part1 .part1-text p {
        width: 80%;
        font-size: 16px;
        text-align: center;
    }

    .part1 .part1-image {
        width: 60%;
    }

    .part1 .part1-image img {
        width: 100%;
        height: 300px;
        object-fit: cover;
    }
}

@media screen and (min-width: 1024px) {
    .part1 {
        border: none;
        width: 100%;
        height: 70vh;
        flex-direction: row;
        align-items: center;
        border-radius: 24px;
        gap: 0;
        box-shadow: none;
        padding: 0;
    }
    
    .part1 .part1-text {
        border: 1px solid var(--primary-color);
        margin: 0 24px 0 0;
        padding: 32px 56px;
        justify-content: space-evenly;
        height: 70vh;
        box-shadow: 0 4px 24px 0 rgba(0, 0, 0, 0.08);;
        width: 40%;
        align-items: start;
    }

    .part1 .part1-text h1 {
        font-size: 30px;
        width: auto;
        text-align: left;
    }

    .part1 .part1-text p {
        font-size: 16px;
        text-align: left;
    }

    .part1 .part1-image {
        display: flex;
        justify-content: center;
    }

    .part1 .part1-image img {
        width: 100%;
        height: 70vh;
        object-fit: cover;
    }
}

@media screen and (min-width: 1300px) {
    .part1 {
        display: flex;
        align-items: start;
        justify-content: space-between;
        height: 91vh;
        margin-top: 0;
    }

    .part1 .part1-text {
        border: 1px solid var(--primary-color);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        margin: 0 24px 0 0;
        padding: 32px 56px;
        border-radius: 24px;
        box-shadow: 0 4px 24px 0 rgba(0, 0, 0, 0.08);
        width: 423px;
        height: 600px;
    }

    .part1 .part1-text h1 {
        width: 328px;
        height: 108px;
        align-items: end;
        display: flex;
    }

    .part1 .part1-text p {
        align-items: center;
        display: flex;
    }

    .part1 .part1-text a {
        font-family: "Inter", sans-serif;
        text-decoration: none;
        font-weight: bold;
        font-size: 18px;
        color: var(--white-color);
        padding: 16px 24px;
        border-radius: 8px;
        opacity: 0.9;
        background-color: var(--primary-color);
        border: 3px solid var(--primary-color);
        transition: background-color 0.7s ease;
    }

    .part1 .part1-text a:hover {
        border: 3px solid var(--primary-color);
        color: var(--primary-color);
        background-color: var(--white-color);
        transition: background-color 0.7s ease;
    }

    .part1 .part1-image img {
        border-radius: 24px;
        width: 800px;
        height: 600px;
        object-fit: cover;
    }
}