/* oldalak */
@import url("components/pages/pageMain.css");
@import url("components/pages/pageHistory.css");
@import url("components/pages/pageIndustry.css");
@import url("components/pages/pageIT.css");
@import url("components/pages/pageContact.css");
@import url("components/pages/pageSupport.css");

@import url("components/pages/pageProjects.css");
@import url("components/pages/pageProject.css");

/* modulok */
@import url("components/IndexCard/IndexCard.css");
@import url("components/IMGViewer/IMGViewer.css");

:root {
    --footer-height: 35px;
    --nav-bar-height: 60px;

    /* színek ************************************************ */

    --color-bg: #3c3c38; /* #546d58 legalsó háttérszín */
    --color-fg: white; /* alap betűszín */

    --color-page-bg: #797971; /* #4d8a67 aloldal háttérszíne */

    --color-footer-bg: #555550; /* lábléc háttérszín */
    --color-footer-fg: white; /* lábléc betűszín */

    --color-nav-bar-bg: #555550; /* menü háttérszín */
    --color-nav-bar-fg: white; /* menü betűszín */

    --color-card-index-title-bg: #acaca0; /* #455143 kiválasztható doboz címének háttérszíne */
    --color-card-index-title-fg: white; /* kiválasztható doboz címének betűszíne */

    --color-card-index-textbox-bg: #f4f4e4; /* #5ecc98 kiválasztható doboz tartalmának háttérszíne */
    --color-card-index-textbox-fg: black; /* kiválasztható doboz tartalmának betűszíne */

    --color-button-bg: #acaca0; /*#5eCC98 gomb háttérszíne */
    --color-button-fg: black; /* gomb betűszíne */

    --color-img-viewer-button-bg: #acaca0; /* képnézegető gomb háttérszíne */
    --color-img-viewer-button-fg: white; /* képnézegető gomb betűszíne */

    --color-card-index-type2-bg: #90A4BD; /* saját projektek háttér*/
    --color-card-index-type2-fg: black; /* saját projektek háttér*/

    /* ********************************************************* */
}

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background-color: var(--color-bg);
    color: var(--color-fg);
}

.konszam-logo {
    position: relative;
    width: calc(var(--nav-bar-height) - 10px);
    height: calc(var(--nav-bar-height) - 10px);
    margin: 5px 5px;
    cursor: pointer;
}

.container {
    background-color: var(--color-page-bg);
    position: relative;
    display: flex;
    flex-flow: column;
    margin: 0px auto;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    max-width: 1600px;
}

.main-container {
    position: relative;
    display: flex;
    height: calc(100% - var(--footer-height) - var(--nav-bar-height));
    width: 100%;
}

.page {
    display: flex;
    flex-flow: column;
    width: 100%;
    height: calc(100% - 20px);
    margin: auto;
    overflow: auto;
}

.nav-button {
    background-color: transparent;
    cursor: pointer;
    width: 150px;
    height: 80%;
    margin-top: 5px;
    transition: 0.2s;
    font-size: 18px;
    display: inline-block;
    margin-left: auto;
    border-radius: 10px;
    background-color: transparent;
    border: none;
    font-weight: bold;
    color: var(--color-nav-bar-fg);
}

.active-nav-button {
    background-color: var(--color-button-bg);
    color: var(--color-button-fg);
}

#nav-bar-button-container {
    position: absolute;
    display: flex;
    height: 100%;
    width: calc(100% - var(--nav-bar-height));
    transform: translate(calc(-50% + (var(--nav-bar-height) / 2) - 20px), -50%);
    left: 50%;
    top: 50%;
}

.nav-button:hover {
    text-decoration: underline;
}

#nav-bar {
    position: relative;
    display: flex;
    height: var(--nav-bar-height);
    width: 100%;
    border: none;
    background-color: var(--color-nav-bar-bg);
    color: var(--color-nav-bar-fg);
}

#footer {
    position: absolute;
    display: block;
    width: 100%;
    height: var(--footer-height);
    line-height: var(--footer-height);
    bottom: 0px;
    background-color: var(--color-footer-bg);
    color: var(--color-footer-fg);
    text-align: center;
    font-size: 15px;
}

#back-btn {
    position: absolute;
    top: 5px;
    left: 10px;
    width: 50px;
    height: 25px;
    background-color: var(--color-button-bg);
    color: var(--color-button-fg);
    cursor: pointer;
    border: none;
    color: white;
    transform: rotate(180deg);
    border-radius: 5px;
    font-weight: bold;
    font-size: 20px;
    line-height: 0px;
    z-index: 1;
    text-align: center;
    transition: 0.1s;
}

#back-btn:hover {
    border: 3px solid white;
}

#history {
    position: absolute;
    color: rgb(53, 81, 114);
    font-weight: bold;
    text-decoration: underline;
    text-indent: 65px;
    top: 10px;
    background-color: var(--color-page-bg);
    border: 3px solid var(--color-page-bg);
    width: 95%;
    margin: auto;
}

#history:hover {
    cursor: pointer;
}

#history span:hover {
    color: lime;
}

@media screen and (max-width: 800px) {
    .main-container {
        height: calc(100% - 180px);
    }

    .konszam-logo {
        display: none;
    }


    #nav-bar-button-container {
        flex-flow: column;
        position: absolute;
        left: 50%;
        width: calc(100% - 60px);
        transform: translate(-50%, -50%);
    }

    #nav-bar {
        height: 150px;
        transition: 0.2s;
    }

    .nav-button {
        display: block;
        height: auto;
        width: 100%;
        text-align: center;
        margin: auto;
    }

    .page {
        width: 100%;
    }

    @media screen and (orientation: portrait) {
        .page {
            flex-flow: column !important;
            width: 100% !important;
            justify-content: unset !important;
        }

        #history {
            width: 100%;
            font-size: 0.9rem;
        }
    }
}

@media screen and (min-width: 800px) {
    .card-index {
        margin: 10px auto auto 50px;
    }
}

@media screen and (orientation: landscape) and (max-width: 800px) {
    .container {
        flex-flow: row;
    }


    #nav-bar {
        height: calc(100% - 25px);
        max-width: 150px;
    }

    .nav-button {
        display: block;
        font-size: 14px;
        height: 13%;
    }

    #nav-bar-button-container {
        height: 90%;
        flex-flow: column;

    }

    .main-container {
        height: calc(100% - 30px);
    }

    #footer {
        height: 25px;
        line-height: 25px;
        font-size: 10px;
    }
}

