﻿:root {
    --bgcolor: white;
    --fgcolor: black;
}


body {
    display: flex;
    flex-direction: column;
    height: 100vh;
    background-color: var(--bgcolor);
    color: var(--fgcolor);
}

header.navbar, footer.footer {
    flex-grow: 0;
}

div.container {
    flex-grow: 1;
}

.cover-image {
    background: url("/landing.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.footer {
    background-color: var(--bgcolor);
}


.ui-selecting .overlay-effect {
    background: #408cfe;
    opacity: 0.5;
}

.ui-selected .overlay-effect {
    background: #14a1f3;
    opacity: 0.5;
}

.overlay-effect {
    position: absolute;
}

.hide {
    display: none;
}

h3.reveal {
    width: 100%
}

.reveal:hover .hide {
    display: inline-block;
}

.login-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.login-box {
    background-color: #101a2330;
    backdrop-filter: blur(10px);
    width: 300px;
    margin: auto;
}

.white-box {
    background-color: #101a2330;
    backdrop-filter: blur(10px);
    color: #e4edf4;
}



img.card-img-top {
    max-width: 100% !important;
    max-height: 100% !important;
    width: auto !important;
}


a {
    color: #191970;
}

/*Image selection selectos*/
span.selecto {
    display: none;
    position: absolute;
    border: 1px solid #a8a8a8;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    margin-left: 5px;
    margin-top: 5px;
    transition: background-color 100ms ease-in-out;
    z-index: 1;
}

input.selecto-input:checked ~ span.selecto,
label.selecto-label:hover input.selecto-input:checked ~ span.selecto {
    display: inline-block;
    background-color: #0d6efd;
}

input.selecto-input {
    position: absolute;
    visibility: hidden;
}

label.selecto-label:hover span.selecto {
    display: inline-block;
    background-color: #D8D8D8;
}

/*Album sheet*/

div.album-sheet {
    position: fixed;
    z-index: 50;
    left: 0;
    right: 0;
    bottom: -70px;
    margin: auto;
    transition: bottom 100ms ease-in-out;
    box-shadow: 0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23);
    max-width: 500px;
}

div.selectable:has(input.selecto-input:checked) ~ div.album-sheet {
    bottom: 30px;
}

div.selectable {
    counter-reset: selected-images;
}

    div.selectable input.selecto-input:checked {
        counter-increment: selected-images;
    }

.selected-counter:after {
    content: counter(selected-images);
}


div#new-album-modal {
    position: fixed;
    top: -50px;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    z-index: 100;
    background-color: rgba(1,1,1,0.7);
    visibility: hidden;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    transition: opacity 100ms ease-in-out, top 100ms ease-in-out;
    opacity: 0;
}

    div#new-album-modal a.cancel {
        position: absolute;
        width: 100%;
        height: 100%;
    }

    div#new-album-modal:target {
        visibility: visible;
        opacity: 1;
        top: 0;
        transition: opacity 100ms ease-in-out, top 100ms ease-in-out;
    }

.album-container div.row {
    width: 100%;
}


.reveal button.btn {
    width: 29px;
    height: 30px;
    padding: 0;
    margin-top: -8px;
}

a.btn i {
    display: inline-block;
    width: 100%;
    height: 100%;
    margin: 3px 0 0 6px;
    text-align: start;
    padding: 0;
}
