/*	normalize */
body {
    background-color: #000;
}

#header section {
    max-width: 100%;
}

@media (min-width: 768px) {
    #header section {
        padding-left: 3rem;
    }
}

#footer {
    display: none;
}

/*	main */
#main {
    min-height: 100vh;
    min-height: -webkit-fill-available;
}

.recent {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 5;
    width: 100px;
    background-color: #fff;
    transition: opacity .5s ease;
    border: solid 1px #000;
    box-shadow: 0 0 3px rgba(255, 255, 255, 1);
    animation: recent-heart 12s infinite;
    display: none;
}

.recent.hide {
    opacity: 0;
    transition: opacity .5s ease;
    animation: unset;
}

.recent .new {
    position: absolute;
    background-color: var(--red-dark);
    color: #fff;
    font-family: var(--font-gothic);
    font-size: 0.5rem;
    font-weight: 700;
    line-height: 1.2;
    display: block;
    padding: 0 .25rem;
}

.recent img {
    width: 100%;
}

.recent h4 {
    font-family: var(--font-title);
    font-size: 0.7rem;
    padding: .5rem;
    margin: 0;
    color: #000;
    text-align: center;
}

.recent h4 a {
    color: #000;
}

@keyframes recent-heart {
    0% { opacity: 1; }
    30% { opacity: 0; }
    70% { opacity: 0; }
    100% { opacity: 1; }
}

@media (min-width: 768px) {
    .recent {
        width: 200px;
        display: block;
    }
}

/*	sliadeshow */
.slideshow {
    list-style: none;
    padding: 0;
    margin: 0;
}

.slideshow {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0px;
    left: 0px;
    z-index: 0;
}

.slideshow li header {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0px;
    left: 0px;
    color: #fff;
    opacity: 0;
    background-size: cover;
    background-position: 50% 50%;
    background-repeat: none;
    z-index: 0;
    -webkit-backface-visibility: hidden;

    animation-name: imageAnimation;
    animation-delay: 0s;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
    animation-direction: normal;
}

.slideshow li article {
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 1;
    opacity: 0;

    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;

    width: 100%;
    height: 100%;

    color: #fff;

    animation-name: titleAnimation;
    animation-delay: 0s;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
    animation-direction: normal;
}

.slideshow article .body {
    background-color: rgba(0, 0, 0, 0.8);
    padding: 1.5rem;
    width: 100%;
    
    line-height: 1.2;
}

.slideshow article .title {
    font-weight: 600;
    font-family: var(--font-gothic);
    font-size: 0.8rem;
    line-height: 1;

    display: flex;
    align-items: center;
    padding-left: 1px;
}

.slideshow article .title a {
    display: flex;
    align-items: center;
    color: #fff;
    -webkit-tap-highlight-color: transparent;
}

.slideshow article .title a i {
    margin-left: .5rem;
}

.slideshow article .title a:hover {
    color: var(--red-dark);
    transition: color .3s ease;
}

.slideshow article .description {
    font-size: 1rem;
    line-height: 1.2;
    word-break: keep-all;
    margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
    .slideshow article .body {
        width: auto;
        margin: 2rem;
        border-radius: 1rem;
        padding: 1rem;
    }
}

/*	animation */
@keyframes imageAnimation { 
    0% {
        opacity: 0;
        transform: scale(1);
    }
    3% {
        opacity: 1;
        animation-timing-function: ease-out;
    }
    9% {
        opacity: 1;
    }
    13% {
        opacity: 0;
        transform: scale(1.2);
    }
    100% { opacity: 0 }
}

@keyframes titleAnimation { 
    3% {
        opacity: 1;
    }
    4% {
        opacity: 1;
        z-index: 2;
    }
    7% { opacity: 1 }
    9% {
        opacity: 0;
    }
    100% { 
        opacity: 0;
        z-index: -1;
    }
}
