/* General */
.pageborder {
  position: page;
  padding: 36px;
  height: 972px;
  background-image: url("/images/dungeoncardfight/backgrounds/frame.png");
  background-repeat: no-repeat;
  background-color: rgb(19,21,34);
}

/* Intro page */
.intro {
  position: absolute;
  background-image: url("/images/dungeoncardfight/backgrounds/intro.png");
  background-repeat: no-repeat;
  background-size: cover;
  width: 1600px;
  height: 900px;
  padding: 10px 0px 0px 0px;
}

.enter {
  display: flex;
  flex-direction: column-reverse;
  justify-content:flex-start;
  align-items: center;
  height: 380px;
}

.logo {
  display: flex;
  flex-direction: row;
  justify-content: center;
}

.logo img {
  width: 800px;
  height: 287px;
}

.warrior {
  top: 530px;
  left: 700px;
}

/* Treasure */
.treasure {
  top: 400px;
  left: 650px;
  width: 300px;
  height: 230px;
}

.treasure-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  border: 4px solid transparent;
  border-radius: 10px;
}
.treasure-item:hover {
  border: 4px solid black;
}

.treasure-chest {
  position: absolute;
  top: 450px;
  left: 750px;
  width: 134px;
  height: 100px;
  z-index: 1;
  cursor: pointer;
}

.treasure-chest:hover {
  cursor: grab;
  opacity:0.80;
}

/* Path select */
.path {
  position: absolute;
  width: 200px;
  height: 350px;
  transition: all 2s ease-in;
  border: 3px dotted transparent;
  font-size: 35px;
  color: rgba(0, 0, 0,0);
  text-align:center;
  z-index: 1;
}

.path:hover {
  cursor: grab;
  border: 3px dotted black;
  color: rgba(0, 0, 0,1);
}

.path_select_left {
  top:100px;
  left:250px;
}

.path_select_right {
  top: 120px;
  left: 980px;
}

  /* Dungeon */

.dungeon {
  position: absolute;
  padding:0px 0px 0px 0px;
  width: 1600px;
  height: 900px;
}

.bg_monster {
  background-image: url("/images/dungeoncardfight/backgrounds/dungeon_monster.png");
}

.bg_treasure {
  background-image: url("/images/dungeoncardfight/backgrounds/dungeon_treasure.png");
}

.bg_pathselect {
  background-image: url("/images/dungeoncardfight/backgrounds/dungeon_pathselect.png");
}

.bg_boss {
  background-image: url("/images/dungeoncardfight/backgrounds/dungeon_boss.png");
}

/* Window */

.window {
  position:absolute;
}

.titlebar {
  position: absolute;
  top: 0px;
  left: 0px;
  right: 0px;
  height: 30px;
  z-index: 6;
  padding-left: 5px;
  font-size: 15px;
  font-weight: bold;
  color: rgb(17, 17, 15);
}

.clientarea {
  position: absolute;
  top: 10px;
  left: 5px;
  bottom: 0px;
  right: 5px;
  z-index: 5;
  padding-top: 20px;
  display: flex;
  flex-direction: row;
  justify-content: center;
}


.clientarea button {
  right: 5px;
  bottom: -20px;
}

.frame {
  border-style: solid;
  border-width: 4px;
  border-radius: 10px;
  border-color: rgb(17, 17, 15);
  background-color: rgb(243, 242, 238);
  user-select: none;
  box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
}

.text {
  font-size: 15px;
  color: rgb(17, 17, 15);
}

.score {
  font-size: 30px;
  font-weight: bold;
  color: rgb(17, 17, 15);
  padding-top: 12px;
}


.hidden {
  visibility: hidden;
}


/* Specific Windows  */
.debug {
  top: 570px;
  left: 1370px;
  width: 250px;
  height: 300px;
}

.debugtext {
  width:220px;
}


.encounter {
  top: 280px;
  left: 710px;
  width: 300px;
  height: 200px;
}

.nextlevel{
  top: 280px;
  left: 710px;
  width: 300px;
  height: 200px;
}

/* Points row */
.pointsrow {
  top: 5px;
  width: 75px;
  height: 75px;
}
.actionpoints {
  left: 600px;
}
.healthpoints {
  left: 700px;
}
.defensepoints {
  left: 800px;
}
.shieldpoints {
  left: 900px;
}

/* Gear */
.gear {
  left: 5px;
  width: 220px;
  height: 110px;
}
.righthand {
  top: 5px;
}
.lefthand {
  top: 115px;
}
.armor {
  top: 225px;
}

.gear-table tr {
  vertical-align: top;
}

.gear-table img {
  width: 60px;
  height: 80px;
}

.gear-visual {
  width: 60px;
}

.gear-text {
  width: 140px;
}

/* Stats */
.stats {
  top: 350px;
  left: 35px;
  width: 170px;
  height: 220px;
}

.stats-name {
  width: 100px;
}

.stats-value {
  width: 50px;
}

/* Reward */
.reward {
  top: 350px;
  left: 600px;
  width: 400px;
  height: 300px;
}

.reward-option {
  position: relative;
  top: 0px;
  width: 165px;
  height: 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 3px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  transition: border 0.3s
}

.reward-option:hover {
  border: 3px solid #5d20c1;
}

/* Draft */

.draft {
  top: 350px;
  left: 300px;
  width: 985px;
  height: 370px;
}

.draft-card {
  border: 3px solid red;
}

.draft-card:hover {
  opacity: 0.75;
  cursor: pointer;
  border: 3px solid purple;
}

.draft-card-1 { left:10px; }
.draft-card-2 { left:200px; }
.draft-card-3 { left:390px; }
.draft-card-4 { left:580px; }
.draft-card-5 { left:770px; }
.draft-card-6 { left:960px; }


.draft-select {
  top: 50px;
  border: 3px solid #5d20c1;
}

.draft-points {
  position: absolute;
  display: flex;
  flex-direction: row;
  justify-content: center;
  left: 5px;
  bottom: -20px;
  height: 60px;
  width: 100px;
}


/* Level Up */
.levelup {
  top: 450px;
  left: 650px;
  width: 400px;
  height: 190px;
}

.levelup table {
  position: absolute;
  width:370px;
  top: 15px;
  left: 3px;
}

.levelup tr {
  height: 35px;
  vertical-align: top;
}

.levelup th {
  width: 75px;
}



.levelup button {
  position: relative;
  top: 1px;
  left: 0px;
  height: 25px;
  padding: 2px 10px;
  font-size: 10px;
}


/* hidden stats carriers */
.player {
  position: absolute;
  top: 0px;
  left: 0px;
  width: 1px;
  height: 1px;
}

.room {
  position: absolute;
  top: 0px;
  left: 0px;
  width: 1px;
  height: 1px;
}


/* Message */
.message {
  top: 400px;
  left: 550px;
  width: 500px;
  height: 100px;
  z-index: 10;
  font-size: 50px;
  text-align:center;
  color: rgb(17, 17, 15);
}

.fading {
  opacity: 1;
  transition: opacity 2s ease;
  visibility: hidden;
}

/* Zones */
.deck-zone {
  top: 610px;
  left: 100px;
}

.hand-zone {
  position: absolute;
  top: 650px;
  left: 300px;
  width: 181px;
  height: 250px;
  visibility: hidden;
}

.selector-zone {
  position: absolute;
  top: 300px;
  left: 1400px;
  background-color: rgba(255, 0, 0, 0);
  width: 179px;
  height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  visibility: hidden;
}

.selector-zone-text {
  font-size: 15px;
  color: rgb(235, 235, 235);
  z-index: 10;
  background-color: rgb(34, 34, 34, 1);
  border-style: solid;
  border-width: 5px;
  border-color: rgb(17, 17, 15);
}

.recycle-zone {
  position: absolute;
  top: 300px;
  left: 1400px;
  width: 179px;
  height: 250px;
  visibility: hidden;
}


/* Card stuff */

.deck {
  top: 610px;
  left: 35px;
}

.card {
  position: absolute;
  background-image: url("/images/dungeoncardfight/cards/cardback.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-color: rgba(255, 0, 0, 0);
  width: 185px;
  height: 256px;
  user-select: none;
  border-style: solid;
  border-width: 3px;
  border-radius: 10px;
  border-color: transparent;
  border-radius: 8px;
  transition: border 0.3s;
  z-index: 10;
}

.card:hover {
  border: 3px solid rgb(235, 235, 235);
  transform: translateY(-10px);
}

.card-symbol {
  position: absolute;
  top: 17px;
  left: 20px;
  width: 20px;
  height: 20px;
  z-index: 3;
}

.card-title {
  position: absolute;
  font-size: 20px;
  color: rgb(17, 17, 15);
  top: 11px;
  z-index: 3;
}

.card-name {
  left: 52px;
}

.card-cost {
  left: 145px;
}

.card-frame {
  position: absolute;
  top: 0px;
  left: 0px;
  width: 179px;
  height: 250px;
  z-index: 2;
}

.card-image {
  position: absolute;
  top: 15px;
  left: 12px;
  width: 160px;
  height: 115px;
  z-index: 1;
}

.card-text {
  position: absolute;
  font-size: 15px;
  color: rgb(17, 17, 15);
  top: 130px;
  left: 25px;
  width: 135px;
  height: 50px;
  z-index: 3;
}

.drop-area {
  position: absolute;
  top: 0px;
  left: 50px;
  width: 1500px;
  height: 700px;
  background-color: rgba(255, 0, 0, 0);
}

/* Enemies */

.enemy {
  position: absolute;
  background-image: url("/images/dungeoncardfight/enemies/enemy.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-color: rgba(235, 0, 0, 0);
  margin: 0 auto;
  display: flex;
  justify-content: center;
  top: 10px;
  left: 10px;
  visibility: hidden;
  border: 3px solid transparent;
  border-radius: 50px;
  transition: border 0.5s, width 0.10s, height 0.10s, left 0.10s;
  z-index: 8;
}

.normal {
  width: 156px;
  height: 206px;
}

.large {
  width: 206px;
  height: 206px;
}

.enemy:hover {
  border: 3px solid rgb(235, 235, 235);
}

.enemy-target:hover {
  border: 3px solid rgb(165, 5, 5);
  cursor: crosshair;
}

.enemy-position-1-1 {
  position: absolute;
  top: 350px;
  left: 750px;
  visibility: hidden;
}
.enemy-position-2-1 {
  position: absolute;
  top: 350px;
  left: 650px;
  visibility: hidden;
}
.enemy-position-2-2 {
  position: absolute;
  top: 350px;
  left: 850px;
  visibility: hidden;
}
.enemy-position-3-1 {
  position: absolute;
  top: 350px;
  left: 620px;
  visibility: hidden;
}

.enemy-position-3-2 {
  position: absolute;
  top: 340px;
  left: 750px;
  visibility: hidden;
}

.enemy-position-3-3 {
  position: absolute;
  top: 350px;
  left: 870px;
  visibility: hidden;
}

.enemyhealth {
  position: absolute;
  bottom: 0px;
  border-style: solid;
  border-width: 1px;
  border-color: rgb(17, 17, 15);
  background-color: rgba(43, 43, 38, 0.5);
  color: rgb(243, 243, 231);
}
  
/* Other GUI stuff */
.map {
  background-image: url('/images/dungeoncardfight/map.png');
  display: flex;
  flex-direction: column;
  justify-content: center;
  top: 5px;
  left: 1450px;
  width: 146px;
  height: 145px;
  color: rgb(235, 235, 235);
}

.map_level {
  text-align:center;
  font-size: 30px;
}

.map_room {
  text-align: center;
  font-size: 15px;
}

.endturn {
  position:relative;
  top: 830px;
  left: 1460px;
}


/*  Animation stuff */
.effect-damage {
  text-shadow: -1px 0px 0px black, 1px 0px 0px black, 0px -1px 0px black, 0px 1px 0px black;
  color: rgb(243, 242, 238);
  position: absolute;
  width: 100px;
  height: 100px;
  font-size: 80px;
  z-index: 20;
}

.effect-slash {
  position: absolute;
  opacity: 1;
  top: 450px;
  left: 1000px;
  transition: all 0.3s ease;
  z-index: 20;
}

.effect-pain {
  position: absolute;
  opacity: 0.15;
  top: 0px;
  left: 0px;
  width: 100%;
  height: 100%;
  z-index: 19;
  transition: all 1s ease;
}


button {
  position: absolute;
  padding: 10px 20px;
  font-size: 20px;
  background-color: rgb(104, 65, 164);
  color: white;
  border: 4px solid rgb(17, 17, 15);
  border-radius: 10px;
  transition: background-color 0.3s ease;
  margin-right: 3px;
  margin-left: 3px;
}

 button:hover {
    background-color: rgb(54, 33, 86);
}
