.offer-section {
    padding-top: 129px;
    padding-bottom: 12.3em;
    background-image: url("/img/aboutme/background.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    backdrop-filter: blur(5000px);
    min-height: 40em;
    align-items: center;
    flex-direction: column;
    display: flex;
    overflow: hidden;
}

.offer-section h1 {
    margin-top: 2em;
    background-color: var(--plain);
    width: 10em;
    height: 2em;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 0.2em solid var(--lighterbrown)
}

.offer-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.offer-list button {
    font-size: 24px;
    height: 3.5em;
    border: 0;
    background-color: var(--brown);
    color: var(--plain)
}

.offer-list button:hover {
    cursor: pointer;
    background-color: var(--lightbrown);
}

.offer {
    margin-bottom: 1em;
    background-color: var(--lighterbrown);
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 50em;
}

.offer-text {
    transition: font-size 0.5s ease-in-out;
    position: relative;
    color: var(--plain);
    height: fit-content;
}

.offer-text p.spaced-text {
    text-align: justify;
    text-justify: inter-word;
}

.offer-text p, .offer-text ul {
    transition: font-size 0.5s ease-in-out;
    text-align: center;
    overflow-wrap:  break-word;
    line-height: 1.5em;
    font-size: 0;
}

.offer-text h2 {
    transition: font-size 0.5s ease-in-out;
    text-align: center;
    overflow-wrap: break-word;
    font-size: 0;
}

.offer-text.active {
    transition: font-size 0.5s ease-in-out;
    height: auto;
    font-size: 20px;
    padding: 1em;
}

.offer-text.active p, .offer-text.active ul {
    transition: font-size 0.5s ease-in-out;
    font-size: 1em;
    line-height: 1.5em;
}

.offer-text li {
    list-style-position: inside;
}

.offer-text.active h2 {
    transition: font-size 0.5s ease-in-out;
    font-size: 1.5em;
    margin-bottom: 0.5em;
    margin-top: 0.5em;
}

#item2 h2 {
    margin-bottom: 0;
}

#item2 p:first-of-type {
    margin-bottom: 1em;
}


@media only screen and (max-width: 900px) {
    .offer {
        width: 40em;
    }
}

@media only screen and (max-width: 700px) {
    .offer {
        width: 30em;
    }

    .offer-text.active p {
        font-size: 17px;
    }
}

@media only screen and (max-width: 550px) {
    .offer {
        width: 100%;
    }

    .offer-list {
        width: 100%;
    }

    .offer-container {
        width: 100%;
    }

    .offer-text.active h2 {
        font-size: 24px;
    }

    .offer-list button {
        font-size: 20px;
    }
}

@media only screen and (max-width: 450px) {
    .offer-text.active p {
        font-size: 15px;
    }

    .offer-section h1 {
        width: 96vw;
    }
}

@media only screen and (max-width: 350px) {
    .offer-section h1 {
        font-size: 24px;
    }

    .offer-text.active p {
        font-size: 13px;
    }

    .offer-list button {
        font-size: 15px;
    }
}