@import url('https://fonts.googleapis.com/css2?family=Kalnia:wght@400;500;600;700&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

@keyframes fade-in-out {
    0% {
        opacity: 0;
        transform: translateY(100px) scale(1);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}



html {
    scroll-behavior: smooth;
    background-color:  #E4D9CD;
    scroll-padding-top: 100px;
}

section{
    padding-top: 0.1px;
}

a{
    border-bottom: 2px solid transparent;
    border-radius: 2px;
    outline: none;
}

a:focus{
    border-color: #CC613D;
}

.logo{
    padding: 0 40px;
}

.logo img{
    width: 285px;
    height: 80px;
}

header {
    height: 100px;
    background-color: #2E4D3D;
    color: #E4D9CD;
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
}

.navbar {
    font-family: Montserrat;
    font-size: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    vertical-align: middle;
    height: 100px;
    margin: auto;
}

.nav-links {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.nav-links li {
    padding: 0;
}

.nav-links a {
    color: #E4D9CD;
    text-decoration: none;
    transition: color 0.3s;
    display: block;
    padding: 20px;
    border-bottom: 2px solid transparent;
}

.nav-links a:focus {
    border: 2px solid;
    border-color: #CC613D;
    border-radius: 2px;
    outline: none;
}

.nav-links a:hover {
    color: #F0E8DF;
    font-weight: bold;
    border: none;
}

.nav-links a.active span{
    border-bottom: 4px solid #CC613D;
    font-weight: bold;
}

.hamburger {
    display: none;
    font-size: 30px;
    cursor: pointer;
    user-select: none;
}

body {
    margin: 0;
    padding: 0;
}

.image-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.full-width-image {
    width: 100%;
    height: 700px;
    object-fit: cover;
}

.text-overlay {
    position: absolute;
    color: #F0E8DF;
    font-size: 40px;
    font-family: Kalnia;
    font-weight: 600;
    text-align: center;
    line-height: 46px;
    max-width: 613px;
    max-height: 92px;
}

.bekezdes2 {
    height: auto;
    width: 56%;
    font-family: Montserrat;
    font-weight: 400;
    font-size: 20px;
    line-height: 32px;
    color: #193326;
    margin: auto;
}

.dupla{
    display: flex;
}

.portre{
    width: 200px;
    height: 301px;
    border-radius: 20px;
    margin: 20px 30px;
    flex-shrink: 0;
    max-width: 100%;
}

.bekezdes3 {
    background-color: #193326;
    padding-bottom: 60px;
    margin-top: 40px;
}

.bekezdes3 h2{
    color: #F0E8DF
}

.mosaic-container {
    width: 95%;
    margin: auto;
    display: grid;
    grid-template-areas: 
        "box1 box2"
        "box3 box2";
}

.box {
    font-family: Montserrat;
    font-weight: 400;
    font-size: 20px;
    line-height: 32px;
    background-color: #2E4D3D;
    color: #F0E8DF;
    padding: 40px;
    margin-top: 20px;
    border-radius: 20px;
    align-self: start;
    animation: fade-in-out linear both;
    animation-timeline: view();
    animation-range: entry 10% cover 30%;
    box-sizing: border-box;
}

.box-1 {
     grid-area: box1;
     margin: 10px;
}

.box-2 {
     grid-area: box2;
     margin: 10px;
     margin-top: 200px;
}

.box-3 {
     grid-area: box3;
     margin: 10px;
}

.box h1{
    font-family: Montserrat;
    font-weight: 900;
    font-size: 24px;
    line-height: 100%;
    letter-spacing: 14%;
    text-align: center;
    text-transform: uppercase;
}

.table{
    display: flex;
}

table {
    width: 60%;
    margin: 0 auto;
    border-collapse: collapse;
    margin-bottom: 60px;
}

tr {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

td {
    border: none;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    color: #193326;
}

td:nth-child(2) {
    flex-grow: 1;
    height: 1px;
    background-color: #193326;
    margin: 0 20px;
}

.elso-konz {
    padding: 40px;
    background-color: #99492E;
}

.elso-konz p {
    margin: auto;
    color: #F0E8DF;
    max-width: 800px;
    height: auto;
    font-family: Montserrat;
    font-weight: 400;
    size: 20px;
    line-height: 32px;
}

.map-container {
    height: auto;
    margin: 50px auto;
}

iframe{
    width: 56%;
    height: 500px;
    margin: auto;
    display: block;
    border: none;
}

.map-container p {
    font-size: 20px;
    font-weight: 400;
    font-family: Montserrat;
    text-align: center;
    color: #193326;
}

.bekezdes5 {
    background-color: #193326;
    color: #F0E8DF;
    text-align: center;
    font-family: Montserrat;
    font-size: 20px;
    line-height: 32px;
    padding-bottom: 100px;
}

.bekezdes5 h2 {
    color: #E4D9CD;
}

.kapcsolat {
    margin: auto;
    max-width: 800px;
}

form {
    padding: 40px;
    color: #F0E8DF;
    font-weight: bold;
    margin: auto;
    background-color: #2E4D3D;
    max-width: 800px;
    height: 656px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
}

form label{
    margin: auto;
    margin-left: 0;
}

input {
    height: 52px;
    background-color: #E4D9CD;
    color: #193326;
    padding: 10px 20px;
    border-radius: 10px;
    border: 2px solid transparent;
    box-sizing: border-box;
    outline: none;
    font-family: Montserrat;
    font-weight: 600;
    font-size: 16px;
    line-height: 24px;
}

textarea {
    height: 200px;
    background-color: #E4D9CD;
    color: #193326;
    padding: 10px 20px;
    border-radius: 10px;
    border: 2px solid transparent;
    box-sizing: border-box;
    outline: none;
    font-family: Montserrat;
    font-weight: 600;
    font-size: 16px;
    line-height: 24px;
}

input:focus, textarea:focus {
    border-color: #CC613D;
}

.checkbox-div{
    display: flex;
    align-items: center;
    margin-top: 20px;
}

.checkbox {
    margin-right: 10px;
    height: 24px;
    width: 24px;
    border-radius: 4px;
    outline: none;
    border: 2px solid transparent;
}

.submit-btn {
    margin: auto;
    margin-top: 20px;
    padding: 10px 20px;
    border-radius: 10px;
    width: 112px;
    height: 52px;
    background-color: #99492E;
    font-family: Montserrat;
    font-weight: 700;
    font-style: Bold;
    font-size: 20px;
    line-height: 32px;
    color: #F0E8DF;
    outline: none;
    border: 2px solid transparent;
}

.submit-btn:hover {
    background-color: #CC613D;
}

.submit-btn:focus{
    border-color: #F0E8DF;
}

h1{
    text-align: center;
    font-weight: bold;
}

h2{
    font-weight: 600;
    font-family: 'Kalnia';
    font-size: 40px;
    line-height: 46px;
    text-align: center;
    color: #193326;
}

h2::after{
    content: '';
    display: block;
    width: 100px;
    height: 8px;
    background-color: #99492E;
    margin: 20px auto 0 auto;
}

.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #2E4D3D;
    color: #F0E8DF;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, transform 0.4s ease;
    transform: translateY(20px);
}

.toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

footer{
    background-color: #193326;
}

footer div{
    color: #F0E8DF;
    font-family: Montserrat;
    max-width: 880px;
    text-align: center;
    padding: 10px 10px;
    margin: auto;
}

.szokoz{
    padding-right: 5px;
}


@media (max-width: 990px) {
    .logo{
        padding: 0 10px;
    }

    .logo img{
        width: 285px;
    }

    .hamburger-icon {
        width: 18px;
        height: 18px;
        margin-right: 24px;
    }

    .hamburger-icon div {
        display: block;
        width: 18px;
        height: 2px;
        margin-bottom: 4px;
        background-color: #E4D9CD;
        z-index: 20;
    }
    
    .nav-links {
        display: flex;
        flex-direction: column;
        background-color: #193326;
        position: absolute;
        top: 100%;
        left: 40px;
        right: 40px;
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        transition: max-height 0.5s ease-in-out, opacity 0.5s ease-in-out;
    }

    .nav-links li {
        text-align: center;
    }

    .nav-links a {
        box-sizing: border-box;
    }

    .nav-links a:hover {
        font-weight: bold;
    }

    .hamburger:checked ~ .nav-links{
        max-height: 300px;
        opacity: 1;
    }

    .full-width-image{
        height: 512px;
    }

    .bekezdes2{
        width: 100%;
    }

    .text-overlay{
        font-size: 36px;
        padding: 30px;
    }

    .dupla{
        width: 90%;
        margin: auto;
        font-size: 16px;
        line-height: 24px;
    }

    .portre{
        margin: auto;
        margin-bottom: 20px;
    }

    .dupla{
        flex-direction: column;
    }

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

    .box{
        font-size: 16px;
        line-height: 24px;
        padding: 40px 24px;
    }

    .box h1{
        padding-bottom: 20px;
    }

    .box-2{
        margin: 10px;
    }

    .table{
        display: flex;
        flex-direction: column;
    }

    table{
        width: 90%;
        margin: auto;
        font-size: 16px;
        white-space: nowrap;
    }

    td:first-child {
        max-width: 60%;
        margin-right: 0;
    }
    
    td:nth-child(2) {
        margin: 0 10px;
    }

    .elso-konz{
        padding: 40px 24px;
    }

    .elso-konz p{
        font-size: 16px;
        line-height: 24px;
    }

    .bekezdes4 p{
        font-size: 16px;
    }

    .bekezdes4 iframe{
        height: 230px;
        width: 90%;
    }

    .bekezdes5{
        padding-bottom: 60px;
    }

    .bekezdes5 p{
        font-size: 16px;
        line-height: 24px;
        margin: 15px;
    }

    form{
        width: 70%;
        padding-bottom: 20px;
    }

    .checkbox{
        margin: auto;
        margin-right: 15px;
        width: 30px;
        height: 30px;
    }

    .checkbox-text{
        font-size: 16px;
        line-height: 24px;
        text-align: left;
    }
}