:root {
    --red: #f032fa;
    --blue: yellow;
    --boardColor: rgba(48,255,242,.9);
}

@font-face {
    font-family: walkTheMoonExpanded;
    src: url(Walk_The_Moon_Expanded/walkthemoonexpand.ttf);
}

#font-face {
    font-family: walkTheMoonHalftone;
    src: url(Walk_The_Moon_Halftone/walkthemoonhalf.ttf);
}

* {
    box-sizing: border-box;
}

body {
    background-color: rgb(58, 58, 58);
    overflow: hidden;
}

#home {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    background-color: gray;
    background-image: url(homeBackground.jpeg);
    background-position: center;
    background-size: cover;
    /* add inverted vignette */
}

h1 {
    font-family: walkTheMoonExpanded;
    font-size: 2.5rem;
    color: yellow;
    filter: drop-shadow(.2rem .2rem .1rem purple);
}

.homeBtn {
    width: 9rem;
    height: 4.25rem;
    font-size: 1.3rem;
    background-color: yellow;
    border: 6px solid black;
    border-radius: .7rem;
    font-family: walkTheMoonExpanded;
    color: black;
    filter: drop-shadow(.5rem .5rem .1rem purple);
}

#addBtn {
    display: none;
    position: absolute;
    top: 10px;
    right: 12px;
    width: 7rem;
    height: 3rem;
    font-size: 1.2rem;
    background-color: yellow;
    border: 6px solid black;
    border-radius: .7rem;
    font-family: walkTheMoonExpanded;
    color: black;
    filter: drop-shadow(.3rem .3rem .1rem purple);
}

#winScreen {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    background-color: #0006;
}

h2 {
    font-family: walkTheMoonExpanded;
    font-size: 2rem;
    color: yellow;
    filter: drop-shadow(.2rem .2rem .1rem purple);
}

.gameHolder {
    top: 2;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: fit-content;
    margin: 0 auto;
}

.board {
    width: 70vh;
    height: 70vh;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-template-rows: repeat(7, 1fr);
    gap: 1.5vw;
    margin-top: 0;
    background: rgba(0,160,255,.3);
    box-shadow: inset 0 -15px 50px 10px rgba(48,255,242,.9);
    padding: 1rem;
    border: .4rem solid var(--boardColor);
    border-radius: 1rem;
    filter: drop-shadow(2px 0 10px var(--boardColor));
    backdrop-filter: blur(12px);
}

.coin {
    background-color: darkred;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    animation-name: coinDrop;
    animation-duration: 1s;
    animation-timing-function: linear;
    position: relative;
} 

.coin div {
    background-color: darkred;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    animation-name: afterImage;
    animation-duration: 1s;
    animation-timing-function: linear;
    position: absolute;
}

.coin :first-child {
    animation-name: afterImage1;
    animation-delay: 0s;
    filter: opacity(60%);
}

.coin :nth-child(2) {
    animation-name: afterImage2;
    animation-delay: 0s;
    filter: opacity(40%);
}

.coin :nth-child(3) {
    animation-name: afterImage3;
    animation-delay: 0s;
    filter: opacity(20%);
}

#buttonContainer {
    width: 70vh;
    height: calc(70vh / 7);
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-template-rows: 1fr, 2px;
    gap: 1vw;
    justify-items: center;
    align-items: center;
    padding: 0 1.3rem;
    margin-top: 1rem;
}

.button {
    width: 80%;
    aspect-ratio: 1/1;
    border-radius: 50%;
    grid-row: 1;
    background-color: aqua;
    filter: drop-shadow(0 0 .5rem aqua)
}

.indicatorHolder {
    height: 10vh;
    width: 100%;
    display: flex;
    justify-content: space-between;
}

.turnIndicatorHolder {
    display:flex;
    align-items: center;
    gap: -30px;
}

.turnIndicator {
    display: inline-block;
    width: 65px;
    height: 65px;
    border-radius: 50%;

}

.turnIndicator.red {
    background-color: var(--red);
    filter: drop-shadow(0 0 .5rem var(--red));
}

.turnIndicator.blue {
    background-color: var(--blue);
    filter: drop-shadow(0 0 .5rem var(--blue));
}

.indicatorBox {
    display: inline-block;
    z-index: -1;
    width: 110px;
    height: 50px;
    border: 4px solid black;
    border-radius: .4rem;
    position: relative;
    text-align: center;
    line-height: calc(50px - (1rem / 2));
    font-size: .9rem;
    font-family: walkTheMoonExpanded;
    padding: 0 .75rem;
}

.indicatorBox.left {
    right: 15px;
    color: var(--red);
    text-align: right;
    border-color: var(--red);
    filter: drop-shadow(0 0 .5rem var(--red));
}

.indicatorBox.right {
    right: -15px;
    color: var(--blue);
    text-align: left;
}

.undoBtn {
    position: fixed;
    right: 15px;
    top: 10px;
}

.homeBtn.home {
    z-index: 2;
    position: fixed;
}

@media (max-width: 600px), screen and (orientation: portrait) {
    .board {
        width: 95vw;
        height: 95vw;
    }
    .gameHolder {
        position: absolute;
    }

    #buttonContainer {
        width: 95vw;
        height: calc(95vw / 7);
    }
}

@media (max-width: 330px), screen and (orientation: portrait) {
    :root {
        font-size: 15px;
    }
}

@keyframes coinDrop {
    from {transform: translate(0, -500px);}
    to {transform: translate(0, 0);}
}

@keyframes afterImage {
    0% {transform: translate(0, -15px);}
    99% {transform: translate(0, -15px);}
    100% {transform: translate(0, 0);}
}

@keyframes afterImage1 {
    0% {transform: translate(0, -15px);}
    99% {transform: translate(0, -15px);}
    100% {transform: translate(0, 0);}
}

@keyframes afterImage2 {
    0% {transform: translate(0, -30px);}
    99% {transform: translate(0, -30px);}
    100% {transform: translate(0, 0);}
}

@keyframes afterImage3 {
    0% {transform: translate(0, -45px);}
    99% {transform: translate(0, -45px);}
    100% {transform: translate(0, 0);}
}