* {
    box-sizing: border-box;
}

body {
    margin-top: 5px;
    margin-bottom: 5px;
    padding: 0;
    background-color: black;
    font-size: 1.5vh;
    color: aliceblue;
    font-family: Arial, Helvetica, sans-serif;
}

@media (max-width: 768px) {
  #keywords-filter {
    display: none;
  }
}


#container {
    height: 99vh;
    padding: 0vh;
    padding-bottom: 0vh;
    display: flex;
    flex-direction: column;
}

#main {
    width: 100%;
    display: flex;
    flex-direction: row;
}

/* preview */
#preview {
    width: 25vw;
    height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}



#preview-wrapper {
    overflow: hidden;
    position: relative;
    height: 80vh;
    padding-right: 1vh;
}

#preview img {

    border-radius: 1vh;
        display: block;
    max-width: 100%;
    height: auto;
}

#overlay-container2 {
    position: absolute;
    left: 5px;
    top: 5px;
    text-align: center;
    font-weight: 600;
    z-index: 10;
    background: rgb(44, 44, 44);
    padding: 10px 10px;
    border: 1px solid white;
    border-radius: 5vh;
    box-shadow: 0.25vh 0.25vh 1vh black;
}

#dialog_title_span {
    font-size: 3vh;
}

#keywords-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5vh;
    margin-top: 1vh;
}

#keywords-filter button,
#show-all {
    background-color: #333;
    border: 1px solid #666;
    color: white;
    padding: 0.5vh 1vh;
    cursor: pointer;
    border-radius: 0.5vh;
    font-size: 1.3vh;
}

#keywords-filter button:hover,
#show-all:hover {
    background-color: #555;
}

/* thumbnails */
#thumbnails {
    height: 94vh;
    width: 75vw;
    display: flex;
    flex-wrap: wrap;
    gap: 0.7vh;
    overflow: auto;
    padding: 0vh;
}

#thumbnails img {
    display: block;
    width: 10vh;
    height: fit-content;
    cursor: pointer;
    transition: 0.7s ease-in-out;
    border-radius: 1vh;
}

#thumbnails img.active {
    box-shadow: red 0px 0px 1vh;
    z-index: 1;
}

/* footer */
#footer {
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 5vh;
}

/* unused? */
#overlay-container {
    position: fixed;
    left: 0px;
    bottom: 0px;
    width: 600px;
    z-index: 1000;
    color: aliceblue;
}

#overlay-image {
    width: 250px;
    height: auto;
    box-align: center;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    box-shadow: inset 0 0 5px grey;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: rgb(61, 61, 61);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #7a7a7a;
}

@media screen and (max-width: 800px) {
    #container {
        padding: 1vh;
    }

    #main {
        flex-direction: column;
    }

    #preview {
        padding: 0;
        height: 35vh;
        width: auto;
    }

    #preview img {
        height: 35vh;
        width: auto;
    }

    #preview-wrapper {
        height: 35vh;
        padding: 0vh;
    }

    #keywords-filter {
        justify-content: center;
    }

    #thumbnails {
        width: 100%;
        height: 60vh;
    }

    #thumbnails img {
        width: 10vh;
    }

    #footer {
        height: 5vh;
    }
}
