:root {
    /* magenta színek */
    --dark-magenta: #82006c;
    --mid-magenta: #c800a7;
    --light-magenta: #ffb9f3;
    --very-light-magenta: #fcdef7;
    /* szürke színek */
    --black: #1a1419;
    --dark-gray: #3c3c3c;
    --mid-gray: #626262;
    --light-gray: #8a8a8a;
    --very-light-gray: #e6e6e6;
    /* üzenet színek */
    --ok-text: #0f5426;
    --ok-bg: #93dbab;
    --err-text: #701418;
    --err-bg: #f2bab6;
    --pending: #dedd95;
}

/* minden elemre vonatkozó formázás */
html {
    font-size: 16px;
}
/* mérethez (rem) viszonyítási alap */
body {
    margin: 0;
    font-family: "Trebuchet MS", Tahoma, sans-serif;
    background-color: var(--black);
    /* min-height: 100vh; */
}

input, select {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    padding: 0.5rem;
    width: 280px;
}

textarea {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    font-size: 1rem;
    width: 100%;
}

input::file-selector-button {
    width: auto;
    border: 2px solid var(--dark-magenta);
    border-radius: 5px;
    background-color: var(--light-magenta);
    color: var(--menu-color);
    font-size: 0.8rem;
    font-weight: bold;
    padding: 0.5rem;
    text-align: center;
    white-space: nowrap;
    cursor: pointer;
}

input::file-selector-button:hover {
    background-color: var(--mid-magenta);
}

input[type="checkbox" i] {
    width: 1.5rem;
    height: 1.5rem;
    margin-left: 0;
    margin-right: auto;
}

a {
    text-decoration: none;
    color: inherit;
}
/* layout-ra vonatkozó formázás */
#agreement {
    display: none;
}

/* fejléc és menü */
.header-cont {
    width: 100%;
    min-width: 340px;
}

#header-bg-cont {
    background-color: var(--dark-magenta);
}

#header {
    max-width: 1600px;
    margin: 0 auto;
    font-size: 1.5rem;
    color: var(--light-magenta);
    font-weight: bold;
}

#menu-bg-cont {
    margin: 0 auto;
    background-color: var(--mid-magenta);
    position: sticky;
    top: 0;
    z-index: 5;
    color: white;
    font-weight: 600;
    font-size: 1.2rem;
}

#menu-cont {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
}

#left-menu {
    width: 60%;
    margin-left: 1rem;
}

#right-menu {
    width: auto;
    margin-right: 2rem;
    margin-left: auto;
    color: var(--light-magenta);
    font-weight: 300;
}

.menu-item {
    padding: 1rem;
}

.menu-item:hover {
    background-color: var(--dark-magenta);
    cursor: pointer;
}

/* legördülő menü infónál */
.dropdown {
    position: relative;
}

.info-menu {
    position: absolute;
    width: auto;
    text-align: left;
    left: 0;
    /* display: none; */
    padding-top: 1rem;
}

/* .dropdown:hover .info-menu {
    display: block;
} */

.sub-menu {
    white-space: nowrap;
    font-weight: 300;
    font-size: 1rem;
    padding: 1rem;
    color: var(--mid-magenta);
    background-color: white;
    /* border-bottom: 2px solid var(--dark-magenta); */
}

.sub-menu:hover {
    color: var(--dark-magenta);
    background-color: var(--light-magenta);
}

/* üzenetek */
#djangomsg {
    position: relative;
}
.msg {
    width: 100%;
    padding: 2em 0;
    font-weight: 700;
    font-size: 1.5em;
    text-align: center;
    position: fixed;
    top: 0px;
    z-index: 6;
}

.msg-error {
    background-color: var(--err-bg);
    color: var(--err-text);
}

.msg-ok {
    background-color: var(--ok-bg);
    color: var(--ok-text);
}


.index-list-item {
    display: flex;
    min-width: 260px;
    max-width: 500px;
    margin: 0 auto;
    padding: 0.5rem;
    border-bottom: 1px solid var(--light-gray);
    overflow: hidden;
}

.index-pics {
    display: block;
    min-width: 280px;
    max-width: 450px;
    margin: 0 auto 2rem;
}

.news-pics {
    display: block;
    height: auto;
    max-height: 400px;
    max-width: 100%;
    margin: 1rem auto;
}

.intertext {
    font-family: "Inter";
}

/* content kerete */
#body-bg-cont {
    position: relative;
    width: 100%;
    min-height: 85vh;
    margin: auto;
    padding: 1rem 0;
    max-width: 1600px;
    min-width: 340px;
    background-color: var(--very-light-gray);
    z-index: 4;
}

/* pozíció osztályok */
.flex-equal {
    display: flex;
    justify-content: space-evenly;
}

.flex-strict {
    display: flex;
    justify-content: start;
}

.flex-menu {
    display: flex;
    justify-content: space-evenly;
}

.col {
    margin: 0.5rem auto;
    padding: 1rem;
    overflow: hidden;
}

.col2 {
    margin: 0 auto;
    padding: 0 1rem;
    overflow: hidden;
}

.wide-col {
    width: 95%;
}

.narrow-col {
    width: 60%;
}

.center {
    margin: 0.5rem auto;
}

.for-small {
    display: none;
}

/* .fill-screen {
    position: absolute;
    bottom: 0px;
    width: inherit;
    min-height: 100%;
    background-color: var(--very-light-gray);
    z-index: 1;
} */

/* szöveg osztályok */
.h1-text {
    color: var(--dark-magenta);
    border-bottom: 2px solid var(--dark-magenta);
    font-size: 1.5rem;
    font-weight: bold;
    padding: 0.75rem 0;
}

.h2-text {
    color: var(--mid-magenta);
    font-size: 1.2rem;
    font-weight: normal;
    padding: 0.5rem 0;
}

.h3-text {
    color: var(--dark-gray);
    font-size: 1.2rem;
    font-weight: bold;
    padding: 0.5rem 0;
}

.main-text {
    font-size: 1.2rem;
    line-height: 150%;
    text-align: justify;
    color: var(--mid-gray);
}

.p-text {
    padding: 0.25rem 0;
    font-size: 0.8rem;
}

.bold-text {
    padding: 0.25rem 0;
    font-weight: bold;
}

.link-text {
    margin: 0.5rem 2rem;
    font-weight: bold;
}

.link-text2 {
    font-weight: bold;
}

.link-text:hover,
.link-text2:hover {
    color: var(--mid-magenta);
}
.motto-text {
    color: var(--light-gray);
    font-size: 1.2rem;
    padding: 0rem 2rem;
}

.center-text {
    display: block;
    margin: 0.5rem auto;
}

.side-padding {
    padding-left: 5%;
    padding-right: 5%;
}

.form-label {
    width: 40%;
    text-align: right;
    padding: 0.5rem;
    margin: 0.5rem;
}

.form-input {
    margin: 0.5rem 0;
}

.form-label-narrow {
    width: 25%;
    text-align: right;
    padding: 0.5rem;
    margin: 0.5rem;
}

#footer-cont {
    background-color: var(--dark-magenta);
    position: relative;
    bottom: 0;
    width: 100%;
}

#footer-text {
    text-align: center;
    color: var(--very-light-gray);
    padding: 1em;
    margin: auto;
}

.motto {
    margin-top: 20%;
}

#index-slides {
    min-width:600px;
    width: 96%;
    max-width:736px;
    height:584px;
    position:relative;
    margin:0 auto;
    border:8px solid white;
}

.news-box {
    border-top: 1px solid var(--light-gray);
    border-bottom: 1px solid var(--light-gray);
    padding: 1rem;
}

.index-li {
    list-style: none;
    margin: 1rem 0;
    font-size: 1.2rem;
    color: var(--light-gray);
}

/* galéria formázás */
.slideshow {
    position: relative;
}

.img-frame,
.slide-frame {
    width: 100%;
    max-width: 870px;
    position: relative;
    display: block;
    margin: 0 auto;
    overflow: hidden;
}

.img-outer-frame {
    overflow: hidden;
    /* width: 100%; */
}

.img-zoom-frame {
    transform-origin: 0px 0px;
    transform: scale(1) translate(0px, 0px);
    cursor: pointer;
}

#imgPreview,
.bird-img {
    /* display: block; */
    width: 100%;
    height: auto;
    /* margin: 0 auto; */
    /* overflow: hidden; */
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    margin-top: -1.75rem;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 1.5rem;
    user-select: none;
}

.prev:hover, .next:hover {
    background-color: rgba(130,0,108,0.25);
}

.next {
    right: 0px;
    border-radius: 3px 0 0 3px;
}

.prev {
    left: 0px;
    border-radius: 0 3px 3px 0;
}

.img-count {
    position: absolute;
    top: 0px;
    padding: 0.5rem 1rem;
    color: white;
    font-weight: bold;
    background-color: rgba(130,0,108,0.25);
}

.comp-text-box {
    height: 69px;
    overflow: auto;
}

.comp-big-frame {
    display: block;
    height: 530px;
    max-height: 70%;
    overflow: auto;
}

/* spsearch formázás */
#spsearch-wrap {
    display: flex;
    position: relative;
}

#spsearch-left {
    width: 70%;
}

#spsearch-right {
    width: 30%;
    height: auto;
    max-height: 86vh;
    overflow: auto;
    z-index: 5;
    transition: margin-top 500ms ease-in-out;
}

.sp-text {
    padding: 1.5rem 0.5rem;
    font-size: 0.8rem;
    overflow: hidden;
}

.sp-img {
    display: block;
    width: 240px;
    max-width: 60%;
    height: auto;
    margin-right: 0.5rem;
    margin-left: auto;
}

.sp-fill {
    height: 54px;
}

/* egyedi formázás */
.form-button {
    width: auto;
    max-width: 250px;
    display: block;
    border: 2px solid var(--dark-magenta);
    border-radius: 5px;
    background-color: var(--light-magenta);
    color: var(--menu-color);
    font-size: 1rem;
    font-weight: 600;
    padding: 0.5rem 2rem;
    margin: 1rem auto;
    text-align: center;
    white-space: nowrap;
    cursor: pointer;
}

.form-button:hover {
    background-color: var(--mid-magenta);
}

/* kommentelés formázásai */
.comment-box {
    border: 2px solid var(--mid-gray);
    border-radius: 10px;
    margin: 0.5rem;
    overflow: hidden;
}

.comment-header {
    background-color: var(--light-magenta);
    padding: 0.5rem;
}

.comment-left {
    font-weight: bold;
    max-width: 60%;
    padding-right: 1rem;
    overflow: hidden;
}

.comment-right {
    font-size: 0.8rem;
    font-style: italic;
    max-width: 35%;
    margin-right: 0;
    margin-left: auto;
}

.comment-body {
    padding: 0.5rem;
    margin: 0.5rem 0;
}

.comment-bottom {
    padding: 0.5rem;
    font-style: italic;
    font-size: 0.8rem;
}

/* select2 testreszabás */
.select2-selection__rendered {
    line-height: 2.5rem !important;
}
.select2-container .select2-selection--single {
    height: 2.5rem !important;
}
.select2-selection__arrow {
    height: 2.5rem !important;
}

/* admin felület formázásai */
.admin-img {
    width: 280px;
    height: auto;
    margin: 1rem 1rem 1rem 0;
}

/* reszponzív módosítások */

/* mobil fekvő, tablet, kis ablak */
@media (min-width: 641px) and (max-width: 1080px) {
    #menu-bg-cont {
        position: relative;
    }
    .narrow-col {
        width: 95%;
    }
    .flex-menu {
        display: block;
        text-align: center;
    }
    #right-menu {
        margin-right: 1rem;
        width: auto;
        justify-content: end;
    }
    #left-menu{
        width: auto;
        justify-content: space-around;
    }
    #spsearch-left {
        width: 100%;
    }
    .sp-fill {
        height: 0px;
    }
    .motto {
        margin-top: 1rem;
    }
    .for-wide {
        display: none;
    }
    .for-small {
        display: block;
    }
    .profile-form {
        display: block;
        width: inherit;
        text-align: center;
        margin: 0.25rem auto;
        padding: 0.25rem;
    }
}

/* mobil álló képernyő */
@media (max-width: 640px) {
    body {
        min-width: 340px;
    }
    select, input {
        margin: 0 auto;
    }
    #menu-bg-cont {
        position: relative;
    }
    .info-menu {
        width: 100%;
        margin: 0 auto;
        text-align: center;
    }
    .sub-menu {
        font-size: 1.2rem;
    }
    .wide-col,
    .narrow-col {
        width: 95%;
        padding: 0;
        margin: 0 auto;
    }
    .flex-menu,
    .flex-strict,
    .flex-equal {
        display: block;
    }
    #left-menu,
    #right-menu {
        width: auto;
        text-align: center;
        margin: 0 auto;
    }
    #spsearch-left {
        width: 100%;
    }
    .sp-fill {
        height: 0px;
    }
    .motto {
        margin-top: 1rem;
    }
    .link-text {
        text-align: center;
        margin: 2rem auto;
    }
    .for-mid,
    .for-wide {
        display: none;
    }
    .for-small {
        display: block;
    }
    .h1-text,
    .h2-text {
        text-align: center;
    }
    .form-label,
    .form-label-narrow {
        display: block;
        width: inherit;
        text-align: center;
        margin: 0.25rem auto;
        padding: 0.25rem;
    }
    .form-input {
        display: block;
        margin: 0 auto;
        text-align: center;
    }
    .prev:hover, .next:hover {
        background-color: rgba(130,0,108,0);
    }
}

/* mobilon ne látszódjanak bizonyos dolgok */
@media (max-device-width: 640px) {
    .hide-at-small {
        display: none;
    }
}
