@font-face {
    font-family: 'Roboto';
    src: url(../fonts/roboto-regular.woff);
}

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

:root {
    --board-size: 86vmin;
    --blue: lightskyblue;
    --pink: pink;
    --color1: unset;
    --color2: unset;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: white;
    box-sizing: border-box;
    overflow: hidden;
    margin: 0;
}

#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;
}

.header {
    position: relative;
}

h1 {
    text-align: center;
    font-size: 24vw;
    margin-top: 0;
    display: none;
    opacity: 0;
    transition: opacity 2s ease;
}

.designed {
    display: none;
    position: absolute;
    left: calc(50% + 1.3em);
    top: 26.5vw;
    font-size: 3.5vw;
    text-align: center;
    white-space: nowrap;
    color: var(--color1);
    opacity: 0;
    transform: translateX(calc(-50% + 1.3em));
    transition: opacity 2s ease;
}

h1 span:nth-child(odd) {
    color: var(--color1);
}

h1 span:nth-child(even) {
    color: var(--color2);
}

.board {
    display: none;
    width: var(--board-size);
    margin: auto;
    opacity: 0;
    transition: opacity 2s ease;
}

.dots {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: calc(var(--board-size) / 16);
}

.dot {
    width: calc(var(--board-size) / 16);
    height: calc(var(--board-size) / 16);
    background-color: silver;
    border-radius: 50%;
}

.dash {
    position: relative; 
    cursor: pointer;
    width: calc(var(--board-size) / 16 * 3.5);
    height: calc(var(--board-size) / 16);
    background-color: whitesmoke;
    border-radius: calc(var(--board-size) / 16 / 2);
}

.dash::after {
    content: '';
    position: absolute;
    top: calc(var(--board-size) / -16);
    bottom: calc(var(--board-size) / -16);
    left: 0;
    right: 0; 
}

.boxes {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: calc(var(--board-size) / 16 * 3.5);
    margin-top: calc((var(--board-size) - var(--board-size) / 16 * 3.5 * 3 - var(--board-size) / 16 * 4) / 6);
    margin-bottom: calc((var(--board-size) - var(--board-size) / 16 * 3.5 * 3 - var(--board-size) / 16 * 4) / 6);
}

.dash-v {
    position: relative; 
    cursor: pointer;
    width: calc(var(--board-size) / 16);
    height: calc(var(--board-size) / 16 * 3.5);
    background-color: whitesmoke;
    border-radius: calc(var(--board-size) / 16 / 2);
} 

.dash-v::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0; 
    left: calc(var(--board-size) / -16);
    right: calc(var(--board-size) / -16);
}

.box {
    width:  calc(var(--board-size) / 16 * 3.5);
    height:  calc(var(--board-size) / 16 * 3.5);
    background-color: white;
    border-radius: 20%;
    z-index: -1;
}

.reset {
    cursor: pointer;
}

.blue {
    background-color: var(--blue);
}

.pink {
    background-color: var(--pink);
}

.choice {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-evenly; 
    width: 100vmin;
    margin: auto;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.boy {
    position: relative; 
    height:  calc(var(--board-size) / 12 * 3.5);
    width:  calc(var(--board-size) / 12 * 3.5 * 1.078);
    cursor: pointer;
    fill: var(--blue);
    fill-rule: evenodd;
}

.girl {
    position: relative; 
    height:  calc(var(--board-size) / 12 * 3.5);
    width:  calc(var(--board-size) / 12 * 3.5 * 1.8);
    cursor: pointer;
    fill: var(--pink);
    fill-rule: evenodd;
}

.color-dash, .color-dot, .color-reset {
    transition: background-color 0.5s linear;
}

.color-square {
    transition: background-color 0.5s 0.5s linear;
}

.visible {
    opacity: 1;
}

.removed {
    display: none;
}

.block {
    display: block;
}

@keyframes zoom {

    0% {
        transform: scale(1.0);
    }

    100% {
        transform: scale(1.1);
    }
}

.zoom {
    animation: zoom 0.3s 2 linear forwards alternate;
}

@media (prefers-color-scheme: dark) {

    :root {
        --blue: dodgerblue;
        --pink: hotpink;
        --color1: unset;
        --color2: unset;
    }
    
    body, .box {
        background-color: black;
    }

    .dot {
        background-color: rgb(70,70,70);
    }

    .dash, .dash-v {
        background-color: rgb(30,30,30);
    }

    .blue {
        background-color: var(--blue);
    }
    
    .pink {
        background-color: var(--pink);
    }
}

@media (orientation: landscape) and (max-height: 460px) {
    
    .header {
        display: none;
    }

    .board {
        margin-top: 0;
    }
}

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

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

    h1 {
        font-size: 112px;        
    } 

    .choice {
        width: var(--board-size);
        justify-content: space-between;
    }

    .designed {
        font-size: 16px;
        top: 123.2px;
    }  
}

.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; 
}