/* style.css - Karbonlábnyom weboldal stílusai */

/* Alap stílusok */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.4;
}

header {
    background: #4c9caf;
    color: white;
    text-align: center;
    padding: 0.5rem 0;
}

nav {
    background: #21829d;
    color: white;
    padding: 0.5rem 1rem;
    text-align: center;
}

nav a {
    color: white;
    text-decoration: none;
    margin: 0 15px;
    font-weight: normal;
    transition: font-weight 0.3s ease;
}

nav a:hover {
    text-decoration: none;
    font-weight: bold;
}

main {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}

iframe {
    display: block;
    margin: 20px auto;
    border: 0px solid #ccc;
}

footer {
    background: #4c9caf;
	color: #f8f9fa; /* Nagyon halvány szürke, majdnem fehér */
    text-align: center;
    padding: 1rem 0;
    margin-top: 20px;
	font-size: 12px;
}

footer a {
    color: #f8f9fa;
    text-decoration: none;
    font-weight: normal;
    transition: font-weight 0.3s ease;
	font-size: 12px; /* 10px karakter a linkeknek is */
}

footer a:hover {
    text-decoration: none;
    font-weight: bold;
	color: #fafafa; 
}

/* Kép konténerek */
.image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.image-container img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
}

.responsive-image-container {
    text-align: center;
    margin: 20px 0;
}

.responsive-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
}

/* Link stílusok */
.highlight-link {
    color: #ff5733;
    font-weight: bold;
    text-decoration: none;
    position: relative;
}

.highlight-link:hover {
    color: #c70039;
    text-decoration: underline;
}

.highlight-link::after {
    content: '⇑';
    color: #ff5733;
    font-weight: normal;
    position: relative;
    margin-right: 0px;
}

/* Nyelvválasztó */
.language-selector {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 100;
}

.flag-icon {
    width: 40px;
    height: 30px;
}

/* Kép pozicionálás */
img.alignleft {
    float: left;
    margin: 0 15px 10px 0;
}

/* Háromoszlopos konténer stílusok */
.three-column-container {
    max-width: 1200px;
    margin: 20px auto;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: center;
    gap: 40px;
    min-height: 400px;
}

.three-column {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.three-column-button {
    display: flex;
    align-items: center;
    justify-content: center;
}

.three-column-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #57c3bc;
    color: #ffffff;
    border-radius: 6px;
    text-decoration: none;
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    width: auto;
    justify-content: center;
}

.three-column-btn:hover {
    opacity: 0.90;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.three-column-btn .label {
    font-size: 1rem;
    font-weight: 600;
}

.three-column-btn svg {
    display: inline-block;
}

.three-column-image {
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.three-column-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.three-column-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.three-column-image:hover img {
    transform: scale(1.05);
}

.three-column-text {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    height: 80%;
}

.three-column-text h2 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.5rem;
    border-bottom: 2px solid #57c3bc;
    padding-bottom: 8px;
}

.three-column-text p {
    margin-bottom: 15px;
    font-size: 1rem;
}

.three-column-text ul {
    padding-left: 20px;
    margin-bottom: 15px;
}

.three-column-text li {
    margin-bottom: 8px;
}

.three-column-highlight {
    background-color: #f0f7f7;
    padding: 15px;
    border-left: 4px solid #57c3bc;
    border-radius: 4px;
    margin: 15px 0;
}

/* Modal stílusok */
.three-column-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    animation: threeColumnFadeIn 0.3s;
}

.three-column-modal-content {
    display: block;
    margin: auto;
    max-width: 90%;
    max-height: 90%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: threeColumnZoomIn 0.3s;
    border-radius: 4px;
}

.three-column-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.three-column-close:hover {
    color: #bbb;
}

@keyframes threeColumnFadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}

@keyframes threeColumnZoomIn {
    from {transform: translate(-50%, -50%) scale(0.9);}
    to {transform: translate(-50%, -50%) scale(1);}
}

/* Címkefelhő stílusok */
.tag-cloud {
    margin: 20px 0;
    text-align: center;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.tag-link {
    color: #4c9caf;
    text-decoration: none;
    margin: 0 8px;
    padding: 5px 10px;
    background-color: white;
    border: 1px solid #dee2e6;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.tag-link:hover {
    color: #21829d;
    text-decoration: none;
    font-weight: bold;
    background-color: #e9ecef;
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Reszponzív stílusok */
@media (max-width: 992px) {
    .three-column-container {
        gap: 30px;
    }
    
    .three-column {
        min-width: 280px;
    }
}

@media (max-width: 768px) {
    .three-column-container {
        flex-direction: column;
    }
    
    .three-column {
        width: 100%;
    }
    
    .three-column-text {
        padding: 20px;
    }
    
    .language-selector {
        top: 60px;
        right: 10px;
    }
    
    nav a {
        margin: 0 10px;
        display: inline-block;
        margin-bottom: 5px;
    }
}

@media (max-width: 480px) {
    .three-column-text {
        padding: 15px;
    }
    
    .three-column-btn {
        padding: 10px 15px;
    }
    
    main {
        padding: 0 10px;
    }
    
    nav {
        padding: 0.5rem;
    }
    
    nav a {
        margin: 0 5px;
        font-size: 0.9rem;
    }
}

/* Nyomtatási stílusok */
@media print {
    .language-selector,
    nav,
    iframe,
    .three-column-btn {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    header, footer {
        background: white !important;
        color: black !important;
    }
}