@font-face {
    font-family: RiseOfKingdom;
    src: url(RiseOfKingdom.ttf);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: RiseOfKingdom;
    user-select: none;
}

body {
    background-color: #000;
    background-image: url("images/ui-background.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);
    overflow-x: hidden; 
    overflow-y: hidden; 
}

.top-section, .bottom-section {
    width: 100%;
    height: 10vh;
    padding: 0 1rem;
}

.bottom-section {
    height: 5vh;
    position: absolute;
    z-index: 3;
}

.main-section {
    overflow-x: hidden; 
    overflow-y: hidden; 
    display: grid;
    grid-template-columns: calc(100%/3) calc(100%/3) calc(100%/3);
    grid-template-rows: 25% 25% 25% 25%;
    height: 80vh;
    border: solid 1px #000;
    position: relative;
}

.main-section div img {
    width: 100%;
    height: 100%;
}

.resource-icons, .bottom-icons, .dungeon-top-section {
    display: flex;
    justify-content: space-between;
    height: 10vh;
    width: 100%;
}

.resource-icons div, .bottom-icons div {
    display: flex;
    justify-content: center;
    align-items: center;
}

.resource-icons div img, .bottom-icons div img {
    height: 50%;
    width: fit-content;
}

.resource-icons div img {
    height: 20%;
}

.hero-icon {
    cursor: pointer;
}

.hero-icon img {
    border-radius: 50%;
    height: 50% !important;
}

.resource-icons p {
    color: #fff;
}

.bottom-icons img {
    cursor: pointer;
}

.building {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #000;
}

.generating-resources, .plus {
    position: absolute;
}

.generating-resources {
    font-size: 2rem;
    font-weight: 900;
    color: #fff;
}

.plus {
    width: 25% !important;
    height: 25% !important;
    bottom: 0;
    right: 0;
    padding: 5px;
    cursor: pointer;
    display: none;
}

.hero-selection, .building-screen, .character-screen, .inventory-screen, .item-screen, .shop-screen, .spells-screen, .settings-screen {
    height: 100%;
    width: 100%;
    position: absolute;
    z-index: 1;
    top: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    display: none;
    background-color: #000;
    background-image: url("images/screens-background.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.hero-selection-grid {
    display: grid;
    grid-template-columns: calc(100%/3) calc(100%/3) calc(100%/3);
    grid-template-rows: calc(100%/3) calc(100%/3) calc(100%/3);
    height: 50vh;
}

.hero-selection img {
    border: 1px solid #fff;
    cursor: pointer;
}

.building-screen, .inventory-screen, .character-screen, .shop-screen, .spells-screen, .settings-screen {
    flex-direction: column;
    justify-content: space-evenly;
    color: #fff;
}

.building-screen ul {
    list-style: none;
}

.hero-stats li {
    display: flex;
    align-items: center;
}

.dungeon-screen {
    position: absolute;
    z-index: 1;
    display: grid;
    grid-template-columns: calc(100%/3) calc(100%/3) calc(100%/3);
    grid-template-rows: 25% 25% 25% 25%;
    height: 100%;
    width: 100%;
    border: solid 1px #fff;
    display: none;
}

.dungeon-screen div img {
    height: 100%;
    width: 100%;
}

.dungeon-icon, .dungeon-icon img {
    height: 5vh;
    margin: auto;
    cursor: pointer;
    background: none;
    border: none;
}

.dungeon-top-section, .dungeon-bottom-section {
    display: none;
    position: relative;
}

.dungeon-bottom-section {
    margin-top: 1rem;
}

.hero-position {
    background-color: #2C3333;
    transition: 0.5s;
}

.no-select {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
.no-select:focus {
    outline: none !important;
}

.floor-select-screen {
    position: absolute;
    z-index: 1;
    background-color: #000;
    color: grey;
    display: none;
    justify-content: center;
    align-items: center;
    height: 80vh;
    width: 100%;
    border: solid 1px #fff;
    font-size: 2rem;
    background-color: #000;
    background-image: url("images/screens-background.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.floor-select-screen ul {
    width: 70%;
    text-align: center;
    margin: 50vh 0;
    height: 100%;
    overflow: auto;
}

.floor-select-screen li {
    border-bottom: solid 1px #fff;
    width: 100%;
    list-style: none;
    cursor: pointer;
}

.floor-select-screen li:last-child {
    border-bottom: none;
}

.boss {
    color: #d0021b;
}

.elite {
    color: #9013fe;
}

.building-top-part, .upgrade-requirements p {
    text-align: center;
}

.upgrade-req, .upgrade-flex p {
    font-size: 1rem;
}

.upgrade-flex {
    display: flex;
    text-align: center;
}

.upgrade-requirements div img {
    height: 10vh;
}

.upgrade-price {
    display: flex;
    flex-direction: column;
}

#upgrade {
   margin: auto;
}

/* enemy health */
.enemy-health {
    position: absolute;
    bottom: 0;
    z-index: 1;
    width: 100%;
}

progress {
    border: 1px solid #fff;
    background: crimson;
  }
  
  progress {
    color: lightblue;
  }
  
  progress::-moz-progress-bar {
    background: lightcolor;
  }
  
  progress::-webkit-progress-value {
    background: red;
  }
  
  progress::-webkit-progress-bar {
    background: blue;
  }

/* hero health */
.hero-health {
    position: absolute;
    width: 15vh;
}

/* ------------------------------------ */

.enemy-position {
    position: relative;
    display: flex;
    flex-direction: column;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.enemy-name-lvl {
    position: absolute;
    top: 0;
    left: 0;
    color: #fff;
    border: none !important;
}

.enemy-lvl {
    font-size: 0.7rem;
}

.character-screen {
    text-align: center;
}

.character-screen li {
    display: flex;
    list-style: none;
    justify-content: space-evenly;
    margin-bottom: 0.5vh;
}

.character-screen li img {
   height: 3vh;
   width: 3vh;
   cursor: pointer;
}

.character-screen div img, .item-screen div img, .enemy-avatar {
    height: 25vh;
    width: 25vh;
    border: 1px solid #fff;
}

.hero-lvl-exp {
    font-size: 0.7rem;
}

.hero-name {
    color: #fff;
    border: none;
    text-align: center;
    font-size: 1.5rem;
    background-color: transparent;
}

.close-icon {
    width: 5vh;
    height: 5vh;
    position: absolute;
    right: 0;
    top: 0;
    margin: 1rem;
    z-index: 3;
    cursor: pointer;
    display: none;
    border: none !important;
}

.inventory-grid {
    display: grid;
    grid-template-columns: 50% 50%;
    grid-template-rows: calc(100%/4) calc(100%/4) calc(100%/4) calc(100%/4);
    height: 50vh;
    width: 50%;
}

.inventory-grid img {
    border: solid 1px #fff;
}

.floor1 {
    color: #fff;
}

.item-screen {
    color: #fff;
    text-align: center;
}

.item-screen-flex {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    height: 100%;
    font-size: 1rem;
}

.item-screen-flex ul {
    list-style: none;
}

.item-icons-flex {
    display: flex;
    justify-content: space-around;
}

.item-icons-flex div {
    display: flex;
    justify-content: center;
    align-items: center;
}

.item-icons-flex div img {
    height: 5vh;
    width: 5vh;
    border: none;
}

.item-icons, .mana-icon {
    height: 5vh !important;
    width: 5vh !important;
    border: none !important;
    cursor: pointer;
}

.display-hero-health progress, .display-hero-health {
    position: relative;
}

.enemy-health-number {
    position: absolute;
    z-index: 1;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    text-align: center;
    height: 1em;
    width: 100%;
}

.dungeonBottomIconsFlex {
    display: flex;
}

.hero-health-number {
    position: absolute;
    bottom: 0;
    z-index: 1;
    height: 100%;
    left: 0;
    right: 0;
    text-align: center;
}

.compare-item {
    display: none;
}

.pricing-div {
    display: flex;
    justify-content: center;
}

.pricing-div img, .shop-icons-flex img {
    height: 5vh !important;
    width: 5vh !important;
    border: none !important;
}

.shop-icons-flex {
    display: flex;
    justify-content: space-evenly;
}

.buy-icon {
    display: none;
    cursor: pointer !important;
    margin-left: 1vh;
}

/* spells */

.spells-screen li {
    list-style: none;
    display: flex;
}

.spells-screen li img {
    border: 1px solid #fff;
    height: 10vh;
    width: 10vh;
}

.mana-icon {
    cursor: default !important;
}

.spells-screen div {
    margin-left: 1vh;
    display: flex;
}

.column {
    display: flex;
    flex-direction: column !important;
}

/* settings */

.settings-icon {
    height: 5vh;
    width: 5vh;
    position: absolute;
    z-index: 5;
    right: 0;
    margin: 1vh;
    cursor: pointer;
}

.buy-icon {
    cursor: pointer !important;
}

.settings-screen {
    text-align: center;
}

.settings-screen div {
    display: flex;
    justify-content: space-evenly;
    width: 100%;
}

.settings-screen div img {
    height: 5vh;
    width: 5vh;
    cursor: pointer;
}

button {
    font-size: 1rem;
    color: #fff;
    width: 25vw;
    height: 6vh;
    margin: 1vh;
    background-color: #D0021B;
    border: 1px solid #000;
    cursor: pointer;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    outline: none;
    border-radius: 5px;
}

.settings-screen span {
    color: #D0021B;
}

.settings-screen p {
    width: 80%;
}

.sound-music {
    display: none;
}

/* intro and outro */

.intro-outro, .intro-img {
    display: none;
    height: 100vh;
    width: 100vw;
    position: absolute;
    z-index: 10;
    background-color: #000;
}

iframe {
    height: 100vh;
    width: 100vw;
}

.intro-img img {
    position: absolute;
    z-index: 11;
    height: 80vh;
    width: 100vw;
    background-color: #000;
}

.play-video {
    position: absolute;
    bottom: 7vh;
    z-index: 20;
    left:0;
    right:0;
    margin-left: auto;
    margin-right: auto;
}

/* credits */

.credits {
    display: none;
    justify-content: center;
    position: absolute;
    z-index: 2;
    height: 100vh;
    width: 100vw;
    background-color: #000;
    color: #fff;
    padding: 1rem;
    font-size: 0.8rem;
    overflow: auto;
}

.credits ul {
    list-style: none;
}

.credits-right {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 50%;
}

/* ---------- Fog ---------- */
.fogwrapper {
    height: 100%;
    position: absolute;
    top: 0;
    width: 100%;
    -webkit-filter: blur(1px) grayscale(0.2) saturate(1.2) sepia(0.2);
    filter: blur(1px) grayscale(0.2) saturate(1.2) sepia(0.2);
  }
  #foglayer_01, #foglayer_02, #foglayer_03 {
    height: 100%;
    position: absolute;
    width: 200%;
    z-index: 2;
    pointer-events: none;
  }
  #foglayer_01 .image01, #foglayer_01 .image02,
  #foglayer_02 .image01, #foglayer_02 .image02,
  #foglayer_03 .image01, #foglayer_03 .image02 {
    float: left;
    height: 100%;
    width: 50%;
  }
  #foglayer_01 {
    -webkit-animation: foglayer_01_opacity 10s linear infinite, foglayer_moveme 15s linear infinite;
    -moz-animation: foglayer_01_opacity 10s linear infinite, foglayer_moveme 15s linear infinite;
    animation: foglayer_01_opacity 10s linear infinite, foglayer_moveme 15s linear infinite;
  }
  #foglayer_02, #foglayer_03 {
    -webkit-animation: foglayer_02_opacity 21s linear infinite, foglayer_moveme 13s linear infinite;
    -moz-animation: foglayer_02_opacity 21s linear infinite, foglayer_moveme 13s linear infinite;
    animation: foglayer_02_opacity 21s linear infinite, foglayer_moveme 13s linear infinite;
  }
  
  /* ---------- Moving Fog ---------- */
  /*
    'size: cover' || 'size: 100%'; results remain the same
    'attachment: scroll' can be added or removed; results remain the same
    'attachment: fixed' causing unexpected results in Chrome
    'repeat-x' || 'no-repeat'; results remain the same
  */ 
  #foglayer_01 .image01, #foglayer_01 .image02 {
    background: url("images/fog1.png") center center/cover no-repeat transparent;
  }
  #foglayer_02 .image01, #foglayer_02 .image02,
  #foglayer_03 .image01, #foglayer_03 .image02{
    background: url("images/fog2.png") center center/cover no-repeat transparent;
  }
  
  /* ---------- Keyframe Layer 1 ---------- */
  @-webkit-keyframes foglayer_01_opacity {
    0% { opacity: .1; }
    22% { opacity: .5; }
    40% { opacity: .28; }
    58% { opacity: .4; }
    80% { opacity: .16; }
    100% { opacity: .1; }
  }
  @-moz-keyframes foglayer_01_opacity {
    0% { opacity: .1; }
    22% { opacity: .5; }
    40% { opacity: .28; }
    58% { opacity: .4; }
    80% { opacity: .16; }
    100% { opacity: .1; }
  }
  @-o-keyframes foglayer_01_opacity {
    0% { opacity: .1; }
    22% { opacity: .5; }
    40% { opacity: .28; }
    58% { opacity: .4; }
    80% { opacity: .16; }
    100% { opacity: .1; }
  }
  @keyframes foglayer_01_opacity {
    0% { opacity: .1; }
    22% { opacity: .5; }
    40% { opacity: .28; }
    58% { opacity: .4; }
    80% { opacity: .16; }
    100% { opacity: .1; }
  }
  /* ---------- Keyframe Layer 2 ---------- */
  @-webkit-keyframes foglayer_02_opacity {
    0% { opacity: .5; }
    25% { opacity: .2; }
    50% { opacity: .1; }
    80% { opacity: .3; }
    100% { opacity: .5; }
  }
  @-moz-keyframes foglayer_02_opacity {
    0% { opacity: .5; }
    25% { opacity: .2; }
    50% { opacity: .1; }
    80% { opacity: .3; }
    100% { opacity: .5; }
  }
  @-o-keyframes foglayer_02_opacity {
    0% { opacity: .5; }
    25% { opacity: .2; }
    50% { opacity: .1; }
    80% { opacity: .3; }
    100% { opacity: .5; }
  }
  @keyframes foglayer_02_opacity {
    0% { opacity: .5; }
    25% { opacity: .2; }
    50% { opacity: .1; }
    80% { opacity: .3; }
    100% { opacity: .5; }
  }
  /* ---------- Keyframe Layer 3 ---------- */
  @-webkit-keyframes foglayer_03_opacity {
    0% { opacity: .8 }
    27% { opacity: .2; }
    52% { opacity: .6; }
    68% { opacity: .3; }
    100% { opacity: .8; }
  }
  @-moz-keyframes foglayer_03_opacity {
    0% { opacity: .8 }
    27% { opacity: .2; }
    52% { opacity: .6; }
    68% { opacity: .3; }
    100% { opacity: .8; }
  }
  @-o-keyframes foglayer_03_opacity {
    0% { opacity: .8 }
    27% { opacity: .2; }
    52% { opacity: .6; }
    68% { opacity: .3; }
    100% { opacity: .8; }
  }
  @keyframes foglayer_03_opacity {
    0% { opacity: .8; }
    27% { opacity: .2; }
    52% { opacity: .6; }
    68% { opacity: .3; }
    100% { opacity: .8; }
  }
  /* ---------- Keyframe moveMe ---------- */
  @-webkit-keyframes foglayer_moveme {
    0% { left: 0; }
    100% { left: -100%; }
  }
  @-moz-keyframes foglayer_moveme {
    0% { left: 0; }
    100% { left: -100%; }
  }
  @-o-keyframes foglayer_moveme {
    0% { left: 0; }
    100% { left: -100%; }
  }
  @keyframes foglayer_moveme {
    0% { left: 0; }
    100% { left: -100%; }
  }
  
  @media only screen
    and (min-width: 280px)
    and (max-width: 767px) {
      #foglayer_01 .image01, #foglayer_01 .image02,
      #foglayer_02 .image01, #foglayer_02 .image02,
      #foglayer_03 .image01, #foglayer_03 .image02 {
        width: 100%;
      }
    }
