/* Common styles shared across all pages */

@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: #121212;
    color: white;
    font-family: 'Arial', sans-serif;
    overflow-x: hidden;
}

button {
    cursor: pointer;
    font-family: 'Press Start 2P', cursive;
}

button:hover {
    transform: translateY(-2px);
}

button:active {
    transform: translateY(1px);
}

a {
    text-decoration: none;
    color: inherit;
}

/* Animation keyframes */
@keyframes glow {
    0% {
        box-shadow: 0 0 5px rgba(76, 175, 80, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(76, 175, 80, 0.5);
    }
    100% {
        box-shadow: 0 0 5px rgba(76, 175, 80, 0.3);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Utility classes */
.hidden {
    display: none !important;
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.flex-column {
    display: flex;
    flex-direction: column;
}

.text-center {
    text-align: center;
}

/* Rarity colors */
.common-text {
    color: #888;
}

.rare-text {
    color: #3498db;
}

.super-rare-text {
    color: #9b59b6;
}

.epic-text {
    color: #f1c40f;
}

.legendary-text {
    color: #e74c3c;
}

.super-legendary-text {
    color: #1abc9c;
}

/* Tooltip styles */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltip-text {
    visibility: hidden;
    width: 120px;
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -60px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 12px;
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Loading spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 4px solid #4CAF50;
    animation: rotate 1s linear infinite;
}

/* Modal styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.modal.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: rgba(34, 34, 34, 0.9);
    padding: 20px;
    border-radius: 10px;
    max-width: 500px;
    width: 90%;
    transform: scale(0.9);
    transition: transform 0.3s;
    border: 2px solid #4CAF50;
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid #4CAF50;
    padding-bottom: 10px;
}

.modal-title {
    font-size: 18px;
    color: #4CAF50;
}

.close-modal {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
}

.modal-body {
    margin-bottom: 20px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Notification styles */
.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(34, 34, 34, 0.9);
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    border-left: 4px solid #4CAF50;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transform: translateX(120%);
    transition: transform 0.3s;
    z-index: 1000;
    max-width: 300px;
}

.notification.show {
    transform: translateX(0);
}

.notification-title {
    font-weight: bold;
    margin-bottom: 5px;
}

.notification-message {
    font-size: 14px;
}

/* Scrollbar styles */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #222;
}

::-webkit-scrollbar-thumb {
    background: #4CAF50;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #3d8b40;
}

/* Menu container */
.menu-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 20px 0;
    width: 100%;
    max-width: 300px;
}

.menu-container button {
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.menu-container .play-button {
    background: linear-gradient(to bottom, #ffcc00, #ff9900);
    color: #000;
}

.menu-container .play-button:hover {
    background: linear-gradient(to bottom, #ffdd33, #ffaa33);
    transform: scale(1.05);
}

.menu-container .character-button {
    background: linear-gradient(to bottom, #3399ff, #0066cc);
    color: #fff;
}

.menu-container .character-button:hover {
    background: linear-gradient(to bottom, #66b3ff, #0080ff);
    transform: scale(1.05);
}

.menu-container .fusion-button {
    background: linear-gradient(to bottom, #cc33ff, #9900cc);
    color: #fff;
}

.menu-container .fusion-button:hover {
    background: linear-gradient(to bottom, #dd66ff, #cc33ff);
    transform: scale(1.05);
}

.menu-container .shop-button {
    background: linear-gradient(to bottom, #33cc33, #009900);
    color: #fff;
}

.menu-container .shop-button:hover {
    background: linear-gradient(to bottom, #66dd66, #33cc33);
    transform: scale(1.05);
} 