.card-stack-container {
    position: relative;
    width: 100%;
    height: 600px;
    perspective: 1000px;
    margin: 2rem auto;
    max-width: 800px;
    overflow: visible;
}

.card-stack {
    position: relative;
    width: 100%;
    height: 100%;
}

.earthquake-card {
    position: absolute;
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    transition: transform 0.5s ease;
    cursor: grab;
    user-select: none;
    left: 0;
    top: 0;
    will-change: transform;
}

.earthquake-card:active {
    cursor: grabbing;
}

.card-image {
    width: 100%;
    height: 50%;
    object-fit: cover;
    border-radius: 20px 20px 0 0;
}

.card-content {
    padding: 1.5rem;
    height: 50%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #000000;
}

.card-title {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: #000000;
}

.card-details {
    color: #000000;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.card-description {
    color: #000000;
    line-height: 1.6;
    font-size: 1.1rem;
}

.magnitude {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #ff6b6b;
    color: white;
    border-radius: 20px;
    font-weight: bold;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.year {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #4a90e2;
    color: white;
    border-radius: 20px;
    font-weight: bold;
    margin-left: 0.5rem;
    font-size: 1.2rem;
}

.card-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.card-navigation {
    position: relative;
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    padding: 1rem;
    z-index: 100;
}

.nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(74, 144, 226, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.prev-button {
    left: -25px;
}

.next-button {
    right: -25px;
}

.nav-button:hover {
    background: #357abd;
    transform: translateY(-50%) scale(1.1);
}

.card-counter {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(124, 124, 124, 0.7);
    color: rgb(0, 0, 0);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 1rem;
    z-index: 10;
} 