html {
    background-color: black;
}

body {
    font: 15px/1.5 Arial, Helvetica, sans-serif;
    color: #ffffff;
    margin: 0;
    background-image: url(./pictures/body/hibunt.jpg);
    min-height: 100vh;
}

h2 {
    float: left;
    margin-left: 10px;
    padding: 0;
    margin: 0;
    display: block;
}

p {
    margin-left: 10px;
}

a {
    text-decoration: none;
    color: #4CAF50;
}

th {
    text-align: left;
}

summary {
    cursor: pointer;
}

/*Global*/
.introduction {
    font-size: 30px;
}

.table-container {
    margin: 1rem;
    padding: 1rem;
    height: fit-content;
    width: fit-content;
    border: #111 1px solid;
    border-radius: 1rem;
    background-color: rgba(115, 115, 115, 0.334);
}

.text-container {
    margin: auto;
    text-align: left;
    margin: 1rem;
    padding: 1rem;
    border: #111 1px solid;
    border-radius: 1rem;
    background-color: rgba(115, 115, 115, 0.334)
}

.title-container {
    margin: auto;
    text-align: center;

    h1 {
        margin-bottom: 0;
    }
}

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

.flex-row-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.img-text-container {
    display: flex;
    flex-direction: row;
    justify-content: left;
    align-items: center;
    margin: 1rem;
    overflow: hidden;
    border-radius: 1rem;
    background-color: rgba(115, 115, 115, 0.334);

    p {
        margin: 1rem;
    }
}

/*Header*/
header {
    color: white;
    border-bottom: #4CAF50 3px solid;
}

#divHeaderImg {
    background-image: url("./pictures/header/header.png");
    height: 5vw;
    min-height: 60px;
    background-size: cover;
    background-position: left;
}

header a {
    color: #ffffff;
    text-decoration: none;
    text-transform: uppercase;
}

#divTopMenu {
    background-color: #333;
    font-size: 16px;
    text-align: center;
    display: flex;
    justify-content: center;
    width: 100%;
}

#divTopMenu ul li:hover:not(.current) {
    background-color: #111;
}

/* Nav */
header ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

header li {
    min-height: 2rem;
    display: flex;
    align-items: center;
    border-radius: 0.5rem 0.5rem 0 0;
}

header li a {
    padding: 0 1.5rem 0 1.5rem;
}

#header ul li:hover:not(.current) {
    background-color: #111;
}

.current {
    background-color: #4CAF50;
    font-weight: bold;
}

/* Lightbox/Slider Modal */
#sliderModal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    align-items: center;
    justify-content: center;
}

.slider-modal-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    position: relative;
}

#sliderImageBox {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 80vw;
}

#sliderImage {
    width: 80vw;
    max-height: 80vh;
    border-radius: 1rem;
    margin-bottom: 0.5rem;
    box-shadow: 0 0 30px #000;
    background: none;
    display: block;
    object-fit: contain;
}

#sliderCaption {
    color: #fff;
    text-align: center;
    min-height: 2rem;
    max-width: 90vw;
}

.slider-btn {
    background: #4CAF50;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.5rem;
    cursor: pointer;
    transition: background 0.2s;
    z-index: 1;
}

.slider-btn:hover {
    background: #388e3c;
}

.slider-close {
    position: absolute;
    top: -10px;
    right: 8px;
    color: #fff;
    font-size: 2.5rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 2;
}

@media (max-width: 700px) {
    .slider-modal-content {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/*Searchbar*/
#divSearchbar {
    height: 3rem;
    background-color: #333;
    border-bottom: 1px solid #4caf4f;
    border-top: 1px solid #4caf4f;
}

#divSearchbar label {
    color: #fff;
    font-weight: bold;
    margin-right: 0.5rem;
}

#divSearchbar select,
#divSearchbar input[type="text"] {
    border: 1px solid #4CAF50;
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    background: #333;
    color: #fff;
    text-align: center;
    font-size: 1rem;
    margin-right: 0.5rem;
    outline: none;
    transition: border 0.2s;
}

#divSearchbar select:focus,
#divSearchbar input[type="text"]:focus {
    border: 1.5px solid #81c784;
}

#divSearchbar button {
    background: #4CAF50;
    color: #fff;
    border: none;
    border-radius: 0.5rem;
    padding: 0.5rem 1.5rem;
    font-size: 1rem;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.2s;
}

#divSearchbar button:hover {
    background: #388e3c;
}

/*Main Section*/
#main_section {
    padding-bottom: 5vh;
}

#divContent {
    min-height: 750px;
}

/*Picturebox*/
.picture-flex-blox {
    margin: 1rem 1rem 1rem 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.smallPictureBox {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #ffffff;
}

.small-pic {
    height: 250px;
    width: 250px;
    border-radius: 1rem;
    object-fit: cover;
    transition: box-shadow 0.3s ease;
}

.small-pic:hover {
    box-shadow: 0 0 20px 8px #4caf4f99;
}

#divParents {
    width: 100%;
}

#divParents table {
    width: 100%;
    padding-bottom: 40px;
}

#additional {
    padding-bottom: 40px;
    background-color: #333;
    border-top: 2px solid black;
    position: absolute;
    bottom: 0;
    width: 100%;
}

#additional ul {
    list-style-type: none;
    padding-top: 5px;
}

#additional a {
    text-decoration: none;
    color: white;
}

/*Footer*/
footer {
    background-color: #333;
    height: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    bottom: 0;
    width: 100%;

    a {
        text-decoration: none;
        color: white;
        font-size: 12px;
        padding: 0 15px 0 15px;
    }
}

@media screen and (max-width: 880px) {
    #navMain {
        width: 100%;

        ul {
            flex-wrap: wrap;
        }

        li {
            flex: 1 1 0;
        }

        span {
            display: none;
        }

        a {
            padding: 1rem 1rem 1rem 1rem;
            width: 100%;
        }
    }

    #divSearchbar {
        flex-direction: column;
        align-items: stretch;
        height: auto;
        gap: 0.5rem;
        padding: 0.5rem 0;
        text-align: center;
    }

    #divSearchbar>div {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        margin-bottom: 0.5rem;
    }

    #divSearchbar label {
        margin-bottom: 0.2rem;
        margin-right: 0;
    }

    #divSearchbar select,
    #divSearchbar input[type="text"] {
        margin-right: 0;
        width: 100%;
        box-sizing: border-box;
        text-align: center;
    }

    #divSearchbar button {
        width: 100%;
        margin-top: 0.3rem;
    }
}

@media screen and (max-width: 625px) {
    .img-text-container {
        flex-direction: column;

        img {
            width: 100%;
        }
    }

    footer {
        position: static !important;
        justify-content: center;
    }

    #footerRootLink {
        display: none;
    }
}