﻿
/* ------------------------------------------------------------------------------------------- font */

@font-face {
    font-family: 'Exo 2';
    src: url('../Font/Exo2-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
}

@font-face {
    font-family: 'Exo 2';
    src: url('../Font/Exo2-Italic-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: italic;
}

@font-face {
    font-family: 'AstroSky-Font';
    src: url('../Font/AstroSky-Default-Font.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

/*------------------------------------------------------------------------------------------- scroll */

/* width */
::-webkit-scrollbar {
    width: 14px;
}

/* Track */
/* ::-webkit-scrollbar-track {
                box-shadow: inset 0 0 5px grey;
                border-radius: 8px;
            }*/

/* Handle */
::-webkit-scrollbar-thumb {
    background: grey;
    border-radius: 10px;
    /*  border: 4px solid transparent;
        background-clip: content-box;*/
}

    /* Handle on hover */
    ::-webkit-scrollbar-thumb:hover {
        background: dimgray;
    }

/* ------------------------------------------------------------------------------------------- global */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0px;
    height: 100vh;
    font-family: 'Exo 2', sans-serif;
    background-color: #3b3b3b;
    color: #132938;
    text-shadow: 0 0 5px rgba(0,0,0,0.16);
}

section {
    scroll-margin-top: 20px;
}

h1 {
    text-align: center;
    font-weight: 650;
}

h2 {
    margin: 36px 0;
    font-weight: 650;
}

h3 {
    color: #1d71bf;
    font-weight: 650;
}

h4 {
    font-size: 17px;
    font-weight: 650;
}

h5 {
    font-size: 16px;
    font-weight: 650;
}

strong {
    font-weight: 650;
}

a {
    color: #132938;
    text-decoration: none;
}

    a:hover {
        cursor: pointer;
    }

code {
    font-size: 15px;
    word-break: break-all;
}

button:hover {
    cursor: pointer;
}

/* ------------------------------------------------------------------------------------------- class layout */

.book {
    padding: 14px;
    background-color: #d8d8d8;
    border-radius: 10px;
    height: 100%;
    display: flex;
    justify-content: space-evenly;
    gap: 14px;
}

/* ------------------------------------------------------------------------------------------- class nav */

nav h3 {
    color: revert;
}

nav h4 {
    font-size: 16px;
}

.navPanel {
    display: flex;
    flex-direction: column;
    border-radius: 10px;
    background-color: #d8d8d8;
    box-shadow: rgb(0 0 0 / 33%) 0px 0px 6px 0px;
    z-index: 100;
}

    .navPanel a.selected {
        background-color: #d9ecff;
    }

.navContent {
    padding: 20px;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}

/* ------------------------------------------------------------------------------------------- class nav searchbox */

.searchHighlight {
    background-color: yellow;
}

    .searchHighlight.current {
        background-color: orange;
    }

.searchBox {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 5px;
    padding: 20px;
    box-shadow: 0 4px 6px -4px rgba(0, 0, 0, 0.35);
    z-index: 150;
    font-size: 14px;
}

    .searchBox > * {
        font-size: inherit;
    }

#searchInput {
    flex-grow: 1;
    min-width: 0;
}

#searchCount {
    margin-left: 4px;
}

/* ------------------------------------------------------------------------------------------- class tab (csak mobil nézetben) */

#tabContainer {
    display: none;
    position: fixed;
    justify-content: center;
    align-items: center;
    gap: 20px;
    top: 0px;
    width: 100%;
    z-index: 200;
}

#navTab,
#searchTab {
    display: flex;
    padding: 8px 18px 8px 14px;
    align-items: center;
    gap: 6px;
    background-color: #d8d8d8;
    border-radius: 0 0 20px 20px;
    text-transform: uppercase;
    vertical-align: middle;
    font-size: 15px;
    font-weight: 600;
    box-shadow: rgba(0,0,0,0.4) 0px 0px 6px 2px, rgba(0,0,0,0.4) 0px 20px 12px -12px;
    z-index: 200;
    cursor: pointer;
}

#navTabArrow,
#searchTabArrow {
    transition: transform 0.3s ease;
}

/* ------------------------------------------------------------------------------------------- class main */

main {
    position: relative;
    margin: 0px;
    padding: 30px;
    width: 100%;
    background-color: #f7f7f7;
    border-radius: 10px;
    overflow-y: auto;
    box-shadow: rgb(0 0 0 / 24%) 0px 0px 6px 0px;
    z-index: 50;
}

    main a {
        color: #2754c7;
    }

        main a:hover {
            text-decoration: underline;
        }

/* ------------------------------------------------------------------------------------------- class format */

.rotated_180 {
    transform: rotate(180deg);
}

.nowrap {
    white-space: nowrap;
}

.textAlignCenter {
    text-align: center;
}

.H2Icon {
    vertical-align: middle;
    margin-right: 10px;
    margin-bottom: 8px;
    height: 36px;
}

.programIcon16 {
    height: 16px;
}

.programIcon24 {
    vertical-align: -8px;
    margin: 3px 1px;
    height: 24px;
}

.programIcon48 {
    vertical-align: -16px;
    margin: 3px 1px;
    height: 48px;
}

.sectionLine {
    margin-bottom: 46px;
    padding-left: 20px;
    border-left: 6px solid #2754c72e;
}

.sectionMediaContainer {
    width: 100%;
    margin-top: 30px;
    display: flex;
    gap: 32px;
    align-content: flex-start;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: flex-start;
}

.media {
    position: relative;
}

    .media::after {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 64px;
        height: 64px;
        background-size: contain;
        background-repeat: no-repeat;
        opacity: 0.7;
        pointer-events: none;
        line-height: 0;
    }

    .media.image::after {
        background-image: url("../Image/export-png.svg");
    }

    .media.video::after {
        background-image: url("../Image/PlayVideo2.svg");
    }

.sectionImage {
    max-height: 180px;
    max-width: 260px;
    object-fit: contain;
    background-color: #d8d8d8;
}

.sectionVideo {
    max-height: 180px;
    max-width: 260px;
    object-fit: contain;
}

.ribbonItem {
    margin: 10px;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
}

/* ------------------------------------------------------------------------------------------- class detail-summary */

/*details h1 {
    text-align: center;
}

details h3 {
    color: #1d71bf;
    padding-top: 30px;
    font-size: 17px;
}

details h4 {
    font-size: 17px;
}

details h5 {
    font-size: 16px;
}*/
details > div > section {
    scroll-margin-top: 68px;
}


details {
    transition: margin 0.2s ease;
}

    details[open] {
        margin-top: 24px;
        margin-bottom: 24px;
    }

        details[open] summary {
            font-weight: 600;
            box-shadow: 0px 0px 3px #aaaaaa;
            border-radius: 8px 8px 0 0;
        }

            details[open] summary > div {
                transform: rotate(90deg);
            }

summary,
.summary {
    max-width: 800px;
    display: flex;
    align-items: center;
    margin-top: 8px;
    margin-bottom: 0px;
    padding: 2px 6px 2px 6px;
    gap: 6px;
    border-radius: 8px;
    border: 1px solid #ddd;
    background-color: rgba(157, 195, 229, 0.1);
    cursor: pointer;
    line-height: 1;
}

    .summary:hover {
        cursor: default;
    }

    summary > div,
    .summary > div {
        flex-shrink: 0;
        margin: 0 4px 0 4px;
        transition: transform 0.2s ease, margin 0.2s ease;
    }

    .summary > div {
        visibility: hidden;
    }

    summary > img,
    .summary > img {
        height: 24px;
    }

    summary > span:not(.button),
    .summary > span:not(.button) {
        flex-grow: 1;
        min-width: 0;
        padding: 3px 6px 3px 0;
    }

    summary > a,
    .summary > a {
        flex-shrink: 0;
    }

        summary > a > img,
        .summary > a > img {
            display: block;
        }

details > div {
    background-color: rgba(157, 195, 229, 0.3);
    padding: 12px;
    border-radius: 0 8px 8px 8px;
    box-shadow: 0px 0px 3px #aaaaaa;
    margin-top: 4px;
}

/* ------------------------------------------------------------------------------------------- class tables */

table.vmiddle td,
table.vmiddle th {
    vertical-align: middle;
    padding-right: 10px;
}

    table.vmiddle td span.button {
        vertical-align: 0px;
    }

    table.vmiddle td a img {
        vertical-align: -5px;
    }

.spaced-columns {
    margin-left: 10px;
    max-width: 100%;
}

    .spaced-columns td + td {
        padding-left: 30px; /* csak az oszlopok között */
    }

/* ------------------------------------------------------------------------------------------- class card */

.astro-symbols {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 20px;
    /*margin: 0 18px;*/
}

    .astro-symbols .item {
        display: flex;
        flex-direction: column;
        align-items: center;
        border-radius: 10px;
        box-shadow: rgb(0 0 0 / 33%) 0px 0px 6px 0px;
    }

        .astro-symbols .item .symbol {
            padding: 12px 16px;
            border-radius: 10px 10px 0 0;
            font-family: 'AstroSky-Font';
            font-size: 24px;
        }

            .astro-symbols .item .symbol > img {
                height: 36px;
            }

        .astro-symbols .item .caption {
            width: 100%;
            padding: 12px 16px;
            background-color: #edecec;
            border-radius: 0 0 10px 10px;
            text-align: center;
        }

            .astro-symbols .item .caption :nth-child(1) {
                font-weight: 600;
            }

            .astro-symbols .item .caption :nth-child(2) {
                font-style: italic;
            }

/* ------------------------------------------------------------------------------------------- class winform controls */

.button {
    margin: 3px;
    padding: 0 6px;
    min-height: 24px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 3px;
    border: 1px solid dimgray;
    border-radius: 5px;
    background-color: #d8d8d8;
    font-size: 14px;
    line-height: 1;
}

    .button.textEdit {
        background-color: white;
        vertical-align: 2px;
    }

    .button.comboBox {
        background-color: white;
        vertical-align: 2px;
    }

    .button.checkedit {
        background-color: white;
        padding: 0 2px;
    }

.arabPoint {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 28px; /* kör mérete */
    height: 28px;
    border-radius: 50%; /* kör alak */
    background-color: #5eca44; /* zöld */
    border: 2px solid black; /* fekete keret */
    color: black; /* betűszín */
    font-family: 'Exo 2', sans-serif;
    font-weight: 600;
    font-size: 14px;
    line-height: 1;
}

.onOffControl {
    display: inline-block;
    width: 42px;
    height: 16px;
    border-radius: 8px;
    background-color: #1177D7;
    line-height: 1;
    position: relative;
    vertical-align: middle;
}
    /* pötty */
    .onOffControl::after {
        content: "";
        position: absolute;
        top: 3px;
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background-color: #eeeeee;
    }
    /* OFF (balra) */
    .onOffControl.off::after {
        left: 4px;
    }

    /* ON (jobbra) */
    .onOffControl.on::after {
        right: 4px;
    }

.trackBarControl,
.timeRangeControl {
    display: inline-flex;
    align-content: center;
    justify-content: space-around;
    align-items: center;
    width: 48px;
    height: 4px;
    border-radius: 4px;
    background-color: #727272;
    line-height: 1;
    vertical-align: middle;
    margin: 10px 3px;
    padding: 0 6px;
}

.timeRangeControl {
    width: 96px;
}

    .trackBarControl > img,
    .timeRangeControl > img {
        height: 18px;
    }

/* ------------------------------------------------------------------------------------------- class version mark */

div.ver {
    position: relative;
    margin-top: 3px;
    padding-bottom: 3px;
    padding-right: 5px;
    border-right: 3px solid #9a4db3;
    border-radius: 6px;
    width: calc(100% + 8px);
}

span.ver {
    display: block;
    width: 100%;
    padding-right: 4px;
    margin-bottom: -6px;
    line-height: 10px;
    text-align: right;
    font-size: 14px;
    font-weight: 600;
    color: #9a4db3;
    text-shadow: 0 1px 1px rgba(255,255,255,1), 0 -1px 1px rgba(0,0,0,.2);
}

/* ------------------------------------------------------------------------------------------- media query */

@media (max-width: 1200px) {

    .navPanel {
        width: 40%;
    }
}

@media (max-width: 1000px) {

    .book {
        flex-direction: column;
        padding: 0px;
    }

    #tabContainer {
        display: flex;
    }

    .searchBox,
    .navPanel {
        max-height: 78%;
        position: fixed;
        top: -80%;
        left: 50%;
        transform: translateX(-50%);
        transition: top 0.4s ease;
        width: 90%;
        box-shadow: rgba(0,0,0,0.4) 0px 0px 8px 3px, rgba(0,0,0,0.5) 0px 30px 16px -20px;
        border-radius: 0 0 20px 20px;
    }

    .searchBox {
        padding-top: 65px;
        font-size: 18px;
        background-color: #d8d8d8;
    }

    .navContent > :first-child {
        padding-top: 30px;
    }

    main {
        padding: 20px;
    }

    .sectionImage {
        max-height: initial;
        max-width: 95%;
    }

    .sectionVideo {
        max-height: initial;
        max-width: 100%;
    }
}
