/* kaleidoscope.css */

/******* common *******/

:root {
    --font-color: rgb(31, 31, 31);
    --light-color: white;
    --theme-color: rgb(63, 63, 63);
    --theme-color2: rgb(127, 127, 127);
    --transform-time: 0.3s;
}

html {
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    color: var(--font-color);
}

h1 {
    font-size: 36px;
}

p {
    line-height: 1.5em;
}

hr {
    border-top: 1px solid var(--theme-color);
}

a, a:hover, a:visited, a:active {
    color: var(--font-color);
}

/******* layout *******/

.ks-container {
    margin: auto;
    max-width: 800px;
    padding: 0 15px;
}

.ks-nav {
    padding: 40px;
}

.ks-main {
    flex: 1;
    text-align: left;
}

.ks-section-title {
    margin-top: 20px;
    margin-bottom: 2px;
}

.ks-section-title .ks-subtitle {
    color: var(--theme-color2);
    margin-left: 0.5em;
    font-size: 0.8em;
}

.ks-section-title::before {
    content: " ";
    display: inline-block;
    background-color: var(--theme-color);
    height: 1em;
    width: 0.4em;
    margin-right: 0.4em;
    position: relative;
    top: 0.2em;
}

.ks-tile-container {
    user-select: none;
    padding-bottom: 50px;
}

.ks-tile {
    display: inline-block;
    position: relative;
    width: 120px;
    height: 120px;
    background-color: var(--light-color);
    transition: background-color var(--transform-time);
    cursor: pointer;
    user-select: none;
}

.ks-tile:hover {
    background-color: var(--theme-color);
}

.ks-tile:hover > .ks-tile-title {
    color: var(--light-color);
    bottom: 0.5em;
}

.ks-tile:hover > .ks-tile-body img {
    
}

.ks-tile:hover > .ks-tile-hint {
    display: block;
}

.ks-tile-title {
    display: block;
    position: absolute;
    width: 100%;
    text-align: center;
    bottom: 0;
    font-size: 12px;
    pointer-events: none;
    transition: bottom var(--transform-time);
    z-index: 200;
}

.ks-tile-body {
    display: block;
    position: absolute;
    pointer-events: none;
    text-align: center;
    width: 100%;
    height: 100%;
    font-family:'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
    line-height: 120px;
    font-size: 80px;
    font-weight: bold;
    color: var(--theme-color2);
    text-shadow: var(--light-color) 1px 0 0,
        var(--light-color) 0 1px 0,
        var(--light-color) -1px 0 0,
        var(--light-color) 0 -1px 0;
}

.ks-tile-body * {
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -30%;
    margin-left: -30%;
    width: 60%;
    height: 60%;
}

.ks-tile-body img {
    box-sizing: border-box;
    border: 1px solid var(--light-color);
}

.ks-footer {
    font-size: 12px;
    padding: 10px;
}

.ks-tile-hint {
    display: none;
    position: absolute;
    top: 110%;
    padding: 0.5em;
    font-size: 12px;
    color: var(--light-color);
    background: var(--theme-color2);
    border-radius: 3px;
    z-index: 9999;
    overflow: visible;
}

.ks-tile-hint::before {
    content: " ";
    display: block;
    position: absolute;
    top: -9px;
    right: 50%;
    margin-right: -10px;
    border-right: 10px solid transparent;
    border-left: 10px solid transparent;
    border-bottom: 10px solid var(--theme-color2);
}

/******* canvas *******/

.ks-canvas-container {
    position: relative;
}

.ks-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    user-select: none;
}

/******* theme *******/

.ks-align-center {
    text-align: center;
}

.ks-align-right {
    text-align: right;
}

.ks-bg-black {
    color: var(--light-color);
    background-color: var(--theme-color);
}

.ks-bg-white {
    color: var(--font-color);
    background-color: var(--light-color);
}

.ks-love {
    cursor: pointer;
}

.ks-love:hover {
    color: red;
}