body {
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    height: 100vh;
    background-image: url('items/rise_arkaplan.jpg'); /* Arka plan resmi */
    background-size: cover;
    background-position: center;
}

#main-container {
    position: absolute;
    top: 15%;
    left: 15%;
    width: 587px; /* Genişlik ve yükseklik ayarlamaları yapılabilir */
    height: 700px; /* Genişlik ve yükseklik ayarlamaları yapılabilir */
    border: 4px solid #0D1216; /* Kenarlık rengi gri */
    background-color: rgba(0, 0, 0, 0.5); /* Şeffaf arka plan */
    display: flex;
    flex-direction: column;
    padding: 20px;
    box-sizing: border-box;
}

#chest-exchange {
    position: relative;
    width: 100%;
    height: 100%;
}

#top-section {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 20px; /* Bloklar arası boşluk */
}

.block {
    margin-top: 30px;
    width: 80px;
    height: 80px;
    border: 2px solid #0D1216; /* Kenarlık rengi gri */
    background-color: rgba(51, 51, 51, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

#buttons {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
}

button {
    padding: 10px 20px;
    font-size: 18px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    color: #ffffff;
}

#confirm {
    background-color: #0D141A; /* Açık gri mavi tonlarda */
}

#cancel {
    background-color: #46120E; /* Kırmızı */
}

#inventory {
    display: grid;
    grid-template-columns: repeat(8, 64px); /* Slot boyutlarını ayarlayın */
    grid-gap: 5px;
}

.slot {
    width: 64px;
    height: 64px;
    border: 2px solid #0D1216; /* Kenarlık rengi gri */
    background-color: rgba(51, 51, 51, 0.8);
    display: flex;
    align-items: center; 
    justify-content: center;
    box-sizing: border-box;
}

.crystal-container, .chest-container {
    width: 64px;
    height: 64px;
    border: 2px solid #0D1216; /* Kenarlık rengi gri */
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(68, 68, 68, 0.8);
    box-sizing: border-box;
    cursor: grab;
}

.crystal-container.dragging, .chest-container.dragging {
    opacity: 0.5;
}

.crystal, .chest {
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none; /* Bu satır yeni eklendi */
}

.crystal-container .tooltip, .item-container .tooltip, .chest-container .tooltip {
    display: none;
    position: absolute;
    background-color: rgba(0, 0, 0, 0.8);
    color: #ffffff;
    text-align: center;
    border-radius: 5px;
    padding: 5px;
    z-index: 1;
}

.crystal-container:hover .tooltip, .item-container:hover .tooltip, .chest-container:hover .tooltip {
    display: block;
}



