@font-face {
    font-family: 'Roboto';
    src: url('/fonts/Roboto-Regular-webfont.woff') format('woff');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Roboto';
    src: url('/fonts/Roboto-Bold-webfont.woff') format('woff');
    font-weight: 700;
    font-style: normal;
}

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
	line-height: 1.5;
}

header {
    position: fixed; /* Fixed positioning */
    top: 0; /* Stick to the top */
    left: 0;
    width: 100%;
    background-color: #fff; /* White background for the navbar */
    z-index: 1000; /* Ensure it stays on top of other content */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Optional shadow for better visibility */
    padding: 10px 20px;
}

nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 1220px; /* Constrain the width */
    margin: 0 auto; /* Center the nav */
}

nav .logo img {
    height: 50px;
}

nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin-left: 20px;
    display: flex;
    align-items: center;
}

nav ul li a {
    color: #1a1e29;
    text-decoration: none;
    font-weight: 500;
}

.hero {
    background: url('img/cmg-hero.webp') no-repeat center center/cover;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    color: #1a1e29;
    text-align: center;
    margin-top: 60px; /* Adjust margin to account for the fixed nav height */
}

.hero-text h1 {
    font-size: 3em;
    margin-top: 10%;
}

section {
    padding: 60px 20px;
}

.tagsag {
	background: url('img/cmg-tagsag.webp') rgba(0, 0, 0, 0.7) no-repeat center center/cover;
	background-blend-mode: multiply;
}

.tagsag .content, .clients-msg .content {
	text-align: center;
}

.about .content, .services .content, .clients .content, .contact .content, .tagsag .content, .clients-msg .content {
    max-width: 1200px;
    margin: 0 auto;
}

.services .overlay, .clients .overlay, .tagsag .overlay, .clients-msg .overlay {
    color: white;
    padding: 20px;
}

.services .columns {
    display: flex;
    flex-wrap: wrap;
}

.services .column {
    flex: 1;
    margin: 10px;
}

.services .columns img, .logos img {
    width: 100%;
    height: auto;
}

.logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.logos .logo {
    flex: 1 1 calc(33.333% - 40px); /* Adjust width to fit three per row */
    box-sizing: border-box; 
    margin: 20px; 
	padding: 10px;
    text-align: center;
	background-color: white;
}

.service-box {
    margin-bottom: 20px;
	border: solid 1px #1a1e29;
	padding: 20px;
}

.icon {
	height: 50px;
}

.button {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 45px;
    background-color: #ec6516;
    color: #ffffff;
    border: none;
    border-radius: 2px;
    letter-spacing: 2px;
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

.button:hover {
    background-color: #fff;
    color: #ec6516;
    border: solid 1px #ec6516;
}

.clients-msg {
	background: url('img/Ugyfel-elegedettseg-bg.webp') rgba(0, 0, 0, 0.3) no-repeat center center/cover;
	background-blend-mode: multiply;
}

.fp {
	font-size: 10px;
}

.fp a {
	color: white;
}

footer {
    background-color: #1a1e29;
    color: white;
    text-align: center;
    padding: 10px 0;
    margin-top: 60px; 
}

#cookie-banner #box {
    background: white;
    padding: 30px;
    width: 80%;
    max-width: 600px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    text-align: center;
}

#accept-cookies {
    margin-top: 20px;
  }


@media (min-width: 1220px) {
    .cookie-banner {
        flex-direction: row; /* Change back to row direction for larger screens */
        justify-content: space-between; /* Space between elements */
    }
    
    .cookie-banner p, .cookie-banner button {
        margin: 0;
    }
    
    .cookie-banner button {
        margin-top: 0; /* Remove margin-top on larger screens */
    }
}

@media (min-width: 1220px) {
	nav {
		justify-content: space-between;
	}
}

@media (max-width: 1024px) {
  #cookie-banner #box {
        width: 90%;
        padding: 20px;
  }
}

@media (max-width: 768px) {
	nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav ul li {
        margin-left: 0;
        margin-top: 10px;
    }

    .hero-text h1 {
        font-size: 2em;
    }

    .services .columns {
        flex-direction: column;
    }
    
    #cookie-banner #box {
        width: 95%;
        padding: 15px;
    }
}

@media ( max-width : 480px ){
	nav ul li a {
        font-size: 14px;
    }
	
	.hero-text {
		margin-top: 30px;
	}

    .hero-text h1 {
        font-size: 1.5em;
    }

    .services .column, .logos .logo {
        margin: 5px;
    }
	
	.logos .logo {
        flex: 1 1 calc(50% - 40px); /* Adjust width to fit two per row on mobile */
    }

    #accept-cookies {
         margin: 20px 0;
    }

    #cookie-settings-modal {
         width: 80%;
    }

}

@media (max-width: 320px) {
    .logos .logo {
       flex: 1 1 100%; /* Full width on very small devices */
    }
}

