/* Font csatolása: */
@import url('https://fonts.googleapis.com/css2?family=Ibarra+Real+Nova:wght@400;700&family=Work+Sans:ital,wght@0,400;0,700;1,400;1,700&display=swap');

/* böngészö def. atírása: */
/* -- minden elemre a méret a box merete legyen, ne logjon ki - border-box tulajdonsag */

*,
*:before,
*:after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Work Sans', sans-serif;
    font-size: 20px;
    color: #444;
}

/* képek max a .content-box szélességében - ő a szülő HTML alapján */
img {
    max-width: 100%;
}

a {
    color: #2588c9;
    text-decoration: none;
}

p,
li {
    line-height: 1.5;
}

ul {
    padding: 20px;
}


ul li::marker {
    color: #2588c9;
}

ol {
    padding-left: 34px;
}

ol li {
    position: relative;
    z-index: 1;
    margin-bottom: 10px;
    padding-left: 10px;
}

ol li::marker {
    color: #fff;
    font-weight: bold;
}

ol li::before {
    content: "";
    width: 30px;
    height: 30px;
    background: #2588c9;
    display: block;
    position: absolute;
    left: -30px;
    top: 0;
    z-index: -1;
    border-radius: 50%;
}

h1,
h2,
h3 {
    font-family: 'Ibarra Real Nova', serif;
    color: #000;
    font-weight: normal;
}

h1 {
    font-size: 50px;
}

h2 {
    font-size: 50px;
    margin-top: 0;
}

h3 {
    font-size: 30px;
}

.button,
input[type=submit] {
    display: inline-block;
    padding: 12px 20px;
    color: #fff;
    background: #2588c9;
    border-radius: 30px;
    text-transform: uppercase;
    font-weight: bold;
    border: none;
    font-family: inherit;
    font-size: inherit;
    line-height: 1;
}

.align-center {
    text-align: center;
}

/* Idáig basic formázás - innentöl design specifikusabb */

.beige {
    background: #f2ede9;
    box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.2);
}

.cover-img {
    object-fit: cover;
    height: 100%;
}


/* FEJLÈC kialakítás: Logo + menu */

header {
    margin-top: 20px;
}
/* headerben a logo és a menü két végére kerüljön, elosztott térközzel, középvonalhoz rendezve */
header .content-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#logo {
    max-width: 400px;
}

#logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

/* logoban a hivatkozások közvetlen gyermekre vonatkoztatva - abból is az elsö */
#logo a > span:first-of-type {
    width: 70px;
    flex-shrink: 0;
    margin-right: 10px;
}
/* logoban az összes span - igazításhoz */
#logo a span {
    display: block;    
}

/* menu elendezés beállítása */
#menu ul {
    display: flex;
    list-style-type: none;
}

#menu ul li a {
    color: inherit;
    margin-left: 40px;
    padding: 15px;
}

#menu ul li a:hover {
    color: #2588c9;
}

/* hero hatterkeppel + rálóg a menure + overflow beállítással */
#hero {
    background: url(img/hero-t.jpg);
    background-size: cover;
    overflow: hidden;
}

/* -- heroban a szöveges rész méretezése/elheyezése */
#hero-txt {
    max-width: 650px;
    padding: 8vw 0 14vw 0;
}

section:not(#hero) {
    padding: 80px 0;
}


#contact-info {
    list-style-type: none;
    padding: 0;
}

#contact-info img {
    width: 24px;
    vertical-align: middle;
}

#contact-info li {
    margin-bottom: 10px;
}

/* keretezett képek */
#services img,
#portfolio img,
#about img,
#work img {
    border: solid 5px #f2ede9;
    filter: drop-shadow(2px 4px 6px rgba(0, 0, 0, 0.2));
}

input[type=text],
input[type=email],
textarea {
    background: #fff;
    font-family: inherit;
    padding: 10px;
    border: solid 5px #f2ede9;
    filter: drop-shadow(2px 4px 6px rgba(0, 0, 0, 0.2));
    width: 100%;
    margin-bottom: 40px;
    font-size: inherit;
}

footer {
    background: #2588c9;
    color: #fff;
    overflow: hidden;
    padding: 20px 0;
}

footer ul a {
    color: #fff;
}

footer ul {
    display: flex;
    justify-content: center;
}

footer ul li {
    margin: 10px 20px;
}

@media only screen and (max-width: 1280px) {
    header .content-box {
        display: block;
    }

    #logo {
        margin: 0 auto;
    }

    #menu ul {
        justify-content: center;
    }

    #hero {
        background: #f2f2f2 url(img/hero-t.jpg);
        background-position: bottom right -100px;
        background-size: auto 60%;
        background-repeat: no-repeat;
    }

    #hero-txt {
        padding: 3vw 0 30vw 0;
        margin: 0 auto;
    }
}

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

    #menu ul,
    footer ul {
        display: block;
    }

    h1 {
        font-size: 36px;
    }

    h2 {
        font-size: 32px;
        margin-top: 0;
    }

    h3 {
        font-size: 28px;
    }

    #hero {
        background-position: bottom right -150px;
        background-size: auto 55%;
    }

    #hero-txt {
        padding: 3vw 0 50vw 0;
        margin: 0 auto;
    }
}

@media only screen and (max-width: 480px) {
    body {
        font-size: 16px;
    }

    section:not(#hero) {
        padding: 30px 0;
    }

    #hero {
        background-position: bottom right -150px;
        background-size: auto 45%;
    }

    #hero-txt {
        padding: 3vw 0 60vw 0;
        margin: 0 auto;
    }
}
