/* kõike hõlmav */

/* klassid */
/* Navigation bar */
.navbar {
    display: flex;
    justify-content: space-around;
    text-align: center;
    background: #003e21;
}

.navbar a {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    font-weight: bold;
    text-shadow: 1px 1px black;
    padding: 15px 20px;
    color: #DCBB57;
    text-decoration: none;
    transition: 0.3s;
    border: 4px outset #dcbb57;
    border-radius: 10px;
    margin: 5px;
}

.navbar a:hover {
    background-color: rgba(1, 128, 96, 0.5);
}
/* igast kastid */
.kast{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
.kast2{
    background: #003e21;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    text-align: center;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    align-items: flex-start;
}
.kast2 h2{
    font-size: 24px;
    margin-bottom: 10px;
    color: yellow;
}
.kast2 p{
    font-size: 16px;
    margin: 0;
    color: #DCBB57;
}
.kast2 ul li{
    color: #DCBB57;
    list-style: none;
    text-align: left;
    padding: 5px;
    margin-left: 5px;
}
/* sidebarisk vajalik */
.container{
    display: flex;
    height: 100vh;
}
.sidebar {
    flex: 0 0 250px;
    background: #003e21;
    padding: 15px;
    border: solid 5px;
    color: #DCBB57;
}
.sidebar h1{
    background: #003e21;
    color: #DCBB57;
    font-size: 110%;
    text-align: center;
    font-variant-caps: all-petite-caps;
}
.sidebar p {
    color: #DCBB57;
    font-size: 18px;
    background: #003e21;
    font-weight: bold;
    font-variant: all-small-caps;
}
.content {
    flex: 1;
    padding: 20px;
}
/* eluriba */
.health-bar{
    width: 250px;
    height: 20px;
    background-color: #cccccc;
    border: 1px solid #000;
    color: #DCBB57;
}
.health-level{
    height: 100%;
    background-color: crimson;
    text-align: center;
    color: #DCBB57;

}
/* kogemuse riba */
.exp-bar {
    width: 250px;
    height: 20px;
    background-color: #ccc;
    position: relative;
}
.exp-fill {
    width: 0;
    height: 100%;
    background-color: #4caf50;
    text-align: center;
    line-height: 20px;
    color: yellow;
}
/* MUU */
.pea {
    text-align: center;
    font-size: 60px;
}
/* nupud */
.nupp{
    display: inline-block;
    font-size: 18px;
    background: #333;
    color: #ffffff;
    padding: 13px 20px;
    border: none;
    cursor: pointer;
}
.nupp:hover{
    background: crimson;
    color: black;
}
.skillnupp {
    display: inline-block;
    font-size: 12px;
    font-weight: bold;
    background-color: darkred;
    color: black;
}
.tulemus h1 {
    background-color: black;
    border: solid;
    border-color: crimson;
    color: crimson;
    font-size: 40px;
    text-align: center;
}
.tegelane{
    display: flex;
    border: dashed;
    color: crimson;
    justify-content: center;

}
body{
    background: url(img/taust.jpg) no-repeat center center/cover;
}
/* headerid */
h1{
    color: #ffffff;
    padding-top: 10px;
}

/* erinevad sektsioonid */

/* klassid */
.bg-dark{
    background: #333333;
}
/* inventory */
.image-box {
    width: 100px; /* Set the width of each box */
    height: 100px; /* Set the height of each box */
    margin: 10px; /* Add some spacing between boxes */
    display: inline-block; /* Display boxes in a line */
    background-image: url("./img/slot.jpg") ;
    background-size: cover;
    padding: 10px;
}

.image-box img {
    max-width: 100%; /* Make sure the image fits within the box */
    max-height: 100%; /* Make sure the image fits within the box */
}
.equipment-slots {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 20px; /* Adjust the gap between slots */
}

.equipment-slot {
    border: 2px dashed yellow;
    padding: 20px;
    margin-bottom: 20px;
    text-align: center;
    width: 200px; /* Adjust the width of equipment slots */
    height: 100px; /* Adjust the height of equipment slots */
}

#head-slot {
    order: 1;
}
#chest-slot {
    order: 2;
}
#right-hand-slot {
    order: 3;
}
#left-hand-slot {
    order: 4;
}
#finger-slot1 {
    order: 5;
}
#finger-slot2 {
    order: 6;
}
#legs-slot {
    order: 7;
}
#boots-slot {
    order: 8;
}
/* items */

.draggable-item {
    width: 100%;
    height: 100%;
    cursor: pointer;
    user-select: none; /* Disable text selection during drag */
}