body {
    background-image: url("/assets/illustrations/character_selection_background.svg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

@media screen and (min-width: 768px) {
    .title .button {
        position: absolute; top: 5.5rem; right: 2rem;
    }
}
@media screen and (max-width: 768px) {
    .title .button {
        margin-top: 1rem;
    }
}

.cup-selection {
    padding-bottom: 16rem;
}
@media screen and (max-width: 768px) {
    .cup-selection {
        padding-bottom: 16rem;
    }
}

.cup-selector {
    position: absolute; top: 0; left: 0;
    transform: scale(1.15);
    transition: top .5s, left .5s;
}
.cup-selector::before {
    content: "";
    display: block;
    width: 100%; height: 100%;
    background-image: url('/assets/illustrations/character_selector.svg');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.allos-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
    grid-gap: 2rem;
    align-items: center;
    justify-items: center;

    margin: 0 auto;
    padding: 2rem;
    width: calc(100% - 4rem);

    list-style: none;
}

.allo {
    width: 10rem; height: 10rem;
}

.allo-icon {
    cursor: pointer;
    margin: 0;
    width: 10rem; height: 10rem;
    border-radius: 50%;
}
.allo-icon img {
    width: 100%; height: 100%;
    border-radius: 50%;
    object-fit: contain;
}

@media screen and (max-width: 768px) {
    .allos-list {
        grid-template-columns: repeat(auto-fill, minmax(7rem, 1fr));
    }    

    .allo {
        width: 100%; height: 100%;
    }

    .allo-icon {
        width: 100%; height: 100%;
    }
}

.allo-infos {
    display: none;
    pointer-events: none;
    opacity: 0;

    position: fixed; bottom: 7rem; left: 2rem;
    width: calc(100% - 5rem);
    min-height: 6rem;
    padding: .5rem;
    border-radius: .25rem;
    background-color: var(--color-grey-0);
    background-size: 100%;
    background-origin: border-box;
    background-position: center;
    background-repeat: no-repeat;

    align-items: center;
    
    transition: opacity .5s;
}
.allo-infos::before {
    content: "";
    position: absolute; top: -3px; left: -3px; z-index: -1;
    width: calc(100% + 3px); height: calc(100% + 3px);
    border-radius: calc(.25rem + 3px);
    background-color: transparent;
    border: 2px solid var(--color-grey-0);
}

.allo.selected .allo-infos {
    display: grid;
    pointer-events: all;
    opacity: 1;
}

.allo-name {
    font-size: 1.15rem;
    font-weight: bold;
    text-align: center;
    margin: 0; margin-right: .5rem;
}

.allo-description {
    font-size: 1rem;
    text-align: left;
    margin: 0;
    max-height: 100%;
    overflow-y: auto;
}
@media screen and (min-width: 768px) {
    .allo-infos {
        grid-template-columns: 1fr 5fr;
    }
}
@media screen and (max-width: 768px) {
    .allo-infos {
        bottom: 6.5rem; left: 1rem;
        width: calc(100% - 4rem);
        min-height: 7rem;
        padding: 1rem;
    }

    .allo-name {
        font-size: 1rem;
    }

    .allo-description {
        font-size: .9rem;
    }    
}


.banner {
    position: absolute;
    top: .5rem; right: .5rem;
    font-size: .85rem;
    font-weight: bold;
}