* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Russo One", sans-serif;
}

body {
    font-family: "Russo One", sans-serif;
}

#page {
    display: flex;
    flex-flow: column;
    height: 100%;
}

#content {
    display: flex;
    flex-flow: column;
    height: calc(100% - 50px);
    width: 100%;
    margin-top: 50px;
}

@media (min-width: 768px) {
    #content {
        margin-top: 0;
        height: 100%;
    }
}

#top-bar {
    box-shadow: 0 1px 1px 1px #0000000d;
    align-items: center;
    background-color: #fffc;
    display: flex;
    height: 50px;
    justify-content: space-between;
    left: 0;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 3;
    padding: 0 15px 0 0;

    background-color: #eee;
    background-image: linear-gradient(45deg, #f4aeba 25%, transparent 25%, transparent 75%, #c54c82 75%, #c54c82),
    linear-gradient(45deg, #f4aeba 25%, transparent 25%, transparent 75%, #c54c82 75%, #c54c82);
    background-size: 25px 25px;
    background-position: 0 0, 12px 12px;

    button {
        background: #fff;
        border: none;
        color: #c54c82;
        padding: 0 5px 0 20px;
        cursor: pointer;
        border-radius: 3px;
    }

    h1 {
        color: #fff;
        font-size: 24px;
        font-weight: bold;
        text-shadow: 0px 4px 3px rgba(0,0,0,0.8), 0px 8px 13px rgba(0,0,0,0.5), 0px 18px 23px rgba(0,0,0,0.5);
    }
}

@media (min-width: 768px) {
    #top-bar {
        width: 200px;
        z-index: 100;

        button {
            display: none;
        }

        h1 {
            margin-left: 15px;
        }
    }
}

nav {
    background: #f6f6f6;
    bottom: 0;
    flex-shrink: 0;
    position: fixed;
    top: 0;
    width: 200px;
    z-index: 5;
    box-shadow: 0 1px 1px 1px #0000000d;
    left: -200px;
    transition: left .3s;
    border-bottom: 50px solid #f4aeba;

    &.open {
        left: 0;
    }

    .content {
        height: 100%;
        display: flex;
        flex-flow: column;
        justify-content: center;
    }

    .points {
        text-align: center;
        margin-bottom: 100px;

        .total, .grids, .maxed {
            margin: 0 auto 10px;
            width: 100px;
            height: 100px;
            padding-top: 30px;

            strong {
                font-size: 35px;
                display: block;
                line-height: 1;
            }
            span {
                font-size: 12px;
                display: block;
            }
        }

        .total {
            background: #000;
            color: #fff;
            width: 120px;
            height: 120px;
            padding-top: 40px;
        }

        .grids {
            background: #f4aeba;
        }

        .maxed {
            background: #c54c82;
        }

    }

    ul {
        list-style: none;
        font-size: 16px;
        padding: 0;

        li {
            padding: 0;

            a {
                display: block;
                color: #c54c82;
                text-decoration: none;
                padding: 10px 15px;

                &.active {
                    background: #e1e1e1;
                    font-weight: bold;
                }
            }
        }
    }

    .back {
        height: 50px;
        background: #fff;
        padding-top: 8px;

        button {
            background: none;
            border: none;
            cursor: pointer;
            display: flex;
            align-items: center;
            font-size: 16px;
            color: #c54c82;
        }
    }
}

@media (min-width: 768px) {
    nav {
        left: 0;

        .back {
            display: none;
        }
    }
}

#wrapper {
    position: relative;
    background-color: #ffffe0;
    display: flex;
    flex-flow: column;
    height: 100%;
    justify-content: flex-start;
    padding-left: 0;
}

@media (min-width: 768px) {
    #wrapper {
        padding-left: 200px;
    }
}

#map {
    height: calc(100dvh - 100px);
    width: 100%;
}

@media (min-width: 768px) {
    #map {
        height: calc(100dvh - 50px);
    }
}

#bottom {
    height: 50px;
    background: #fff;
    filter: drop-shadow(-2px -2px 4px rgba(0, 0, 0, .1));
    z-index: 3;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
}

h1 {
    font-size: 20px;
    padding: 15px;
}

#upload-button {
    background: none;
    border: none;
    background: #c54c82;
    color: #fff;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 3px;
    display: flex;
    align-items: center;
    font-size: 14px;
    gap: 5px;
}
#frm-uploadForm-image {
    display: none;
}

#copyright {
    font-size: 12px;
    color: #f4aeba;
}

.modal {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;

    .icon-tabler-alert-triangle {
        color: #ed6755;
    }
    .icon-tabler-check {
        color: #28a745;
    }

    .photo {
        margin-bottom: 25px;

        img {
            width: 100%;
        }
    }

    .types {
        width: 100%;

        a {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 18px;
            text-decoration: none;
            border-radius: 5px;
            background: #c54c82;
            color: #fff;
            font-weight: normal;
            height: 50px;
            margin-bottom: 10px;
            padding: 0 10px;
        }
    }

    .content {
        margin: 30px auto 0 auto;
        left: 0;
        right: 0;
        position: absolute;
        width: 320px;
        max-height: calc(100vh - 100px);
        display: flex;
        flex-direction: column;
        align-items: center;
        background-color: #fff;
        color: #000;
        text-align: center;
        border-radius: 20px;
        padding: 30px 30px 70px;
        z-index: 1001;
        overflow-y: auto;
    }

    button.close {
        width: 30px;
        font-size: 20px;
        color: #c0c5cb;
        align-self: flex-end;
        background-color: transparent;
        border: none;
        margin-bottom: 10px;
    }

    p {
        margin-bottom: 40px;
        font-size: 18px;
    }

    button.accept {
        background-color: #ed6755;
        border: none;
        border-radius: 5px;
        width: 200px;
        padding: 14px;
        font-size: 16px;
        color: white;
        box-shadow: 0px 6px 18px -5px rgba(237, 103, 85, 1);
    }
}

#photos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    min-height: calc(100dvh - 100px);
    padding: 0 15px 20px 15px;

    img {
        width: 200px;
    }

    .item {
        margin-bottom: 30px;

        a {
            color: #ed6755;
        }
    }

}

