@import url('https://fonts.googleapis.com/css2?family=MonteCarlo&family=Montserrat&family=Poppins:wght@200&display=swap');

:root {
    --r: 63;
    --g: 43;
    --b: 33;
    --text-color: rgb(var(--r), var(--g), var(--b));
}

.about-me-container {
    position: relative;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    justify-content: space-around;
    max-width: 1264px;
    margin: 1em;
}

.about-me-container-column {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    flex-direction: column;
}

.about-me-item {
    position: relative;
    margin: 3em;
    font-size: 20px;
    font-family: 'Montserrat', sans-serif;
    margin-left: 1em;
    margin-bottom: 0;
    margin-right: 1em;
    text-align: justify;
    color: var(--text-color);
}

.about-me-item > img {
    position: relative;
    width: clamp(250px, 40vw, 600px);

    text-align: center;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.quote {
    position: relative;
    font-size: 35px;
    font-family: 'MonteCarlo', cursive;
    top: 1em;
    left: 1em;
    transition: all .2s;
}

p[class="quote"]+p {
    position: absolute;
    font-size: 20px;
    right: 4em;
    font-style: italic;
    transition: all .2s;
}

.about-me-container p {
    margin-bottom: 1em;
}

.list {
    padding-left: 1em;
}

q {
    font-style: italic;
}

ul + p {
    margin-top: 1em;
}

p a {
    color: rgb(88, 61, 47);
}

.date {
    position: relative;
    text-align: right;
}

#about2016 {
    top: -5em;
}

#about2009 {
    top: -2em;
}

.horizontal-line { 
    position: relative;
    width: 90vw;
    max-width: 1400px;
    margin: 2em;
    border-bottom: 1px solid var(--text-color);
}

.def {
    position: relative;
    top: 1em;
    font-size: 17px;
}

a img {
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    transition: ease-out .1s;
}

a img:hover {
    -webkit-transform: scale(0.95);
    -ms-transform: scale(0.95);
    transform: scale(0.95);

    transition: ease-in .1s;
}

@media screen and (max-width:1300px) {

    .about-me-item > img {
        max-width: 600px;
    }

    img[alt="barwy szkła"] {
        width: 300px;
    }

    .quote {
        top: 0;
    }

    .quote + p {
        top: 3em;
    }

    #about2016 {
        padding-top: 1em;
    }
}

@media screen and (max-width:1000px) {

    img[alt="barwy szkła"] {
        width: 300px;
    }

    .quote {
        font-size: 30px;
    }

    p[class="quote"]+p {
        font-size: 17px;
    }
}

@media screen and (max-width: 850px) {
    .about-me-container {
        flex-direction: column;
    }

    .about-me-container img {
        width: 100vw;
    }

    .quote {
        font-size: 35px;
    }

    p[class="quote"]+p {
        font-size: 20px;
    }

    img[alt="barwy szkła"] {
        width: 250px;
    }
}

@media screen and (max-width:499px) {
    
    .about-me-item {
        font-size: 15px;
    }

    .quote {
        font-size: 25px;
    }

    p[class="quote"]+p {
        font-size: 13px;
    }

    #about2016 {
        top: -2em;
    }

    .def {
        font-size: 10px;
    }

    img[alt="barwy szkła"] {
        width: 200px;
    }
}