*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-family: 'Hind Madurai', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
    overflow-x: hidden;
    color: black;
    font-size: 16px;
    background-color: #faf7f2;
}

html, body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    text-decoration: none;
}

/* ------------------------- NAV ------------------------- */

nav { /* nav sav */
    width: 100%;
    position: fixed;
    top: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    background-color: #faf7f2;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: transform 0.6s ease;
}

.navbar { /* fullscreen navbar */
    display: flex;
    flex-direction: row;
    flex-wrap: inherit;
    justify-content: center;
    width: 100%;
}

.navbar a {
    padding: 0 2rem 0 2rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    color: black;
}

.navbar a:hover {
  text-decoration: underline 2px solid black;
}

.navbar a:active {
    text-decoration: none;
}

/* .navbar a .active {
    text-decoration: none;
} */

.hamburger { /* mobil menu */
    width: 2rem; /* 32px szeles */
    height: 1.5rem; /* 24px magas */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin: 0 1rem;
    cursor: pointer;
}

.hamburger span {
    display: block;
    height: 0.25rem; /* 4px */
    background-color: black;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Animacio X allapotra */

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.logo {
    display: block;
    padding: 6px;
}

aside {
    position: fixed;
    bottom: 0;
    right: -50%;
    width: 50%;
    height: 100dvh;
    padding-top: 5.5rem; /* navbar alatt legyen minden menupont */
    display: flex;
    flex-direction: column;
    align-items: stretch; /* ez a kulcs: minden gyerek teljes szelesseg */
    transition: right 0.3s ease;
    background-color: #faf7f2;
    z-index: 500;
}

aside a {
    display: block; /* biztositja, hogy a border-bottom a teljes szellessegen fusson */
    padding: 1rem;
    color: black;
    border-bottom: 1px solid black;
    font-size: 1.5rem;
    font-weight: bold;
    text-transform: uppercase;
    text-align: left; /* a szoveg balra */
}

aside a:hover {
    background-color: #dceff5;
    transition: background-color 0.3s ease;
}

aside.active {
    right: 0;
}

@media only screen and (max-width: 992px) {
    .navbar {
        display: none
    }
}

@media only screen and (min-width: 992px) {
    .hamburger {
        display: none
    }
}

@media (max-width: 680px) {
    aside {
        width: 100%;
        right: -100%;
    }
}

/* ------------------------- BODY ------------------------- */

section {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    padding: 2rem 0;
}

h2 {
    padding: 1rem 0 1rem 0;
    font-size: 3rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3rem;
}

.h2 {
    padding: 1rem 0 1rem 0;
    font-size: 3rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3rem;
}

@media (max-width: 640px) {
  h2 {
    font-size: 2rem;
    letter-spacing: 0.2rem;
  }
  .h2 {
    font-size: 2rem;
    letter-spacing: 0.2rem;
  }
}

.h3 {
    font-size: 1.25rem;
    font-weight: 600;
}

.bluetext {
    text-transform: uppercase;
}

ul {
    list-style-type: none;
}

li {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.button {
    margin: 1rem;
    padding: 1rem;
    min-width: 250px;
    text-align: center;
    border-radius: 2rem;
    border: none;
    color: white;
    font-size: 1.3rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.2rem;
    background-color: #6bab45;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.button:hover {
    background-color: #5a983a;
    transition: background-color 0.3s ease;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0,0,0,0.15);
}

/* ----- OPENER SZEKCIO ----- */

.opener {
    min-height: 100vh;
    background: url("bpic09.jpg");
    background-attachment: fixed;
    background-position: top center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    padding: 0 1rem 0 1rem;
    color: white;
    z-index: 1;
}

.openerhead {
    width: 75%;
    text-align: center;
    text-transform: uppercase;
}

.openertext {
    width: 75%;
    text-align: center;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.learnmore { /* gomb egyeni formazasok */
    background-color: #6bab45;
    color: white;
}

@media only screen and (max-width: 640px) {
    .openerhead {
        width: 100%;
    }
    .openertext {
        width: 100%;
    }
}

/* ----- FEHER ALAPU SZEKCIOK KOZOS FORMAZASA ----- */

.about, .getinvolved, .contacts, .sponsors {
    color: black;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-wrap: wrap;
}

/* ----- FELKEPERNYOS SZEKCIOK ----- */

.dissectedsection {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
}

.dissectedleft {
    width: 50%;
    padding: 0 2rem 0 2rem;
    box-sizing: border-box;
    height: auto; /* csak a tartalom magassaga */
}

.dissectedright {
    width: 50%;
    min-height: 100vh;
}

.drone {
    background-image: url("bpic02.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: top center;
}

.drtwo {
    background-image: url("bpic03.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: top center;
}

@media only screen and (max-width: 800px) {
    .dissectedsection {
        flex-direction: column;
        min-height: auto;
        align-items: center;
    }

    .dissectedleft {
        width: 100%;
        min-width: 100%;
        height: auto;
    }

    .dissectedright {
        display: none;
    }
}

@media (max-width: 768px) {
  .opener,
  .programs,
  .news {
    background-attachment: scroll;
  }
}

/* ----- EGYKEPERNYOS SZEKCIOK ----- */

.programs, .news {
    position: relative;
    color: white;
    min-height: 75vh;
    padding: 0 1rem 0 1rem;
    z-index: 0; /* a navbar fole ne menjen */
}

.programs { /* csak sajat hatter */
    background: url("bpic08.jpg");
    background-attachment: fixed;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.news { /* csak sajat hatter */
    background: url("bpic07.jpg");
    background-attachment: fixed;
    background-position: top center;
    background-repeat: no-repeat;
    background-size: cover;
}

.buttli {
    display: flex;
    justify-content: center;
    padding-top: 2rem;
}

/* ----- EGYENI UL-LI FORMAZASOK ----- */

.contactsul {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
}

.contactsul li {
  padding: 1rem 2rem;
}
@media (max-width: 600px) {
  .contactsul li {
    padding: 0.5rem 1rem;
  }
}

/* ------------------------- FOOTER ------------------------- */

.indexfooter { /* footer */
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    padding: 1rem;
    text-align: center;
    background-color: #0073aa;
    color: white;
}