@keyframes fade-in{
    from{
        opacity: 0;
        transform: translateY(50px);
    }
    to{
        opacity: 1;
        transform: translateY(0px);
    }
}

.hidden{
    display: none
}

.flex-item {
    flex: 1 0 225px;
}
.episode, .gallery-image{
    padding: 0 5px 5px 5px;
    transition: transform .5s;
    border: 2px transparent;
    border-radius: 4px;
}

.episode:hover, .gallery-image:hover{
    cursor: pointer;
}

.episode:hover img, .gallery-image:hover .gallery-thumbnail{
    box-shadow: 1px 1px 1px white, 1px -1px 1px white, -1px -1px 1px white, -1px 1px 1px white;
}

main, nav, footer{
    color: white;
    text-shadow: 1px 1px 1px black, 1px -1px 1px black, -1px -1px 1px black, -1px 1px 1px black;
}
.bg-container{
    left: 0;
    top: 0;
    width: 100%;
    height: 110%;
    position: fixed;
    z-index: -10;
}

.bg-container.bg-gradient{
    background: url("../img/bg-gradient.png") repeat-x;
    background-size: contain;
}

.bg-container.bg-image, .bg-container.bg-img{
    background: url("../img/bg-img.jpg") no-repeat center center;
    background-size: cover;
}
.bg-container.bg-image.center, .bg-container.bg-img.center{
    background-position: center center;
}
.bg-container.bg-image.left, .bg-container.bg-img.left{
    background-position: left center;
}
.bg-container.bg-image.right, .bg-container.bg-img.right{
    background-position: right center;
}

.about, .navbar-light .navbar-brand.active .nav-link{
    color: rgb(235,207,255);
    text-shadow: 1px 1px 1px black, 1px -1px 1px black, -1px -1px 1px black, -1px 1px 1px black;
}
.navbar-light .navbar-nav .active>.nav-link, .navbar-light .nav-link.active, .navbar-light .navbar-nav .nav-link.show, .navbar-light .navbar-nav .show>.nav-link{
    color: rgb(255, 0, 128);
    text-shadow: 1px 1px 1px white, 1px -1px 1px white, -1px -1px 1px white, -1px 1px 1px white;
}

.navbar-light .navbar-nav .nav-link, .navbar-light .navbar-brand .nav-link{
    /*color: white;*/
    color: #EDD676;
    font-size: 1.3rem;
    transition: all 1s;
}

.nav-link{
    padding-top: 15px !important;
}

.section-headline{
    color: rgb(255, 0, 128);
    text-shadow: 1px 1px 1px white, 1px -1px 1px white, -1px -1px 1px white, -1px 1px 1px white;
}

.news-toggle{
    font-size: .8rem;
}

.bg-ultra-light{
    background: rgba(248,249,250,.8);
    border-radius: 0 0 4px 4px;
}

.navbar-light .navbar-toggler {
    background-color: #f8f9fa;
}
.section-link, .external-link, a{
    color: #EDD676;
    text-shadow: 1px 1px 1px black, 1px -1px 1px black, -1px -1px 1px black, -1px 1px 1px black;
}

.section-link:visited, .external-link:visited, a:visited{
    color: #CC9A3B;
    text-shadow: 1px 1px 1px black, 1px -1px 1px black, -1px -1px 1px black, -1px 1px 1px black;
}

.link-container{
    max-width: 350px;
    margin: auto;
    margin-bottom: 1rem;
}

en, ja{
    display: inline;
}

footer .legal{
    background-color: rgba(248,249,250,.8);
    border-radius: 4px 4px 0 0;
    text-align: right;
}

html[lang="ja"] .en, html[lang="ja"] en{
    display: none;
}

html[lang="ja"] .pwsp progress{
    transform: rotate(180deg);
}

html[lang="ja"] .pswp-progress.progress{
    transform: rotate(180deg);
}
.progress.pswp-progress .fa-arrow-right{
    position: absolute;
    left: 50%;
    color: white;
    text-shadow: 1px 1px 1px black, 1px -1px 1px black, -1px -1px 1px black, -1px 1px 1px black;
}

.animetamae .pswp__counter{
    opacity: 1;
}

.animetamae .pswp-progress.progress{
    background: rgba(248,249,250,.8);
}

.animetamae .pswp-progress.progress .progress-bar{
    background: rgb(255, 0, 128);
}

.pswp-progress.progress{
    position: relative;
    width: 150px;
    height: 12px;
    top: 50%;
    margin-top: -6px;
}

html[lang="en"] .ja, html[lang="en"] ja{
    display: none;
}

.pswp, .pswp a{
    text-shadow: none !important;
}

.pswp__button--arrow--left:hover{
    cursor: url('../img/arrow-left.png'), w-resize;
}
.pswp__button--arrow--right:hover{
    cursor: url('../img/arrow-right.png'), e-resize;
}

.overview{
    opacity: 0;
    display: none;
}

.sidebar-content, .overview, .mobile-links, .mobile-contact-links{
    /*background: rgba(233,233,233, .5);
    border-radius: 4px;
    padding: 5px;*/
}

.overview.active{
    opacity: 1;
    display: block;
    animation: fade-in 1s ease-in-out;
}

.gallery-thumbnail{
    padding: .25rem;
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: .25rem;
    display: inline-block;
    background-position: center center;
    background-size: cover;
    width: 250px;
    height: 250px;
}

figcaption .artist, .pswp__caption__center .artist, figcaption i, .pswp__caption__center i{
    font-weight: bold;
    font-style: italic;
}

figcaption .artist::before, .pswp__caption__center .artist::before, figcaption i::before, .pswp__caption__center i::before{
    content: "by ";
}

.anime-tamae-logo{
    padding-top: 8px;
    margin: -8px 5px -8px  -8px;
    position: relative;
    height: 70px;
    background: url("../img/logo_stub2.png") no-repeat center;
    background-size: cover;

}

.anime-tamae-logo::after{
    content: attr(data-subscript);
    position: absolute;
    right: 0px;
    bottom: 6px;
    font-size: .8rem;
    color: #666;
    text-shadow: 1px 1px 1px white, 1px -1px 1px white, -1px -1px 1px white, -1px 1px 1px white;
    transform: rotate(-20deg);
    font-style: italic;
}

.small-caps{
    font-variant:small-caps;
}

@media (max-width: 991px) {
    .gallery-thumbnail{
        width: 200px;
        height: 200px;
    }
}

@media(max-width: 767px){
    #twitter-widget-0, #twitter-widget-1{
        height: 300px !important;
        width: 80% !important;
        position: relative !important;
        left: 10% !important;
    }
}

@media (max-width: 479px) {
    .flex-item {
        flex: 1 0 125px;
    }
    .flex-item.gallery-image{
        flex: 1 0 125px;
    }

    .gallery-thumbnail{
        width: 125px;
        height: 125px;
    }
    .anime-tamae-nav{
        margin-right: -15px;
        margin-left: -15px;
    }
    .banner .col-12{
        padding: 0;
    }

}

@media (min-width: 1600px) {
    .container{
        max-width: 1540px;
    }
}

/*firefox fix, since they did not implement the (hover) media query (yet)*/
@media (min-width: 768px){
    .can-hover .episode:hover, .can-hover .gallery-image:hover{
        z-index: 5;
        transform: scale(1.1);
    }
    .can-hover .navbar-light .nav-link:hover{
        color: #CC9A3B;
        /*color: #ddd;*/
        transform: scale(1.1);
    }

    .can-hover .navbar .active .nav-link:hover{
        color: rgb(255, 0, 75);
        transform: scale(1.1);
        text-shadow: 1px 1px 1px white, 1px -1px 1px white, -1px -1px 1px white, -1px 1px 1px white;
    }
    .can-hover .section-link:hover, .can-hover .external-link:hover, .can-hover .section-link:visited:hover, .can-hover .external-link:visited:hover, .can-hover a:visited:hover{
        color: #CC9A3B;
        text-shadow: 1px 1px 1px white, 1px -1px 1px white, -1px -1px 1px white, -1px 1px 1px white;
        text-decoration: none;
    }

    .can-hover .navbar-light .navbar-brand.active .nav-link:hover{
        color: rgb(225, 168, 255);
        text-shadow: 1px 1px 1px black, 1px -1px 1px black, -1px -1px 1px black, -1px 1px 1px black;
    }
}

/* 2022 Ending Page*/
.ending-link-container {
    color: white;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ending-link-content {
    text-align: center;
}

.ending-link-content .img-fluid{
    max-width: 95%;

}