@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

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

html {
/*    font-size: 62.5%;*/
}

body {
    font-family: "Poppins", sans-serif;
}

#modal {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(23,23,23, 0.8);
    z-index: 3;
    visibility: hidden;
}

.logo {
    background-image: url(./image/szerencsepenz-logo-web.svg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    flex-basis: 405px;
    order: 1;
    font-size: 2.3rem;
    margin-bottom: 3rem;
    height: 90px;
}

.container {
    max-width: 1200px;
    width: 90%;
    margin: auto;
}

.navbar-container:not.container {
    overflow-x: hidden;
}

.container p {
    margin-bottom: 1rem;
}

p.blockquote,
#rolunk p.blockquote,
#about-us p.blockquote {
    font-style: italic;
    padding-left: 3rem;
    font-size: 90%;
}

p.blockquote::before,
#rolunk p.blockquote ::before,
#about-us p.blockquote ::before {
    position: relative;
    display: block;
    content: '\0000a0';
    mask-image: url(./image/szerencsepenz_blockquote.svg);
    -webkit-mask-image: url(./image/szerencsepenz_blockquote.svg);
    background-size: contain;
    background-repeat: no-repeat;
    background-color: rgba(122, 122, 122, 0.65);
    mask-size: 2.4rem 2rem;
    -webkit-mask-size: 2.4rem 2rem;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    width: 2.4rem;
    height: 2rem;
    right: 3rem;
    top: 2em;
}


.btn {
    display: inline-block;
    padding: 0.5em 1.5em;
    text-decoration: none;
    border-radius: 50px;
    cursor: pointer;
    outline: none;
    margin-top: 1em;
    text-transform: uppercase;
    font-weight: lighter;
}

.btn-primary {
    color: #fff;
    background: #bed73d;
    text-shadow: none;
}

.btn-primary:hover {
    background: #84a226;
    transition: background 0.3s ease-in-out;
}

/* ............/navbar/............ *

/* desktop mode............/// */

.navbar input[type="checkbox"],
.navbar .hamburger-lines {
    display: none;
}

.navbar {
    box-shadow: 0px 5px 10px 0px #aaa;
    position: fixed;
    width: 100%;
    background: #fff;
    color: #000;
    opacity: 0.85;
    height: 100px;
    z-index: 12;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    height: 140px;
    align-items: center;
}

.menu-items {
    order: 2;
    display: flex;
}

.menu-items li {
    list-style: none;
    margin-left: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    white-space: nowrap;
}

.menu-items a {
    text-decoration: none;
    color: #444;
    font-weight: 500;
    transition: color 0.3s ease-in-out;
}

.menu-items a:hover {
    color: #bed73d;
    transition: color 0.3s ease-in-out;
}

.bold-green {
    color: #bed73d;
    font-weight: bold;
}

.bold-dark-green {
    color: #84a226;
    font-weight: bold;
}

.contact-photo  {
    flex: 1 1 150px;
    padding: 30px;
}

.contact-photo p.contact-name {
    text-align: center;
}

.contact-photo img {
    display: block;
    width: 150px;
    height: 150px;
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
    margin: auto;
}

/* ............//// Showcase styling ////......... */

.showcase-area {
    height: 50vh;
    background: linear-gradient(
            rgba(240, 240, 240, 0.144),
            rgba(255, 255, 255, 0.336)
    ), url('./image/cta-coin-machine.jpg');
    background-size: cover;
    background-position: top;
    background-repeat: no-repeat;
}

.showcase-container {
    color: #fff;
    text-shadow: 1px 1px 4px black;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%;
    font-size: 1.6rem;
}

.main-title {
    text-transform: uppercase;
    margin-top: 1.5em;
}

.grey-bg {
    background: #f5f5f7
}

#mi-ez, #about,
#ermegep-tipusok, #coin-press-machine-types,
#vasarlas, #shop {
    padding: 100px 0 0;
    background: #f5f5f7;
}

#rolunk, #about-us,
#helyszinek, #locations {
    padding: 100px 0 0;
    background: #fff;
}

#helyszinek, #locations {
    padding-bottom: 30px;
}

.about-wrapper {
    display: flex;
    flex-wrap: wrap;
}

.about-wrapper li {
    color: #555;
    font-size: 1.2rem;
}

.about-wrapper h2 {
    font-size: 2.3rem;
}

.about-wrapper p {
    font-size: 1.2rem;
    text-align: justify;
    color: #555;
}

.about-wrapper.flex-galleries {
    justify-content: space-between;
}

p.small {
    font-size: 1.2rem;
    color: #666;
    font-weight: 600;
}

.about-img, .about-img-flip {
    flex: 1 1 400px;
    padding: 30px;
    z-index: 1;
}

.about-img, .about-img-flip {
/*    transform: translateX(150%);
    animation: about-img-animation 1s ease-in-out forwards;*/
}

.about-img-flip {
/*    transform: translateX(-150%);*/
}

.about-img.contain img {
    object-fit: contain;
}

.about-wrapper.flip {
    flex-direction: row-reverse;
}

.gallery-container {
    padding: 0 30px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    row-gap: 2rem;
    overflow: hidden;
}

.gallery-container::after {
    display: none;
    content: "";
    height: 350px;
    width: 466px;

}

.gallery {
/*    flex-grow: 1; */
    position: relative;
    overflow: hidden;
}

.image-gallery {
    width: 466px;
}

.image-gallery div.image {
    width: 466px;
    height: 350px;
    cursor: pointer;
    position: relative;
}

.image-gallery div.image img {
    object-fit: contain;
    width: 100%;
    height: 100%;
    vertical-align: middle;
}

.overlay {
    position: absolute;
    width: 100%;
    height: 50px;
    background: rgba(57, 57, 57, 0.702);
    bottom: 0;
    left: 0;
    color: #fff;
    font-size: 0.8rem;
    /* center overlay content */
    display: flex;
    align-items: center;
    padding-left: 5px;
    justify-content: flex-start;
}

@keyframes about-img-animation {
    100% {
        transform: translate(0);
    }
}

.about-text, .about-text-flip {
    flex: 1 1 400px;
    padding: 30px;
/*    margin: auto;*/
    transform: translate(-150%);
    animation: about-text-animation 1s ease-in-out forwards;

}

.about-text.left-aligned p {
    text-align: left;
}

.about-text-flip {
/*    transform: translate(150%);*/
}

@keyframes about-text-animation {
    100% {
        transform: translate(0);
    }
}

.about-img img,
.about-img-flip img {
    display: block;
    max-width: 100%;
    margin: auto;
    object-fit: cover;
    object-position: right;
    border: 1px solid #eee;
    box-shadow: 0 0 3px #1a1a1a69;
    padding: 4px;
}

.about-img img + img {
    margin-top: 1rem;
}

#vasarlas, #shop {
    padding: 5rem 0 2rem 0;
}

#vasarlas > h2,
#shop > h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: 40px;
    text-transform: uppercase;
    color: #555;
}

.shop-container {
    display: flex;
    justify-content: space-between;
}

.shop-container img {
    display: block;
    width: 100%;
    margin: auto;
    max-height: 300px;
    object-fit: cover;
    object-position: center;
}

.img-container {
    margin: 0 1rem;
    position: relative;
}

.img-content {
    position: absolute;
    top: 70%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    z-index: 2;
    text-align: center;
    transition: all 0.3s ease-in-out 0.1s;
}

.img-content h3 {
    color: #fff;
    font-size: 2.2rem;
}

.img-content p {
    color: #fff;
}

.img-content a {
    font-size: 1.2rem;
}

.img-container::after {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.871);
    opacity: 0;
    z-index: 1;

    transform: scaleY(0);
    transform-origin: 100% 100%;
    transition: all 0.3s ease-in-out;
}

.img-container:hover::after {
    opacity: 1;
    transform: scaleY(1);
}

.img-container:hover .img-content {
    opacity: 1;
    top: 40%;
}

span.email a {
    color: #84a226;
    font-weight: bold;
}

#footer {
    width: 100%;
    padding: 2.6rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    background: rgb(65, 65, 65);
    color: #fff;
}

#footer h2 {
    text-align: left;
    font-size: 1.2rem;
    font-weight: 500;
}

#footer a {
    color: #84a226;
    text-decoration: none;
    cursor: pointer;
}
#fb-link {
    display: inline-block;
    width: 100%;
    font-size: large;
    text-decoration: none;
    text-align: center;
}

#fb-link svg.fb-icon {
    mask-image: url('./image/facebook.svg');
    -webkit-mask-image: url('./image/facebook.svg');
    background-color: rgba(123, 162, 38, 1);
    mask-size: 24px 24px;
    -webkit-mask-size: 24px 24px;
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
    display: inline;
    width: 24px;
    height: 24px;
    margin-right: 5px;
    margin-bottom: -0.2em;
}

a.gallery-button {
    position: absolute;
    top: 0;
    right: 0;
    display: none;
    width: 28px;
    height: 28px;
    border: rgba(123, 162, 38, 1) solid 3px;
    font-size: large;
    text-decoration: none;
    text-align: center;
}

a.gallery-button.prev {
    right: 34px;
}

a.gallery-button svg.arrow {
    mask-image: url('./image/arrow.svg');
    -webkit-mask-image: url('./image/arrow.svg');
    background-color: rgba(123, 162, 38, 1);
    mask-size: 22px 22px;
    -webkit-mask-size: 22px 22px;
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
    display: inline;
    width: 22px;
    height: 22px;
}

a.gallery-button.next svg.arrow {
    transform: rotate(180deg);
}

.smaller {
    font-size: smaller;
}

@media (max-width: 1280px) {
    .image-gallery {
        width: 320px;
    }

    .image-gallery div.image {
        width: 320px;
        height: 240px;
    }

    .gallery-container::after {
        width: 320px;
        height: 240px;
    }
}

@media (max-width: 960px) {
    .logo {
        /*flex-basis: 70px;*/
        height: 90px;
        background-image: url(./image/szerencsepenz-logo-web-head.svg);
    }

    .logo {
        flex-basis: 70px;
        height: 70px;

    }

    .menu-items li {
        font-size: 1.1rem;
    }

    .image-gallery {
        width: 380px;
    }

    .image-gallery div.image {
        width: 380px;
        height: 285px;
    }

    .gallery-container::after {
        width: 380px;
        height: 285px;
    }
}

@media (max-width: 768px) {
    #modal.open {
        visibility: visible;
    }

    .navbar {
        opacity: 0.95;
        height: 50px;
    }

    .navbar-container input[type="checkbox"],
    .navbar-container .hamburger-lines {
        display: block;
    }

    .navbar-container {
        display: block;
        position: relative;
        height: 64px;
    }

    .navbar-container input[type="checkbox"] {
        position: absolute;
        display: block;
        height: 32px;
        width: 30px;
        top: 20px;
        left: 20px;
        z-index: 5;
        opacity: 0;
    }

    .navbar-container .hamburger-lines {
        display: block;
        height: 23px;
        width: 35px;
        position: absolute;
        top: 17px;
        left: 20px;
        z-index: 2;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .navbar-container .hamburger-lines .line {
        display: block;
        height: 4px;
        width: 100%;
        border-radius: 10px;
        background: #333;
    }

    .navbar-container .hamburger-lines .line1 {
        transform-origin: 0% 0%;
        transition: transform 0.4s ease-in-out;
    }

    .navbar-container .hamburger-lines .line2 {
        transition: transform 0.2s ease-in-out;
    }

    .navbar-container .hamburger-lines .line3 {
        transform-origin: 0% 100%;
        transition: transform 0.4s ease-in-out;
    }

    .navbar .menu-items {
        padding-top: 100px;
        background: #fff;
        height: 100vh;
        max-width: 300px;
        transform: translate(-150%);
        display: flex;
        flex-direction: column;
        margin-left: -40px;
        padding-left: 50px;
        transition: transform 0.5s ease-in-out;
        box-shadow: 5px 0px 10px 0px #aaa;
    }

    .navbar .menu-items li {
        margin-bottom: 1.5rem;
        font-size: 1.3rem;
        font-weight: 500;
    }

    .logo {
        position: absolute;
        top: 6px;
        right: 15px;
        height: 40px;
        width: 50%;
        background-image: url('./image/szerencsepenz-logo-web-narrow.svg');
        z-index: -1;
        font-size: 3rem;
    }

    .navbar-container input[type="checkbox"]:checked ~ .menu-items {
        transform: translateX(0);
    }

    .navbar-container input[type="checkbox"]:checked ~ .hamburger-lines .line1 {
        transform: rotate(35deg);
    }

    .navbar-container input[type="checkbox"]:checked ~ .hamburger-lines .line2 {
        transform: scaleY(0);
    }

    .navbar-container input[type="checkbox"]:checked ~ .hamburger-lines .line3 {
        transform: rotate(-35deg);
    }

    #mi-ez, #about,
    #rolunk, #about-us,
    #ermegep-tipusok, #coin-press-machine-types,
    #helyszinek, #locations,
    #vasarlas, #shop {
        padding: 30px 0;
    }

    .product-type:not(:last-child) {
        margin-bottom: 3rem;
    }

    .product-type {
        box-shadow: 5px 5px 10px 0 #aaa;
    }

    .img-container {
        margin: 0;
    }
}

@media (max-width: 500px) {
    html {
        font-size: 90%;
    }

    .showcase-container {
        font-size: 1.6rem;
    }

    .navbar .menu-items li{
        font-size: 1.6rem;
    }

    .contact-container {
        display: flex;
        flex-direction: column;
    }

    .contact-img {
        width: 90%;
        margin: 3rem auto;
    }

    .navbar .menu-items li {
        margin-bottom: 2.5rem;
        font-size: 1.8rem;
        font-weight: 500;
    }

   .about-wrapper.flip {
        flex-direction: row;
    }

    .about-text, .about-text-flip {
        padding: 20px;
    }

    .about-img img,
    .about-img-flip img {
        /*height: 300px;*/
        width: 100%
    }

    .gallery-container::after {
        display: none;
    }

    .image-gallery {
        width: 300px;
    }

    .image-gallery div.image {
        width: 300px;
        height: 225px;
    }

    #footer {
        padding: 2.2rem 1rem;
    }

    #footer p.smaller {
        font-size: small;
    }

    #footer a {
        font-size: initial;
    }

    .contact-photo {
        padding-top: 0;
    }
}

@media (max-width: 400px) {
    #home {
        font-size: 2rem;
    }
}
@media (orientation: landscape) and (max-height: 500px) {
    .navbar {
        height: 60px;
    }

    .logo {
        background-image: url(./image/szerencsepenz-logo-web-narrow.svg);
        margin-bottom: 2rem;
        height: 55px;
    }

    .navbar-container {
        height: 90px;
    }

    .showcase-area {
        height: 50vmax;
    }
}

@media (orientation: landscape) and (min-width: 1280px) {
    a.gallery-button {
        display: inline-block;
    }
}