:root {
    /*
    --feher: #e3d9c6;
     --piros: #dc2c18;
    */
    --piros: #a72920;
    --feher: #fff;
    --szurke: #6c757d;
    --hatter: hsla(0, 0%, 0%, 0.3);
    --pirosr: rgba(220, 44, 24, 0.05);
}

.navbar-brand {
    float: none;
}

/* Gomb */
.navbar-toggler {
    width: 47px;
    height: 34px;
    background-color: var(--piros);
    border: none;
    border-radius: 10%;
}

.navbar-toggler .line {
    width: 100%;
    float: left;
    height: 2px;
    background-color: var(--feher);
    margin-bottom: 5px;
}

/* Navigációs ablak formázás */
.navbar-collapse {
    font-size: 1em;
    font-weight: bolder;
}

.bg-custom {
    background-color: var(--feher);
}

.navbar-light .navbar-nav .nav-link {
    color: black;
}

.navbar-nav .nav-item .nav-link.active,
.navbar-nav .nav-item:hover .nav-link {
    color: var(--piros);
    text-decoration: underline;
    isolation: isolate;
}

.dropdown-item:hover,
.dropdown-item:focus {
    color: var(--feher);
    background-color: var(--piros);
}

.dropdown-item.active,
.dropdown-item:active {
    color: var(--feher);
    text-decoration: none;
    background-color: var(--piros);
}

.dropdown-menu {
    padding: 0%;
    border-radius: 0rem;
}

@media screen and (min-width:768px) {
    .navbar-collapse {
        flex-grow: 0;
    }

    .container-fluid.custom-container {
        justify-content: center;
    }
}

@media all and (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: none;
    }

    .navbar .nav-item:hover .dropdown-menu {
        display: block;
    }

    .navbar .nav-item .dropdown-menu {
        margin-top: 0;
    }
}

.navbar-toggler:focus {
    text-decoration: none;
    outline: var(--piros);
    box-shadow: none;
}

/* Lábléc */
.row.footer-container {
    color: var(--feher);
    background-color: black;

}


#tdhCarousel .carousel-inner .carousel-item>img {
    -webkit-animation: thing 20s;
    -o-animation: thing 20s;
    animation: thing 20s;
    object-fit: cover;
    object-position: center;
    height: 500px;
    overflow: hidden;
    opacity: 1;
}

@keyframes thing {
    from {
        transform: scale(1, 1);
    }

    to {
        transform: scale(1.5, 1.5);
    }
}

.carousel-caption {
    text-align: center;
    top: 50%;
    transform: translateY(-50%);
    position: absolute;
    visibility: visible;
}

.carousel-fade {
    opacity: 1;
}

#box {
    background-image: linear-gradient(var(--piros), var(--piros)),
        linear-gradient(var(--piros), var(--piros)),
        linear-gradient(var(--piros), var(--piros)),
        linear-gradient(var(--piros), var(--piros)),
        linear-gradient(transparent, transparent);
    background-repeat: no-repeat;
    background-size: 10px 50%, 50% 10px, 10px 50%, 50% 10px, calc(100% - 20px) calc(100% - 20px);
    background-position: left bottom, left bottom, right top, right top, 10px 10px;
    padding: 10px;
}

.gallery {
    background-color: var(--feher);
    padding: 50px;
}

.gallery img {
    background-color: black;
    width: 100%;
    box-shadow: 15px 15px 15px var(--hatter);
    cursor: pointer;
    border-radius: 0px;

}

#mygal .col .gallery-item:hover,
#mygal .col .gallery-item:active {
    opacity: 0.7;
    transform: scale(0.8);
    z-index: 1;
    fill-opacity: 1;
}

#mygal .col {
    margin-top: 0px;
}

#mygal {
    padding: 0px 20px;
}

/* Next & previous buttons */
.prev,
.next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -30px;
    color: black;
    font-weight: bold;
    font-size: 20px;
    border-radius: 0 3px 3px 0;
    z-index: 1;
    text-decoration: none;
    user-select: none;
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.next:hover {
    background-color: var(--hatter);
    color: var(--piros);
    border-radius: 10px 0 0 10px;
}

.prev:hover {
    background-color: var(--hatter);
    color: var(--piros);
    border-radius: 0 10px 10px 0;
}

#myModal.modal .modal-dialog {
    max-width: max-content;
    width: 90%;
}


/* The Modal (background) */
#myModal.modal {
    display: none;
    position: fixed;
    align-self: center;
    /* padding-top: 100px; */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: var(--hatter);

}

/* Modal Content */
#myModal.modal .modal-dialog .modal-content {
    position: relative;
    background-color: var(--feher);
    margin: auto;
    /* padding: 0; */

}

/* The Close Button */
.close {
    color: black;
    position: absolute;
    top: 10px;
    right: 25px;
    font-size: 35px;
    font-weight: bold;
    user-select: none;
}

.close:hover,
.close:focus {
    color: #999;
    text-decoration: none;
    cursor: pointer;
}

/* Hide the slides by default */
#myModal.modal .modal-dialog .modal-content .mySlides {
    display: none;
}

#myModal.modal .modal-dialog .modal-content .mySlides img {
    max-height: 90vh;
    cursor: default;
    user-select: none;
}

/* Number text (1/3 etc) */
.numbertext {
    color: black;
    font-size: 12px;
    padding: 8px 12px;
    position: absolute;
    font-weight: bold;
    top: 0;
    user-select: none;
}


img.hover-shadow {
    transition: 0.5s;
}

.hover-shadow:hover {
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    transform: scale(0.99);
}

#bezar:hover {
    color: var(--piros);
}

#mytopline.carousel img {
    object-fit: cover;
    object-position: top;
    height: 330px;
    width: 100%;
    overflow: hidden;
    opacity: 0.4;
}

#mytopline {
    background-color: black;
    height: fit-content;
}

.mytext {
    position: absolute;
    top: 50%;
    left: 50%;
}

#cardshadow.container .card {
    box-shadow: 15px 15px 15px var(--hatter);
}

#cardshadow.modal-body.card {
    box-shadow: 15px 15px 15px var(--hatter);
}

.accordion {
    --bs-accordion-active-color: var(--piros);
    --bs-accordion-btn-focus-border-color: var(--piros);
    --bs-accordion-btn-focus-box-shadow: none;
    --bs-accordion-active-bg: var(--pirosr);
    --bs-accordion-btn-active-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill=''%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");

}

.accordion-button {
    font-size: 20px;
    font-weight: bold;

}

.accordion-item {
    box-shadow: 15px 15px 15px var(--hatter);
    margin-bottom: 1rem;
    align-items: center;

}

.btn-cranetype {
    width: 100vw;
    max-width: 22rem;
    height: 15rem;
    margin: 1rem;
    border: none;
    box-shadow: 15px 15px 15px var(--hatter);

}

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

.modify {
    color: var(--feher);
    text-align: center;
    margin: 0px;
    font-size: 40px;
    font-weight: bold;
}

.cranetypeoverlay {
    height: 4rem;
    position: absolute;
    bottom: 0rem;
    background-color: rgba(0, 0, 0, 0.5);
    width: 100%;
    border-bottom-left-radius: calc(0.375rem - 1px);
    border-bottom-right-radius: calc(0.375rem - 1px);
    align-items: center;
    justify-content: center;
    display: flex;
}

#ModalLabel.modal-title {
    font-weight: 900;
    text-align: center;
    color: var(--piros);
}

/* Blog */

* {
    box-sizing: border-box;
}

/* Header/Blog Title */
.header {
    padding: 30px;
    font-size: 40px;
    text-align: center;
    background: white;
}

/* Create two unequal columns that floats next to each other */
/* Left column */
.leftcolumn {
    float: left;
    width: 70%;
}

/* Right column */
.rightcolumn {
    float: left;
    width: 30%;
    padding-left: 20px;
}

/* Fake image */
.fakeimg {
    background-color: #aaa;
    width: 100%;
    padding: 20px;
    border-radius: 10px;
    border: 10px solid var(--piros);
}

.blogborder {
    background-image:
        linear-gradient(var(--piros), var(--piros)),
        linear-gradient(var(--piros), var(--piros)),
        linear-gradient(var(--piros), var(--piros)),
        linear-gradient(var(--piros), var(--piros)),
        linear-gradient(transparent, transparent);
    background-repeat: no-repeat;
    background-size: 10px 100px, 200px 10px, 10px 100px, 200px 10px, calc(100% - 20px) calc(100% - 20px);
    background-position: left bottom, left bottom, right top, right top, 10px 10px;
    padding: 10px;
    display: flex;
    justify-content: center;
    height: fit-content;
    min-height: 110px;
    align-items: center;
    /* függőleges középre igazítás */
    text-align: left;
    /* balra igazítás */

}

/* Add a card effect for articles */
#blog.card {
    background-color: white;
    padding: 20px;
    margin-top: 20px;
}

/* Footer */
#blog.footer {
    padding: 20px;
    text-align: center;
    background: #ddd;
    margin-top: 20px;
}

/* Responsive layout - when the screen is less than 800px wide, make the two columns stack on top of each other instead of next to each other */
@media screen and (max-width: 800px) {

    .leftcolumn,
    .rightcolumn {
        width: 100%;
        padding: 0;
    }
}

#blog.card {
    box-shadow: 15px 15px 15px var(--hatter);
}

#topblog {
    background-color: var(--piros);
    border-color: var(--piros);
    color: var(--feher);
    width: 100%;
    margin-right: auto;
    text-align: left;
    font-size: 1rem;
}

#munkatarsak.card {
    box-shadow: 15px 15px 15px var(--hatter);
    width: 100%;
    min-width: 220px;
    height: 8rem;
    padding: 15px;
}


.heading-1 {
    position: relative;
    text-align: center;
    margin-bottom: 3rem;
}

.heading-1:before {
    content: "";
    display: block;
    border-top: solid 2px black;
    width: 100%;
    position: absolute;
    top: calc(50% + 2px);
    z-index: 0;
}

.heading-1 span {
    background: #fff;
    padding: 0 10px;
    position: relative;
    z-index: 1;
    font-weight: bold;
    display: inline-block;

}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
}

input:checked+.slider {
    background-color: #2196F3;
}

input:focus+.slider {
    box-shadow: 0 0 1px #2196F3;
}

input:checked+.slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
}


.carousel-control-prev:hover,
.carousel-control-next:hover,
.carousel-control-prev:active,
.carousel-control-next:active,
.carousel-control-prev:focus-visible,
.carousel-control-next:focus-visible {
    color: var(--piros);
    text-decoration: none;
    outline: 0;
    opacity: 0.9;
    font-size: 2rem;
    z-index: 10;
    background-color: var(--hatter);

}

.carousel-control-prev:hover,
.carousel-control-prev:active,
.carousel-control-prev:focus-visible {
    border-radius: 0px 10px 10px 0px;
}

.carousel-control-next:hover,
.carousel-control-next:active,
.carousel-control-next:focus-visible {
    border-radius: 10px 0px 0px 10px;
}

.carousel-control-prev,
.carousel-control-next {
    text-decoration: none;
    font-size: 2rem;
}

#refgallery .carousel-inner img {
    object-fit: contain;
    height: 500px;
    background-color: var(--piros);
}

#refgallery.carousel {
    border-radius: 10px;
    overflow: hidden;
}

.small-gallery {
    height: 125px;
    max-height: 125px;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    display: flex;
    justify-content: center;
    align-items: center;
}

.small-gallery::-webkit-scrollbar {
    height: 10px;
}

.small-gallery::-webkit-scrollbar-thumb {
    background-color: var(--piros);
    border-radius: 5px;
}

.small-gallery img {
    max-height: 80px;
    margin-right: 10px;
    background-color: var(--piros);
    box-shadow: 15px 15px 15px var(--hatter);
    border: 0px;
}

.img-thumbnail.active {
    transform: scale(1.1);
    z-index: 2;
}

.img-thumbnail {
    cursor: pointer;
}

.small-gallery {
    transition: 0.5s;
    margin-bottom: 3rem;
}

.small-gallery img:hover {
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    transform: scale(0.99);

}

#refgallery .carousel-indicators [data-bs-target] {
    background-color: var(--piros);
}

#reftable tr {
    height: 1rem;

}

.wrapping {
    /*display: inline-block;*/
    float: left;
    margin-right: 1rem;
}



#ref.card {
    align-items: center;
}

#refcard.card {
    border: none;
    width: 200px;
    height: 200px;
    gap: 20px;
}

.refoverlay {
    height: fit-content;
    position: absolute;
    bottom: 0px;
    background-color: rgba(0, 0, 0, 0.5);
    width: 200%;
    height: 100%;
    border-radius: 10px;
}

.refmodify {
    color: var(--feher);
    text-align: center;
    margin: 0px;
    font-size: 2rem;
    font-weight: bold;
    padding-top: calc(50% - 1rem);
}

.text-footer {
    color: black;
    text-decoration: none;
}

.ref-img {
    object-fit: cover;
    overflow: hidden;
    height: 100%;
    max-width: 200px;
    border-radius: 10px;

}

#ref-scrollbar::-webkit-scrollbar {
    height: 10px;
}

#ref-scrollbar::-webkit-scrollbar-thumb {
    background-color: var(--piros);
    border-radius: 5px;
}

.card-text {
    text-align: justify;
}

.accordion-body {
    text-align: justify;
}

#mytopline .carousel-caption {
    text-align: justify !important;
}

#index.card {
    box-shadow: 15px 15px 15px var(--hatter);
}

@media (max-width: 768px) {
    #phone.p-2 {
        font-size: 0.85rem;
    }
    #phonejustify.d-flex.justify-content-between {
        justify-content: center !important;
      }
    #mytopline.carousel {
        font-size: 0.85rem;
    }
}

.card-title.modify {
    margin: 5px;
    font-size: 2rem;
    font-weight: bold;
    vertical-align: middle;
}
.card-title.modify2 {
    margin: 5px;
    font-size: 1.5rem;
    font-weight: normal;
    vertical-align: middle;
    text-align: center;
    text-decoration: none;
    color: var(--feher);
}

.overlay {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    opacity: 1;
    background-color: black;
    opacity: 0.4;
    z-index: 10;
}

#slideshow .carousel-caption {
    z-index: 30;
   }



#refgal.gallery {
    padding: 0px;
       column-gap: 1rem;
       margin-bottom: 3rem;
}

#refgal.gallery .gallery-item {
    background-color: #eee;
  display: inline-block;
  margin: 0 0 1em;
  width: 100%;
}

/* Masonry on large screens */
@media only screen and (min-width: 1024px) {
    #refgal.gallery {
      column-count: 2;
    }
  }
  
  /* Masonry on medium-sized screens */
  @media only screen and (max-width: 1023px) and (min-width: 768px) {
    #refgal.gallery {
      column-count: 2;
    }
  }
  
  /* Masonry on small screens */
  @media only screen and (max-width: 767px) and (min-width: 540px) {
    #refgal.gallery {
      column-count: 1;
    }
}