@font-face {
  font-family: 'Spooky Scary Creepy';
  src: url('/assets/fonts/Spooky\ Scary\ Creepy.ttf') format('truetype');
}

body {
    background-color: black;
    background-image: url(assets/graphics/169d73d04661282b228e1aa600bc88b7.jpg);
    background-size: 100% auto;
    background-repeat: no-repeat;
}

div.page[data-name=start] {
    /* padding-top: 20vmin; */
}

div.page[data-name=start] > canvas {
    position:absolute;
    left:0;
    top:0;
    width:100%;
    height:100%;
}

div.section.progress {
    height: 10vmin;
    margin: 0 5vmin 25vmin 5vmin;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    padding:0;
}

div.section.progress > div.title {
    top:110%;
    width:50vmin;
}

div.section.progress > div.bar {
    width: 70vmin;
    height: 2vmin;
    border-radius: 1vmin;
    background: rgba(255, 255, 255, 0.5);
    margin: 2vmin 9vmin;
    overflow:hidden;
}

div.section.progress > div.bar > div {
    background:linear-gradient(#ff9900, #A66300);;
    width:25%;
    height:100%;
}

div.section {
    width: 90vmin;
    height: 24vmin;
    background: rgba(255, 255, 255, 0.2);
    margin: 5vmin;
    border-radius: 12vmin;
    border: 0.5vmin solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(2vmin);
    margin-top:20vmin;
    padding:4vmin;
}

@keyframes tilt { 
    0%, 100% { 
        transform: rotate(-1deg); 
    }
    50% { 
        transform: rotate(1deg); 
    }
}

div.section.training {
    animation:tilt 8s ease-in-out infinite;
}

div.section.mission {
    animation:tilt 12s ease-in-out infinite;
}

div.section > div.title {
    background: white;
    width: 30vmin;
    height: 7vmin;
    border-radius: 3.5vmin;
    position: absolute;
    left: 50%;
    top: 0;
    transform: translate(-50%, -50%);
    color: black;
    font-size: 4vmin;
    line-height: 6.5vmin;
    /* text-transform: uppercase; */
    font-family:'Spooky Scary Creepy', serif;
}

div.section > div.item {
    margin: 0 2vmin;
    height: 16vmin;
    width: 16vmin;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display:inline-block;
    position:relative;
}

div.section > div.item > img {
    width:12vmin;
    height:12vmin;
    margin:2vmin;
}

div.section > div.item:not(.unlocked) > img {
    filter: grayscale(1);
    opacity: 0.25;
}

div.section > div.item > div {
    width:5vmin;
    height:5vmin;
    border-radius:50%;
    position:absolute;
    bottom:0;
}

div.section > div.item > div.done {
    right:0;
    background-image:url(assets/graphics/check.png);
    background-size:100% 100%;
}

div.section.tools {
    height:auto;
    position:absolute;
    bottom:0;
}

div.section.tools > div.item > img {
    width:8vmin;
    height:8vmin;
    margin:4vmin;
}

div.section.tools > div.item.qr {
    width:24vmin;
    height:24vmin;
}

div.section.tools > div.item.qr > img {
    width:14vmin;
    height:14vmin;
    margin:5vmin;
}

div.section.tools > div.item {
    vertical-align:middle;
}

div.popup {
    width: 100%;
    height: 100%;
    position: fixed;
    left: 0;
    top: 0;
    backdrop-filter: blur(2vmin);
    z-index: 2;
    display: grid;
    place-items: center;
}

div.popup > div {
    width: 90vw;
    min-height: 20vmin;
    background: rgba(255, 255, 255, 0.5);
    border: 0.5vmin solid rgba(255, 255, 255, 0.2);
    border-radius: 10vmin;
}