@import url('https://fonts.googleapis.com/css2?family=Golos+Text&display=swap');

:root {
    --theme-normal: #00c8ff;
    --theme-dark: #00a0cd;
}

html,
body {
    margin: 0;
    padding: 0;
    overflow: hidden;
}

* {
    font-family: "Golos Text";
    user-select: none !important;
    touch-action: manipulation !important;
    -webkit-user-select: none !important;
}

#flinger {
    height: 40px;
    width: 40px;
    /* border: 2px solid black; */
    /* border-radius: 999999px; */
    position: absolute;
    cursor: pointer;
    transform: translate(-50%, -50%);
}


#ui,
#black-fade,
#grey-wipe,
.screen {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    transition: clip-path 0.7s;
}

#grey-wipe {
    clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
    pointer-events: none;
    transition: clip-path 0.5s;
}

#black-fade {
    transition: background-color 0.8s;
    background-color: transparent;
    pointer-events: none;
    z-index: 500;
}

#ui>* {
    position: absolute;
    pointer-events: all;
}

.flex-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#hole-info>* {
    text-align: right;
}

.screen-container {
    background-color: var(--theme-normal);
    border: 16px solid var(--theme-dark);
    padding: 16px;
    min-height: 50vh;
    min-width: 60vw;
    border-radius: 16px;
}

.screen {
    background-image: url("stripe.png");
    background-repeat: repeat;
    animation: muffinbg 15s linear infinite;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#level-select>.screen-container>div.flex-center {
    position: absolute;
    transition: left 0.2s;
    width: 100%;
}

#level-select>.screen-container>div.flex-center>p {
    margin-bottom: 64px;
    font-size: 1.2em;
}

#level-select-prev {
    left: -100%;
}

#level-select-current {
    left: 0;
}

#level-select-next {
    left: 100%;
}

#level-select>.screen-container {
    overflow-x: hidden;
    position: relative;
}

.level-seek {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 10%;
    display: flex;
    cursor: pointer;
    font-size: 2em;
    align-items: center;
    justify-content: center;
}

#level-seek-left {
    left: 0;
}

#level-seek-right {
    right: 0;
}

#win-screen {
    display: none;
}

@keyframes muffinbg {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 320px 0px;
    }
}

#hole-end {
    clip-path: polygon(100% 0, 100% 0, 100% 100%, 100% 100%);
}

h1 {
    font-size: 5em;
    margin-top: 0;
    margin-bottom: 8px;
}

h2 {
    font-size: 1.8em;
    margin-bottom: 32px;
}

#ui {
    pointer-events: none;
}

button {
    padding: 8px 64px;
    height: 40px;
    border-radius: 10px;
    border-width: 0;
    font-size: 1.2em;
    cursor: pointer;
    background-color: var(--theme-dark);
    color: #fff;
}

#confetti-canvas {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 250 !important;
}