
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
}

.main-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
    z-index: 0;
}

.mouse-test-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
}

.page-title {
    text-align: center;
    font-size: 3rem;
    font-weight: 800;
    color: #ffffff;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    margin-bottom: 2rem;
    background: linear-gradient(90deg, #3a86ff, #8338ec);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mouse-test-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.test-section {
    background: linear-gradient(135deg, #1a1e2b, #2a2f41);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.test-section h2 {
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 600;
}

.mouse-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 200px;
    margin-bottom: 2rem;
}

.mouse-icon {
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.mouse-icon:hover {
    transform: scale(1.05);
}

.direction-arrows {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    pointer-events: none;
}

.arrow {
    position: absolute;
    width: 20px;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
    transform-origin: center;
}

.arrow::before {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    border-top: 2px solid rgba(255, 255, 255, 0.5);
    border-right: 2px solid rgba(255, 255, 255, 0.5);
    transform: rotate(45deg);
    right: -2px;
    top: -3px;
}

.arrow.up {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.arrow.down {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) rotate(180deg);
}

.arrow.left {
    left: 0;
    top: 50%;
    transform: translateY(-50%) rotate(-90deg);
}

.arrow.right {
    right: 0;
    top: 50%;
    transform: translateY(-50%) rotate(90deg);
}

.test-progress {
    margin-bottom: 2rem;
}

.test-progress span {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.progress-bar-container {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #3a86ff, #8338ec);
    border-radius: 4px;
    transition: width 0.3s ease;
    position: relative;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: progressShine 2s infinite;
}

@keyframes progressShine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.test-stats {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.stat-item {
    flex: 1;
    text-align: center;
}

.stat-label {
    display: block;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.stat-value {
    display: block;
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 600;
}

.click-test-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.click-test-area {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.click-test-area:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.click-test-area.click-effect {
    animation: clickEffect 0.3s ease;
}

@keyframes clickEffect {
    0% { transform: scale(1); }
    50% { transform: scale(0.95); }
    100% { transform: scale(1); }
}

.click-test-area.flash-left-click {
    background: linear-gradient(135deg, #3a86ff, rgba(58, 134, 255, 0.3));
    border-color: #3a86ff;
}

.click-test-area.flash-right-click {
    background: linear-gradient(135deg, #8338ec, rgba(131, 56, 236, 0.3));
    border-color: #8338ec;
}

.click-test-area.flash-scroll-button {
    background: linear-gradient(135deg, #ff006e, rgba(255, 0, 110, 0.3));
    border-color: #ff006e;
}

.click-test-area.flash-side-button {
    background: linear-gradient(135deg, #ffbe0b, rgba(255, 190, 11, 0.3));
    border-color: #ffbe0b;
}

.scroll-test-area {
    background: linear-gradient(135deg, #1a1e2b, #2a2f41);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    cursor: ns-resize;
}

.scroll-test-header {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.scroll-test-stats {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.scroll-test-stats span {
    display: block;
}

#best-scroll-speed {
    color: #3a86ff;
    font-weight: 600;
}

#current-scroll-speed {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
}

@media (max-width: 992px) {
    .container {
        padding: 1.5rem;
    }
    
    .mouse-test-container {
        padding: 1.5rem;
    }
    
    .page-title {
        font-size: 2.5rem;
    }
    
    .mouse-test-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .test-section h2 {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .mouse-test-container {
        padding: 1rem;
    }
    
    .page-title {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
    
    .test-section {
        padding: 1.5rem;
    }
    
    .stat-row {
        flex-direction: column;
        gap: 0.8rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0.5rem;
    }
    
    .mouse-test-container {
        padding: 1rem;
    }
    
    .page-title {
        font-size: 1.8rem;
    }
    
    .click-test-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .test-section {
        padding: 1rem;
    }
    
    .mouse-visual {
        height: 150px;
    }
    
    .mouse-icon svg {
        width: 120px;
        height: 120px;
    }
    
    .direction-arrows {
        width: 160px;
        height: 160px;
    }
    
    .click-test-area {
        padding: 1.2rem;
        font-size: 0.85rem;
    }
    
    .stat-value {
        font-size: 1.1rem;
    }
}

@media (max-height: 500px) and (orientation: landscape) {
    .mouse-test-content {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
    
    .mouse-test-container {
        padding: 1rem;
    }
    
    .test-section {
        padding: 1rem;
    }
    
    .mouse-visual {
        height: 120px;
    }
    
    .mouse-icon svg {
        width: 100px;
        height: 100px;
    }
}

.about-mouse-test {
    max-width: 1140px;
    margin: 0 auto; 
    margin-top: 15px;
    margin-bottom: 15px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.about-mouse-test h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.8rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 15px;
    color: #e0e0e0;
}

.about-content p:last-child {
    margin-bottom: 25px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.benefit-item {
    background: rgba(255, 255, 255, 0.08);
    padding: 20px;
    border-radius: 10px;
    transition: transform 0.3s ease, background 0.3s ease;
}

.benefit-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.benefit-item h3 {
    color: #4fc3f7;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.benefit-item p {
    font-size: 1rem;
    line-height: 1.6;
    color: #bdbdbd;
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .about-mouse-test {
        padding: 20px 15px;
    }
    
    .about-content p {
        font-size: 1rem;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .benefit-item {
        padding: 15px;
    }
}