#bemutatkozaskep,
#johelyenimg,
#titleimg {
    max-width: 450px;
    width: 80%;
    height: auto;
    border-radius: 1rem;
    display: block;
    margin: 0 auto;
}

#aboutmediv,
#johelyendiv {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    text-align: right;
}

#aboutmetextdiv,
#johelyentxt {
    flex: 1;
    min-width: 250px;
    margin-top: 2rem;
    text-align: left;
}

#aboutmediv .box:first-child,
#johelyendiv .box:first-child {
    flex: 0 0 auto;
}

#titleimg {
    max-width: 80%;
    height: auto;
    border-radius: 3rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

#aboutmetextdiv {
    flex: 1 1 50%;
    max-width: 600px;
    min-width: 250px;
    margin-top: 2rem;
    text-align: right;
}

#aboutmediv .box img {
    flex-shrink: 0;
    max-width: 450px;
    width: 100%;
    height: auto;
    border-radius: 1rem;
}

#aboutmetextdiv,
#johelyenimgdiv {
    background: rgba(243, 243, 243, 0);
    box-shadow: none;
    padding: 0;
}

#aboutmetextdiv h2 {
    margin-bottom: 2%;
}

#aboutmetextdiv h3 {
    margin-bottom: 5%;
}

#aboutmetextdiv p,
#aboutmetextdiv h4 {
    margin: 0;
}

.titleimgdiv {
    text-align: center;
    padding-top: 2rem;
    padding-bottom: 1rem;
}

#johelyentxt {
    background: none;
    box-shadow: none;
    padding: 0;
    flex: 0 1 500px;
    margin: 0 auto;
    text-align: left;
    display: block;
}

body {
    padding-top: 4.5rem;
}

.larger {
    font-size: 140%;
}

#aboutmebutton {
    align-self: self-end;
    width: 9rem;
    height: 3rem;
    margin-top: 2rem;
    border: none;
}

#aboutmebutton:hover {
    transform: scale(1.05);
    background-color: blue;
}

#aboutbutton {
    width: 15rem;
    height: 3rem;
    margin-top: 2rem;
    border: none;
    align-self: center;
}

#aboutbutton:hover {
    transform: scale(1.05);
    background-color: blue;
}

@media (max-width: 1024px) {

    #aboutmediv,
    #johelyendiv {
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin: 1.5rem auto;
        padding: 1.5rem 1rem;
        gap: 0.75rem;
    }

    #johelyendiv.highlightdiv {
        padding-left: 1rem;
        padding-right: 1rem;
    }

     #aboutmediv .box,
    #johelyendiv .box,
    #bemutatkozaskepdiv {
        width: 100%;
        max-width: 600px;
        min-width: 0;
        background: transparent;
        box-shadow: none;
        padding: 0;
        display: block;
        text-align: center;
    }

    #aboutmetextdiv,
    #johelyentxt {
        margin-top: 0.5rem;
        text-align: center;
    }

    #aboutmetextdiv h2,
    #aboutmetextdiv h3,
    #aboutmetextdiv h4,
    #aboutmetextdiv p,
    #johelyentxt h3 {
        text-align: center;
    }
    
    #johelyentxt ul {
        text-align: left;
    }

    #bemutatkozaskepdiv {
        padding-top: 2rem
    }

    #johelyentxt .texttoleft {
        text-align: center;
    }

    #johelyentxt {
        order: 1;
        flex: 0 1 400px;
    }

    #johelyenimgdiv {
        order: 2;
    }

    #bemutatkozaskep,
    #johelyenimg,
    #titleimg {
        max-width: 320px;
        width: 70%;
        border-radius: 1.5rem;
        margin: 0.5rem auto;
    }

    #bemutatkozaskepdiv,
    #johelyenimgdiv {
        text-align: center;
    }

    #aboutmebutton,
    #aboutbutton {
        align-self: center;
        margin-left: auto;
        margin-right: auto;
    }

    .titleimgdiv {
        padding-top: 1.5rem;
        padding-bottom: 1rem;
    }
}

@media (max-width: 600px) {

    body {
        font-size: 0.95rem;
    }

    #aboutmediv,
    #johelyendiv {
        padding: 1.5rem 1rem;
        margin: 1.5rem auto;
    }

    #aboutmediv img#bemutatkozaskep,
    #johelyendiv img#johelyenimg {
        width: 70vw;
        max-width: 320px;
        margin: 0.5rem auto;
        border-radius: 1rem;
    }

    #johelyentxt ul {
        font-size: 0.95rem;
    }
}
