@font-face {
    font-family: 'TitleFont';
    src: url('fonts/font-title.otf') format('opentype'),
}

@font-face {
    font-family: 'DescriptionFont';
    src: url('fonts/font-description.otf') format('opentype'),
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: url('/img/cursor-normal.png') 13 10, auto;
}

button:hover,
button>*:hover,
.links button:hover,
a:hover,
.gif-close:hover,
.gifContent:hover,
#about-button:hover {
    cursor: url('/img/cursor-select.png') 13 10, auto;
}

body {
    background: url('/img//water.gif') #c0c0c0;
    font-family: "DescriptionFont";
}

.container {
    width: 100vw;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

#gifContainer {
    position: relative;
    width: 100%;
    height: 100vh;
}

.gifWindow {
    position: absolute;
    border: 2px solid #000;
    background: #D9D9D9;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
    resize: both;
    overflow: hidden;
    z-index: 100;
}

.gifWindowHeader {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #D9D9D9;
    color: #000;
    border-bottom: 2px solid #000;
    padding: 2px 5px;
    cursor: move;
}

.gifWindowHeader button {
    background-color: red;
    border: none;
    color: white;
    cursor: pointer;
}

.gifContent {
    display: flex;
    align-items: center;
    justify-content: center;
    border-left: none;
    padding: 0.25em;
}

.gifContent video {
    /* height: 100%; */
    object-fit: cover;
}

#click-here {
    z-index: 500;
    position: absolute;
}

#maincat {
    position: relative;
    width: 250px;
    max-width: calc(100vw - 2rem);
    margin: 0 auto;
    background: url('/img/rainbowsparkle.gif');
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
    border: 8px solid #000;
    z-index: 99;
}

#maincat-video-container video {
    width: 100%;
}

#cat1 {
    width: 100%;
    border: 8px solid #000;
}

#hibiscus {
    position: absolute;
    top: -3rem;
    right: -4rem;
    width: 8rem
}

#sparkleflower {
    position: absolute;
    top: -3rem;
    width: 8rem;
    left: -4rem;
}

.red-button {
    z-index: 101;
    background: url("/img/red_button.png");
    background-position: center;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    padding: 1rem;
    width: 100%;
    border: none;
    font-family: 'Courier New', Courier, monospace;

    h2 {
        max-width: calc(100vw - 2rem);
        color: white;
    }
}

.red-button-lg {
    display: none;
    z-index: 0;
}

#message-1::after,
#message-2::after {
    content: "Loading...";
}

@media (hover: hover) and (pointer: fine) {
    #message-1::after {
        content: "Right Click Cat! To Speed Up!";
    }

    #message-2::after {
        content: "Click Cat! For a surprise!";
    }
}

@media (hover: none) and (pointer: coarse) {
    #message-1::after {
        content: "Double Tap Cat! To Speed Up!";
    }

    #message-2::after {
        content: "Tap Cat! For a surprise!";
    }
}

#title {
    position: relative;
    text-align: center;
    width: 250px;
    margin: -1rem 2rem 2rem;
    max-width: calc(100vw - 2rem);
    z-index: 99;
    display: block;
    height: 10rem;
}

#title-lg {
    display: none;
    text-align: center;
    width: 250px;
    margin: -1rem 2rem 2rem;
    max-width: calc(100vw - 2rem);
    z-index: 99;
    height: 10rem;
}

#rainbowcat1 {
    margin-left: -9.5rem;
}

#rainbowcat2 {
    margin-left: 10rem;
    margin-top: 0;
}

#smoothcat {
    position: absolute;
    left: 35rem;
    top: -9rem;
}

#meowtastic {
    display: none;
    position: absolute;
    width: 523px;
    right: 1.5rem;
    top: 0;
}

#ocat {
    position: absolute;
    left: 0;
    top: 15rem;
}

#criminal_cat {
    position: absolute;
    left: 0rem;
    top: 29rem;
    z-index: 3;
}

#rainbowsparklebg {
    position: absolute;
    width: 800px;
    height: 1600px;
    left: 40%;
    top: 0;
    background: url('/img/rainbowsparkle.gif');

}

#news_cat {
    display: none;
    position: absolute;
    width: 523px;
    right: 1.5rem;
    top: 28rem;
}

#food_cat {
    display: none;
    position: absolute;
    width: 1439px;
    height: 9rem;
    right: 0;
    bottom: 0;
}

footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    background-size: cover;
    z-index: 4;
    color: #333;
    display: flex;
    flex-wrap: wrap;
    max-width: 100vw;
    padding: 0 1rem;

    .links {
        position: absolute;
        right: 0;
        bottom: 1.5rem;
        z-index: 10;
        margin: 0.5rem 0.5rem 0;
        font-size: 1rem;
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    p {
        display: block;
        color: white;
        background: #333;
        padding: 0.25em;
    }

    a {
        text-decoration: none;
    }

    button {
        display: block;
        color: white;
        background: #333;
        border: none;
        padding: 0.25em;
    }
}

.right-resize-handle,
.left-resize-handle,
.top-resize-handle {
    cursor: nw-resize;
    background: #000;
    opacity: 0;
    width: 1.5rem;
    height: 1.5rem;
    position: absolute;
}

.right-resize-handle {
    right: 0;
    bottom: 0;
}

.left-resize-handle {
    cursor: ne-resize;
    left: 0;
    bottom: 0;
}

.top-resize-handle {
    cursor: se-resize;
    left: 0;
    top: 0;
}

.sparkle {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: #fff;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    animation: sparkleAnim 1s infinite;
    z-index: 105;
}

#connectButton {
    background: white;
    border: none;
    border-right: 6px solid rgb(255, 251, 0);
    border-bottom: 6px solid rgb(255, 217, 0);
    padding: 0.5rem;
    font-size: 1.25rem;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
}

@keyframes sparkleAnim {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(2);
        opacity: 0;
    }
}

@media screen and (width > 1200px) {
    #title {
        display: none;
    }

    #title-lg {
        display: block;
        position: absolute;
        right: 0%;
        top: 28%;
        width: 450px;
        margin: 0 auto;
    }

    #maincat {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 346px;
    }

    .links {
        font-size: 3rem;
    }

    .red-button-lg {
        z-index: 99;
        background: url("/img/red_button.png");
        background-position: center;
        background-size: 100% 100%;
        background-repeat: no-repeat;
        padding: 1rem;
        width: 100%;
        border: none;
        font-family: 'Courier New', Courier, monospace;

        h2 {
            max-width: calc(100vw - 2rem);
            color: white;
        }

        display: block;
        position: absolute;
        left: 0;
        top: 20rem;
        /* z-index: 100; */
        width: 30rem;
    }

    .red-button {
        display: none;
    }

    footer {
        .links {
            right: 1.5rem;
            bottom: 3.5rem;
        }
    }
}

@media screen and (width > 780px) {
    #food_cat {
        height: 13rem;
        display: block;
    }

    #meowtastic {
        display: block;
    }

    #news_cat {
        display: block;
    }
}

.ripple-container {
    position: relative;
    overflow: hidden;
    /* cursor: pointer; */
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgb(255, 0, 0);
    transform: scale(0);
    animation: ripple-animation 0.5s linear;
    width: 4rem;
    height: 4rem;
    z-index: 300;
}

@keyframes ripple-animation {
    to {
        transform: scale(1);
        opacity: 0;
    }
}