/* ------------------------------------------------------
   Your Existing CSS (with integrated arrow styles below)
   ------------------------------------------------------ */
   img {
    width: 30px;
    height: 30px;
}

body {
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

#hero-picking {
    width: 60%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

@media (max-width: 800px) {
    #hero-picking {
        width: 100%;
    }
}

.picked-heroes-panel {
    height: 100%;
    width: 20%;
    display: flex;
    flex-direction: column;
}
@media (max-width: 800px) {
    .picked-heroes-panel {
        width: 40%;
    }
}
#picked-heroes-panel-1 {
    background-color: rgba(0, 0, 180, 0.15);
}
#picked-heroes-panel-2 {
    background-color: rgba(180, 0, 0, 0.15);
}
.picked-heroes-panel-username-place {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 4%;
    width: 100%;
    margin-bottom: 20%;
}
.picked-heroes-panel-username {
    height: 80%;
    width: 60%;
    background-color: rgba(0,0,0,0.3);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    font-size: 1.2em;
}
.picked-heroes-panel-heroes {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    height: 70%;
}
.picked-hero-place {
    aspect-ratio: 1 / 1;
    width: 78%;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    opacity: 50;
    transform: scale(1);
    transition: all 0.3s ease-out;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: relative;
}
.picked-hero-place:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}
/* Keyframes for hero appearance */
@keyframes heroAppearance {
    0% { opacity: 0; transform: scale(0); }
    50% { opacity: 1; transform: scale(1.2); }
    100% { opacity: 1; transform: scale(1); }
}
.picked-hero-place.active {
    animation: heroAppearance 0.5s ease-out forwards;
}

/* My Turn vs Opponent Turn animations */
@keyframes pulseEffectMyTurn {
    0% { box-shadow: 0 0 10px rgba(0, 255, 0, 0.7); transform: scale(1) rotate(0deg); }
    50% { box-shadow: 0 0 30px rgba(0, 255, 0, 1); transform: scale(1.1) rotate(180deg); }
    100% { box-shadow: 0 0 10px rgba(0, 255, 0, 0.7); transform: scale(1) rotate(360deg); }
}
@keyframes pulseEffectOpponentTurn {
    0% { box-shadow: 0 0 10px rgba(255, 255, 0, 0.7); }
    50% { box-shadow: 0 0 20px rgba(255, 255, 0, 1); }
    100% { box-shadow: 0 0 10px rgba(255, 255, 0, 0.7); }
}
.picked-hero-place.highlight-my-turn {
    animation: pulseEffectMyTurn 2s infinite;
    background-image: radial-gradient(circle, rgba(0, 255, 0, 0.2), transparent);
}
.picked-hero-place.highlight-opponent-turn {
    animation: pulseEffectOpponentTurn 2s infinite;
    background-image: radial-gradient(circle, rgba(255, 255, 0, 0.2), transparent);
}

.picked-hero-name-place {
    height: 0%;
    width: 100%;
    display: none;
}
.picked-hero-name {
    height: 100%;
    width: 60%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: rgba(0,0,0,0.7);
}
.picked-hero-image-place {
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.picked-hero-image {
    width: 70%;
    height: auto;
}

#hero-picking-center-panel {
    height: 100%;
    width: 60%;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
}

@media (max-width: 800px) {
    #hero-picking-center-panel {
        width: 40%;
    }
}

#hero-picking-center-panel-heroes {
    height: 50%;
    width: 90%;
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-bottom-right-radius: 30px;
    border-bottom-left-radius: 30px;
    background-color: rgba(0,0,0,0.05);
    flex-wrap: wrap;
    overflow-y: hidden;
}

.hero-panel-in-center-panel {
    width: 18%;
    aspect-ratio: 1 / 1;
    background-color: rgba(255,255,255,0.5);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    transition-duration: 0.3s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
    cursor: pointer;
}
@media (max-width: 800px) {
    .hero-panel-in-center-panel {
        width: 40%;
    }
}
.hero-panel-in-center-panel-name {
    height: 0;
    display: flex;
    color: rgba(0,0,0,0.7);
    overflow-y: hidden;
    transition-duration: 0.3s;
    z-index: 2;
    justify-content: center;
    align-items: center;
}
img.hero-panel-in-center-panel-image {
    width: auto;
    height: 80%;
    transition-duration: 0.3s;
}
.hero-panel-in-center-panel:hover .hero-panel-in-center-panel-name {
    height: 15%;
}
.hero-panel-in-center-panel:hover img.hero-panel-in-center-panel-image {
    height: 85%;
}
.hero-panel-in-center-panel:hover {
    background-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

#hero-picking-center-lower-panel {
    height: 50%;
    width: 90%;
    display: flex;
    justify-content: space-around;
    align-items: center;
}
#hero-picking-center-lower-panel-picking-hero {
    width: 50%;
    height: 90%;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    background-color: rgba(0,0,0,0.02);
    border-radius: 15px;
    position: relative;  /* Make sure arrow buttons can be absolutely positioned */
}
#hero-picking-center-lower-panel-picking-hero-name {
    height: 12%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.3em;
    color: rgba(0,0,0,0.7);
}
img#hero-picking-center-lower-panel-picking-hero-image {
    width: auto;
    height: 80%;
}

#hero-picking-center-lower-panel-additional {
    width: 40%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
}
#hero-picking-center-lower-panel-additional-description {
    height: 80%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.hero-picking-center-lower-panel-additional-description-text {
    height: 60%;
    width: 70%;
    display: flex;
    padding: 10%;
    flex-direction: column;
    justify-content: end;
}
.hero-picking-center-lower-panel-additional-description-text div {
    font-size: 0.8em;
    border-radius: 10px;
    background-color: rgba(97, 145, 126, 0.8);
    margin-bottom: 10px;
    color: white;
    padding: 3px;
}
#hero-picking-center-lower-panel-additional-description-graph {
    height: 40%;
    width: 100%;
}
.hero-picking-center-lower-panel-additional-description-graph {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
}
.hero-picking-center-lower-panel-additional-description-graph-row {
    height: 20%;
    width: 100%;
    display: flex;
    box-sizing: border-box;
}
.hero-picking-center-lower-panel-additional-description-graph-row img {
    height: 100%;
    width: 10%;
}
.hero-picking-center-lower-panel-additional-description-graph-row div {
    height: 100%;
    width: 90%;
}

button.hero-picking-center-lower-panel-additional-button {
    height: 12%;
    min-width: 55%;
    background: rgba(65, 124, 101, 0.76);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.2em;
    cursor: pointer;
    transition-duration: 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.3s ease, transform 0.3s ease;
}
button.hero-picking-center-lower-panel-additional-button:hover {
    background: rgba(0,0,0,0.9);
    height: 13%;
    transform: scale(1.05);
}
button.hero-picking-center-lower-panel-additional-button.disabled {
    background: rgba(0,0,0,0.3);
    cursor: not-allowed;
}
button.hero-picking-center-lower-panel-additional-button.disabled:hover {
    background: rgba(0,0,0,0.3);
    height: 12%;
}
button.hero-picking-center-lower-panel-additional-button.enabled {
    animation: pulseEffectReadyButton 1.5s infinite;
}
@keyframes pulseEffectReadyButton {
    0% { box-shadow: 0 0 10px rgba(0, 255, 0, 0.7); }
    50% { box-shadow: 0 0 20px rgba(0, 255, 0, 1); }
    100% { box-shadow: 0 0 10px rgba(0, 255, 0, 0.7); }
}

/* Locks */
.picked-hero-lock-place {
    width: 10%;
    height: 5%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s, opacity 0.2s;
}
.picked-hero-lock-place:hover {
    transform: scale(1.1);
}
.picked-hero-lock-place img {
    width: 100%;
    height: auto;
    opacity: 0.5;
}
.picked-hero-lock-place.lock-active img {
    opacity: 1;
}

/* Particle effects */
.particle-container {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    pointer-events: none;
}
.particle {
    position: absolute;
    width: var(--size);
    height: var(--size);
    background: hsla(var(--hue), 100%, 50%, 1);
    border-radius: 50%;
    transform: rotate(var(--angle));
    animation: particleAnimation 2s forwards;
    opacity: 1;
}
@keyframes particleAnimation {
    0% {
        transform: rotate(var(--angle)) translateX(0) scale(1);
        opacity: 1;
    }
    70% {
        opacity: 1;
    }
    100% {
        transform: rotate(var(--angle)) translateX(var(--distance)) scale(0);
        opacity: 0;
    }
}

@keyframes pulseEffectMyTurn {
    0% {
        box-shadow: 0 0 10px rgba(0, 255, 0, 0.7),
                    0 0 20px rgba(0, 255, 0, 0.5),
                    0 0 30px rgba(0, 255, 0, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(0, 255, 0, 1),
                    0 0 30px rgba(0, 255, 0, 0.7),
                    0 0 40px rgba(0, 255, 0, 0.5);
    }
    100% {
        box-shadow: 0 0 10px rgba(0, 255, 0, 0.7),
                    0 0 20px rgba(0, 255, 0, 0.5),
                    0 0 30px rgba(0, 255, 0, 0.3);
    }
}

/* Class Picker */
#hero-class-picker-container {
    width: 100%;
    height: 10%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}
#hero-class-picker {
    display: flex;
    justify-content: space-around;
    height: 100%;
    width: 100%;
}
#hero-class-picker button {
    /* background: #378462; */
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    padding: 5px 10px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    width: calc(100% / 8);
    height: 80%;
    font-size: 0.5em;
    overflow: hidden;
}
#hero-class-picker button:hover {
    background-color: #ccc;
}
#hero-class-picker button.active {
    /* background-color: #4caf81; */
    background-color: #b6e6d5;
    /* color: white; */
    transform: scale(1.1);
}

/* Heroes Panels Container */
#hero-panels-container {
    width: 100%;
    height: 90%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-content: flex-start;
    gap: 10px;
    padding: 10px;
    overflow-y: auto;
    box-sizing: border-box;
}

/* ------------------------------------------------------
   New / Updated Styles for Skin Navigation Arrows
   ------------------------------------------------------ */

/* Make the container relative so arrows can be positioned over the hero image */
#hero-picking-center-lower-panel-picking-hero {
    position: relative;
}

/* Common arrow button style */
.hero-skin-nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.7);
    color: rgba(0,0,0,0.8);
    font-size: 1.2em;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10; /* ensure they stay above the hero image */
}

/* Hover effect for arrow buttons */
.hero-skin-nav-button:hover {
    background: rgba(255,255,255,1);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* Place them on the left/right edges */
#hero-skin-nav-left {
    left: 10px;
}
#hero-skin-nav-right {
    right: 10px;
}

/* Arrow buttons when no additional skins exist */
.hero-skin-nav-button.disabled {
    display: none;
    opacity: 0.4;
    cursor: not-allowed;
    box-shadow: none;
    transform: translateY(-50%) scale(1); /* remove hover scaling if disabled */
}
.hero-skin-nav-button.disabled:hover {
    transform: translateY(-50%) scale(1);
    background: rgba(255, 255, 255, 0.7);
}
