/*******************************************
 * VARIABLES
 *******************************************/

 :root
 {
     --cell-size: 45px;
     --planet-size: 25px;
     --built-planet-size: 45px;
 }
 
/*******************************************
 * HTML
 *******************************************/

@font-face
{
    font-family: "MRRegular";
    src: url("/assets/fonts/Montserrat-Regular.ttf") format("truetype");
}

html, body
{
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    cursor: default;
}

body
{
    font-family: "MRRegular", sans-serif;
    font-size: 14px;
    color: #aaa;
    background-color: #222529;
    overflow: hidden;
}

*
{
    -webkit-tap-highlight-color: rgba(0,0,0,0);
}


/*******************************************
 * GENERAL
 *******************************************/

#app
{
    width: 100%;
    height: 100%;
}

a, a:active, a:visited, a:hover
{
    text-decoration: none;
    color: rgb(255, 159, 69);
    transition: color 100ms;
}

a:hover
{
    color: rgb(241, 145, 81);
}

h1
{
    font-weight: bold;
    font-size: 20px;
    color: rgb(255, 159, 69);
    margin: 20px 0 10px;
    text-transform: uppercase;
}

@media only screen and (max-width: 600px)
{
    h1
    {
        font-size: 15px;
    }
}

#splash
{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(20, 20, 20);
    clip-path: circle(100%);
    z-index: 10;
}

#splash_logo
{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url(/assets/img/logo_single.svg);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 30% 30%;
    opacity: 0.03;
}

#splash .loading
{
    opacity: 1;
    top: auto;
    bottom: 50px;
}

#wrapper
{
    position: relative;
    z-index: 6;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
    -webkit-touch-callout: none;
    -webkit-text-size-adjust: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    /*padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);*/
}

#scrollable
{
    width: 100%;
    min-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#wrapper::-webkit-scrollbar
{
    display: none;
}

#background
{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    filter: contrast(50%);
    z-index: 5;
}

#content
{
    position: relative;
    padding: 50px;
    min-width: 250px;
    max-width: 500px;
    z-index: 10;
}

@media only screen and (max-width: 550px)
{
    #content
    {
        padding: 30px;
    }
}

@media only screen and (max-width: 400px)
{
    #content
    {
        padding: 10px;
    }
}

.spacer
{
    height: 10px;
}

i.orange
{
    color: rgb(255, 159, 69);
    font-style: normal;
}

/*******************************************
 * PLAYER
 *******************************************/

x-player
{
    display: block;
    position: relative;
    padding: 25px;
    background-color: rgba(10, 10, 10, 0.5);
    backdrop-filter: blur(5px) saturate(130%);
    -webkit-backdrop-filter: blur(5px) saturate(130%);
    border-radius: 10px;
}

x-button, x-button:hover, x-button:active
{
    display: inline-block;
    background-color: rgb(20, 20, 20);
    padding: 10px 0;
    height: 10px;
    width: 80px;
    background-repeat: no-repeat;
    background-position: center center;
    background-origin: content-box;
    transition: background-color 100ms;
}

x-button:hover
{
    background-color: rgb(30, 30, 30);
}

x-button:active,
x-button.active
{
    background-color: rgb(255, 159, 69);
}

x-button:first-child
{
    border-radius: 5px 0 0 5px;
    width: 50px;
    border-right: 1px rgb(30, 30, 30) solid;
}

x-button:last-child
{
    border-radius: 0 5px 5px 0;
    width: 50px;
    border-left: 1px rgb(30, 30, 30) solid;
}

x-filter, x-filter:hover, x-filter:active
{
    display: inline-block;
    font-size: 12px;
    background-color: rgb(20, 20, 20);
    padding: 3px 6px;
    border-radius: 5px;
    transition: background-color 100ms;
}

x-filter:hover
{
    background-color: rgb(0, 0, 0);
}

x-filter:active,
x-filter.active
{
    color: rgb(0, 0, 0);
    background-color: rgb(255, 159, 69);
}

#filters
{
    overflow: hidden;
    height: 0;
    transition: height 300ms ease-in-out;
}

.filter_list
{
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.filter_list:last-child
{
    margin: 0;
}

#controls
{
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

x-player > .logo
{
    height: 40px;
    padding-bottom: 20px;
    background-image: url(/assets/img/logo.svg);
    background-repeat: no-repeat;
    background-position: top left;
    background-size: contain;
    background-origin: content-box;
}

@media only screen and (max-width: 600px)
{
    x-player > .logo
    {
        height: 30px;
    }
}

#preview
{
    position: relative;
    border-radius: 10px;
    transform: translateZ(0);
    width: 100%;
    padding-top: 56.25%;
    background-color: rgb(20, 20, 20);
    overflow: hidden;
}

#preview #preview_image
{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    opacity: 0;
    transition: opacity 300ms ease-in-out;
}

#preview #watermark
{
    position: absolute;
    top: calc(50% - 60px);
    left: calc(50% - 60px);
    width: 100px;
    height: 100px;
    padding: 10px;
    background-image: url(/assets/img/logo_single.svg);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain;
    background-origin: content-box;
    opacity: 0.03;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.5);
    transition: opacity 500ms ease-in-out, background-size 500ms ease-in-out, top 500ms ease-in-out, left 500ms ease-in-out, right 500ms ease-in-out, width 500ms ease-in-out, height 500ms ease-in-out;
}

#preview #watermark.active
{
    width: 40px;
    height: 40px;
    top: 10px;
    left: calc(100% - 65px);
    opacity: 0.5
}

@media only screen and (max-width: 450px)
{
    #preview #watermark
    {
        width: 50px;
        height: 50px;
        top: calc(50% - 35px);
        left: calc(50% - 35px);
    }

    #preview #watermark.active
    {
        width: 20px;
        height: 20px;
        padding: 5px;
        top: 5px;
        left: calc(100% - 35px);
        opacity: 0.5
    }
}

#preview #error
{
    display: none;
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
    transition: opacity 300ms;
}

#preview #error #error_message
{
    text-align: center;
}

#preview #preview_details
{
    position: absolute;
    top: 0;
    left: 0;
    width: calc(100% - 40px);
    height: calc(100% - 40px);
    padding: 20px;
    opacity: 0;
}

@media only screen and (max-width: 450px)
{
    #preview #preview_details
    {
        width: calc(100% - 20px);
        height: calc(100% - 20px);
        padding: 10px;
    }
}

#preview #preview_details span
{
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
    padding: 3px 8px;
    box-shadow: inset 0px 0px 0px 1000px rgba(0, 0, 0, 0.5);
}

#preview #preview_details #details_podcast
{
    position: relative;
    top: 20px;
    opacity: 0;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 20px;
    line-height: 29px;
    width: calc(100% - 40px);
    color: rgb(255, 159, 69);
    margin: 10px 0;
    transition: opacity 300ms ease-in-out, top 300ms ease-in-out;
}

@media only screen and (max-width: 600px)
{
    #preview #preview_details #details_podcast
    {
        font-size: 15px;
        line-height: 23px;
        margin: 5px 0;
    }
}

#preview #preview_details #details_date,
#preview #preview_details #details_episode
{
    display: inline;
    position: relative;
    top: 20px;
    opacity: 0;
    font-size: 10px;
    line-height: 16px;
    color: rgb(255, 255, 255);
    transition: opacity 300ms ease-in-out, top 300ms ease-in-out;
}

#preview #preview_details #details_episode
{
    margin-left: 20px;
}

@media only screen and (max-width: 600px)
{
    #preview #preview_details #details_episode
    {
        margin-left: 10px;
    }
}

#preview #preview_details #details_title
{
    position: relative;
    font-size: 15px;
    line-height: 23px;
    top: 20px;
    opacity: 0;
    color: rgb(255, 255, 255);
    transition: opacity 300ms ease-in-out, top 300ms ease-in-out;
}

@media only screen and (max-width: 600px)
{
    #preview #preview_details #details_title
    {
        font-size: 12px;
        line-height: 20px;
    }
}

#preview #rngfm
{
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 0;
    opacity: 1;
    font-weight: bold;
    font-size: 15px;
    line-height: 23px;
    text-align: center;
    width: calc(100% - 80px);
    height: 100%;
    margin: 0 40px;
    color: rgba(255, 255, 255, 0.7);
    transition: opacity 300ms ease-in-out, top 300ms ease-in-out;
}

@media only screen and (max-width: 600px)
{
    #preview #rngfm
    {
        width: calc(100% - 40px);
        margin: 0 20px;
    }
}

#preview #rngfm span
{
    display: inline;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
    padding: 3px 8px;
    box-shadow: inset 0px 0px 0px 1000px rgba(0, 0, 0, 0.5);
}

#preview #seek
{
    opacity: 0;
    position: absolute;
    bottom: -20px;
    left: 0;
    width: 100%;
    height: 20px;
    background-color: rgba(255, 255, 255, 0.5);
    color: rgb(20, 20, 20);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transition: opacity 300ms ease-in-out, bottom 300ms ease-in-out;
}

#preview #seek_label
{
    position: absolute;
    top: 0;
    right: 20px;
    line-height: 20px;
    pointer-events: none;
}

#preview #seek #seek_background,
#preview #seek #seek_progress,
#preview #seek #seek_select
{
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
}

#preview #seek #seek_background
{
    width: 100%;
}

#preview #seek_progress
{
    background-color: rgb(255, 159, 69);
}

#preview #seek #seek_select
{
    background-color: rgba(255, 255, 255, 0.3);
}

#feedback
{
    position: absolute;
    bottom: -25px;
    right: 0;
}

#feedback a,
#feedback a:hover,
#feedback a:active,
#feedback a:visited
{
    color: #111111;
    box-shadow: inset 0px 0px 0px 1000px rgba(255, 255, 255, 0.1);
    font-weight: bold;
    padding: 3px 5px;
}

#feedback a:hover
{
    color: rgb(255, 159, 69);
}

#feedback #twitter
{
    display: inline-block;
    position: relative;
    top: 3px;
    width: 15px;
    height: 15px;
    background-image: url("/assets/img/twitter.svg");
    background-size: 15px 15px;
    background-repeat: no-repeat;
}

.loading
{
    position: absolute;
    top: calc(50% - 35px);
    left: calc(50% - 35px);
    opacity: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(100, 100, 100, 0.5);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    animation-name: loading_pulse;
    animation-duration: 3s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
    transition: opacity 300ms ease-in-out;
}

.loading .loading_dot
{
    width: 10px;
    height: 10px;
    margin: 0 3px;
    border-radius: 50%;
    background-color: rgba(255, 159, 69, 1.0);
    animation-name: loading_dot_pulse;
    animation-duration: 3s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
    animation-delay: 0.5s;
}

.loading .loading_dot:first-child
{
    animation-delay: 0s;
}

.loading .loading_dot:last-child
{
    animation-delay: 1s;
}

/*******************************************
 * ANIMATIONS
 *******************************************/

@keyframes loading_pulse
{
    0% {transform: scale(1.0); background-color: rgba(100, 100, 100, 0.3);}
    50% {transform: scale(1.1); background-color: rgba(100, 100, 100, 0.6);}
    100% {transform: scale(1.0); background-color: rgba(100, 100, 100, 0.3);}
}

@keyframes loading_dot_pulse
{
    0% {transform: scale(1.0); background-color: rgba(255, 159, 69, 0.5);}
    25% {transform: scale(1.0); background-color: rgba(255, 159, 69, 0.5);}
    30% {transform: scale(1.1); background-color: rgba(255, 159, 69, 1);}
    50% {transform: scale(1.0); background-color: rgba(255, 159, 69, 0.5);}
    100% {transform: scale(1.0); background-color: rgba(255, 159, 69, 0.5);}
}

@keyframes preview_details_fadein
{
    0% {opacity: 0; top: 20px;}
    100% {opacity: 1; top: 0;}
}

@keyframes splash_out
{
    0% {clip-path: circle(100%);}
    100% {clip-path: circle(0%);}
    /*0% {clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 80% 100%, 60% 100%, 40% 100%, 20% 100%, 0% 100%);}
    10% {clip-path: polygon(0% 0%, 100% 0%, 100% 90%, 80% 80%, 60% 100%, 40% 100%, 20% 100%, 0% 100%);}
    20% {clip-path: polygon(0% 0%, 100% 0%, 100% 90%, 80% 80%, 60% 80%, 40% 85%, 20% 100%, 0% 100%);}
    30% {clip-path: polygon(0% 0%, 100% 0%, 100% 80%, 80% 75%, 60% 80%, 40% 85%, 20% 65%, 0% 70%);}
    40% {clip-path: polygon(0% 0%, 100% 0%, 100% 60%, 80% 50%, 60% 70%, 40% 60%, 20% 50%, 0% 40%);}
    50% {clip-path: polygon(0% 0%, 100% 0%, 100% 30%, 80% 40%, 60% 40%, 40% 30%, 20% 50%, 0% 40%);}
    60% {clip-path: polygon(0% 0%, 100% 0%, 100% 30%, 80% 40%, 60% 40%, 40% 30%, 20% 20%, 0% 10%);}
    70% {clip-path: polygon(0% 0%, 100% 0%, 100% 30%, 80% 40%, 60% 40%, 40% 20%, 20% 10%, 0% 0%);}
    80% {clip-path: polygon(0% 0%, 100% 0%, 100% 20%, 80% 30%, 60% 30%, 40% 20%, 20% 10%, 0% 0%);}
    90% {clip-path: polygon(0% 0%, 100% 0%, 100% 20%, 80% 0%, 60% 10%, 40% 0%, 20% 0%, 0% 0%);}
    100% {clip-path: polygon(0% 0%, 100% 0%, 100% 0%, 80% 0%, 60% 0%, 40% 0%, 20% 0%, 0% 0%);}*/
}

@keyframes splash_logo_out
{
    0% {opacity: 0.03; transform: scale(1);}
    25% {opacity: 0.03; transform: scale(1);}
    100% {opacity: 0; transform: scale(1.5);}
}
