/* https://www.dafont.com/04b-03.font */
@font-face {
    font-family: '04b03';
    src: url('./src/fonts/04b03.woff2') format('woff2'),
            url('./src/fonts/04b03.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
.unselectable {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
.game {
    position: relative;
    width: 1100;
    height: 900;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.game-canvas {
    position: absolute;
    z-index: 1;
    width: 1100;
    height: 900; 
}
.game-ui {
    position: absolute;
    z-index: 2;
    width: 1100;
    height: 900;
    color: white;
    font-size: 40px;
}
body {
    background-color: #060606;
    margin: 0 0;
    font-family: '04b03';
}
.health {
    color: #54fd20;
}
.money {
    color: yellow;
}
.game-ui-topleft {
    position: absolute;
    top: 0;
    left: 0;
    margin: 30px;
}
.game-ui-topright {
    position: absolute;
    top: 0;
    right: 0;
    margin: 30px;
    text-align: right;
}
.game-ui-bottomleft {
    position: absolute;
    bottom: 0;
    left: 0;
    margin-left: 20px;
    margin-bottom: 10px;
    font-size: 16px;
}
.game-ui-bottomright {
    width: 320;
    height: 160;

    position: absolute;
    bottom: 0;
    right: 0;
}
.combat-log {
    font-size: 16px;
    overflow-y: scroll;
    display: flex;
    flex-direction: column-reverse;
}

/* buttons */

/* pause-play button */
.play-button {
    width: 100;
    height: 40;
    background: url('src/ui/buttons/button-play.png');
}
.play-button:hover {
    width: 100;
    height: 40;
    background: url('src/ui/buttons/button-play-hover.png');
    cursor: pointer;
}
.play-button:active {
    width: 100;
    height: 40;
    background: url('src/ui/buttons/button-play-active.png');
    cursor: pointer;
}
.pause-button {
    width: 100;
    height: 40;
    background: url('src/ui/buttons/button-pause.png');
}
.pause-button:hover {
    width: 100;
    height: 40;
    background: url('src/ui/buttons/button-pause-hover.png');
    cursor: pointer;
}
.pause-button:active {
    width: 100;
    height: 40;
    background: url('src/ui/buttons/button-pause-active.png');
    cursor: pointer;
}
.pause-play-button {
    margin-bottom: 5px;
}

/* tower selection */
.tower-select {
    width: 220;
    height: 220;
    background: url('src/ui/buttons/tower-select-background.png');
    position: relative;
}
.tower-icon {
    width: 60;
    height: 60;
    cursor: pointer;
    position: absolute;
}
.tower-disabled {
    cursor: default;
}
.tower-cost {
    font-size: 16px;
    color: #54fd20;
    text-shadow: 2px 2px 2px #000000;
    text-align: center;
    position: absolute;
    bottom: 3px;
    left: 50%;
    transform: translate(-50%, 0);
}
.tower-disabled > .tower-cost {
    color: red;
}
.tower-disabled > .tower-coming-soon {
    color: rgb(59, 160, 255);
}

/* tower 0 0 */
.tower-0-0 {
    background: url('src/ui/buttons/button-ballistic-turret.png');
    top: 12px;
    left: 12px;
}
.tower-0-0:hover {
    background: url('src/ui/buttons/button-ballistic-turret-hover.png');
}
.tower-0-0:active {
    background: url('src/ui/buttons/button-ballistic-turret-active.png');
}
.tower-0-0.tower-selected {
    background: url('src/ui/buttons/button-ballistic-turret-active.png');
}
.tower-0-0.tower-disabled {
    background: url('src/ui/buttons/button-ballistic-turret-disabled.png');
}

/* tower 0 1 */
.tower-0-1 {
    background: url('src/ui/buttons/button-flame-turret.png');
    top: 12px;
    left: 80px;
}
.tower-0-1:hover {
    background: url('src/ui/buttons/button-flame-turret-hover.png');
}
.tower-0-1:active {
    background: url('src/ui/buttons/button-flame-turret-active.png');
}
.tower-0-1.tower-selected {
    background: url('src/ui/buttons/button-flame-turret-active.png');
}
.tower-0-1.tower-disabled {
    background: url('src/ui/buttons/button-flame-turret-disabled.png');
}

/* tower 0 2 */
.tower-0-2 {
    background: url('src/ui/buttons/button-ballistic-turret.png');
    top: 12px;
    left: 148px;
}
.tower-0-2:hover {
    background: url('src/ui/buttons/button-ballistic-turret-hover.png');
}
.tower-0-2:active {
    background: url('src/ui/buttons/button-ballistic-turret-active.png');
}
.tower-0-2.tower-selected {
    background: url('src/ui/buttons/button-ballistic-turret-active.png');
}
.tower-0-2.tower-disabled {
    background: url('src/ui/buttons/button-ballistic-turret-disabled.png');
}

/* tower 1 0 */
.tower-1-0 {
    background: url('src/ui/buttons/button-flame-turret.png');
    top: 80px;
    left: 12px;
}
.tower-1-0:hover {
    background: url('src/ui/buttons/button-flame-turret-hover.png');
}
.tower-1-0:active {
    background: url('src/ui/buttons/button-flame-turret-active.png');
}
.tower-1-0.tower-selected {
    background: url('src/ui/buttons/button-flame-turret-active.png');
}
.tower-1-0.tower-disabled {
    background: url('src/ui/buttons/button-flame-turret-disabled.png');
}

/* tower 1 1 */
.tower-1-1 {
    background: url('src/ui/buttons/button-ballistic-turret.png');
    top: 80px;
    left: 80px;
}
.tower-1-1:hover {
    background: url('src/ui/buttons/button-ballistic-turret-hover.png');
}
.tower-1-1:active {
    background: url('src/ui/buttons/button-ballistic-turret-active.png');
}
.tower-1-1.tower-selected {
    background: url('src/ui/buttons/button-ballistic-turret-active.png');
}
.tower-1-1.tower-disabled {
    background: url('src/ui/buttons/button-ballistic-turret-disabled.png');
}

/* tower 1 2 */
.tower-1-2 {
    background: url('src/ui/buttons/button-flame-turret.png');
    top: 80px;
    left: 148px;
}
.tower-1-2:hover {
    background: url('src/ui/buttons/button-flame-turret-hover.png');
}
.tower-1-2:active {
    background: url('src/ui/buttons/button-flame-turret-active.png');
}
.tower-1-2.tower-selected {
    background: url('src/ui/buttons/button-flame-turret-active.png');
}
.tower-1-2.tower-disabled {
    background: url('src/ui/buttons/button-flame-turret-disabled.png');
}

/* tower 2 0 */
.tower-2-0 {
    background: url('src/ui/buttons/button-ballistic-turret.png');
    top: 148px;
    left: 12px;
}
.tower-2-0:hover {
    background: url('src/ui/buttons/button-ballistic-turret-hover.png');
}
.tower-2-0:active {
    background: url('src/ui/buttons/button-ballistic-turret-active.png');
}
.tower-2-0.tower-selected {
    background: url('src/ui/buttons/button-ballistic-turret-active.png');
}
.tower-2-0.tower-disabled {
    background: url('src/ui/buttons/button-ballistic-turret-disabled.png');
}

/* tower 2 1 */
.tower-2-1 {
    background: url('src/ui/buttons/button-flame-turret.png');
    top: 148px;
    left: 80px;
}
.tower-2-1:hover {
    background: url('src/ui/buttons/button-flame-turret-hover.png');
}
.tower-2-1:active {
    background: url('src/ui/buttons/button-flame-turret-active.png');
}
.tower-2-1.tower-selected {
    background: url('src/ui/buttons/button-flame-turret-active.png');
}
.tower-2-1.tower-disabled {
    background: url('src/ui/buttons/button-flame-turret-disabled.png');
}

/* tower 2 2 */
.tower-2-2 {
    background: url('src/ui/buttons/button-ballistic-turret.png');
    top: 148px;
    left: 148px;
}
.tower-2-2:hover {
    background: url('src/ui/buttons/button-ballistic-turret-hover.png');
}
.tower-2-2:active {
    background: url('src/ui/buttons/button-ballistic-turret-active.png');
}
.tower-2-2.tower-selected {
    background: url('src/ui/buttons/button-ballistic-turret-active.png');
}
.tower-2-2.tower-disabled {
    background: url('src/ui/buttons/button-ballistic-turret-disabled.png');
}

/* scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #000000;
}
::-webkit-scrollbar-thumb {
    background: #101010;
}
::-webkit-scrollbar-thumb:hover {
    background: #303030;
}