@import url('https://fonts.googleapis.com/css2?family=Silkscreen:wght@400;700&display=swap');
@import url('https://fonts.cdnfonts.com/css/serious');
@import url('https://fonts.cdnfonts.com/css/david-sans');

:root {
	--shadow-pink-005: rgba(206,42,133,0.05);
    --shadow-pink-007: rgba(206,42,133,0.075);
    --shadow-pink-010: rgba(206,42,133,0.10);
	--shadow-pink-015: rgba(206,42,133,0.15);
	--shadow-pink-020: rgba(206,42,133,0.2);

	--shadow-purple-005: rgba(181, 121, 255, 0.15);
	--shadow-purple-015: rgba(181, 121, 255, 0.25);
	--shadow-purple-020: rgba(181, 121, 255, 0.3);
}

::selection {
  background-color: #8e90ff;
  color: white;
}

::-moz-selection {
  background-color: #8e90ff;
  color: white;
}

body {
    background: #FFBFF0 url("assets/tile-2.png") repeat 0 center;
    background-size: 128px auto;
    animation: slide 2.5s linear infinite;
}

.main {
    background: rgba(255, 190, 239, 0.6);
    width: 38vw;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 60px;
    filter: drop-shadow(5px 5px 0px var(--shadow-pink-005));
    box-shadow:
        -4.5px 0 0 0 #ffe3f8,
        4.5px 0 0 0 #ffe3f8,
        0 -4.5px 0 0 #ffe3f8,
        0 4.5px 0 0 #ffe3f8;
}

#main {
    position: fixed;
    transition: all 0.15s ease-out;
}
#main.fade-out {
    opacity: 0;
}
#main.fade-in {
    opacity: 1;
}

h1 {
    color: #fff;
    font-size: 30px;
    text-shadow: 0 5px 0 var(--shadow-pink-007);
    font-family: "Silkscreen", sans-serif;
    font-weight: bold;
    font-style: normal;
    margin: 0 auto;
    text-align: center;
    user-select: none;
}

.early span {
	display: inline-block;
	animation: wavy-text 2.5s cubic-bezier(0.25,0.10,0.25,1.00) infinite var(--delay);
}

p {
    color: #fff;
    text-align: center;
    font-family: 'David Sans', sans-serif;
	font-size: 16px;
}

.time {
    bottom: 0;
    left: 0;
    position: absolute;
    font-family: 'serious1', sans-serif !important;
    margin: 20px;
    font-size: 20px;
    /*&:after {*/
    /*    content: ' <3';*/
    /*}*/
}

mark {
    color: #fff;
    padding: 0 1px;
    position: relative;
    background-color: transparent;
    overflow: visible;
}

mark::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #e2adff;
    z-index: -1;
    transform-origin: left;
    transform: scaleX(1);
    animation: highlight 1s ease 0.3s backwards;
    transition: transform 0.4s ease, background-color 0.3s ease;
    will-change: transform;
}

mark:hover::before {
    transform: scaleX(0.5);
    background-color: #ff9eb2;
}

@keyframes highlight {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

.github, .demo {
    text-align: center;
    font-family: 'serious1', sans-serif;
	font-size: 20px;
    transition: 0.2s ease;
    cursor: pointer;
    text-decoration: none;
    &:hover {
        opacity: 0.9;
    }
}

.github {
    color: white;
}

.demo {
    color: #e675c8;
    &:hover {
        color: white
    }
}

.github-logo {
    transition: 0.2s ease;
}
.github-logo:hover {
    opacity: 0.8;
}

.links {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.text {
    line-height: 2;
}

.close {
    position: absolute;
    top: 0;
    right: 0;
    margin: 25px;
    width: 24px;
    opacity: 0.7;
    -webkit-user-drag: none;
}

.github-logo {
    position: absolute;
    top: 0;
    right: 0;
    margin: 25px;
    width: 32px;
    opacity: 0.7;
    -webkit-user-drag: none;
}

.tooltip, .tooltip-2 {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    position: fixed;
    background: white;
    font-family: 'serious1', sans-serif;
    font-size: 15px;
    color: #4B4D5A;
    padding: 6px 10px;
    border-radius: 4px;
    transition: opacity 0.3s ease;
    white-space: nowrap;
    z-index: 9999;
}

.tooltip-2 {
    transform: translateX(-100%);
    margin: 10px;
}

.tooltip-area {
    cursor: help;
}

@keyframes slide {
	0% { background-position: 0 0; }
	100% { background-position: -128px -128px; }
}

@keyframes wavy-text {
	0% { transform: translateY(0); }
	50% { transform: translateY(-8px); }
	100% { transform: translateY(0); }
}

.hover-underline-animation {
  display: inline-block;
  position: relative;
}

.hover-underline-animation::after {
    content: '';
    position: absolute;
    width: 98%;
    transform: scaleX(0);
    height: 3px;
    bottom: -5px;
    left: 0;
    opacity: 0.8;
    background-color: #9999ff;
    transition: transform 0.3s ease-out;
}

.hover-underline-animation:hover::after {
  transform: scaleX(1);
}

.hover-underline-animation.left::after {
  transform-origin: bottom right;
}

.hover-underline-animation.left:hover::after {
  transform-origin: bottom left;
}
.demo.hover-underline-animation::after {
  background-color: #bffaff;
}

.scanlines-bg {
    position: fixed; top: 0; left: 0;
    width: 100%; height: 100%;
    background: url("assets/scanlines-2.png") repeat 0 center;
    animation: scanlines 240s linear infinite;
    pointer-events: none;
    opacity: 0.5;
    mix-blend-mode: soft-light;
    z-index: 9999;
}