/* Animations woohoo */

/* Rotation animation */
/* Solution found on StackOverflow: https://stackoverflow.com/questions/16771225/css3-rotate-animation#16771693 */
@keyframes rotation {
    100% {
        -webkit-transform: rotate(360deg);
        transform:rotate(360deg);
    }
}

@font-face {
    font-family: VCR OSD Mono;
    src: url("../fonts/VCR_OSD_MONO.ttf");
}

/* Body */
/* Solution for disabling text selection found on StackOverflow:
https://stackoverflow.com/questions/3779534/how-do-i-disable-text-selection-with-css-or-javascript */
body{
    /* Permalink - use to edit and share this gradient: http://colorzilla.com/gradient-editor/#f22b8b+0,f130ad+25,401fa6+75,2a1a8e+100 */
    min-height: 100vh;
    max-width: 100vw;
    /* Permalink - use to edit and share this gradient: http://colorzilla.com/gradient-editor/#e23b3b+0,550000+100 */
    background:#e23b3b; /* Old browsers */
    background: linear-gradient(129deg, #e23b3b, #880000);
    background-size: 400% 400%;

    -webkit-animation: scrolling-bg 10s ease infinite;
    -moz-animation: scrolling-bg 10s ease infinite;
    animation: scrolling-bg 10s ease infinite;
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#e23b3b', endColorstr='#550000',GradientType=1 ); /* IE6-9 fallback on horizontal gradient */
    height: 100%;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select:none;
    user-select:none;
    -o-user-select:none;
    overflow: hidden;
    padding: 0;
    position: relative;
    margin: 0;
}

.bg-overlay {
    top: 0;
    left: 0;
    margin: 0;
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: url('/static/images/shattered-dark.png');
    z-index: 0;
}


@-webkit-keyframes scrolling-bg {
    0%{background-position:0% 0%}
    50%{background-position:99% 100%}
    100%{background-position:0% 0%}
}
@-moz-keyframes scrolling-bg {
    0%{background-position:0% 0%}
    50%{background-position:99% 100%}
    100%{background-position:0% 0%}
}
@keyframes scrolling-bg {
    0%{background-position:0% 0%}
    50%{background-position:99% 100%}
    100%{background-position:0% 0%}
}

.gameFullContent{
    width: 100%;
    min-height: 100vh;
    height: 100%;
    position: relative;
}

/* Left Container */
/* just a placeholder atm */
.leftContainer{
    width: 100%;
}

.version{
    font-family: VCR OSD Mono, cursive;
}

.resetButton{
    position: absolute;
    bottom: 5px;
    left: 5px;
    width: 9%;
    height: 4%;
    border: 3px solid black;
    font-size: 12pt;
    font-family: VCR OSD Mono, cursive;
    background: #ffb84c;
    color: white;
    cursor: pointer;
}

/* Main Container */
/* THE BITCOIN IMAGE */
.mainGameContent{
    width: 100%;
    height: 100%;
    z-index: 2;
    position: relative;

}

/* Right Container */
/* All items which you can buy */
.rightContainer{
    width: 100%;
    position: fixed;
    border: 4px solid white;
    max-height: 96vh;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 3;
    left: 0;
    bottom: -80%;
}

.bitcoinAmountDisplay{
    text-align: center;
    font-family: VCR OSD Mono, cursive;
    font-size: 45pt;
    color: white;
    text-shadow: 1px 1px 1px black, 1px -1px 1px black, -1px 1px 1px black, -1px -1px 1px black;
    margin: 20px 0 0 0px;
}
.satoshiAmountDisplay {
    text-align: center;
    font-family: VCR OSD Mono, cursive;
    font-size: 15pt;
    color: white;
    text-shadow: 1px 1px 1px black, 1px -1px 1px black, -1px 1px 1px black, -1px -1px 1px black;
    padding: 0 !important;
    margin: 0 0 -15px 0px;
}
.countdown{
    text-align: center;
    font-family: VCR OSD Mono, cursive;
    font-size: 20pt;
    color: white;
    text-shadow: 1px 1px 1px black, 1px -1px 1px black, -1px 1px 1px black, -1px -1px 1px black;
    bottom: 20px;
    position: absolute;
    width: 100%;
}

#startCounter {
    position: absolute;
    text-align: center;
    font-family: VCR OSD Mono, cursive;
    color: white;
    text-shadow: 1px 1px 1px black, 1px -1px 1px black, -1px 1px 1px black, -1px -1px 1px black;
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.75);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#startCounter .counterNumber{
    font-size: 80pt;
    line-height: 80pt;
    padding: 0;
    margin: 0;
}

#finalPane {
    position: absolute;
    text-align: center;
    font-family: VCR OSD Mono, cursive;
    color: white;
    text-shadow: 1px 1px 1px black, 1px -1px 1px black, -1px 1px 1px black, -1px -1px 1px black;
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.75);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#finalPane .score{
    font-size: 80pt;
    line-height: 80pt;
    padding: 0;
    margin: 0;
}

/* BITCOIN */
.bitcoin{
    width: 25%;
    display: block;
    position: absolute;
    left: 15%;
    right: 30%;
    margin: 0 auto;
    top: 25%;
    transition: width 0.2s ease-in-out, top 0.2s ease-in-out;
    border-radius: 500px;
}

/* BITCOIN */
.hammer{
    width: 25%;
    display: block;
    position: absolute;
    left: 45%;
    margin: 0 auto;
    top: 25%;
    transition: width 0.2s ease-in-out, top 0.2s ease-in-out, transform 0.1s ease-in-out;
    border-radius: 500px;
    transform-origin: bottom center;
}
.hammer:hover{
    top: 25%;
    transform: rotate(-10deg);
    transition: width 0.2s ease-in-out, top 0.2s ease-in-out, transform 0.1s ease-in-out;
}
.hammer:active{
    top: 25%;
    transform: rotate(-45deg);
    transition: width 0.2s ease-in-out, top 0.2s ease-in-out, transform 0.1s ease-in-out;
}

/* Item list */
.purchaseList{
    list-style-type: none;
    font-family: "VCR OSD Mono", cursive;
    margin: 0;
    padding: 0;
}

/* Optimization for smaller screens */

@media screen and (max-width: 767px) {
    /* BITCOIN */
    .bitcoin{
        width: 80%;
        display: block;
        position: absolute;
        left: -15%;
        right: 60%;
        margin: 0 auto;
        top: 25%;
        transition: width 0.2s ease-in-out, top 0.2s ease-in-out;
        border-radius: 500px;
    }

    /* BITCOIN */
    .hammer{
        width: 80%;
        display: block;
        position: absolute;
        left: 40%;
        margin: 0 auto;
        top: 25%;
        transition: width 0.2s ease-in-out, top 0.2s ease-in-out, transform 0.1s ease-in-out;
        border-radius: 500px;
        transform-origin: bottom center;
    }
    .hammer:hover{
        top: 25%;
        transform: rotate(-10deg);
        transition: width 0.2s ease-in-out, top 0.2s ease-in-out, transform 0.1s ease-in-out;
    }
    .hammer:active{
        top: 25%;
        transform: rotate(-45deg);
        transition: width 0.2s ease-in-out, top 0.2s ease-in-out, transform 0.1s ease-in-out;
    }
}

/* Item list item */
.purchaseItem{
    width: 99%;
    border-top: 3px solid white;
    border-bottom: 3px solid white;
    border-right: 3px solid white;
    padding-left: 10px;
    background: linear-gradient(#ffe09f, #ffb84c);
}
.purchaseItem:hover{
    background: linear-gradient(90deg, #ffe09f, #ffb84c);
    cursor: pointer;
}
.amountOfItem{
    float: right;
    font-size: 66pt;
    margin-right: 15px;
    color: rgba(0,0,0,.4);
    margin-top: -10px;
    margin-bottom: -50px;
}
.itemHeadline{
    font-size: 20pt;
    font-weight: bold;
    margin-bottom: 0px;
    margin-top: 10px;
    color: white;
    text-shadow: 1px 1px 1px black, 1px -1px 1px black, -1px 1px 1px black, -1px -1px 1px black;
}

.bonus-item {
    position: absolute;
    width: 70vh;
    top: -100%;
    left: -100%;
    z-index: 10;
}

.bonus-item.bonus-top {

}

#mainMenu {
    position: relative;
    z-index: 5;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    min-height: 100vh;
}

.logo {
    text-align: center;
    width: 100%;
    margin-bottom: 30px;
    max-width: 300px;
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
}

.powered {
    font-family: sans-serif;
    font-weight: 300;
    color: #FFF;
    font-size: 0.7em;
    margin-top: 50px;
}

.powered-logo {
    vertical-align: middle;
    margin-left: 3px;
    max-width: 60px;
}

#startGame {
    width: 150px;
    height: 150px;
    margin-left: auto;
    margin-right: auto;
    left: 0;
    right: 0;
    border-radius: 50%;
    font-size: 25px;
    padding-left: 0;
    padding-right: 0;
}

.mainGameContent {
    margin-top: 0px;
    overflow: hidden;
}

.d-inline {
    display: inline-block;
}

.social {
    margin-top: 20px;
    margin-bottom: 20px;
}

.text-twitter .fa-circle {
    color: #38A1F3;
}

.text-facebook .fa-circle {
    color: #4267b2;
}

.text-linkedin .fa-circle {
    color: #0077B5;
}

.text-clipboard .fa-circle {
    color: #a40202;
}

button {
    background-color: #e23b3b;
    border: none;
    box-shadow: 5px 5px 0 #550000;
    font-family: VCR OSD Mono, cursive;
    font-size: 20px;
    padding: 15px 35px;
    border-radius: 5px;
    color: white;
    transition: background-color ease-in-out 0.2s;
    outline: 0;
}

button:hover {
    background-color: #c51414;
}

button:focus, button:active {
    outline: 0;
}

.instructions {
    margin-top: 20px;
}

button.no-style {
    background-color: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
    border-radius: 100%;
    width: auto;
    height: auto;
    font-size: 16px;
}