@import '../colors';

.collections {
    height: 100vh;
    background-image: url('../../assets/collections/museum_background.png');
    background-position: center;
    background-size: 100% 100%;
}

.grid-button {
    position: fixed;
    right: calc(50% - 35px);
    bottom: 20px;
    --border-radius: 50%;
    width: 70px;
    height: 70px;
    z-index: 3;
    margin: 0;
    --padding-start: 0;
    --padding-end: 0;
    --padding-top: 0;
    --padding-bottom: 0;
    --background: white;
    --color: #d73e53;
    --box-shadow: 2px 2px 5px -2px var(--dark-blue);
    
    ion-icon {
        font-size: 28px;
    }
}

.collection-grid {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    width: 100%;
    padding: 0 5%;
    position: fixed;
    left: 0;
    top: 20vh;
    max-height: 40vh;
    overflow: auto;
    animation: fadeUp 0.5s forwards;
    
    li {
        width: 100px;
        min-height: 100px;
        border-radius: 10px;
        background-color: rgba(white, 0.8);
        box-shadow: 2px 2px 10px -4px $dark-blue;
        position: relative;
        padding: 10px;
        margin: 10px;

        img {
            width: 50px;
            height: 50px;
            display: block;
            object-fit: contain;
            margin: 0 auto;
        }

        label {
            margin-top: 10px;
            display: block;
            color: dimgrey;
            font-weight: 500;
            font-size: 0.9rem;
            text-align: center;
        }
    }
}

.glass-box {
    width: 55vw;
    height: 40vh;
    position: fixed;
    left: calc(50vw - (55vw / 2));
    bottom: 36vh;
}

ion-slides {
    width: 100%;
    height: calc(100vh - 56px);

    ion-slide {
        height: 100%;
        display: block;
        position: relative;
        width: 100%;
        opacity: 0;
        
        &.swiper-slide-active {
            animation: fadeUp 0.5s forwards;
            animation-delay: 0.2s;
        }
    }    

    .box-heading {
        position: absolute;
        left: 25vw;
        width: 50vw;
        background-color: rgba(white, 0.3);
        border-radius: 7px;
        overflow: hidden;
        padding: 15px;
        top: 65vh;
        box-shadow: 0px 0px 5px inset dimgray;

        h5 {
            margin: 0;
            font-size: 1rem;
            font-weight: 500;
            color: rgb(63, 63, 63);
        }

        p {
            margin: 0;
            font-size: 0.8rem;
            line-height: 1.5;
            color: rgb(93, 93, 93);
        }
    }

    img {        
        position: absolute;
        left: 40vw;
        bottom: 42.5vh;
        object-fit: contain;
        object-position: bottom;

        &.bat {
            width: 20.5vw;
            height: 20.5vh;

            &.inverted {
                left: 42vw;
            }
        }

        &.ball {
            width: 10vw;
            height: 10vh;
            left: 45vw;
        }
    }
}

@keyframes fadeUp {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0vh);
    }
}

.back-button {
    position: fixed;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(white, 0.5);
    border: 0px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;

    ion-icon {
        color: white;
        font-size: 20px;
    }
}