*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: 0.2s linear;
}

html{
    /**** Storing Colors In Variables*****/
    --body-clr: #424E59;
    --primary-clr: #ffffff;
    --primary-light-clr: #eaf3fa;
    --links-clr: #BF705E;
    --text-clr: #3f7277;
}

.right-menu li
{
    display: inline-block;
    margin-top: 30px !important;
}
.right-menu li .fa
{
    font-size: 18px;
    margin-right: 10px;
    cursor: pointer;
}
.navbar-brand img
{
    width: 160px;
}
.navbar-brand
{
    left: 10%;
    top: 25px;
    transform: translateX(-50%);
    position: absolute;
}
.header
{
    background: #ffffff;
    box-shadow: -1px 8px 32px 0px rgba(0,0,0,0.08);
    margin-bottom: 80px;
}

.navbar
{
    padding: 0 300px !important;
}
.navbar-toggler
{
    border: none !important;
    background: transparent;
    outline: none !important;
    padding: 10px !important;
    margin-top: 30px;
    position: relative;
    z-index: 1001;
}

.navbar-toggler span {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  background-color: #000000;
  transition: 0.4s;
  border-radius: 2px;
}

/* Aktív állapot - X-re változás */
.navbar-toggler.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.navbar-toggler.active span:nth-child(2) {
  opacity: 0;
}

.navbar-toggler.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}


/****cards****/
body{
    width: 100%;
    min-height: 100vh;
    background-color: #fefefe;
    background-image: radial-gradient(#424E59 50px, #fefefe 50px);
    background-size: 24px 24px;
      
}
.service{
    width: 100%;
    padding: 30px 8%;
    background-color: var(--body-clr);
}
.service .section-head{
    max-width: 700px;
    margin: 0px auto 25px;
    text-align: center;
}
.section-head h1{
    position: relative;
    font-size: 32px;
    margin: 10px 0px 30px;
    color: var(--primary-clr);
}
.button-group{
    text-align: center;
    margin-bottom: 40px;
}
.button-group .button{
    display: inline-block;
    padding: 10px 20px;
    margin: 5px;
    background-color: #000000;
    color: var(--primary-clr);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.4s;
    border: none;
    border-radius: 5px;
    outline: none;
    cursor: pointer;
}
.button-group .button.active{
    background-color: var(--primary-clr);
    color: var(--body-clr);
}
.button-group .button:hover{
    background-color: var(--primary-clr);
    color: var(--body-clr);
}
div.gallery{
    width: 100%;
    display: flex;
    flex-wrap: wrap;
}
div.gallery .item{
    position: relative;
    margin: 4px;
    width: calc(33.33% - 8px);
    overflow: hidden;
    cursor: pointer;
    border-radius: 13px;
} 
.item img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 13px;
    transition: 0.5s;
}
div.gallery .item:hover img{
    transform: scale(1.15);
}
.item .overlay{
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(56, 55, 55, 0.7);
    color: var(--body-clr);
    padding: 15px;
    overflow: hidden;
    transition: opacity 0.2s ease-in-out;
    opacity: 0;
}
.item:hover .overlay{
    opacity: 1;
}
.item .overlay a{
    display: inline-block;
    padding: 8px 16px;
    border: 2px solid var(--links-clr);
    color: var(--links-clr);
    text-decoration: none;
    font-size: 14px;
    border-radius: 8px;
    transition: 0.3s;
}
.item .overlay a:hover{
    background-color: var(--links-clr);
    color: var(--primary-clr);
}

@media(max-width: 1024px){
    div.gallery .item{
        width: calc(50% - 8px);
    }
}

@media(max-width: 600px){
    div.gallery .item{
        width: 100%;
        margin: 4px 0px;
    }
}

/* Navbar styles for mobile */
@media (max-width: 768px) {
    .header {
        margin-bottom: 0%;
        min-height: 90px;
    }

    .navbar-brand
    {
        left: 75%;
        top: 25px;
        transform: translateX(-50%);
        position: absolute;
    }

    .navbar
    {
    padding: 0 40px !important;
    }

    .navbar-nav {
        text-align: left;
        margin-top: 10px;
    }

    .right-menu {
        text-align: left;
        margin-top: 15px;
    }

    .right-menu .input-group {
        justify-content: left;
    }
}

/*----End credit----*/
.end.end {
    text-align: center;
    background-color: #424E59;
    padding: 20px;
    font-size: 14px;
    color: #ffffff;
  }
  
  .end.end a {
    color: #ac7269;
    text-decoration: none;
    font-weight: bold;
  }
  
  .end.end a:hover {
    text-decoration: underline;
  }

/*-----footer------*/
.footer {
    background-color: #fff;
    color: #8D9FA6;
    padding: 5px;
    text-align: center;
    position: fixed;
    bottom: 0;
    width: 100%;
    box-shadow: 0 4px 5px 0 rgba(0,0,50,0.5) ;
  }
  
  .footer a {
    color: #fff;
    text-decoration: none;
  }