* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;

    width: 100%;
    height: 100%;
}

body {
    background-color: #222;

    display: flex;
    justify-content: center;
    align-items: center;

    font-family: Arial, Helvetica, sans-serif;
}

/* =========================
   GAME WINDOW
   ========================= */


#game {
    background-color: lightgrey;

    width: 1200px;
    height: 700px;

    position: relative;

    overflow: hidden;
}

#restart_button {
    padding: 12px 20px;

    font-size: 18px;
    font-weight: bold;

    cursor: pointer;

    color: darkred;
}

/* ------------------
    Overlay Menu
------------------- */

#overlay {
    position: absolute;
    inset: 0;

    display: flex;
    justify-content: center;
    align-items: center;

    background-color: rgba(0, 0, 0, 0.6);

    z-index: 100;
}

#overlay.hidden {
    display: none;
}

#menu {
    background-color: lightgrey;
    border: 3px solid black;
    padding: 30px;
    text-align: center;
}

#reward_cards {
    display: flex;
    justify-content: center;
    align-items: center;

    gap: 20px;
}



/* =========================
   ENEMIES
   ========================= */

#enemies {
    position: absolute;

    margin: 30px auto 0 auto;

    width: 90%;
    height: 40%;
    
    left: 5%;

    display: flex;
    justify-content: center;
    align-items: center;

    gap: 30px;

    background-color: pink;
}

.enemy {
    width: 180px;
    height: 220px;

    border: 3px solid black;
    border-radius: 10px;

    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;

    background-color: lightcoral;
}

.enemy p {
    padding: 3px;
    margin: 0px;
}

.enemy.targetable {
    cursor: pointer;
}

.enemy.targetable:hover {
    transform: translateY(-10px);
    border-color: gold;
}

/* Enemy Status */

.enemy_status {
    margin: 5px;
    width: 95%;
    height: 40%;

    flex-grow: 1;

    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;

    border-radius: 5px;
    background-color:rgba(255, 255, 255, 0.4);
}

.enemy_status p {
    font-size: 10px;

}

.enemy_name {
    text-align: center;
    font-weight: bold;
}

.enemy_hp {
    text-align: center;
}


/* =========================
   HAND
   ========================= */

#hand {
    position: absolute;

    bottom: 20px;
    left: 2.5%;

    padding-bottom: 10px;

    width: 95%;
    height: 230px;

    display: flex;
    justify-content: center;
    align-items: flex-end;

    gap: 10px;

    background-color: grey;
}

.card {
    width: 130px;
    height: 190px;

    box-sizing: border-box;
    text-align: left;

    border: 3px solid black;
    border-radius: 10px;

    padding: 5px;

    cursor: pointer;

    background-color: lightblue;

    transition: transform 0.15s ease;
}

.card:hover {
    transform: translateY(-10px);
}

.card.selected {
    transform: translateY(-20px);
    border-color: gold;
}

.card_cost {
    display: inline-block;

    text-align: center;
    background-color:rgba(0, 0, 0, 0.4);
    border: 2px solid #222;
    border-radius: 25px;

    width: 25px;
    height: 25px;
    line-height: 25px;

    padding: 0px;
    margin: 3px 3px 3px 3px;
    color: lightskyblue;
}

.card_title {
    margin: 0 0 10px 0;

    text-align: center;

    font-size: 18px;
    font-weight: bold;
}

.card_description {
    margin: 0;

    text-align: center;
    font-size: 14px;
    line-height: 1.3;
}

/* =========================
   PLAYER UI
   ========================= */

#player_stats {
    position: absolute;

    left: 20px;
    bottom: 260px;

    display: flex;
    flex-direction: column;
    gap: 6px;

    padding: 12px;

    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 8px;
}

#player_stats p {
    margin: 0;

    font-weight: bold;
    font-size: 20px;
}

#hp {
    color: red;
}

#block {
    color: silver;
}

#energy {
    color: cyan;
}

#end_turn {
    position: absolute;

    right: 20px;
    bottom: 285px;

    padding: 12px 20px;

    font-size: 18px;
    font-weight: bold;

    cursor: pointer;

    color: goldenrod;
}

#player_status {
    position: absolute;

    left: 200px;
    bottom: 260px;

    display: flex;
    flex-direction: column;
    gap: 6px;

    padding: 12px;

    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 8px;
}

#player_status p {
    margin: 0;

    color: silver;

    font-weight: bold;
    font-size: 20px;
}

/* -------------
    Card Piles
-------------- */

#deck_stats {
    position: absolute;

    left: 400px;
    bottom: 260px;

    display: flex;
    flex-direction: column;
    gap: 6px;

    padding: 12px;

    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 8px;
}

#deck_stats p {
    margin: 0;

    color: silver;

    font-weight: bold;
    font-size: 20px;
}