﻿@font-face {
    font-family: 'Rocher';
    src: url(https://assets.codepen.io/9632/RocherColorGX.woff2);
}

@font-palette-values --Grays {
    font-family: Rocher;
    base-palette: 9;
}

@font-palette-values --Purples {
    font-family: Rocher;
    base-palette: 6;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: auto;
    background-color: #f0f0f0;
}

.top {
    text-align: center;
}

#game-board {
    cursor: none;
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    justify-content: center;
}

.row {
    display: flex;
    width: fit-content;
}

.cell {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 120px;
    height: 120px;
    line-height: 80px;
    text-align: center;
    position: relative;
}

.head {
    min-width: 600px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding-bottom: 24px;
}

.buttons {
    align-content: space-around;
}

[class^="create-board"] {
    width: fit-content;
    height: fit-content;
    padding: 12px;
    background-color: rgb(223, 223, 223);
    border-left: 3px solid white;
    border-top: 3px solid white;
    border-right: 3px solid gray;
    border-bottom: 3px solid gray;
    font-family: "Courier New", Courier, monospace;
    font-size: 1.1rem;
    font-weight: 900;
    outline: 2px solid black;
}

.create-board-easy:hover {
    background-color: darkgray;
    color: white;
    border-left: 3px solid lightgray;
    border-top: 3px solid lightgray;
    border-right: 3px solid gray;
    border-bottom: 3px solid gray;
}

.create-board-easy:active {
    border-left: 3px solid gray;
    border-top: 3px solid gray;
    border-right: 3px solid lightgray;
    border-bottom: 3px solid lightgray;
}

.create-board-medium:hover {
    background-color: mediumblue;
    color: white;
    border-left: 3px solid blue;
    border-top: 3px solid blue;
    border-right: 3px solid darkblue;
    border-bottom: 3px solid darkblue;
}

.create-board-medium:active {
    background-color: mediumblue;
    color: white;
    border-left: 3px solid darkblue;
    border-top: 3px solid darkblue;
    border-right: 3px solid blue;
    border-bottom: 3px solid blue;
}

.create-board-hard:hover {
    background-color: rebeccapurple;
    color: white;
    border-left: 3px solid #722fac;
    border-top: 3px solid #722fac;
    border-right: 3px solid #4a2570;
    border-bottom: 3px solid #4a2570;
}

.create-board-hard:active {
    background-color: rebeccapurple;
    color: white;
    border-left: 3px solid #4a2570;
    border-top: 3px solid #4a2570;
    border-right: 3px solid #722fac;
    border-bottom: 3px solid #722fac;
}

.info-containers {
    display: flex;
    flex-direction: row;
    font-family: 'Rocher', sans-serif;
    text-align: center;
}

.score-container{
    margin-right: 32px;
    font-palette: --Purples;
    font-size: xx-large;
} 

.timer-container {
    margin-right: 10px;
    font-palette: --Grays;
    font-size: xx-large;
}

.info-text {
    margin: 2px;
}

.bubble {
    white-space: pre;
    text-align-last: left;
    line-height: 110%;
    
    bottom: 90%;
    left: 25%;
    
    background-color: white;
    color: black;
    border: 1px solid black;
    
    padding: 5px 10px;
    border-radius: 12px;
    
    font-size: 10px;
    
    position: absolute;
    z-index: 4;
    animation-name: fade-in-b;
    animation-fill-mode: both;
    animation-duration: 1s;
    animation-timing-function: linear;
    pointer-events: none;
}

.bubble::after {
    content: "";
    position: absolute;
    top: calc(100% - 4px); /*i.e. half the height*/
    left: 20px;
    height: 8px;
    width: 8px;
    background: white;
    transform: rotate(45deg);
    border-top: 1px transparent;
    border-right: 1px solid black;
    border-bottom: 1px solid black;
    border-left: 1px transparent;
    z-index: 3;
}

#cup {
    position: absolute;
    width: 80px;
    height: auto;
    z-index: 3;
    transform: translateY(25%) translateX(6%);
    pointer-events: none;
}

#ghost {
    position: absolute;
    width: auto;
    height: auto;
    max-width: 64px;
    max-height: 64px;
    opacity: 0;
    animation-name: fade-in;
    animation-fill-mode: both;
    animation-duration: 1s;
    animation-timing-function: linear;
    z-index: 1;
    transform: translateY(50%);
}

.textstuff {
    display: flex;
    flex-direction: row;
    text-align: left;
    width: 600px;
    justify-content: center;
}

.instruct{
    margin: 10px 24px;
    width: 250px;
}

.credits {
    margin: 10px 24px;
    width: 250px;
}

.cursor {
    width: 52px;
    height: 48px;
    transform: translateY(-85%) translateX(-25%);
    position: fixed;
    pointer-events: none;
    background-size: cover;
    z-index: 5;
}

@keyframes fade-in {
    0% { 
        opacity: 0;
        transform: translateY(40%);
    }
    100% { 
        opacity: 1;
        transform: translateY(-25%);
    }
}

@keyframes fade-out {
    0% { 
        opacity: 1;
        transform: translateY(-25%);
    }
    100% { 
        opacity: 0;
        transform: translateY(40%);
    }
}

@keyframes spin-shrink {
    0% {
        transform: rotate(0deg) scale(1);
        opacity: 1;
    }
    100% {
        transform: rotate(1080deg) scale(0.2);
        opacity: 0;
    }
}

@keyframes fade-in-b {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes fade-out-b {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

.hammer-up {
    background-image: url('hammer/hammer_up.png');
}

.hammer-up.hammer-down {
    background-image: url('hammer/hammer_down.png');
}