html {
    background-color: black;
}

body {
    background-color: black;
	height: 100vh;
	user-select: none;
    overflow-x: hidden;
    color: white;
    font-family: Lato, Verdana, sans-serif;
}

#title-container {
    background-color: black;
    padding-top: 1.2rem;
    padding-bottom: 0.8rem;
    padding-left: 4rem;
    z-index: 3;
    position: relative;
    box-shadow: 3px 3px 10px rgba(0,0,0,0.3);
}

#title {
    position: relative;
    animation: slideRight 1.5s;
}

.container {
    margin-top: 3rem;
    z-index: 1;
    position: relative;
}

.card {
    margin-left: 4rem;
    margin-bottom: 3rem;
    background-color: black;
    border: none;
    border-top-left-radius: calc(1rem - 1px);
    border-top-right-radius: calc(1rem - 1px);
    border-bottom-left-radius: calc(1rem - 1px);
    border-bottom-right-radius: calc(1rem - 1px);
    box-shadow: 3px 3px 10px rgba(0,0,0,0.3);
    transition: 300ms;
}

.card-body {
    color:  white;
    background-color: black;
    padding: 1rem;
    border-bottom-left-radius: calc(1rem - 1px);
    border-bottom-right-radius: calc(1rem - 1px);
    transition: opacity 300ms;
}

.card-title {
    margin: auto;
    font-weight: bold;
}

.card-img-top {
    border-top-left-radius: calc(1rem - 1px);
    border-top-right-radius: calc(1rem - 1px);
    opacity: 1;
    transition: opacity 300ms;
}

.card:hover {
    transform: scale(1.1);
    border: none;
}

.card:hover::after {
    content: "";
    position: fixed;
    border-top-left-radius: calc(1rem - 1px);
    border-top-right-radius: calc(1rem - 1px);
    border-bottom-left-radius: calc(1rem - 1px);
    border-bottom-right-radius: calc(1rem - 1px);
    top: 0; bottom: 0; left: 0; right: 0; 
    background-color: rgba(255,255,255,0.08);
    pointer-events: none;
}

a {
    color: initial;
}
a:hover {
    color: initial;
    text-decoration: none;
}

a:visited {
    color: initial;
    text-decoration: none;
}

.slideshow { 
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}

.slideshow li { 
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background-size: cover;
    background-position: 50% 50%;
    background-repeat: no-repeat;
    filter: grayscale(0.75);
    opacity: 0;
    z-index: -1;
    animation: imageAnimation 36s linear infinite; 
}

.slideshow li:nth-child(1) { 
    background-image: url('/img/up.jpg');
}
.slideshow li:nth-child(2) { 
    background-image: url('/img/attilamarcel.jpg');
    animation-delay: 6s; 
}
.slideshow li:nth-child(3) { 
    background-image: url('/img/samantha.jpg');
    animation-delay: 12s; 
}
.slideshow li:nth-child(4) { 
    background-image: url('/img/aristocats.jpg');
    animation-delay: 18s; 
}
.slideshow li:nth-child(5) { 
    background-image: url('/img/tangled.jpg');
    animation-delay: 24s; 
}
.slideshow li:nth-child(6) { 
    background-image: url('/img/catbug.jpg');
    animation-delay: 30s; 
}

@media all and (orientation:landscape) {
    .card {
        animation: fadeInSlideLeft 1.5s;
    }
}

@media all and (orientation:portrait) {
    .card {
        animation: fadeInSlideUp 1.5s;
    }

    .slideshow li:nth-child(1) { 
        background-position: left;
    }
    .slideshow li:nth-child(2) { 
        background-position: 60% 40%;
    }
    .slideshow li:nth-child(3) { 
        background-position: 80% 50%;
    }
    .slideshow li:nth-child(4) { 
        background-position: 60% 50%;
    }
    .slideshow li:nth-child(5) { 
        background-position: 40% 50%;
    }
    .slideshow li:nth-child(6) { 
        background-position: 50% 80%;
    }
}

@keyframes imageAnimation { 
    0% { 
        opacity: 0; 
        animation-timing-function: ease-in;
    }
    10% {
        opacity: 1;
        animation-timing-function: ease-out;
    }
    20% {
        opacity: 1;
    }
    30% {
        opacity: 0;
    }
}

@keyframes fadeInSlideUp {
    from {
        opacity: 0;
        top: 40vh;
    }
    to {
        opacity: 1;
        top: 0;
    }
}

@keyframes fadeInSlideLeft {
    from {
        opacity: 0;
        left: 40vw;
    }
    to {
        opacity: 1;
        left: 0;
    }
}

@keyframes slideRight {
    0% {
        left: -100vw;
    }
    20% {
        left: -100vw;
    }
    100% {
        left: 0;
    }
}

/* Older browser support - .no-cssanimations class added by modernizr */
.no-cssanimations .slideshow li {
	opacity: 0.5;
}