
* {
    text-shadow: 
        -1px -1px 0 #000,  
         1px -1px 0 #000,
        -1px  1px 0 #000,
         1px  1px 0 #000; /* Add this */
}

/* Ensure the body takes the full viewport height */
body {
    margin: 0;
    padding: 0;
    font-family: 'Garamond', serif;
    color: #e0c097;
    background-color: #2c2c2c;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 75%;
}

/* Add a background image with a blur effect */
body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('img/body_background_image_2.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(5px); /* Adjust the blur intensity as needed */
    z-index: -1; /* Ensures the content stays above the background */
}

/* Update the game-container styling */
#game-container {
    width: 100%;
    max-width: 1000px; /* Limit width for better readability */
    padding: 10px;
    box-sizing: border-box;
    background-color: rgba(0, 0, 0, 0.8);
    border: 2px solid #bfa760;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

/* Character Container Styling */
#character-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
    width: 25%;
    height: 25%;
    padding: 20px;
    box-sizing: border-box;
}

#navigation {
    width: 100%;
    margin-bottom: 15px;
    background-color: rgba(51, 51, 51, 0.8);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    grid-template-columns: repeat(7, 1fr);
}

#navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

#navigation li {
    margin: 0;
}

#navigation a {
    color: #e0c097; /* Light color for good contrast */
    padding: 10px 15px;
    text-decoration: none;
    font-size: 16px;
    transition: background-color 0.3s, transform 0.2s;
}

#navigation a:hover {
    background-color: #555; /* Slightly lighter background on hover */
    transform: scale(1.05); /* Enlarge slightly on hover */
}


/* Equipment Grid Layout */
.equipment-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 10px;
    margin-top: 25px;
    margin-left: 25px;
    margin-right: 25px;
    margin-bottom: 15px;
}

/* Equipment Slot Styling */
.equipment-slot {
    width: 100px;
    height: 100px;
    border: 1px solid #bfa760;
    background-color: rgba(224, 192, 151, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 5px;
    color: #e0c097;
    font-size: 14px;
    text-align: center;
    transition: background-color 0.3s, transform 0.2s;
}

/* Hover effect for Equipment Slots */
.equipment-slot:hover {
    background-color: #666;
    transform: scale(1.05);
}

/* Character Stats Display */
#character-stats {
    margin-top: 20px;
    padding: 10px;
    background-color: rgba(51, 51, 51, 0.3);
    border-radius: 10px;
    box-shadow: 0 12px 18px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: row;
    align-items: center;
}

/* Stats Items */
.stat-item {
    margin: 5px 0;
    display: flex;
    justify-content: space-between;
    width: 100%;
}

/* Labels and Values */
.stat-label {
    font-weight: bold;
    color: #bfa760;
}

.stat-value {
    font-weight: normal;
    color: #e0c097;
}

/* Character Display Section */
#character-display {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    width: 100%;
    gap: 30px;
}

#character-image {
    max-width: 150px;
    max-height: 150px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #bfa760;
}

#background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1; /* Ensures the video is behind other content */
}


/* Adjust padding specifically for mobile screens */
@media screen and (max-width: 393px) {
    #game-container {
        padding: 5px;
        width: 100vw;
        height: 100vh;
        margin: 0;
    }
    
    #battle-log {
        height: 128px !important;
        overflow-y: auto;
        border: 1px solid #bfa760;
        margin-top: 20px;
        padding: 5px;
        background-color: #222;
        transition: all 0.5s ease-in-out;
        scroll-behavior: smooth;
        opacity: 0.9;
    }

    #background-video {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        z-index: -1; /* Ensures the video is behind other content */
    }

    #dev-updates-text {
        font-size: 10px;
    }

    .stats-container {
        padding: 5px;
        height: 50%;
    }
 
    .equipment-slot {
        width: 80px;
        height: 80px;
        font-size: 10px;
    }

    button {
        font-size: 10px;
        padding: 10px 20px;
    }

    .stat-item {
        font-size: 10px;
    }

    .character-portrait {
        width: 100px;
        height: 100px;
    }

    .equipment-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(3, 1fr);
        gap: 10px;
        justify-content: center;
        margin-top: 25px;
        margin-left: 25px;
    }
    
    #hometown {
        text-align: center;
        padding: 20px;
        /* padding-bottom: 20px; */
        background-color: rgba(0, 0, 0, 0.8);
        background-size: cover;
        background-position: center;
        width: 100vw;
        height: 100vh;
        box-sizing: border-box;
        position: relative;
        overflow: auto;
        margin: 0;
    }
    
    #dungeon-content-1, #dungeon-content-2 {
        color: #ffffff;
        border: 2px solid #444;
        border-radius: 10px;
        padding: 20px;
        margin: 20px auto;
        max-width: 800px;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
        overflow-y: auto;
        display: flex;
        flex-direction: column;
    }

    #character-display {
        justify-content: center;
        align-items: center;
        margin-top: 20px;
        width: 100%;
        gap: 30px;
        display: flex;
        flex-direction: column;
    }

    #inventory-grid, .grid {
        display: grid;
        grid-template-columns: repeat(3, 80px) !important;
        grid-template-rows: repeat(7, 80px);
        gap: 5px;
        justify-content: center;
        margin-top: 20px;
    }

    #navigation {
        width: 100%;
        margin-bottom: 15px;
        background-color: rgba(51, 51, 51, 0.8);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
        position: fixed;
        top: 0;
        left: 0;
        z-index: 1000;
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: repeat(2, 1fr);
    }

}


/* Additional styles for other elements */
#try-again-container {
    text-align: center;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.8);
    color: #e0c097;
    border: 3px solid #bfa760;
    border-radius: 10px;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
}

.gold-container-shop {
    width: 100px;
    height: 50px;
    text-align: center;
    padding: 5px;
    background-color: #444;
    color: #e0c097;
    font-size: 16px;
    border: 1px solid #bfa760;
    margin-top: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: auto;
}

.dragging {
    opacity: 0.5;
}

.drag-over {
    border: 2px dashed #ccc;
}


.gold-container{
    width: 100px;
    height: 50px;
    text-align: center;
    padding: 5px;
    background-color: #444;
    color: #e0c097;
    font-size: 16px;
    border: 1px solid #bfa760;
    margin-top: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#character-selection {
    border-radius: 10px;
    padding: 20px;
    max-width: 350px;
    margin: 20px auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    text-align: center;
}


.character-options {
    display: flex;
    justify-content: center;
    gap: 5px;
}

.character-option {
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.character-option:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.character-portrait {
    width: 120px; /* Größere Portraits für bessere Sichtbarkeit */
    height: auto;
    border-radius: 8px; /* Mehr Abrundung für ein weicheres Design */
    margin-bottom: 10px;
    border: 2px solid #bfa760; /* Goldene Umrandung */
}

.character-portrait:hover {
    border: 2px solid #bfa760;
    transform: scale(1.05);
}

.character-name {
    margin-top: 10px;
    font-size: 16px;
    color: #e0c097;
}

.class-options {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
}

.class-option {
    padding: 10px 20px;
    font-size: 16px;
    background-color: #555;
    border: 2px solid #bfa760;
    color: #e0c097;
    cursor: pointer;
    transition: background-color 0.3s, box-shadow 0.3s;
    border-radius: 5px; /* Abrundung für die Schaltflächen */
}

.class-option:hover {
    background-color: #666;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); /* Schatten bei Hover */
}

#choose-class-button, #confirm-name-button {
    padding: 10px 20px;
    font-size: 16px;
    background-color: #555;
    border: 2px solid #bfa760;
    color: #e0c097;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.3s, box-shadow 0.3s;
    border-radius: 5px;
}

#choose-class-button:hover, #confirm-name-button:hover {
    background-color: #666;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

#class-stats {
    margin-top: 20px;
    text-align: left;
    background-color: #444;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

#class-stats p {
    margin: 5px 0;
    color: #e0c097;
}

/* Glowing border for Warrior (Red) */
#class-stats.warrior {
    background-image: url('img/char_choose/warriorCharChoose.png');
    background-size: cover;
    animation: glow-red 3s infinite alternate;
}

@keyframes glow-red {
    0% {
        box-shadow: 0 0 10px lightred, 0 0 20px lightred, 0 0 30px lightred, 0 0 40px lightred;
    }
    33% {
        box-shadow: 0 0 15px white, 0 0 25px white, 0 0 35px white, 0 0 45px white;
    }
    66% {
        box-shadow: 0 0 15px crimson, 0 0 25px crimson, 0 0 35px crimson, 0 0 45px crimson;
    }
    100% {
        box-shadow: 0 0 10px lightred, 0 0 20px lightred, 0 0 30px lightred, 0 0 40px lightred;
    }
}

/* Glowing border for Archer (Green, Yellow) */
#class-stats.archer {
    background-image: url('img/char_choose/archerCharChoose.png');
    background-size: cover;
    border: 5px ;
    animation: glow-green-yellow 3s infinite alternate;
}

@keyframes glow-green-yellow {
    0% {
        box-shadow: 0 0 10px lightgreen, 0 0 20px lightgreen, 0 0 30px lightgreen, 0 0 40px lightgreen;
    }
    33% {
        box-shadow: 0 0 15px white, 0 0 25px white, 0 0 35px white, 0 0 45px white;
    }
    66% {
        box-shadow: 0 0 15px lightyellow, 0 0 25px lightyellow, 0 0 35px lightyellow, 0 0 45px lightyellow;
    }
    100% {
        box-shadow: 0 0 10px lightgreen, 0 0 20px lightgreen, 0 0 30px lightgreen, 0 0 40px lightgreen;
    }
}

/* Glowing border for Mage (Light Purple, White, Pink) */
#class-stats.mage {
    background-image: url('img/char_choose/mageCharChoose.png');
    background-size: cover;
    border: 5px solid lightpurple;
    animation: glow-purple-white-pink 3s infinite alternate;
}

@keyframes glow-purple-white-pink {
    0% {
        box-shadow: 0 0 10px lightpurple, 0 0 20px lightpurple, 0 0 30px lightpurple, 0 0 40px lightpurple;
    }
    33% {
        box-shadow: 0 0 15px white, 0 0 25px white, 0 0 35px white, 0 0 45px white;
    }
    66% {
        box-shadow: 0 0 15px pink, 0 0 25px pink, 0 0 35px pink, 0 0 45px pink;
    }
    100% {
        box-shadow: 0 0 10px lightpurple, 0 0 20px lightpurple, 0 0 30px lightpurple, 0 0 40px lightpurple;
    }
}




#character-name-section {
    margin-top: 20px;
    text-align: center;
}

#character-name-input {
    padding: 10px;
    font-size: 16px;
    border: 2px solid #bfa760;
    border-radius: 5px;
    background-color: #555;
    color: #e0c097;
    width: 80%;
    box-sizing: border-box;
}

#hometown {
    text-align: center;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.8);
    background-size: cover;
    background-position: center;
    width: 100vw;
    height: 100vh;
    box-sizing: border-box;
    position: relative;
    overflow: auto;
    margin: 0;
}

.hometown-option {
    background-color: #555;
    border: 2px solid #bfa760;
    padding: 10px 15px;
    margin: 5px;
    color: #e0c097;
    cursor: pointer;
    transition: background-color 0.3s, box-shadow 0.3s;
    border-radius: 5px;
}

.hometown-option:hover {
    background-color: #666;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

#fight-ui button {
    padding: 10px 20px;
    background-color: #555;
    border: 2px solid #bfa760;
    color: #e0c097;
    cursor: pointer;
    margin-top: 10px;
    margin: 0 5px;
}

#fight-ui button:hover {
    background-color: #666;
}

.button-group {
    display: flex;
    justify-content: center;
    gap: 2px;
}

#inventory-container {
    text-align: center;
    border: 3px solid #bfa760;
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.9);
    width: 90vw;
    height: 80vh;
    box-sizing: border-box;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 10px;
    overflow-y: auto;
    z-index: 1000;
}

/* Close button styling */
#close-inventory-button {
    padding: 10px 20px;
    background-color: #555;
    border: 2px solid #bfa760;
    color: #e0c097;
    cursor: pointer;
    border-radius: 8px;
    margin-top: 10px;
    width: 100%;
    max-width: 200px;
}

#close-inventory-button:hover {
    background-color: #666;
}


.inventory-slot:hover {
    background-color: #666;
    color: #e0c097;
}

.item-image {
    width: 85%;
    height: 85%;
    object-fit: cover;
    cursor: pointer;
}

.item-image:hover {
    border: 2px solid #bfa760;
}

#player-image, #enemy-image {
    max-width: 150px;
    max-height: 150px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #bfa760;
    margin-bottom: 10px;
}

.health-bar {
    width: 100%;
    margin: 10px 0;
    background-color: #555;
    border: 1px solid #bfa760;
    overflow: hidden;
}

.health {
    height: 20px;
    background-color: rgb(131, 14, 14);
    transition: width 2s linear; /* Smooth transition */
    color: white;
}

button {
    transition: background-color 0.3s, transform 0.2s;
}

button:hover {
    background-color: #666;
    transform: scale(1.05);
}

#battle-log {
    height: 150px;
    overflow-y: auto;
    border: 1px solid #bfa760;
    margin-top: 20px;
    padding: 10px;
    background-color: #222;
    transition: all 0.5s ease-in-out;
    scroll-behavior: smooth;
    opacity: 0.9;
}

#attack-button, #flee-button, #return-hometown-button, #fight-again-button, #inventory-button {
    padding: 8px 14px;
    background-color: rgb(85, 85, 85, 0.9);
    border: 2px solid rgb(191, 167, 96);
    color: #e0c097;
    cursor: pointer;
    margin-top: 10px;
}

#attack-button:hover, #flee-button:hover, #return-hometown-button:hover, #fight-again-button:hover {
    background-color: #666;
}

@keyframes level-up {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.level-up {
    position: fixed;
    top: 50%;
    left: 50%;
    color: yellow; /* Darker text color for contrast */
    padding: 15px 30px; /* Adjusted padding for a slimmer shape */
    font-size: 28px;
    font-family: 'Helvetica Neue', Arial, sans-serif; /* Sleek, modern font */
    opacity: 0;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
    letter-spacing: 3px; /* Slightly increased letter spacing for readability */
}

.level-up.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    animation: level-up 1s ease-out;
}

/* Optional: Keyframe animation for the level-up effect */
@keyframes level-up {
    0% {
        transform: translate(-50%, -50%) scale(0.7);
        opacity: 0;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

@keyframes glow {
    0% { box-shadow: 0 0 10px rgba(255, 255, 0, 0.5); }
    50% { box-shadow: 0 0 20px rgba(255, 255, 0, 1); }
    100% { box-shadow: 0 0 10px rgba(255, 255, 0, 0.5); }
}

.glow {
    animation: glow 3s infinite;
}

@keyframes shake {
    0% { transform: translate(1px, 1px) rotate(0deg); }
    10% { transform: translate(-1px, -2px) rotate(-1deg); }
    20% { transform: translate(-3px, 0px) rotate(1deg); }
    30% { transform: translate(3px, 2px) rotate(0deg); }
    40% { transform: translate(1px, -1px) rotate(1deg); }
    50% { transform: translate(-1px, 2px) rotate(-1deg); }
    60% { transform: translate(-3px, 1px) rotate(0deg); }
    70% { transform: translate(3px, 1px) rotate(-1deg); }
    80% { transform: translate(-1px, -1px) rotate(1deg); }
    90% { transform: translate(1px, 2px) rotate(0deg); }
    100% { transform: translate(1px, -2px) rotate(-1deg); }
}

.shake {
    animation: shake 0.5s;
    animation-iteration-count: 1;
}

.notification {
    position: fixed;
    bottom: 10px;
    left: 10px;
    background-color: #333;
    color: #e0c097;
    padding: 10px;
    border: 1px solid #bfa760;
    border-radius: 5px;
    opacity: 0;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

.notification.show {
    opacity: 1;
    transform: translateY(0);
}

.inventory-slot, .shop-slot {
    width: 70px;
    height: 70px;
    border: 2px solid #bfa760;
    border-radius: 8px;
    background-color: rgba(224, 192, 151, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 5px;
    transition: background-color 0.3s, transform 0.2s;
}

.inventory-slot:hover {
    background-color: #666;
    transform: scale(1.05);
}

.inventory-slot:hover, .shop-slot:hover {
    background-color: #555;
    color: #e0c097;
}

.stats-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    background-color: #222;
    border: 2px solid #bfa760;
    border-radius: 10px;
    width: 300px;
    margin: 10px auto;
    color: #e0c097;
    font-family: 'Arial', sans-serif;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

/* Neuer Stil für player-stats und enemy-stats */
.stats-wrapper {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

#player-stats {
    order: 1;
    margin-right: 20px; /* Abstand zwischen Spieler- und Gegnerstatistik */
    background-color: rgba(41, 23, 23, 0.5);
}

#enemy-stats {
    order: 2;
    background-color: rgba(41, 23, 23, 0.5);
}

/* Zusätzliche Stile zur Feinabstimmung */
#player-info, #enemy-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 10px;
}

#player-stats .stats-container, #enemy-stats .stats-container {
    margin: 0; /* Kein zusätzlicher Abstand innerhalb der Wrapper */
}


/* Stile für enemy-option angepasst */
.enemy-option {
    padding: 10px 20px;
    font-size: 12px;
    background-color: rgb(85, 85, 85, 0.7);
    border: 2px solid rgb(191, 167, 96, 0.8);
    color: #e0c097;
    cursor: pointer;
    margin-top: 10px;
}

.enemy-option:hover {
    background-color: #666;
}

#inventory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    gap: 5px;
    justify-content: center;
    padding: 10px 0;
}

/* Grid Layouts */
#inventory-grid, .grid {
    display: grid;
    grid-template-columns: repeat(8, 80px);
    grid-template-rows: repeat(7, 80px);
    gap: 5px;
    justify-content: center;
    margin-top: 20px;
}

/* Equipment Grid Layout */
.equipment-grid {
    display: grid;
    grid-template-columns: repeat(3, auto);
    grid-template-rows: repeat(3, auto);
    gap: 10px;
    justify-content: center;
    margin-top: 25px;
    margin-left: 25px;
}

#dev-updates-container {
    position: fixed;
    top: 20%;
    left: 50%;
    transform: translate(-50%, -20%);
    background-color: rgba(0, 0, 0, 0.9);
    color: #e0c097;
    padding: 20px;
    border: 3px solid #bfa760;
    border-radius: 10px;
    width: 200px;
    z-index: 1000;
    box-shadow: 0 0 20px #bfa760;
}

#dev-updates-content {
    text-align: center;
}

#close-dev-updates-button {
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #555;
    border: 2px solid #bfa760;
    color: #e0c097;
    cursor: pointer;
}

#close-dev-updates-button:hover {
    background-color: #666;
}

.critical {
    color: yellow;
    font-weight: bold;
    animation: crit-glow 2s infinite;
}

@keyframes crit-glow {
    0% { text-shadow: 0 0 5px rgb(202, 137, 15), 0 0 10px white; }
    50% { text-shadow: 0 0 15px rgb(219, 208, 53), 0 0 20px white; }
    100% { text-shadow: 0 0 5px rgb(219, 208, 53), 0 0 10px white; }
}

.block {
    color: rgb(24, 185, 235);
    font-weight: bold;
    text-shadow: 0 0 5px blue, 0 0 10px white; /* Blauer Glow und weißer Rahmen */
    animation: blue-glow 2s infinite;
    display: inline-block; /* Block-Element für korrekten Rahmen */
}

@keyframes blue-glow {
    0% { text-shadow: 0 0 5px rgb(24, 185, 235), 0 0 10px white; }
    50% { text-shadow: 0 0 15px blue, 0 0 20px white; }
    100% { text-shadow: 0 0 5px blue, 0 0 10px white; }
}

.damage {
    color: white;
    font-weight: bold;
}

.damage-blocked {
    color: green;
    font-weight: bold;
    animation: green-glow 2s infinite;

}

.heal {
    color: green;
    font-weight: bold;
    animation: green-glow 2s infinite;
}

@keyframes green-glow {
    0% { text-shadow: 0 0 5px rgb(106, 221, 106); }
    50% { text-shadow: 0 0 15px green; }
    100% { text-shadow: 0 0 5px green; }
}

.player-name {
    color: pink;
    font-weight: bold;
    animation: pink-glow 2s infinite;
}

@keyframes pink-glow {
    0% { text-shadow: 0 0 5px rgb(87, 0, 87); }
    50% { text-shadow: 0 0 15px rgb(94, 15, 94); }
    100% { text-shadow: 0 0 5px rgb(223, 32, 223); }
}

.enemy-easy {
    color: lightcoral;
    font-weight: bold;
    animation: lightred-glow 2s infinite;
}

@keyframes lightred-glow {
    0% { text-shadow: 0 0 5px rgb(199, 81, 81); }
    50% { text-shadow: 0 0 15px lightcoral; }
    100% { text-shadow: 0 0 5px lightcoral; }
}

.enemy-medium {
    color: red;
    font-weight: bold;
    animation: red-glow 2s infinite;
}

@keyframes red-glow {
    0% { text-shadow: 0 0 5px red; }
    50% { text-shadow: 0 0 15px rgb(124, 47, 47); }
    100% { text-shadow: 0 0 5px red; }
}

.enemy-hard {
    color: darkred;
    font-weight: bold;
    animation: darkred-glow 2s infinite;
}

@keyframes darkred-glow {
    0% { text-shadow: 0 0 5px darkred; }
    50% { text-shadow: 0 0 15px darkred; }
    100% { text-shadow: 0 0 5px rgb(48, 3, 3); }
}

.defeated {
    color: white;
    font-weight: bold;
}

.bold-white {
    color: white;
    font-weight: bold;
}

.gold-glow {
    color: gold;
    font-weight: bold;
    animation: gold-glow 2s infinite;
}

@keyframes gold-glow {
    0% { text-shadow: 0 0 5px gold; }
    50% { text-shadow: 0 0 15px gold; }
    100% { text-shadow: 0 0 5px gold; }
}

.common {
    color: grey;
    font-weight: bold;
}

.rare {
    color: green;
    font-weight: bold;
}

.ultra-rare {
    color: blue;
    font-weight: bold;
}

.epic {
    color: purple;
    font-weight: bold;
    animation: purple-glow 2s infinite;
}

@keyframes purple-glow {
    0% { text-shadow: 0 0 5px purple; }
    50% { text-shadow: 0 0 15px purple; }
    100% { text-shadow: 0 0 5px purple; }
}

.legendary {
    color: orange;
    font-weight: bold;
    animation: gold-glow 2s infinite;
}

@keyframes gold-glow {
    0% { text-shadow: 0 0 5px gold; }
    50% { text-shadow: 0 0 15px gold; }
    100% { text-shadow: 0 0 5px gold; }
}

.yellow-pulse {
    color: yellow;
    font-weight: bold;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% { text-shadow: 0 0 5px yellow; }
    50% { text-shadow: 0 0 15px yellow; }
    100% { text-shadow: 0 0 5px yellow; }
}

.glow {
    animation: glow-animation 5s ease-in-out;
}

@keyframes glow-animation {
    0% { text-shadow: 0 0 10px white; }
    50% { text-shadow: 0 0 20px white; }
    100% { text-shadow: 0 0 10px white; }
}

.action-button {
    background-color: #444;
    color: white;
    border: 2px solid #888;
    padding: 10px 20px;
    margin: 10px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.action-button:hover {
    background-color: #666;
}

.action-button:active {
    background-color: #222;
}

#load-game-container {
    display: flex;
    justify-content: center;
    margin-top: 20px; /* Abstand nach oben für etwas Luft */
}

#load-game-button {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
}

/* Navbar styling */
.navbar ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: space-around;
    background-color: #333;
}

.navbar li {
    margin: 0;
}

.navbar a {
    display: block;
    padding: 10px 20px;
    color: white;
    text-decoration: none;
    background-color: #444;
    font-size: 16px;
}

.navbar a:hover {
    background-color: #555;
}

.navbar a.active {
    background-color: #666;
    font-weight: bold;
}

/* Styling for the scrollbar */
::-webkit-scrollbar {
    width: 12px;
    background-color: #2c2c2c; /* Background color for the scrollbar track */
}

/* Styling for the scrollbar thumb */
::-webkit-scrollbar-thumb {
    background-color: #bfa760; /* Color of the scrollbar thumb */
    border-radius: 10px;
    border: 2px solid #2c2c2c; /* Optional: border around the thumb */
}

/* Styling for the scrollbar thumb on hover */
::-webkit-scrollbar-thumb:hover {
    background-color: #e0c097; /* Lighter color on hover */
}

/* Styling for the scrollbar corner */
::-webkit-scrollbar-corner {
    background-color: #2c2c2c; /* Background color for the corner where horizontal and vertical scrollbars meet */
}

#load-success-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    padding: 20px;
    color: white;
    text-align: center;
    z-index: 1000; /* Ensures it's on top of other elements */
}

h2 {
    margin-top: 75px;
}

#load-success-container h2 {
    margin-bottom: 20px;
    font-size: 1.5em;
    font-family: 'Garamond', serif;
    color: #e0c097;
}

#load-success-container button {
    padding: 10px 20px;
    font-size: 1em;
    border: #bfa760 1px solid;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#load-success-container button:hover {
    background-color: #7e622e; /* Darker shade of gold on hover */
    border: #bfa760 1px solid;
}

#loading-message {
    display: none; /* Initially hidden */
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #e0c097;
    padding: 20px 30px;
    text-align: center;
    font-family: 'Garamond', serif;
    font-size: 18px;
    z-index: 9999; /* Ensure it appears above other elements */
}

#loading-message p {
    margin: 0;
}

#dungeon-content-1, #dungeon-content-2 {
    color: #ffffff; /* White text for contrast */
    border: 2px solid #444; /* Border to distinguish the dungeon area */
    border-radius: 10px; /* Rounded corners for a smoother look */
    padding: 20px; /* Padding inside the container */
    margin: 20px auto; /* Centering the container with some margin */
    max-width: 800px; /* Limiting the width to fit the screen well */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.7); /* Adding a shadow for depth */
    overflow-y: auto; /* Scrollable content if it exceeds the height */
}

#dungeon-content-1 {
    background-image: url('img/battle_arena_background/enemy_orc_black_kight_arena_background.jpg');
}

#dungeon-content-2 {
 background-image:  url("img/battle_arena_background/enemy_moskaven_arena_background.jpg");
}

#dungeon-content p {
    line-height: 1.6; /* Space between lines for readability */
    font-family: 'Arial', sans-serif; /* A clear font for text */
    margin-bottom: 10px; /* Space below paragraphs */
}

#dungeon-content .enemy-stats {
    background-color: #444; /* Darker background for enemy stats */
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
}

#dungeon-content .enemy-stats img {
    display: block;
    margin: 0 auto 10px; /* Centering images and adding space below */
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

#dungeon-content .stat-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

#dungeon-content .stat-label {
    font-weight: bold;
}

#dungeon-content .stat-value {
    color: #ffcc00; /* Highlighting the stat values */
}

#dungeon-content .health-bar {
    background-color: #555;
    border-radius: 5px;
    overflow: hidden;
    margin-top: 10px;
}

#dungeon-content .health {
    background-color: #e74c3c; /* Red for health */
    height: 10px;
    width: 100%;
}

#dungeon-content .button-group {
    text-align: center;
    margin-top: 20px;
}

#dungeon-content .button-group button {
    background-color: #333;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin: 0 5px;
    transition: background-color 0.3s;
}

#dungeon-content .button-group button:hover {
    background-color: #555; /* Lighter shade on hover */
}

/* Action Bar Styling */
#action-bar {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    background-color: rgba(0, 0, 0, 0.7); /* Match background to other UI elements */
    border: 2px solid #bfa760; /* Gold border for consistency */
    padding: 10px;
    border-radius: 10px; /* Slightly rounded corners */
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5); /* Soft shadow for depth */
}

/* Action Slot Styling */
.action-slot {
    width: 60px;
    height: 60px;
    border: 1px solid #bfa760; /* Matching border color */
    background-color: rgba(224, 192, 151, 0.7); /* Semi-transparent background */
    margin: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px; /* Slightly rounded corners */
    transition: background-color 0.3s, transform 0.2s;
}

/* Hover effect for Action Slots */
.action-slot:hover {
    background-color: #666; /* Darken background on hover */
    transform: scale(1.05); /* Slightly enlarge on hover */
}

/* Action Slot Image Styling */
.action-slot img {
    max-width: 90%; /* Slight padding inside the slot */
    max-height: 90%;
    object-fit: cover; /* Ensure the image fits well within the slot */
    border-radius: 5px; /* Slight rounding to match the slot */
}

/* Additional hover effect for images */
.action-slot img:hover {
    border: 2px solid #bfa760; /* Highlight image on hover */
}

#skill-tree-container {
    text-align: center;
    margin-top: 20px;
}

#skill-tree {
    margin-top: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 100px;
}

.skill-row {
    display: flex;
    justify-content: center;
    gap: 100px;
}

.skill-slot {
    width: 75px;
    height: 75px;
    border: 2px solid #333;
    border-radius: 8px;
    cursor: pointer;
    position: relative;
}

.skill-slot:hover {
    background-color: #ccc;
}

.skill-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image covers the entire slot */
    display: block;
    border-radius: 8px; /* Keeps the rounded corners */
    pointer-events: none; /* Prevents click events on the image itself */
}

.skill-slot::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 50%;
    width: 2px;
    height: 100px;
    background-color: #ffffff;
    transform: translateX(-50%);
}

.skill-row:first-child .skill-slot::before {
    display: none; /* No line for the top skill */
}

.skill-row .skill-slot:first-child::before {
    left: 50%;
}

.skill-row .skill-slot:last-child::before {
    left: 50%;
}

/* Gradient Animation */
@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.gradient-animated {
    background: linear-gradient(-45deg, #d4a017, #e17b34, #f0c75e, #ffffff);
    background-size: 400% 400%;
    animation: gradient 5s ease infinite;
}

.gradient-animated-rare {
    background: linear-gradient(-45deg, #1e3c72, #2a5298, #a7c7e7, #ffffff);
    background-size: 400% 400%;
    animation: gradient 5s ease infinite;
}

.gradient-animated-common {
    background: linear-gradient(-45deg, #006400, #32a852, #a8e6a3, #ffffff);
    background-size: 400% 400%;
    animation: gradient 5s ease infinite;
}

.gradient-animated-epic {
    background: linear-gradient(-45deg, #4b0082, #8a2be2, #dda0dd, #ffffff);
    background-size: 400% 400%;
    animation: gradient 5s ease infinite;
}

#npc-container {
    /* position: relative; */
    width: 50vw;
    height: auto;
    display: flex;
    margin: auto;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.2);
    /* border: 2px solid #bfa760; */
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

.npc, .npcNurse {
    cursor: pointer;
    position: relative;
}

.npc img, .npcNurse img {
    width: 150px;
    border-radius: 10px;
    border: 2px solid #bfa760; /* Golden border to match the theme */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s;
}

.npc img:hover, .npcNurse img:hover {
    transform: scale(1.05); /* Slightly enlarge on hover */
}

.npc-dialogue, .npc-dialogue-nurse {
    display: none;
    bottom: 180px; /* Adjust to position the dialogue above the NPC */
    left: 50%;
    color: #e0c097; /* Light text color to match theme */
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    z-index: 1000;
    width: 250px; /* Width for the dialogue box */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.npc-dialogue button, .npc-dialogue-nurse button {
    margin-top: 10px;
    padding: 8px 12px;
    background-color: #444;
    border: 2px solid #bfa760;
    color: #e0c097;
    cursor: pointer;
    transition: background-color 0.3s, box-shadow 0.3s;
    border-radius: 5px;
}

.npc-dialogue button:hover, .npc-dialogue-nurse button {
    background-color: #666;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

#npc-dialogue, #npc-dialogue-nurse {
    display: none;
}
