* {
    margin: 0;
    padding: 0;
    font-family: Helvetica, sans-serif;
}
ul {
    list-style: none;
}

body {
    background-image: url("./media/image/background/city-dark.webp");
    background-repeat: no-repeat;
    background-size: 100% auto;
    height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.body__scrollable {
    overflow-y: auto;
    height: 100%;
    max-height: 100vh;
    width: 100%;
}

main {
    max-width: 900px;
    min-height: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    margin: auto;
    gap: 2rem;
}

/* h1 */
h1 {
    font-size: 2.5rem;
    padding: 1rem;
    color: #fff;
}

/* Folder List */
.folder-list {
    width: 100%;

    display: flex;
    flex-direction: row;
    overflow-x: scroll;
    height: auto;
    gap: 1.5rem;
}
.folder-list__item {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.folder-list__item button {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    box-sizing: border-box;
    transition: border 0.2s;
}
.folder-list__item p {
    width: 100%;
}
.folder-list__item img {
    height: 100%;
    max-height: 90px;
}
.active {
    border: solid black 3px;
}

.folder-list__folderSelected {
    font-size: 1.2rem;
    color: #fff;
}





.image-list {
    display: grid;
    grid-template-columns: 1fr;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    width: auto;
}

.image-list__item {
    position: relative;
}
.image-list__item.used {
    opacity: 0.5;
}
.image-list__item.used::after {
    content: "×";
    opacity: 1;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: red;
    font-weight: 500;
    font-size: 10rem;
    pointer-events: none;
}



.image-list__button {
    width: 100%;
    height: auto;
    cursor: pointer;
}

.image-list__image {
    width: 100%;
    height: 100%;
}



/* MODAL */
.modal {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;

    background-color: #000000bb;
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal.hidden {
    display: none;
}
.modal img {
    display: block;
    width: 90vw;
    max-width: 500px;
    height: auto;
    aspect-ratio: 1/1;
    max-height: 70vh;
    background: #fff;
    object-fit: contain;
    margin: 0 auto;
}
.modal button {
    width: 100px;
    aspect-ratio: 1/1;
}





@media (min-width: 600px) {
    .modal img {
        width: 60vw;
        max-width: 600px;
        max-height: 70vh;
    }
    .image-list {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

@media (min-width: 950px) {
    .image-list {
        grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    }
    .modal img {
        width: 40vw;
        max-width: 700px;
        max-height: 80vh;
    }
}
