* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    -ms-box-sizing: border-box;
    -o-box-sizing: border-box;
    box-sizing: border-box;
}

html, body {
    /* font-size: 16px; */
    font-size: 1.2vw;
    font-family: "Open Sans", Arial, Verdana, sans-serif;
    margin: 0px;
    padding: 0px;
}

img {
    max-width: 100%;
}

h1 {
    font-weight: bold;
    font-size: 200%;
    color: rgba(255, 255, 255, 1.0);
}

a {
    color: rgba(255, 255, 255, 1.0);
    text-decoration: none;
}

.bg {
    background-image: url("img/table.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    height: 100%;
    position: absolute;
    z-index: 0;
}

.please_wait {
    position: fixed;
    top: 0px;
    left: 0px;
    bottom: 0px;
    right: 0px;
    background-color: rgba(0, 0, 0, 0.0);
    background-image: url('img/please_wait.svg');
    background-size: contain;
    background-position: center center;
    background-repeat: no-repeat;
    display: none;
    z-index: -10000;
}

    .please_wait.active {
        display: block;
        background-color: rgba(0, 0, 0, 1);
        z-index: 10000;
    }

.all:after, body:after, .app_entry:after, .menu_apps_games_container:after {
    clear: both;
    width: 100%;
    height: 0px;
    line-height: 0px;
    display: block;
    content: " ";
}

.app_entry {
    float: left;
    width: 33.333%;
    padding-left: 1.5%;
    padding-right: 1.5%;
}

    .app_entry:after {
        height: 4em;
    }

.img_states {
    clear: both;
    float: left;
}

    .img_states div {
        position: absolute;
        top: 0px;
        left: 0px;
        bottom: 0px;
        right: 0px;
        opacity: 0.0;
        z-index: 1;
        transition: all 0.5s ease;
        background-position: center center;
        background-repeat: no-repeat;
        background-size: contain;
    }

        .img_states div.active {
            opacity: 1.0;
        }

    .img_states #img_package {
        background-image: url("img/pizza_package.png");
        transition: all 1s ease;
        z-index: 6;
    }

    .img_states #img_baked {
        background-image: url("img/pizza_baked.png");
        z-index: 5;
    }

    .img_states #img_salami {
        background-image: url("img/pizza_salami.png");
        z-index: 4;
    }

    .img_states #img_cheese {
        background-image: url("img/pizza_cheese.png");
        z-index: 3;
    }

    .img_states #img_sauce {
        background-image: url("img/pizza_sauce.png");
        z-index: 2;
    }

    .img_states #img_teig {
        background-image: url("img/pizza_teig.png");
        filter: drop-shadow(0px 0px 5px rgba(0, 0, 0, 0.15));
        z-index: 1;
    }

    .img_states #img_package.deliver {
        margin-top: -200vh;
    }

.score_container {
    position: absolute;
    bottom: 1%;
    width: 100%;
    text-align: center;
    z-index: 55;
    text-align: center;
    display: none;
    pointer-events: none;
}

    .score_container.active {
        display: block;
    }

.score {
    display: inline-block;
    background-color: rgba(0, 0, 0, 0.5);
    color: rgba(255, 255, 255, 1.0);
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.5);
    padding: 5em;
    padding-top: 2.5em;
    padding-bottom: 2.5em;
}

.score_head {
    font-weight: bold;
}

.score_entry, .score_head {
    text-align: left;
}

    .score_entry.current_entry {
        color: rgba(150, 200, 100, 1.0);
    }

.clear, .clear_middle, .clear_small {
    clear: both;
    width: 100%;
    min-height: 1em;
}

.clear_middle {
    min-height: 0.5em;
    max-height: 0.5em;
}

.clear_small {
    min-height: 1px;
    max-height: 1px;
}

.half {
    float: left;
    width: 50%;
}

.third {
    float: left;
    width: 33%;
}

.quad {
    float: left;
    width: 25%;
}

.sixth {
    float: left;
    width: 16.67%;
}

.tenth {
    float: left;
    width: 10%;
}

.penalty {
    position: absolute;
    top: 0%;
    left: 0%;
    bottom: 0%;
    right: 0%;
    display: none;
    z-index: 49;
    -webkit-pointer-events: none;
    -moz-pointer-events: none;
    -ms-pointer-events: none;
    -o-pointer-events: none;
    pointer-events: none;
    background-color: rgba(200, 0, 0, 0.0);
    transition: all 0.25s ease;
}

    .penalty.active {
        display: block;
        -webkit-pointer-events: all;
        -moz-pointer-events: all;
        -ms-pointer-events: all;
        -o-pointer-events: all;
        pointer-events: all;
    }

    .penalty.clicked {
        background-color: rgba(200, 0, 0, 0.25);
    }

#menu_instruction {
    bottom: auto;
}

.menu_instruction_info {
    font-size: 200%;
}

.button {
    width: 100%;
    display: block;
    padding: 0.75em;
    background-color: rgba(150, 200, 100, 1.0);
    text-align: center;
    text-decoration: none;
    margin-left: auto;
    margin-right: auto;
    color: rgba(255, 255, 255, 1.0);
    box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.25);
    clear: both;
    margin-bottom: 0.75em;
    cursor: pointer;
}

    .button:hover, .button.active {
        box-shadow: inset 0px 0px 5px rgba(0, 0, 0, 1);
        color: rgba(100, 100, 100, 1.0);
    }

.button_close {
    position: absolute;
    right: 2.5%;
    top: 2.5%;
    color: rgba(255, 255, 255, 1.0);
    font-weight: bold;
    font-size: 200%;
    color: rgba(255, 255, 255, 1.0);
    text-decoration: none;
}

.button_check_mark {
    color: rgba(255, 255, 255, 1.0);
    font-weight: bold;
    font-size: 225%;
    margin-top: 2em;
}

.menu {
    position: absolute;
    top: 10%;
    bottom: 10%;
    left: 10%;
    right: 10%;
    background-color: rgba(0, 0, 0, 0.5);
    color: rgba(255, 255, 255, 1.0);
    z-index: 100;
    padding: 5em;
    padding-top: 1.5em;
    padding-bottom: 2.5em;
    text-align: center;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.5);
    display: none;
    overflow-y: auto;
}

    .menu.active {
        display: block;
    }

.play_controls {
    position: absolute;
    top: 0px;
    right: 0px;
    bottom: 0px;
    left: 0px;
    display: none;
}

    .play_controls.active {
        display: block;
    }

    .play_controls a {
        position: absolute;
        color: rgba(255, 255, 255, 1.0);
        padding: 0.5em;
        padding-left: 1.5em;
        padding-right: 1.5em;
        display: none;
        background-color: rgba(150, 200, 100, 1.0);
        text-align: center;
        text-decoration: none;
        box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.25);
        font-weight: bold;
        font-size: 150%;
        z-index: 55;
    }

        .play_controls a.active {
            display: block;
        }

        .play_controls a.pos1 {
            top: 1%;
            bottom: auto;
            left: 1%;
            right: auto;
        }

        .play_controls a.pos2 {
            top: 1%;
            bottom: auto;
            left: auto;
            right: 1%;
        }

        .play_controls a.pos3 {
            top: auto;
            bottom: 1%;
            left: 1%;
            right: auto;
        }

        .play_controls a.pos4 {
            top: auto;
            bottom: 1%;
            left: auto;
            right: 1%;
        }

input[type="text"] {
    padding-left: 0.5em;
    padding-right: 0.5em;
    width: 100%;
    height: 3em;
    font-size: 100%;
    margin-bottom: 0.5em;
}

.user_score_input_container {
    display: none;
}

    .user_score_input_container.active {
        display: block;
    }

footer {
    position: fixed;
    bottom: 0px;
    display: block;
    width: 100%;
    text-align: center;
    z-index: 50;
    color: rgba(255, 255, 255, 1.0);
    font-size: 75%;
    padding-bottom: 0.5em;
    display: none;
}

    footer.active {
        display: block;
    }

.cheater_info {
    position: fixed;
    left: 0px;
    right: 0px;
    padding-top: 0.5em;
    display: none;
    text-align: center;
    font-weight: bold;
    z-index: 1000;
    color: rgba(255, 50, 50, 1.0);
}

@media (max-width: 800px) {
    body {
        font-size: 1.85vw;
    }
}

@media (max-width: 600px) {
    body {
        font-size: 2.5vw;
    }

    .play_controls a {
        z-index: 55;
    }
}

@media (max-width: 300px) {
    .play_controls a {
        z-index: -1;
    }

    .cheater_info {
        display: block;
    }
}
