* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: sans-serif;
    font-size: 1rem;
    line-height: 1.5;
    background-color: rgb(40, 150, 160);
    color: white;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
}

header {
    background-color: #363961;
    z-index: 1;
}

#title {
    height: 80px;
    padding-top: 25px;
}

footer {
    background-color: rgb(33, 33, 33);
    width: 100%;
    height: 8vh;
    min-height: 40px;
    max-height: 70px;
}

footer div {
    margin: none;
    padding: 10px;
}

footer div p {
    text-align: center;
}

footer div p a,
footer div p a:link,
footer div p a:visited,
footer div p a:hover,
footer div p a:active,
footer div p span {
    text-decoration: none;
    color: rgb(0, 140, 140);
}





.toggle {
    display: none;
}




/*---------------------------login and registration---------------------------*/

.login-register_form {
    max-width: 300px;
    min-width: 250px;
    margin: auto;
    border-radius: 10px;
    padding: 20px;
    background-color: #343541;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.login-register_label {
    font-size: 15px;
    color: white;
    line-height: 1.5;
    padding-left: 6px;
}

.login-register_input {
    background-color: transparent;
    border: none;
    border-bottom: 1px solid white;
    margin-bottom: 10px;
    height: 50px;
    width: 100%;
    color: white;
    /*vypnutí modrého rámečku pří kliknutí firefox*/
    outline: 0;
}

.login-register_input:focus {
    border-bottom: 1px solid rgb(9, 255, 0);
    transition: 0.5s;
    /*vypnutí rámečku pří najetí myši*/
    outline-width: 0;
}

/*tlačítko příhlásit se, registrovat se*/
.login-register_button {
    display: block;
    width: 100%;
    padding: 10px;
    margin-top: 20px;
    background-color: #008000;
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
}

/*změna barvy tlačítka při najetí myši*/
.login-register_button:hover {
    background-color: #52B640;
    opacity: .7;
}

.div_stay_logged_in {
    height: 40px;
}

.stay_logged_in {
    height: auto;
    width: auto;
    float: left;
    margin: 20px;
}

.stay_logged_in_text {
    position: absolute;
    padding-top: 15px;
}

.login-register_fieldset {
    border: none;
}

/*
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus {
    transition: background-color 9999s ease-in-out 0s;
    -webkit-text-fill-color: yellow;
}
*/


















.menu-item:focus {
    pointer-events: none;
}

/* If :focus detected the dropdown menu is displayed by making it visible */
.menu-item:focus .menu-dropdown {
    opacity: 1;
    visibility: visible;
}

/* style for the dropdown box */
.menu-dropdown {
    background-color: #008100;
    border: 1px solid rgba(255, 255, 255, 0.50);
    border-radius: 0.2rem;
    pointer-events: auto;
    position: absolute;
    z-index: 1;
    opacity: 0;
    visibility: hidden;
    transition: visibility 1s;
}

.header-top {
    height: 60px;
}

.top-navbar {
    height: 50px;
    display: flex;
    background-color: rgb(33, 33, 33);
}

.nav-1 {
    display: flex;
    list-style: none;
    margin-right: auto;
}

.nav-2 {
    display: flex;
    list-style: none;
}

.nav-item {
    border: 1px solid gray;
    border-radius: 10px;
    margin: 5px;
}

.nav-link {
    padding: .5rem 1.5rem;
    display: inline-flex;
    overflow: hidden;

}

.nav-link:link {
    color: white;
    text-decoration: none;
}

.nav-link:visited {
    color: white;
    text-decoration: none;
}

.nav-link:hover {
    color: rgb(192, 192, 192);
    text-decoration: none;
}

.nav-link:active {
    color: white;
    text-decoration: none;
}

.div-arrow-down {
    display: inline-block;
    padding-top: 3px;
    padding-left: 3px;
}

.div-default-pfp {
    display: inline-block;
    padding-right: 4px;
}

.img_flags {
    height: 1.1rem;
    padding-right: 0.5rem;
}

.dropdown-item {
    display: block;
    text-align: center;
}







main {
    flex: 1;
}




.nav-side-panel {
    background-color: #363961;
    width: 20%;
    height: 1000px;
    float: left;
}

.openseadragon {
    background-color: black;
    width: calc(80%);
    height: calc(500px);
    float: right;
}

.openseadragon-img {
    background-color: black;
    width: calc(100%);
    height: 100vh;
}






.check1 {
    display: none;
}

.toggle_label {
    display: none;
}

@media(max-width:700px) {
    .toggle_label {
        display: flex;
        float: right;
        margin: 20px 25px 0 0;
    }

    .toggle_label img {
        height: 1.5rem;
    }

    .top-navbar {
        display: none;
        padding-top: 60px;
        position: fixed;
        right: 0;
        height: 500px;
        width: 300px;
        max-width: 100vw;
        min-width: 200px;
        border: 1px solid white;
        background-color: #008000;
        z-index: 100;
    }

    .nav-1 {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: inherit;
        padding-top: inherit;
        margin-top: 60px;
        position: fixed;
        top: 0;
    }

    .nav-2 {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: inherit;
        padding-top: 60px;

    }

    .nav-link {
        padding: 10px;
    }

    .toggle:checked~.top-navbar {
        display: flex;
    }

    .openseadragon {
        width: 100vw;
        height: calc(100vh - 60px - 80px);
    }

    .nav-side-panel {
        display: none;
    }
}



.grid-main {}

.grid {
    margin: 10px;
    max-width: 100%;
}

.grid-item {
    position: relative;
    border: solid rgb(49, 137, 196) 2px;
    border-radius: 10px;
    width: 312px;
    margin: 10px;



    padding-top: 10px;
    padding-left: 4px;
    padding-right: 4px;
    background-color: rgb(78, 86, 202);
}




.grid-sizer,
.grid-item {
    width: 312px;
}

.gutter-sizer {
    width: 3%;
}








.div-link-full-picture {}


.link-full-picture {
    position: absolute;
    top: 10px;
    right: 10px;

}

.link-full-picture-icon {
    height: 25px;
    border: solid rgb(255, 255, 255) 2px;
    background-color: rgb(255, 255, 255);
    border-radius: 5px;
}



.link-full-picture:link {
    color: rgb(26, 77, 243);
    text-decoration: none;
}

.link-full-picture:visited {
    color: rgb(26, 77, 243);
    text-decoration: none;
}

.link-full-picture:hover {
    color: rgb(24, 141, 209);
    text-decoration: none;
}

.link-full-picture:active {
    color: rgb(24, 141, 209);
    text-decoration: none;
}

.div-picture-title {
    text-align: center;
    padding: 1px;
    /*border-bottom: 2px solid;*/
}