@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;600;700&display=swap');

:root
{
    --fg: whitesmoke;
    --fg-hover: #bbb;
    --fg-hover-dark: #717171;
    --bg-main: rgb(0, 8, 39);
    --bg-second: rgb(3, 14, 54);
}

*
{
    margin: 0;
    padding: 0;
    font-family: 'Roboto', Arial, Helvetica, sans-serif;
}

body, html
{
    width: 100vw;
    height: 100vh;
    background-color: var(--bg-main)!important;
    color: var(--fg)!important;
    z-index: 1;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

.hidden
{
    display: none!important;
    visibility: collapse!important;
    opacity: 0!important;
}

.visible
{
    visibility: visible!important;
    opacity: 1!important;
}

.flip
{
    animation: flip .5s forwards;
}

.reverse
{
    animation-direction: reverse;
}

.foreground
{
    color: var(--fg)!important;
}

.background
{
    background-color: var(--bg-main)!important;
}

.margin-auto
{
    margin: auto!important;
}

/*#region Nav*/
nav li button
{
    background-color: var(--bg-second)!important;
}
nav li button.active, nav li button:hover
{
    background-color: var(--fg)!important;
    color: var(--bg-second)!important;
}
/*#endregion*/
/*#region Breadcrumbs*/
nav.breadcrumbs
{
    flex: 0!important;
    padding: 0!important;
}

nav.breadcrumbs .breadcrumb
{
    background: var(--bg-second)!important;
    border-radius: 15px;
}
/*#endregion*/
/*#region Index*/
main.index div.carousel img
{
    object-fit: cover;
    width: 100%;
    height: 400px;
    cursor: pointer;
    opacity: 1;
    transition: .35s ease;
}

main.index div.carousel img:hover
{
    opacity: .8;
}

main.index div.carousel a
{
    transition: background-color .5s ease;
}

main.index div.carousel a:hover
{
    background-color: rgba(0, 0, 0, .4);
}

main.index > section.search
{
    padding-top: 2em;
}

section.search input[type=text]
{
    padding: 10px;
    margin: 10px;
    margin-left: auto;
    width: 66.666667%;
    border-radius: 10px;
}

section.search button.search-btn
{
    background-color: transparent;
    border-radius: 5px;
    min-width: 25px;
    min-height: 25px;
    margin-right: auto;
}

section.search button.search-btn > svg
{
    stroke: var(--fg);
    fill: var(--fg);
}
/*#endregion*/
/*#region Movies*/
section.movie-cards
{
    row-gap: 2em;
    padding: 2em;
}

div.movie-card
{
    height: 250px;
    border-radius: 15px;
    transition: .5s ease;
}

div.movie-card:hover
{
    scale: 1.1;
}

div.movie-card img
{
    object-fit: cover;
    height: 250px;
    border-radius: 15px;
}

div.movie-card div.card-back
{
    background-color: black;
    border-radius: inherit;
    display: grid;
}

div.card-back > *
{
    grid-column-start: 1;
    grid-row-start: 1;
}

div.card-back > img
{
    transform-origin: center;
    transform: scaleX(-1);
    opacity: .1;
}

div.card-back > div
{
    margin: 0px 15px;
    border-top-width: 15px;
    height: 225px;
    overflow: hidden;
}

div.card-back p:nth-child(even)
{
    margin-bottom: 10px!important;
}

div.card-back p.mov-plot
{
    height: 75px;
    word-break: keep-all;
    overflow: hidden;
}

div.card-back .btn-mov-info
{
    background-color: transparent;
    padding: 2px 2px;
    position: absolute;
    bottom: 0;
}
/*#endregion*/
/*#region About*/
main.about button.about-header-btn
{
    background-color: var(--bg-second);
    margin: 15px auto;
    border-radius: 10px;
    flex: 0;
    transition: background-color .5s ease, color .5s ease;
}
main.about button.about-header-btn:hover,
main.about button.about-header-btn.active
{
    color: var(--bg-second)!important;
    background-color: var(--fg)!important;
}

main.about div.about-card
{
    display: grid;
    max-height: 350px;
}
main.about div.about-card > *
{
    grid-column-start: 1;
    grid-row-start: 1;
}
main.about div.about-card > img
{
    object-fit: cover;
    height: 350px;
}
main.about div.about-card > div.overlay
{
    position: absolute;
    background-color: var(--bg-second);
    overflow: hidden;
    width: 0;
    height: 0;
    transition: .5s ease;
    display: grid;
    place-items: center;
}
main.about div.about-card:hover > div.overlay
{
    width: 100%;
    height: 100%;
}
main.about div.about-card:nth-child(odd) > div.overlay
{
    top: 0;
    right: 0;
}
main.about div.about-card:nth-child(even) > div.overlay
{
    top: 0;
    left: 0;
}
/*#endregion*/
/*#region Movie*/
main.add,
main.actor,
main.movie
{
    background-color: var(--bg-second);
    border-radius: 15px;
    margin-bottom: 15px;
}
div.poster div img
{
    height: auto;
}
div.poster div p:nth-child(odd)
{
    flex-grow: .5;
}
div.poster div p:nth-child(even)
{
    flex-grow: .5;
}

.movie-cast-card
{
    margin-bottom: 10px;
    font-size: 12px;
}
.movie-cast-card img
{
    width: 80px;
    height: 80px;
}
#btn-next:hover
#btn-back:hover
{
    color: var(--fg-hover)!important;
}
/*#endregion*/
/*#region Add*/
main.add section
{
    flex: 0!important;
}
main.add section:first-child
{
    display: grid!important;
}
main.add section:first-child > *
{
    grid-column-start: 1;
    grid-row-start: 1;
}

div.progress-bar
{
    transition: width .25s ease;
}

.progress-border
{
    border: 1px solid var(--fg);
}

div.progress-step
{
    background-color: var(--fg);
    border-radius: 37.5px;
    width: 75px;
    height: 75px;
    display: grid;
}
div.progress-step:first-child
div.progress-step:last-child
{
    margin: 0 -5px;
}

div.progress-step > *
{
    grid-column-start: 1;
    grid-row-start: 1;
}

div.progress-step > p
{
    align-self: center;
    justify-self: center;
    margin-top: 15px;
    color: black;
}
div.progress-step.passed > p
{
    color: var(--fg)!important;
    z-index: 10;
}

div.progress-step > .progress-bar
{
    border-radius: 37.5px;
    width: 0;
    height: 0;
    max-width: 75px;
    max-height: 75px;
    transition: height .25s ease, width .25s ease;
}
div.progress-step.passed > .progress-bar
{
    width: 100%;
    height: 100%;
}

div.cast-item
{
    border: 1px solid var(--fg);
    border-radius: 5px;
    padding: .2rem
}
div.cast-item .cast-item-remove
{
    padding: 0 .375rem;
}

.form-control:disabled
{
    background-color: var(--fg-hover)!important;
    border-color: var(--fg-hover)!important;
    cursor: no-drop;
}
/*#endregion*/
/*#region Toast*/
div.toaster
{
    position: absolute;
    bottom: 15px;
    right: 15px;
    color: rgba(0, 0, 0, 0.8)!important;
    opacity: 0;
    transition: opacity .5s ease;
    z-index: 9999;
    border-radius: 5px;
}
div.toaster.show
{
    opacity: 1;
}
div.toaster *
{
    background-color: transparent!important;
    color: inherit!important;
}
/*#endregion*/
/*#region Footer*/
footer
{
    height: auto;
    margin-top: auto;
    background-color: var(--bg-second);
}

footer > ul
{
    margin: 10px 0px;
    list-style-type: none;
}

footer > ul > li
{
    margin: 0px 10px;
}

footer > ul > li > a
{
    text-decoration: none!important;
    transition: .25s ease;
}

footer > ul > li > a:hover
{
    color: var(--fg-hover)!important;
}
/*#endregion*/
/*#region Keyframes*/
@keyframes flip
{
    0% {transform: scaleX(0);}
    100% {transform: scaleX(1);}
}
/*#endregion*/