/*
Landon Hansen
4/12/2024
Slideshow stuff
*/

:root {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-size: 1.05rem;
}

.slideshow {
    position: relative;

    height: 480px;
    width: 720px;

    background-color: rgb(20, 20, 20);

    cursor: pointer;

    overflow: hidden;
    resize: both;

    /* outline: 1px solid black; */
}

.slideshow::before {
    position: absolute;
    content: "\23F5";

    opacity: 0;

    font-size: 240px;
    line-height: 240px;
    
    z-index: 5;
    top: 50%;
    left: 50%;

    text-align: center;
    
    width: 250px;
    height: 250px;
    border-radius: 100%;

    color: white;
    background-color: rgba(0, 0, 0, 0.6);

    /* transform-origin: center;
    transform: scale(3) translate(-50%, -50%); */
    transform: translate(-50%, -50%);

    transition: all 200ms;
}

.slideshow::after {
    content: "";
    z-index: 3;
    
    position: absolute;
    background-color: rgba(0,0,0,0);

    top: 0;
    left: 0;
    
    width: 100%;
    height: 100%;

    transition: all 500ms;
}

.slideshow.paused::before {
    opacity: 1;
    transform: translate(-50%, -50%);

    font-size: 40px;
    line-height: 40px;

    width: 50px;
    height: 50px;
}

.slideshow.paused::after {
    background-color: rgb(0, 0, 0, 0.3);
}

.slideshow-title-container {
    display: grid;
    grid-template-columns: 50px 1fr 50px;
    grid-template-rows: auto;

    position: absolute;
    color: white;
    padding: 5px;
    background-color: rgb(0, 0, 0, 0.6);

    width: 100%;
    bottom: 0;
    left: 0;

    z-index: 10;
    
    text-align: center;

    box-sizing: border-box;
}

.slideshow-count::before {
    content: "#";
}

.slideshow > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slideshow > img.fading {
    top: 0;
    left: 0;
    position: absolute;

    /* animation: fade 500ms forwards; */
}

/* .slideshow > img:not(.fading) {

} */

@keyframes fade {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes slideIn {
    from {
        transform: trnaslateX(100%);
    }
    to {
        transform: translateX(0);
    }
}