/*univerzális reset* nem kell  ha reset css van
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
} */
/*font: öröklődik mindig, úgyhogy minden font relatív cuccot bodyba!*/

:root {
    --text-color: #050c0c;
    --general-light: #f7f7f7;
    --white: #fff;
    --black: #150e0b;
    --dark-olive: #6c4f3b;
    --light-grey: #cececa;
    --rosy-brown: #a59078;
    --dim-gray: #746d6c;
    --light-brown-oppacity: rgba(199, 187, 166, 0.8);
    --dark-brown-oppacity: rgba(61, 57, 50, 0.8);
}

body {
    font-family: 'Lato', sans-serif;
    background-color: var(--general-light);
    font-weight: 400;
    font-size: 16px;
    line-height: 1.7;
    color: var(--black);
}

/*typo*/
h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.7rem;
}

p {
    font-size: 1.2rem;
    line-height: 1.7;
    padding: 15px 0;
}

.header {
    height: 95vh;
    /*95% a viewport-hieght-nek*/
    background-image: linear-gradient(to right bottom,
            rgba(199, 187, 166, 0.8),
            rgba(61, 57, 50, 0.8));
    background-size: cover;
    background-position: top;
    position: relative;
}

.header__logo-box {
    position: absolute;
    top: 40px;
    left: 40px;
}

.header__logo {
    height: 35px;
    width: auto;
    /*nem muszáj, magától is ilyen lenne*/
}

.header__text-box {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    /*középre igazít*/
    text-align: center;
    /*a benne lévő szöveget középre*/
}

.heading-primary {
    color: #fff;
    text-transform: uppercase;
    /*kiveszi a recegést az animaciobol*/
    backface-visibility: hidden;
    margin-bottom: 60px;
}

.heading-primary--main {
    display: block;
    /*span alapvetően inline, azért block, hogy sortörás legyen utána*/
    font-size: 2.5rem;
    font-weight: 400;
    letter-spacing: 15px;

    animation: moveInLeft;
    animation-duration: 2s;
}

.heading-primary--sub {
    display: block;
    font-size: 1.2rem;
    font-weight: bold;
    letter-spacing: 12px;
    padding-top: 1.8rem;
    animation: moveInRight 1s ease-out;
}

/* animation */

@keyframes moveInLeft {
    0% {
        opacity: 0;
        transform: translateX(-100px);
    }

    80% {
        transform: translateX(10px);
    }

    100% {
        opacity: 1;
        transform: translate(0);
    }
}

@keyframes moveInRight {
    0% {
        opacity: 0;
        transform: translateX(100px);
    }

    80% {
        transform: translateX(-1rem);
    }

    100% {
        opacity: 1;
        transform: translate(0);
    }
}

@keyframes moveInButton {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translate(0);
    }
}

/*bg video*/
.bg-video {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    z-index: -1;
    opacity: 0.7;
}

.bg-video__content {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

/*button*/
.btn:link,
.btn:visited {
    text-transform: uppercase;
    text-decoration: none;
    padding: 1rem 1.5rem;
    margin: 1rem;
    display: inline-block;
    border-radius: 100px;
    transition: all 0.2s;
    /*shorthand minden animalható*/
    position: relative;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn:active {
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(10, 0, 0, 0.2);
}

.btn--white {
    background-color: #fff;
    color: #777;
}

.btn::after {
    content: '';
    display: inline-block;
    height: 100%;
    width: 100%;
    border-radius: 100px;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    transition: all 0.4s;
}

.btn--white::after {
    background-color: var(--general-light);
}

.btn--lightbrown {
    background-color: #f6f6f6;
    color: #777;
}

.btn--lightbrown::after {
    background-color: #ececec;
}

.btn:hover::after {
    transform: scaleX(1.4) scaleY(1.6);
    opacity: 0;
    /* fade in */
}

.btn--animated {
    animation: moveInButton 0.5s ease-out 0.75;
    animation-fill-mode: backwards;
}

/* navigation */
/* .navigation {
} */
.navigation__checkbox {
    display: none;
}

.navigation__button {
    background-color: #fff;
    height: 7rem;
    width: 7rem;
    position: fixed;
    top: 6rem;
    right: 6rem;
    border-radius: 50%;
    z-index: 2000;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.1);
    text-align: center;
    cursor: pointer;
}

.navigation__button:hover .navigation__icon::before {
    top: -1rem;
}

.navigation__button:hover .navigation__icon::after {
    top: 1rem;
}

.navigation__icon {
    position: relative;
    margin-top: 3.5rem;
}

.navigation__icon,
.navigation__icon::before,
.navigation__icon::after {
    width: 3rem;
    height: 2px;
    background-color: #333;
    display: inline-block;
}

.navigation__icon::before,
.navigation__icon::after {
    content: '';
    position: absolute;
    left: 0;
    transition: all 0.2s;
}

.navigation__icon::after {
    top: 0.8rem;
}

.navigation__icon::before {
    top: -0.8rem;
}

.navigation__checkbox:checked + .navigation__button .navigation__icon {
    background-color: transparent;
}

.navigation__checkbox:checked + .navigation__button .navigation__icon::before {
    transform: rotate(135deg);
    top: 0;
}

.navigation__checkbox:checked + .navigation__button .navigation__icon::after {
    transform: rotate(-135deg);
    top: 0;
}

.navigation__background {
    height: 6rem;
    width: 6rem;
    border-radius: 50%;
    position: fixed;
    top: 6.5rem;
    right: 6.5rem;
    background-image: radial-gradient(circle,
            var(--general-light),
            var(--dark-olive));
    z-index: 1000;
    transition: -webkit-transform 0.8s;
    transition: transform 0.8s cubic-bezier(0.86, 0, 0.07, 1);
}

/*
cubic-bezier(0.86, 0, 0.07, 1)
cubic-bezier(0.86, 0, 0.07, 1)
cubic-bezier(0.86, 0, 0.07, 1)
 */
.navigation__nav {
    height: 100vh;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1500;
    opacity: 0;
    width: 0;
    transition: all 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.navigation__list {
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    list-style: none;
    text-align: center;
    width: 100%;
}

.navigation__item {
    margin: 1rem;
}

.navigation__link:link,
.navigation__link:visited {
    display: inline-block;
    font-size: 3rem;
    font-weight: 300;
    padding: 1rem 2rem;
    color: var(--text-color);
    text-decoration: none;
    text-transform: uppercase;
    background-image: linear-gradient(120deg,
            transparent 0%,
            transparent 50%,
            #fff 50%);
    background-size: 240%;
    transition: all 0.4s;
}

.navigation__link span {
    margin-right: 1rem;
    display: inline-block;
}

.navigation__link:hover,
.navigation__link:active {
    background-position: 100%;
    transform: translateX(1rem);
}

.navigation__checkbox:checked ~ .navigation__background {
    transform: scale(80);
}

.navigation__checkbox:checked ~ .navigation__nav {
    opacity: 1;
    width: 100%;
}

/*about*/
#about {
    background-color: var(--general-light);
    padding-top: 3rem;
    text-align: center;
}

.center-box {
    width: 70%;
    margin: 2rem auto;
    background-color: var(--white);
    text-align: left;
    padding: 1.5rem;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.2);
}

#about ul {
    padding-left: 2rem;
}

#about ul li {
    position: relative;
    font-size: 1.2rem;
}

#about ul li::before {
    content: "";
    width: 20px;
    height: 20px;
    display: block;
    border-radius: 50%;
    background: var(--dark-olive);
    position: absolute;
    left: -30px;
    top: 50%;
    margin-top: -10px;
}

#about ul li::after {
    content: "";
    width: 8px;
    height: 12px;
    display: block;
    position: absolute;
    left: -24px;
    top: 50%;
    margin-top: -8px;
    border-bottom: solid 2px white;
    border-right: solid 2px white;
    transform: rotate(45deg);
}

article {
    overflow: hidden;
}

/*contact*/
#contact {
    text-align: center;
}

/*portfolio*/
.portfolio-header {
    text-align: center;
}

.built-sites {
    background-color: #f7f7f7;
    padding: 25rem 0 15rem 0;
}

/* webdes lap */
#built-sites {
    margin: 1%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

.card {
    perspective: 150rem;
    -moz-perspective: 150rem;
    position: relative;
    height: 36rem;
    width: 300px;
    margin: 20px;
}

.card-side {
    position: absolute;
    top: 0;
    left: 0;
    width: 300px;
    height: 36rem;
    backface-visibility: hidden;
    background-color: var(--light-grey);
    margin: 10px;
    border-radius: 3px;
    overflow: hidden;
    box-shadow: 0 1rem 4rem rgba(0, 0, 0, 0.3);
    transition: all 0.8s ease;
}

.card-side-front {
    background-color: var(--light-grey);
}

.card-side-back {
    background-image: linear-gradient(to right bottom,
            var(--light-grey),
            var(--dark-olive));
    transform: rotateY(180deg);
}

.card:hover .card-side-front {
    transform: rotateY(-180deg);
}

.card:hover .card-side-back {
    transform: rotateY(0deg);
}

.card__picture {
    background-size: cover;
    clip-path: polygon(0 0, 100% 0, 100% 80%, 0 100%);
}

.card-picture img {
    height: auto;
    width: 100%;
    opacity: 0;
}

.card__heading {
    font-size: 2rem;
    font-weight: 300;
    text-transform: uppercase;
    text-align: right;
    position: absolute;
    top: 12rem;
    right: 3rem;
    width: 70%;
}

.card__heading-span {
    padding: 1rem 1rem;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.card__details {
    padding: 2.5rem;
}

.card__details ul {
    list-style: none;
    width: 80%;
    margin: 0 auto;
}

.card__details ul li {
    text-align: center;
    font-size: 1.3rem;
    padding: 1rem;
}

.card__details ul li:not(:last-child) {
    border-bottom: 1px solid var(--black);
}

.card__cta {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.card__price-box {
    font-size: 1.4rem;
    text-align: center;
    margin-bottom: 5rem;
    color: white;
}

.card__price-box a {
    margin-top: 1.5rem;
}

.wp {
    position: relative;
}

.wp::after {
    content: url(../img/wp24.png);
    position: absolute;
    top: 10px;
    right: 10px;
}

.boot {
    position: relative;
}

.boot::after {
    content: url(../img/boot48.png);
    position: absolute;
    top: 10px;
    right: 10px;
}

.sass {
    position: relative;
}

.sass::after {
    content: url(../img/sass.png);
    position: absolute;
    top: 10px;
    right: 10px;
}

.sites img {
    height: auto;
    width: 100%;
    opacity: 0;
}

.image {
    background-position: center;
    background-size: cover;
    margin: 0px;
    position: relative;
}

.text {
    padding: 15px;
}

.text h2 {
    padding: 15px;
}

.text p {
    padding: 15px 0;
}

footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    background-color: var(--light-grey);
}

footer img {
    margin: 20px;
    height: 30px;
}

footer img:hover {
    background-color: var(--dark-olive);
    border-radius: 50%;
}
