@font-face {
    font-family: 'Kronika';
    src: url('../fonts/KRONIKA.ttf') format('truetype');
}

.btn {
    display: inline-block;
    width: 199px;
    height: 28px;
    border: none;
    background-image: url('../img/buttons.png');
    background-repeat: no-repeat;
    font-family: 'Kronika', sans-serif;
    filter: drop-shadow(-3px 3px 3px rgba(0, 0, 0, 0.5));
    text-shadow: 0 0 4px rgba(0, 0, 0, 0.8);
    transition: filter 0.2s ease;
}

.btn:hover {
    filter: brightness(1.2) drop-shadow(-3px 3px 3px rgba(0, 0, 0, 0.5));
}

.btn:active {
    filter: brightness(0.7) drop-shadow(-3px 3px 3px rgba(0, 0, 0, 0.5));
}

.btn.red {
    background-position: -9px -9px;
    color: #FFE7BB;

}

.btn.orange {
    background-position: -9px -47px;
    color: #FFFFAA;

}

.btn.yellow {
    background-position: -9px -85px;
    color: #FFFFA5;

}

.btn.lime {
    background-position: -9px -123px;
    color: #F0F990;

}

.btn.green {
    background-position: -9px -161px;
    color: #F3FF8F;

}

.btn.cyan {
    background-position: -9px -199px;
    color: #F8FFFF;

}

.btn.blue {
    background-position: -9px -237px;
    color: #F8FFFF;

}

.btn.purple {
    background-position: -9px -275px;
    color: #FCC9FF;

}

.btn.pink {
    background-position: -9px -313px;
    color: #FFF;

}


/* Additional styles */

:root {
    --splash-screen-background: transparent;
    --logo-display: none;
}

#swirl {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 150vmax;
    height: 150vmax;
    transform: translate(-50%, -50%);
    background: url("../img/gradientswirl.png") no-repeat center center;
    background-size: contain;
    z-index: 1;
    pointer-events: none;
    animation: swirl-spin 20s linear infinite;
    opacity: 0.5;
    -webkit-mask-image: radial-gradient(circle, black 30%, transparent 70%);
    mask-image: radial-gradient(circle, black 30%, transparent 70%);
}

@keyframes swirl-spin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

body {
    margin: 0;
    padding: 0;
    background: #000 url("../img/bg.png") no-repeat center center fixed;
    background-size: max(1920px, 100%, calc(100vh * 16 / 9)) auto;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    font-family: 'Kronika', sans-serif;
}

#site {
    position: relative;
    width: min(760px, 100vw, calc(100vh * 760 / 615));
    aspect-ratio: 760 / 615;
    background-image: url("../img/bkgd.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    overflow: visible;
    z-index: 2;
}

#logo-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 760px;
    height: 615px;
    transform-origin: top left;
    z-index: 3;
    pointer-events: none;
}

#site-inner {
    position: absolute;
    top: 0;
    left: 0;
    width: 760px;
    height: 615px;
    transform-origin: top left;
    mask-size: 100% 93px, 100% 100%;
    mask-position: top center, center;
    mask-repeat: no-repeat;
    mask-composite: source-over; /* this is complex, might just use two layers. we'll leave to this for now -- thorns */
}

#logo-idle-wrap {
    position: absolute;
    left: 50px;
    top: 0;
    width: 100px;
    height: auto;
    animation: logo-idle 5s ease-in-out infinite;
    z-index: 10;
}

#logo {
    display: block;
    width: 100%;
    height: auto;
    cursor: pointer;
    transition: transform 0.1s ease;
    pointer-events: auto;
    user-select: none;
}

@keyframes logo-idle {
    0%, 100% { transform: rotate(-5deg); }
    50% { transform: rotate(5deg); }
}

@keyframes logo-click-anim {
    0% { transform: scale(1) rotate(0deg) translateY(0); }
    15% { transform: scale(1.25) rotate(20deg) translateY(-15px); }
    30% { transform: scale(1.1) rotate(-15deg) translateY(5px); }
    45% { transform: scale(1.15) rotate(10deg) translateY(-5px); }
    60% { transform: scale(1.05) rotate(-5deg) translateY(2px); }
    75% { transform: scale(1.08) rotate(3deg) translateY(-2px); }
    100% { transform: scale(1) rotate(0deg) translateY(0); }
}

#logo.logo-clicked {
    animation: logo-click-anim 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}


#banner {
    position: absolute;
    left: calc(50% - 1px);
    transform: translateX(-50%);
    z-index: 5;
    top: 7px;
}

#banner .background {
    position: absolute;
    top: 0;
    left: 0;
    width: 732px;
    height: 90px;
    z-index: -1;
}

#banner .object-wrap {
    position: relative;
    overflow: hidden;
    width: 732px;
    height: 90px;
}

#banner .object-wrap::before {
    display: none;
}

#banner-animation_container {
    position: absolute;
    top: 0;
    left: 0;
    width: 732px;
    height: 90px;
    overflow: hidden;
}

#banner-canvas {
    z-index: 1;
    max-width: 100%;
    max-height: 100%;
}

#banner-dom_overlay_container {
    z-index: 2;
}

#banner .object-wrap::before {
    display: none;
}

#banner-animation_container {
    position: relative;
    width: 100%;
    max-width: 761px;
    aspect-ratio: 761 / 93;
}

#banner-canvas {
    z-index: 1;
    width: 761px;
    height: 93px;
}

#banner-canvas {
    z-index: 1;
}

#banner-dom_overlay_container {
    z-index: 2;
}

#buttons {
    position: absolute;
    top: 130px;
    left: 40px;
    display: flex;
    flex-direction: column;
    gap: 12.5px;
}

#content-area {
    position: absolute;
    top: 130px;
    left: 255px;
    width: 460px;
    height: 352px;
    overflow: hidden;
}

#flashContent {
    width: 100%;
    height: 100%;
    position: relative;
}

#flashContent::before,
#banner::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 96px;
    height: 12px;
    transform: translate(-50%, -50%);
    background: url('../img/loading_indicator.gif') -2px -2px no-repeat;
    background-size: 100px 16px;
    pointer-events: none;
}

#footer {
    position: absolute;
    bottom: 50px;
    left: 0;
    right: 0;
    text-align: center;
    color: #fff;
    font-size: 18px;
}

#footer .link {
    color:orange;
}

#footer .link:visited {
    color:yellowgreen;
}

#speaker {
    display: block;
    position: relative;
    left: -30px;
    margin: 10px auto 0;
    width: 60px;
    height: 60px;
    cursor: pointer;
    z-index: 100;
    filter: grayscale(100%);
    transition: filter 0.3s ease, transform 0.1s ease;
}

#speaker:hover {
    transform: scale(1.1);
}

#speaker:active {
    transform: scale(0.9);
}

#speaker.unmuted {
    filter: grayscale(0%);
}

@keyframes sine-wave {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

.thorns-text span {
    display: inline-block;
    animation: sine-wave 2s ease-in-out infinite;
    color: inherit;
}

#music-player {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 380px;
    z-index: 1000;
    font-family: 'Segoe UI', Tahoma, Helvetica, Sans-Serif;
    opacity: 0;
    transform: scale(0.5);
    transform-origin: bottom right;
    pointer-events: none;
    transition: opacity 0.22s ease-out, transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
    user-select: none;
}

#music-player .window-body {
    padding: 4px;
}

#music-player.show {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

#music-player.dragging {
    transition: none !important;
}

#music-player.minimizing {
    animation: wmp-minimize 0.35s ease-in forwards;
    pointer-events: none;
}

@keyframes wmp-minimize {
    0% {
        transform: scale(1) translate(0, 0);
        opacity: 1;
    }
    100% {
        transform: scale(0.2) translate(var(--fly-x, 0), var(--fly-y, 0));
        opacity: 0;
    }
}

#music-player.restoring {
    animation: wmp-restore 0.3s ease-out forwards;
    pointer-events: none;
}

@keyframes wmp-restore {
    0% {
        transform: scale(0.2) translate(var(--fly-x, 0), var(--fly-y, 0));
        opacity: 0;
    }
    100% {
        transform: scale(1) translate(0, 0);
        opacity: 1;
    }
}

#music-restore {
    display: none;
    position: fixed;
    bottom: 10px;
    right: 10px;
    z-index: 2001;
    background-color: #FFA500 !important;
    color: #000;
    font-family: 'Segoe UI', Tahoma, Helvetica, Sans-Serif;
    padding: 4px 12px;
}