/* core css related to layouts, etc. variant-specific styles are in layout.css files wihtin each variant folder */

:root {
    --white: #fff;
    --black: #000;
    --black-80: #000000cc;
}

/****************************
*   General element styles
****************************/

body {
    color: var(--white);
    background: var(--black);
    user-select: none;
    font-size: 40px;
}

main {
    width: 1920px;
    height: 1080px;
    margin: auto;
    background-color: var(--green-darker);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

* {
    pointer-events: none;
}

.btn,
.clickable {
    pointer-events: initial;
}

.fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.bg-fuzzy-white {
    text-shadow:
        0 0 3px var(--white),
        0 0 6px var(--white),
        0 0 10px var(--white),
        0 0 15px var(--white),
        0 0 20px var(--white),
        0 0 30px var(--white),
        0 0 40px var(--white),
        0 0 50px var(--white),
        0 0 60px var(--white);
}

.btn,
.btn:hover {
    background-color: var(--orange);
    border: 5px solid var(--orange-dark);
    color: var(--white);
    cursor: pointer;
    font-family: inherit;
    font-weight: bold;
    padding: 0 30px;
    font-size: 36px;
    height: 70px;
    line-height: 70px;
    border-radius: 35px;
}

.orange {
    color: var(--orange);
}

.green-bright {
    color: var(--green-bright);
}

.green-lighter {
    color: var(--green-lighter);
}

.green-dark {
    color: var(--green-dark);
}

.green-darker {
    color: var(--green-darker);
}

.bg-beige {
    background-color: var(--beige);
}

.bg-green-light {
    background-color: var(--green-light);
}

.bg-green-dark {
    background-color: var(--green-dark);
}

.bg-green-darker {
    background-color: var(--green-darker);
}

.bg-green-darkest {
    background-color: var(--green-darkest);
}

.bg-green-darkest-90 {
    background-color: var(--green-darkest-90);
}

.bg-black-80 {
    background-color: var(--black-80);
}

#intro-wrapper,
#toolbar-wrapper {
    z-index: 2;
}

#intro-wrapper .brush {
    width: 300px;
    height: 300px;
}

#scratch-wrapper {
    z-index: 1;
}

#scratch svg {
    width: 100%;
    height: 100%;
    pointer-events: initial;
}

/* scales the smaller thin secondary cursor brush, and positions the tip at the top left rather than the 120px scratchit center default */
#scratch.coloring #brush {
    width: 90px;
    height: 243px;
    transform: translate(60px, 60px) scale(0.6);
    transform-origin: 0 0;
}

.zoomedIn #scratch svg {
    /* cursor: move; */
}

#scratch.scratching #brush {
    width: 250px;
    height: auto;
}

#skip {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 160px;
    height: 160px;
}

#skip img {
    width: 100%;
    height: auto;
}

#intro-wrapper .content,
#scratch-wrapper .content {
    color: var(--black);
    margin-bottom: 80px;
}

.control-btn,
#paint {
    width: 120px;
    font-size: 26px;
    line-height: 1;
    text-transform: capitalize;
}

.control-btn img,
#paint img {
    width: 100%;
    height: auto;
}

.control-btn:hover {
    color: var(--orange);
    cursor: pointer;
}

.control-btn:hover img {
    display: none;
}

.control-btn:hover img.hide {
    display: initial;
}

#palette-picker {
    border-top-left-radius: 60px;
    border-top-right-radius: 60px;
}

#palette {
    border-radius: 20px !important;
    border: solid 8px var(--green-dark);
}

#palette .colors {
    gap: 8px;
    padding: 8px;
}

#palette .color {
    height: 60px;
    width: 90px;
    border-top: none;
}

#palette .color.selected {
    box-sizing: border-box;
    border: solid 8px var(--white);
}

#close img {
    width: 60px;
    height: 60px;
}

#overlay-wrapper .content {
    border: solid 16px var(--green-bright);
    border-radius: 50px;
}

#overlay-mask {
    z-index: 10;
    background-color: var(--black-80);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

#overlay-content {
    z-index: 20;
}

#finish-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100;
}

#finish-mask {
    z-index: 30;
}

#finish-content {
    z-index: 40;
    position: relative;
    cursor: default;
    pointer-events: auto;
}

#finish-panel {
    position: absolute;
    left: 50%;
    transform: translate(-50%, 50%);
}
#finish-card {
    display: block;
    width: 1000px;
    height: auto;
}
#finish-close {
    position: absolute;
    top: 40px;
    right: 40px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}
#finish-close img {
    width: 60px;
    height: 60px;
    display: block;
}
#finish-scroll-hint {
    position: absolute;
    left: 50%;
    bottom: 20%;
    transform: translateX(-50%);
}
#finish-scroll-hint img {
    display: block;
    height: auto;
    animation: finish-scroll-bounce 1.2s ease-in-out infinite;
}
@keyframes finish-scroll-bounce {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-16px);
    }
}

#title-screen {
    width: 100%;
    height: auto;
}
