/* Mars: Moonhunter Styles */
/* Game Container */
.game-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
    font-family: 'MedievalSharp', cursive;
}

.game-title {
    font-family: 'UnifrakturMaguntia', cursive;
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #4a1c1c;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Werewolf Container */
.werewolf-container {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 20px auto;
    cursor: crosshair;
    background: rgba(255, 0, 0, 0.1);
    border: 2px solid rgba(255, 0, 0, 0.2);
    border-radius: 10px;
    overflow: visible;
}

#werewolf {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: all 0.3s ease;
    cursor: crosshair;
    z-index: 10;
}

/* Arrow Selection */
.arrow-selection {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

.arrow-button {
    position: relative;
    width: 60px;
    height: 60px;
    padding: 5px;
    border: 2px solid #4a1c1c;
    border-radius: 50%;
    background: #2a0f0f;
    cursor: pointer;
    transition: all 0.3s ease;
}

.arrow-button img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.arrow-button:hover,
.arrow-button.selected {
    background: #4a1c1c;
    transform: scale(1.1);
}

/* Tooltips */
.tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    padding: 10px;
    background: rgba(42, 15, 15, 0.95);
    border: 1px solid #4a1c1c;
    border-radius: 5px;
    color: #fff;
    font-size: 0.9em;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 100;
}

.arrow-button:hover .tooltip {
    opacity: 1;
}

.tooltip h3 {
    margin: 0 0 5px;
    font-family: 'UnifrakturMaguntia', cursive;
}

.tooltip p {
    margin: 0;
    font-size: 0.8em;
}

/* Effect Text */
.effect-text {
    position: absolute;
    bottom: -40px;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 1.2em;
    color: #4a1c1c;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Reset Button */
.reset-button {
    padding: 10px 20px;
    font-family: 'MedievalSharp', cursive;
    font-size: 1.1em;
    color: #fff;
    background: #4a1c1c;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.reset-button:hover {
    background: #2a0f0f;
    transform: scale(1.05);
}

/* Animations */
@keyframes split {
    0% { transform: scale(1); }
    50% { transform: scale(1.2) rotate(5deg); opacity: 0.7; }
    100% { transform: scale(1); }
}

@keyframes pin {
    0% { transform: translateY(0); }
    25% { transform: translateY(-20px); }
    75% { transform: translateY(10px); }
    100% { transform: translateY(0); }
}

@keyframes fire {
    0% { filter: brightness(1); }
    50% { filter: brightness(1.5) sepia(1) hue-rotate(-50deg); }
    100% { filter: brightness(1); }
}

@keyframes blind {
    0% { filter: brightness(1); }
    50% { filter: brightness(0.3) grayscale(1); }
    100% { filter: brightness(1); }
}

/* Animation Classes */
.effect-split {
    animation: split 2s ease-in-out;
}

.effect-pin {
    animation: pin 2s ease-in-out;
}

.effect-fire {
    animation: fire 2s ease-in-out;
}

.effect-blind {
    animation: blind 2s ease-in-out;
}

.game-area {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid #8b0000;
    position: relative;
}

.title {
    text-align: center;
    color: #ff4500;
    font-size: 3rem;
    margin-bottom: 2rem;
    text-shadow: 0 0 10px rgba(255, 69, 0, 0.5);
    animation: glow 2s ease-in-out infinite;
}

.game-area {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 2rem;
    align-items: start;
}

.arrows-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(139, 0, 0, 0.2);
    border: 1px solid #8b0000;
    border-radius: 12px;
    width: 300px;
    box-shadow: 0 0 20px rgba(139, 0, 0, 0.3);
    position: sticky;
    top: 2rem;
}

.arrow-button {
    position: relative;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid #8b0000;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.arrow-button.game-area {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 2rem;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.arrow-button {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    padding: 8px;
    margin-bottom: 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid transparent;
}

.arrow-button:hover {
    background: rgba(139, 0, 0, 0.3);
    transform: translateX(5px);
    border-color: #8b0000;
}

.arrow-button:hover .arrow-icon {
    border-color: #ff4500;
    box-shadow: 0 0 10px rgba(255, 69, 0, 0.3);
}

.arrow-button.selected {
    background: rgba(139, 0, 0, 0.5);
    box-shadow: 0 0 20px rgba(255, 69, 0, 0.7);
    transform: scale(1.05);
}

.arrow-button.selected .arrow-icon {
    border-color: #ff4500;
    box-shadow: 0 0 10px rgba(255, 69, 0, 0.5);
}

.arrow-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid #8b0000;
    border-radius: 6px;
    position: relative;
    transition: all 0.3s ease;
}

.arrow-img {
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 5px rgba(255, 69, 0, 0.3));
}

.arrow-button:hover .arrow-img {
    transform: scale(1.1);
    filter: drop-shadow(0 0 8px rgba(255, 69, 0, 0.5));
}

.arrow-button.selected .arrow-img {
    transform: scale(1.1);
    filter: drop-shadow(0 0 12px rgba(255, 69, 0, 0.7));
}

.arrow-tooltip {
    color: #ff4500;
    font-size: 1rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    font-family: "MedievalSharp", cursive;
    margin-left: 0.5rem;
}

.arrow-effect-tooltip {
    color: #aaa;
    font-size: 0.8rem;
    font-style: italic;
    margin-left: auto;
    padding-right: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.arrow-button:hover .arrow-effect-tooltip {
    opacity: 1;
}



.werewolf-container {
    position: relative;
    height: 500px;
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid #8b0000;
    cursor: crosshair;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: inset 0 0 50px rgba(139, 0, 0, 0.3);
}

#werewolf {
    position: absolute;
    width: 300px;
    height: 300px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    transition: all 0.5s ease;
    filter: drop-shadow(0 0 20px rgba(139, 0, 0, 0.5));
    cursor: crosshair;
    background-image: url('../images/mars/werewolf.png');
}

.effect-text {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: #ff4500;
    font-size: 1.5rem;
    text-align: center;
    opacity: 0;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px 20px;
    border-radius: 10px;
    text-shadow: 0 0 10px rgba(255, 69, 0, 0.5);
    white-space: nowrap;
}

.reset-button {
    background: rgba(139, 0, 0, 0.5);
    color: white;
    border: 1px solid #8b0000;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-family: "MedievalSharp", cursive;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
}

.reset-button:hover {
    background: rgba(139, 0, 0, 0.7);
}

/* Animations */
@keyframes glow {
    0%, 100% { text-shadow: 0 0 10px rgba(255, 69, 0, 0.5); }
    50% { text-shadow: 0 0 20px rgba(255, 69, 0, 0.8); }
}

@keyframes split {
    0% { clip-path: inset(0 0 0 0); }
    50% { clip-path: inset(0 50% 0 0); }
    100% { clip-path: inset(0 0 0 0); }
}

@keyframes pin {
    0% { transform: translate(-50%, -50%); }
    50% { transform: translate(-50%, -30%); }
    100% { transform: translate(-50%, -50%); }
}

@keyframes fire {
    0% { filter: brightness(1) hue-rotate(0deg); }
    50% { filter: brightness(1.5) hue-rotate(45deg); }
    100% { filter: brightness(1) hue-rotate(0deg); }
}

@keyframes blind {
    0% { filter: brightness(1); }
    50% { filter: brightness(0); }
    100% { filter: brightness(1); }
}

.effect-split {
    animation: split 1s ease-in-out;
}

.effect-pin {
    animation: pin 0.5s ease-in-out;
}

.effect-fire {
    animation: fire 0.5s ease-in-out infinite;
}

.effect-blind {
    animation: blind 0.5s ease-in-out;
}
