@font-face {
    font-family: squirm;
    src: url(/assets/fonts/SquimFont.ttf);
}

@keyframes colorRotate {
    0% {
        -webkit-filter: hue-rotate(0deg) saturate(2) invert(0);
    }
    50% {
        -webkit-filter: hue-rotate(360deg) saturate(8) invert(.25);
    }
    100% {
        -webkit-filter: hue-rotate(0deg) saturate(2) invert(0);
    }
}

@keyframes slidebg {
    to {
        background-position: 20vw;
    }
}

* {
    box-sizing: border-box;
    font-family: squirm;
}

html,
body,
.backDrop {
    margin: 0;
    height: 100%;
}

a {
    color: white;
}

.backDrop {
    background-image: url(/assets/images/misc/oodle/darkness.png);
    background-size: contain;
    animation: colorRotate 20s linear infinite;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1;
}

img {
    position: fixed;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
}

#oodleWrapper {
    display: flex;
}

.oodleForm {
    margin: auto;
    max-width: 60%;
    border: 1px solid white;
    padding: 20px;
    z-index: 10;
}

.oodleForm #theText,
.oodleForm #theButton,
.oodleForm #oodleOutput {
    display: block;
}

h1 {
    color: white;
    margin: 0;
    text-align: center;
    font-size: calc(50px + 1vw);
    margin-bottom: 40px;
}

#theText {
    width: 100%;
    padding: 20px 0;
    font-size: calc(30px + 1vw);
    text-align: center;
}

#theButton {
    width: 100%;
    padding: 20px;
    background-color: red;
    border-radius: 20px;
    border: unset;
    margin: 30px auto;
    font-size: calc(18px + 1vw);
}

/* Rainbow hover */
.rainbow-2:hover {
    background-image: linear-gradient(to right, red, orange, yellow, green, blue, indigo, violet, red);
    animation: slidebg 2s linear infinite;
}

#oodleOutput {
    margin: 0 auto;
    width: 100%;
    background-color: white;
    padding: 10px 0;
}

#oodleOutputGraff {
    margin-left: auto;
    margin-right: auto;
    font-size: calc(20px + 1vw);
    text-align: center;
    padding: 0 20px;
    overflow-wrap: break-word;
}

.otherButtons {
    display: flex;
    margin-top: 25px;
}

.btns {
    padding: 20px;
    font-size: 15px;
}

#copyBtn {
    padding: 20px;
    font-size: 15px;
}

/* -----------------------------------------------------------------------------
   Mobile — oodle-specific overrides only
   (navigation hamburger handled by blocks/nav.css)
   ----------------------------------------------------------------------------- */
@media (max-width: 767px) {
    body {
        display: flex;
    }

    #oodleWrapper {
        width: 100%;
    }

    .oodleForm {
        max-width: 90%;
    }

    #theText {
        font-size: calc(20px + 1vw);
    }
}
