@font-face {
    font-family: 'Roboto Slab';
    src: url(../fonts/RobotoSlab-Regular.woff);
}

@font-face {
    font-family: 'Roboto Slab';
    src: url(../fonts/RobotoSlab-Bold.woff);
    font-weight: bold;
}

html:hover {
    cursor: default;
}

:root {
    --board-size: 85vmin;
    --sepia: #fbf0d9;
    --dark-brown: #553311;
    --red: #523436;
    --brown: #8c5c42;
    --beige: #c29f91;
    --black: #3b3b47;
}

body {
    font-family: 'Roboto Slab', serif;
    background-color: var(--sepia);
    cursor: default;
    margin: 0;
    opacity: 0;
    transition: opacity 2s ease;
}

body:hover {
    cursor: default;
}

#outer {
    display: table;
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
}
  
#middle {
    display: table-cell;
    vertical-align: middle;
}
  
#inner {
    margin-left: auto;
    margin-right: auto;
}

h1 {
    text-align: center;
    font-size: 21vw;
    margin-top: 0;
}

.char {
    color: var(--dark-brown);
    transition: color 1.5s ease-in-out;
}

#c1, #c6 {
    color: var(--red);
}

#c2, #c5 {
    color: var(--brown);
}

#c3, #c7 {
    color: var(--beige);
}

#c4, #c8 {
    color: var(--black);
}

.board {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-width: 10px;
    border-style: solid;
    border-radius: 7px;
    border-color: var(--dark-brown);
    margin: auto;
    padding: 1px;
    width: calc(var(--board-size));
    height: calc(var(--board-size));
}

.cell {
    display: grid;
    position: relative;
    border-radius: 7px;
    margin: 1px;
    width: calc(var(--board-size) / 4 - 2px);
    height: calc(var(--board-size) / 4 - 2px);
}

.tile {
    display: grid;
    position: absolute;
    place-items: center;
    color: var(--sepia);
    font-weight: bold;
    font-size: 10vmin;
    margin: 1px;
    border-radius: 7px;
    cursor: pointer;
    width: calc(var(--board-size) / 4 - 2px);
    height: calc(var(--board-size) / 4 - 2px);
    transition: background-color 1.5s ease-in-out;
}

#t1, #t7, #t12, #t14 {
    background: var(--brown);
}

#t2, #t8, #t9, #t15 {
    background: var(--red);
}
#t4, #t6, #t11, #t13 {
    background: var(--beige);
}
#t3, #t5, #t10{
    background: var(--black);
}

.shuffle {
    transition: transform 1s ease-in-out;
}

.move {
    transition: transform 0.15s ease-in-out;
}

.zoom {
    z-index: 100;
    transition: transform 0.5s ease-in-out, background-color 0.5s ease-in-out;
}

.brown-c {
    color: var(--dark-brown) !important;
}

.brown-t {
    background-color: var(--dark-brown) !important;
}

#designed {
    text-align: center;
    align-self: auto;
    color: var(--sepia);
    font-size: 9px; 
    margin-top: -11.8px;
}

@media (orientation: landscape) and (max-height: 460px) {

    h1 {
        display: none;
    }
}

@media (min-width: 460px) and (min-height: 460px) {

    :root {
        --board-size-big: 400px;
    }

    h1 {
        font-size: 102.4px;
    }

    .board {
        border-width: 15px;
        padding: 2px;
        width: calc(var(--board-size-big));
        height: calc(var(--board-size-big));       
    }

    .cell {
        margin: 2px;
        font-size: 40px;
        width: 96px;
        height: 96px;
    }

    .tile {
        margin: 2px;
        font-size: 40px;
        width: 96px;
        height: 96px;
    }

    #designed {
        font-size: 13.6px; 
        margin-top: -18px;
    }
}

.noselect {
    -webkit-tap-highlight-color: transparent;
          -webkit-touch-callout: none;
            -webkit-user-select: none; 
               -moz-user-select: none; 
                -ms-user-select: none; 
                    user-select: none; 
}
    