@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@700&display=swap");
/* Reset 
https://www.joshwcomeau.com/css/custom-css-reset/
*/
/*
  1. Use a more-intuitive box-sizing model.
*/
*,
*::before,
*::after {
    box-sizing: border-box;
}
/*
    2. Remove default margin
  */
* {
    margin: 0;
}
/*
    Typographic tweaks!
    3. Add accessible line-height
    4. Improve text rendering
  */
body {
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}
/*
    5. Improve media defaults
  */
img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
}
/*
    6. Remove built-in form typography styles
  */
input,
button,
textarea,
select {
    font: inherit;
}
/*
    7. Avoid text overflows
  */
p,
h1,
h2,
h3,
h4,
h5,
h6 {
    overflow-wrap: break-word;
}
/*
    8. Create a root stacking context
  */
#root,
#__next {
    isolation: isolate;
}

/* ---------------------- */

html,
body {
    height: 100%;
}

body {
    background-color: rgb(10, 58, 33);
    height: 100dvh;
    width: 100dvw;
    user-select: none;
    /* Prevent text and element selection on mobile Safari */
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}

.app {
    background-image: url("./images/background.png");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    position: relative;
    height: 100%;
    min-width: 300px;
    user-select: none;
    max-width: calc(375px);
    max-height: calc(667px);
    margin: auto;
}

.coincidence-title {
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    font-weight: 700;
    font-style: normal;
    color: rgba(255, 255, 255, 0.35);
    position: absolute;
    z-index: 100;
    font-size: 28px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.coincidence-title.left {
    top: 50%;
    left: 15px;
    transform: rotate(-90deg) translateX(-50%);
    transform-origin: 0 0;
}

.coincidence-title.right {
    top: 50%;
    right: 15px;
    transform: rotate(90deg) translateX(50%);
    transform-origin: 100% 0;
}

.button {
    position: absolute;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}
img {
    pointer-events: none;
    user-select: none;
}
.button img {
    max-width: 150px;
}

.button1 {
    top: 0;
    left: 0;
    clip-path: polygon(0% 0%, 100% 0%, 100% 25%, 25% 100%, 0% 100%);
}

.button2 {
    top: 0;
    right: 0;
    clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 75% 100%, 0% 25%);
}

.button3 {
    bottom: 0;
    left: 0;
    clip-path: polygon(0% 0%, 25% 0%, 100% 75%, 100% 100%, 0% 100%);
}

.button4 {
    bottom: 0;
    right: 0;
    clip-path: polygon(75% 0%, 100% 0%, 100% 100%, 0% 100%, 0% 75%);
}

.button:hover {
    cursor: pointer;
}

.spades {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 220px;
}

.gradient-overlay {
    position: absolute;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    background: radial-gradient(transparent 25%, rgba(0, 0, 0, 0.9) 45%);
    opacity: 0;
    animation: fadeIn 1s forwards;
}

.gradient-overlay::before {
    content: "";
    background: radial-gradient(rgb(255, 159, 216), transparent);
    position: absolute;

    /* height: 100px;
    width: 100px; */
    border-radius: 100%;
    /* mix-blend-mode: multiply; */
    animation: spotlightMove 5s infinite alternate ease-in-out;
}

@keyframes spotlightMove {
    0% {
        top: 0;
        left: 0;
    }

    50% {
        top: 50%;
        left: 50%;
    }

    100% {
        top: calc(100% - 100px);
        left: calc(100% - 100px);
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* dev */
.startButton {
    display: none;
}
.dev .startButton {
    display: block;
}

/* https://css-tricks.com/snippets/css/orientation-lock/ */
@media screen and (min-width: 320px) and (max-width: 1023px) and (orientation: landscape) {
    .app {
        transform: rotate(-90deg);
        transform-origin: left top;
        width: 100vh;
        height: 100vw;
        overflow-x: hidden;
        position: absolute;
        top: 100%;
        left: 0;
    }
}