* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    min-width: 330px;
}

.container {
    padding: 20px 12px;
}

.heading-text {
    font-size: 1.9rem;
    text-align: center;
    line-height: 50px;
    margin: 0 !important;
}

.heading-text span {
    font-weight: 100;
}

ul {
    list-style: none;
}

/* Responsive image gallery rules begin*/

.image-gallery {
    text-align: center;
}

.image-gallery > li {
    /* fallback */
    display: inline-block;
    width: 352px;
    margin: 0 5px 10px 5px;
    /* end fallback */
    position: relative;
    cursor: pointer;
    color: white;
}

@supports (display: flex) {
    .image-gallery {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .image-gallery > li {
        flex-basis: 352px;
        margin: 0;
        border-collapse: collapse;
        border-radius: 5px;
    }

    .image-gallery::after {
        content: "";
        flex-basis: 352px;
    }
}

.image-gallery li img, .image-gallery li video {
    object-fit: cover;
    max-width: 100%;
    height: auto;
    vertical-align: middle;
    border-radius: 5px;
    border-collapse: collapse;
}

.overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(57, 57, 57, 0.502);
    top: 0;
    left: 0;
    transform: scale(0);
    transition: all 0.2s 0.1s ease-in-out;
    color: #fff;
    border-radius: 5px;
    /* center overlay text */
    display: flex;
    align-items: center;
    justify-content: center;
    border-collapse: collapse;
}

/* hover */
.image-gallery li:hover .overlay {
    transform: scale(1);
}

.image-gallery > li:hover{
    box-shadow: yellow 0 0 7px;
    color: yellow !important;
}

.label {
    position: absolute;
    width: 100%;
    height: 20px;
    background-color: #00315C;
    opacity: 0.9;
    bottom: 0;
    left: 0;
    border-bottom-right-radius: 5px;
    border-bottom-left-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.label:hover, .date:hover, .have-images:hover, .have-videos:hover{
    color: yellow;
}

.date{
    position: absolute;
    width: 70px;
    height: 20px;
    background-color: #00315C;
    opacity: 0.9;
    top: 0;
    left: 0;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.vote{
    position: absolute;
    width: 24px;
    height: 24px;
    top: 4px;
    right: 4px;
    color: white;
}

.wiki{
    position: absolute;
    width: 24px;
    height: 24px;
    top: 4px;
    right: 34px;
    color: white !important;
    cursor: pointer;
}
.wiki:hover, .wiki-record svg:hover{
    box-shadow: yellow 0 0 7px;
    color: yellow !important;
    border-radius: 12px;
}

.footer{
    border-top: 1px darkgray solid;
    margin-top: 10px;
    text-align: center;
}

.header{
    border-bottom: 1px darkgray solid;
    margin-bottom:  10px;
}

.top-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(to left, #00315C, #C6F4FF);
    color: #FFF;
    height: 50px;
    padding-right: 1em;
}

.top-nav > div{
    display: inline-flex;
}

.top-nav img{
    margin: 9px;
    cursor: pointer;
}

.top-nav a{
    color: black;
    text-decoration: none;
}
.top-nav a:visited {
    color: black;
}

.menu {
    display: flex;
    flex-direction: row;
    list-style-type: none;
    margin: 0 1rem 0 0;
    padding: 0;
}

.menu > li {
    margin-right: 1rem;
    overflow: hidden;
    cursor: pointer;
    border-radius: 2px;
}

.menu > li > a{
    color: white;
}

.menu > li:hover{
    color: yellow;
}

.menu-button-container {
    display: none;
    height: 100%;
    width: 30px;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-right: 2rem;
}

#menu-toggle {
    display: none;
}

.menu-button,
.menu-button::before,
.menu-button::after {
    display: block;
    background-color: #fff;
    position: absolute;
    height: 4px;
    width: 30px;
    transition: transform 400ms cubic-bezier(0.23, 1, 0.32, 1);
    border-radius: 2px;
}

.menu-button::before {
    content: '';
    margin-top: -8px;
}

.menu-button::after {
    content: '';
    margin-top: 8px;
}

#menu-toggle:checked + .menu-button-container .menu-button::before {
    margin-top: 0px;
    transform: rotate(405deg);
}

#menu-toggle:checked + .menu-button-container .menu-button {
    background: rgba(255, 255, 255, 0);
}

#menu-toggle:checked + .menu-button-container .menu-button::after {
    margin-top: 0px;
    transform: rotate(-405deg);
}

@media (max-width: 756px) {
    .heading-text {
        margin-bottom: 0.5rem;
        font-size: 1.5rem;
        text-align: center;
        line-height: 50px;
        margin: 0 !important;
    }
    .menu-button-container {
        display: flex;
    }
    .menu {
        position: absolute;
        top: 0;
        margin-top: 50px;
        left: 0;
        flex-direction: column;
        width: 100%;
        justify-content: center;
        align-items: end;
    }
    #menu-toggle ~ .menu li {
        height: 0;
        margin: 0;
        padding: 0;
        border: 0;
        transition: height 400ms cubic-bezier(0.23, 1, 0.32, 1);
    }
    #menu-toggle:checked ~ .menu li {
        border: 1px solid #C6F4FF;
        height: 2.5em;
        padding: 0.5em;
        transition: height 400ms cubic-bezier(0.23, 1, 0.32, 1);
    }
    .menu > li {
        display: flex;
        justify-content: center;
        margin: 0;
        padding: 0.5em 0;
        width: 100%;
        max-width: 352px;
        color: white;
        background-color: #00315C;
        opacity: 0.9;
        z-index: 1;
        cursor: pointer;
    }
    .menu > li:not(:last-child) {
        border-bottom: 1px solid #444;
    }
}

.menu .menu-item-active{
    color: yellow;
}

.lang-switch{
    position: absolute;
    top: 0;
    right: 0;
    width: 2.6rem;
    font-weight: bold;
    font-size: 1.1rem;
    height: 50px;
    line-height: 50px;
    cursor: pointer;
    color: white;
}

.lang-switch:hover{
    color: yellow;
}

.lang-switch-menu{
    position: absolute;
    top: 50px;
    right: 0;
    z-index: 2;
}
.lang-switch-menu li{
    display: block;
    color: white;
    background-color: #00315C;
    opacity: 0.9;
    cursor: pointer;
    width: 170px;
    padding: 0.5em;
    border: 1px solid #C6F4FF;
    border-radius: 2px;
}

.lang-switch-menu li span{
    text-align: center;
}

.lang-switch-menu li span:first-child{
    display: inline-block;
    width: 50px;
}
.lang-switch-menu li span:last-child{
    display: inline-block;
    width: 100px;
}

.lang-switch-menu li:hover{
    color: yellow;
}

.lang-switch-menu li.active{
    color: yellow;
    font-weight: bold;
}

#login-form {
    max-width: 340px;
    min-width: 200px;
    width: 100%;
    position: fixed;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    box-shadow: 2px 2px 9px 3px white;
    background-color: white;
    border-radius: 3px;
    border: 1px solid darkgray;
}
#login-form .header-form{
    font-weight: bold;
    padding: 0.5rem 1rem;
    background-color: darkgray;
}
#login-form .header-form span:last-child{
    display: inline-block;
    width: 24px;
    height: 24px;
    position: absolute;
    right: 10px;
    cursor: pointer;
    border: 1px solid gray;
    font-size: 1.2rem;
    line-height: 1rem;
}
#login-form .header-form span:last-child:hover{
    border: 1px solid gray;
}
#login-form .header-form span:last-child:after{
    display: inline-block;
    content: "\00a0\00d7";
    align-content: center;
    text-align: center;
}

#login-form .inputs-form{
    margin: 1rem;
}
#login-form .inputs-form label{
    display: block;
}
#login-form .inputs-form input{
    width: 100%;
    height: 1.5rem;
}
#login-form-error{
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 10px;
    color: red;
}

#login-form button{
    margin-left: 25%;
    width: 50%;
    height: 30px;
    display: block;
    margin-bottom: 1rem;
}

.video-preview video{
    position: relative;
    top: 50%;
    transform: translateY(-50%);
}
.video-preview{
    background-color: rgba(128,128,128,0.2);
}

.icons-container{
    width: 50px;
    height: 20px;
    position: absolute;
    top: 0;
    left: 75px;
    display: flex;
}

.have-images, .have-videos, .have-gps{
    width: 20px;
    height: 20px;
    background-color: #00315C;
    border-radius: 2px;
    padding: 1px;
    margin-right: 5px;
}

.gps{
    position: absolute;
    width: 24px;
    height: 24px;
    top: 4px;
    right: 60px;
    color: white !important;
    cursor: pointer;
}
.gps:hover, .gps-record svg:hover{
    box-shadow: yellow 0 0 7px;
    color: yellow !important;
    border-radius: 12px;
}
ul.tree {
    list-style: none;
    padding-left: 20px;
}
ul.tree li {
    margin: 5px 0;
}
.toggle {
    cursor: pointer;
    margin-right: 5px;
}
.children {
    margin-left: 20px;
}