.pageContainer {
    min-height: 100vh;
    background: linear-gradient(135deg, #313131 0%, #1a1a1a 100%);
    color: white;
    position: relative;
}

.backArrow {
    position: absolute;
    left: 20px;
    top: 20px;
    color: #fff;
    font-size: 2rem;
    transition: transform 0.3s ease, color 0.3s ease;
    z-index: 100;
}

.backArrow:hover {
    cursor: pointer;
    color: #ccc;
    transform: scale(1.2);
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100vh;
    padding: 40px 0;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    position: relative;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
    scroll-padding: 0;
}

.container::-webkit-scrollbar {
    display: none;
}

.progressIndicator {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(26, 26, 26, 0.9);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 1rem;
    color: #fff;
    z-index: 100;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.wordCard {
    background: linear-gradient(145deg, #1a1a1a, #2a2a2a);
    border-radius: 20px;
    padding: 40px;
    min-height: 500px;
    height: 100vh;
    width: 90%;
    max-width: 600px;
    margin: 5vh 0;
    scroll-snap-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    opacity: 0.7;
    animation: fadeIn 0.5s forwards;
    scroll-snap-align: center;
    scroll-snap-stop: always;
    transition: all 0.3s ease;
    transform: scale(0.95);
}

.currentWord {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.wordCard h2 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    background: linear-gradient(45deg, #fff, #ccc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.translation {
    font-size: 2rem;
    color: #aaa;
    margin-bottom: 30px;
    font-weight: 300;
}

.context {
    font-size: 1.5rem;
    color: #888;
    margin-bottom: 40px;
    font-style: italic;
    line-height: 1.6;
    max-width: 80%;
}

.addButton {
    background: linear-gradient(45deg, #444, #666);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-top: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.addButton:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    background: linear-gradient(45deg, #555, #777);
}

.loading {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

.loadingSpinner {
    border: 3px solid rgba(255,255,255,0.1);
    border-top: 3px solid #fff;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media screen and (max-width: 768px) {
    .wordCard h2 {
        font-size: 2.5rem;
    }

    .translation {
        font-size: 1.5rem;
    }

    .context {
        font-size: 1.2rem;
    }

    .addButton {
        padding: 12px 24px;
        font-size: 1rem;
    }
}

@media screen and (max-width: 768px) {
    .wordCard {
        width: 95%;
        padding: 20px;
        min-height: 400px;
        height: 80vh;
        margin: 10vh 0;
    }

    .progressIndicator {
        top: 15px;
        right: 15px;
        font-size: 0.9rem;
        padding: 6px 12px;
    }

    .backArrow {
        top: 15px;
        left: 15px;
        font-size: 1.8rem;
    }

    .container {
        padding-top: 60px;
    }
}

@media screen and (max-width: 480px) {
    .wordCard h2 {
        font-size: 2rem;
    }

    .translation {
        font-size: 1.3rem;
    }

    .context {
        font-size: 1rem;
        max-width: 90%;
    }

    .addButton {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}