
/*
 * css/site.css
 *
 * Provides site-wide style rules
 */


/* -------------------------------------------------------------------------- */
/* Outrun future font face */

@font-face
{
    font-family: 'Outrun future';
    font-style: italic;
    font-weight: 600;
    src: url("../font/Outrun future/Outrun future Bold Italic.otf") format("opentype");
}

/* -------------------------------------------------------------------------- */
/* Content container */

.content-container
{
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* -------------------------------------------------------------------------- */
/* Background video */

video
{
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    min-width: 100vw;
    min-height: 100vh;
}

/* -------------------------------------------------------------------------- */
/* Header text */

h1
{
    position: relative;
    margin: 0 0 0 1.5rem;
    font-family: 'Outrun future', sans-serif;
    font-size: 5rem;
    letter-spacing: 3rem;
}
h1#radical
{
    animation: 15s ease-in-out infinite alternate wobble;
}
h1#dog
{
    margin-top: -3.25rem;
    animation: 15s ease-in-out infinite alternate-reverse wobble;
}
h1 div
{
    position: absolute;
    background-image: url('../img/sparkles.webp');
    color: rgba(0, 0, 0, 0);
    -webkit-background-clip: text;
    background-clip: text;
}

/* ---------------------------------- */
/* Header text mobile sizing */

@media screen and (max-width: 700px), (max-height: 750px) {
    h1
    {
        font-size: 2rem;
        letter-spacing: 1.5rem;
    }
    h1#dog
    {
        margin-top: -1rem;
    }
}

/* ---------------------------------- */
/* Header text wobble animation */

@keyframes wobble
{
    0%
    {
        transform: translate(0px, -8px) rotateZ(-2deg);
    }
    20%
    {
        transform: translate(0px, -4px) rotateZ(2deg);
    }
    40%
    {
        transform: translate(0px, 4px) rotateZ(-2deg);
    }
    60%
    {
        transform: translate(0px, 8px) rotateZ(2deg);
    }
    80%
    {
        transform: translate(0px, 4px) rotateZ(-2deg);
    }
    100%
    {
        transform: translate(0px, -4px) rotateZ(2deg);
    }
}

/* ---------------------------------- */
/* Header text 3D effect */

h1:after
{
    text-shadow: -0.25rem -0.125rem rgba(255,25,100, 0.95),
                 0.25rem 0.125rem rgba(50,255,255,0.95);
    color: transparent;

}
h1#radical:after
{
    content: "Radical";
}
h1#dog:after
{
    content: "Dog";
}

/* -------------------------------------------------------------------------- */
/* Goober art */

#goober
{
    position: relative;
    min-width: 320px;
    min-height: 450px;
    background-image: url("../img/goober.png");
    background-size: 100%;
    background-repeat: no-repeat;
    background-position: center;
    animation: 15s ease-in-out infinite glow,
               15s linear infinite rotate;
}

/* ---------------------------------- */
/* Goober art mobile screen dimensions */

@media screen and (max-width: 700px), (max-height: 750px)
{
    #goober
    {
        min-width: 245px;
        min-height: 350px;
    }
}

/* ---------------------------------- */
/* Goober art rotation animation */

@keyframes rotate
{
    0%
    {
        transform: perspective(800px) rotateY(0);
    }
    100%
    {
        transform: perspective(800px) rotateY(360deg);
    }
}

/* ---------------------------------- */
/* Goober art glow animation */

@keyframes glow
{
    0%
    {
        filter: drop-shadow(0px 0px 60px #eb77f7);
    }
    25%
    {
        filter: drop-shadow(0px 0px 0px #eb77f7);
    }
    50%
    {
        filter: drop-shadow(0px 0px 60px #51c3f8);
    }
    75%
    {
        filter: drop-shadow(0px 0px 0px #51c3f8);
    }
    100%
    {
        filter: drop-shadow(0px 0px 60px #eb77f7);
    }
}

/* ---------------------------------- */
/* Goober sparkle effect */

#goober:after
{
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background-image: url("../img/goober sparkles cutout.webp");
    background-position: center;
    background-size: 100%;
    mix-blend-mode: lighten;
    animation: 15s linear infinite sparkle-fade;
}

/* ---------------------------------- */
/* Goober art sparkle fade animation */

@keyframes sparkle-fade
{
    0% {
        opacity: 0.1;
    }
    25% {
        opacity: 1;
    }
    50% {
        opacity: 0.1;
    }
    75% {
        opacity: 1;
    }
    100% {
        opacity: 0.1;
    }
}

/* -------------------------------------------------------------------------- */
/* Corner buttons */

.button
{
    position: absolute;
    cursor: pointer;
    top: 0.5rem;
    width: 1.25rem;
    height: 1.25rem;
    padding: 5px;
    margin: 0;
    background: none;
    border: none;
    outline: none;
    border-radius: 5px;
    transition: background-color 0.15s;
}
.button:hover
{
    background-color: #002;
}
.button img
{
    width: 100%;
    height: 100%;
}
#audio-button
{
    left: 0.5rem;
}
#twitter-button
{
    left: 2.75rem;
}
#cohost-button
{
    left: 5rem;
}
#mastodon-button
{
    left: 7.25rem;
}
#steam-button
{
    left: 9.5rem;
}
#email-button
{
    left: 11.75rem;
}
