﻿@import url('https://fonts.googleapis.com/css?family=Tangerine&display=swap');
@import url('https://fonts.googleapis.com/css?family=Archivo+Narrow&display=swap');
@import url('https://fonts.googleapis.com/css?family=Dancing+Script&display=swap');

* {
    box-sizing: border-box;
}1

html {
    min-height: 100vh;
    font-family: sans-serif;
    
}

body {
    margin: 0;
    background: radial-gradient(skyblue, azure);
}

.game-title {
    color: darkblue;
    font-family:'Tangerine', cursive;    
    font-weight: bolder;
    text-align: center;
    font-size: 6em;
}

.game-info-block {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    padding-bottom:10px;
}

.game-info {
    color: darkblue;
    font-size: 2em;
    font-family: 'Archivo Narrow', sans-serif;
    letter-spacing:2px;
}

.game-container {
    margin: 50px auto;
    display: grid;
    grid-template-columns: repeat(6, auto);
    grid-gap: 10px;
    justify-content: center;
    perspective: 500px;
}

.block {
    position: relative;
    cursor: auto;
    height: 125px;
    width: 125px;
}

.block-front {
    background-color: black;
    border-color: royalblue;
    transform: rotateY(180deg);
}


.block-value {
    position: relative;
    max-width: 100%;
    max-height: 100%;
    transition: transform 100ms ease-in-out;
    transform: scale(.9);
}

.block-face {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    border-width: 1px;
    border-style: solid;
    overflow: hidden;
    transition: transform 500ms ease-in-out;
    backface-visibility: hidden;
}

.block.visible .block-back {
    transform: rotateY(-180deg);
}

.block.visible .block-front {
    transform: rotateY(0);
}


.block-back {
    background-color: black;
    border-color: royalblue;
    transform: rotateY(0);
}


.overlay-text {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
    display: none;
    position: fixed;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    color: rgb(224, 16, 16);
    font-family: 'Dancing Script', cursive;
    transition: background-color 500ms, font-size 500ms;
}

.overlay-text-small {
    font-size: .3em;
}

.overlay-text.visible {
    display: flex;
    animation: overlay-grow 500ms forwards;
}

@keyframes dance {
    0%, 100% {
        transform: rotate(0)
    }

    25% {
        transform: rotate(-30deg)
    }

    75% {
        transform: rotate(30deg)
    }
}

@keyframes overlay-grow {
    from {
        background-color: rgba(0, 0, 0, 0);
        font-size: 0;
    }

    to {
        background-color: rgba(0, 0, 0, .8);
        font-size: 10em;
    }
}



.blocks-sl {
    position: relative;
    cursor: auto;
    height: 50px;
    width: 50px;
    border: 1px solid black;
    font-family: Algerian;

}
.game-container-sl {
    margin: 50px auto;
    display: grid;
    grid-template-columns: repeat(10, auto);
    grid-gap: 1px;
    justify-content: center;
    perspective: 800px;
    overflow:visible;
}
.image {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 505px;
    height: 490px;
    transition: transform 500ms ease-in-out;
    z-index: 1;
}




