* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

#canvas1 {
    border: 5px solid black;
    position: absolute;
    top: 50%;
    left: 50%;    
    translate: -50% -50%;
    background: url('/images/background/background1920x1080.png');
    background-size: cover;
    background-position: center;
}

/* switched off using display none for now. Turn back on for debugging */
.userinterface{
    position: absolute;
    width: 100px;
    height: 150px;
    right: 5px;
    top: 5px;
    color: white;
    padding: 8px;
    font-family: sans-serif;
    font-size: 14px;
    user-select: none;
    background: rgba(0,0,0,0.9);    
    border: solid;
    text-align: center;
    display: none;
    /*
    display: flex;
    flex-direction: column;*/
    
}
/* switched off using display none for now. Turn back on for debugging */
.userinterface > span {
    color: white;
    width: 50px;
    height: 50px;
    display: none;
}

/* ICON CSS STYLING */
.userinterfaceIcons {
    position: absolute;
    top: 4px;
    right: 8px;
    font-size: 36px;
    color: white;
    -webkit-text-stroke: 2px black;
    display: flex;
    align-items: center;
}

.coinContainerDiv {
    display: flex; 
    align-items: center; 
    margin-right: 20px
}
.coinContainerDiv > svg{
    width: 25px; 
    color: gold; 
    margin-right: 5px
}

.oreContainerDiv {
    display: flex; 
    align-items: center; 
    margin-right: 20px
}
.oreContainerDiv > svg{
    width: 25px; 
    margin-right: 5px"
}

.scoreContainerDiv {
    display: flex; 
    align-items: center; 
    margin-right: 20px
}
.scoreContainerDiv > svg{
    width: 25px; 
    color: gold; 
    margin-right: 5px"
}

.livesContainerDiv {
    display: flex; 
    align-items: center"
}
.livesContainerDiv > svg{
    width: 35px; 
    color: red;
    margin-right: 5px"
}


.controls {
    position: absolute;
    left: 5px;
    bottom: 5px;
    display: flex;
    flex-direction: column;
}

.controls > button {    
    width: 50px;
    height: 50px;
    background: transparent;
    color: white;
    border: 1px solid white;
    margin: 5px;
    box-shadow: 1px 1px 1px black;
    text-shadow: 1px 1px 1px black;
    transition: 0.3s;
    /*font-size: 6px;*/
}

.controls > button:hover, .controls > button:active, .controls > button:focus{
    background: #7a2c8a;
    box-shadow: 4px 4px 4px black;
    text-shadow: 2px 2px 2px black;
}

.assets {
    display: none;
}

.no-scroll {
    overflow: hidden;
}

#upgradeTowerPower {
    display: none;
}
#upgradeTowerRange {
    display: none;
}#upgradeTowerSpeed {
    display: none;
}


@media screen and (max-width: 900px) {

    html.touch body {
        overflow:hidden;
    }
    
    #canvas1 {
        background: url('/images/background/background1920x1080.png');
        background-size: cover;
        background-position: center;
    }

    #turnPhoneToLandscape {
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        display: none;
        align-items: center;
        justify-content: center;
        font-size: 72px;
        color: white;
        -webkit-text-stroke: 3px black;
    }

    .userinterfaceIcons {
        position: absolute;
        top: 4px;
        right: 8px;
        font-size: 28px;
        color: white;
        -webkit-text-stroke: 2px black;
        display: flex;
        align-items: center;
    }
    
    .oreContainerDiv {
        display: flex; 
        align-items: center; 
        margin-right: 8px
    }
    .oreContainerDiv > svg{
        width: 25px; 
        margin-right: 5px"
    }
    
    .scoreContainerDiv {
        display: flex; 
        align-items: center; 
        margin-right: 8px
    }
    .scoreContainerDiv > svg{
        width: 25px; 
        color: gold; 
        margin-right: 5px"
    }
    
    .livesContainerDiv {
        display: flex; 
        align-items: center"
    }
    .livesContainerDiv > svg{
        width: 35px; 
        color: red;
        margin-right: 5px"
    }


    /*
    .controls {
        position: absolute;
        left: 5px;
        top: 5px;
        display: flex;
        flex-direction: column;
    } 
    .controls > button {
        width: 50px;
        height: 50px;
        background: transparent;
        color: white;
        border: 1px solid white;
        margin: 5px;
        box-shadow: 1px 1px 1px black;
        text-shadow: 1px 1px 1px black;
        transition: 0.3s;
        transform: rotate(90deg);        
    }
    .userinterface{
        position: absolute;
        right: 10px;
        top: -5px;
        width: 100px;
        height: 140px;
        color: white;
        padding: 8px;
        font-family: sans-serif;
        font-size: 14px;
        user-select: none;
        background: rgba(0,0,0,0.9);    
        border: solid;
        text-align: center;
        transform: rotate(90deg);        
    }
    */    
}