* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #1a1a1a;
    color: white;
    overflow-x: hidden;
    touch-action: manipulation;
    
}

.header {
    background-color: #2d2d2d;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #444;
    position: relative;
}


.mobile-menu-btn {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 2px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.mobile-menu-btn.active .hamburger-line:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active .hamburger-line:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}


.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
}

.logo::before {
    font-size: 20px;
}

.logo-text {
    text-decoration: none;
    font-weight: bold;
    color: #4CAF50;
    text-transform: uppercase;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.login-btn {
    background: none;
    border: 1px solid #666;
    color: white;
    padding: 5px 15px;
    border-radius: 4px;
    cursor: pointer;
}

.top-nav {
    background-color: #333;
    padding: 15px 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.nav-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 25px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    font-size: 14px;
}

.nav-btn.purple {
    background: linear-gradient(45deg, #8B5CF6, #A855F7);
}

.nav-btn.orange {
    background: linear-gradient(45deg, #F97316, #EA580C);
}

.nav-btn.green {
    background: linear-gradient(45deg, #10B981, #059669);
}

.nav-btn.pink {
    background: linear-gradient(45deg, #EC4899, #DB2777);
}

.nav-btn.blue {
    background: linear-gradient(45deg, #3B82F6, #2563EB);
}

.nav-btn.orange-alt {
    background: linear-gradient(45deg, #F59E0B, #D97706);
}

.container {
    display: flex;
    min-height: calc(100vh - 120px);
}

.sidebar {
    width: 210px;
    background-color: #2d2d2d;
    padding: 20px 0;
    border-right: 1px solid #444;
    transition: transform 0.3s ease;
}


.sidebar-header {
    display: none;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #444;
    margin-bottom: 10px;
}

.sidebar-header h3 {
    margin: 0;
    color: #4CAF50;
    font-size: 18px;
}

.sidebar-close-btn {
    background: none;
    border: none;
    color: #ccc;
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.sidebar-close-btn:hover {
    background-color: #444;
    color: white;
}


.sidebar-item {
    text-decoration: none;
    position: relative;
    padding: 15px 20px;
    color: #ccc;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    margin: 2px 0;
    border-radius: 0 8px 8px 0;
    overflow: hidden;
}

.sidebar-item:hover {
    background: linear-gradient(90deg, rgba(76, 175, 80, 0.15), rgba(76, 175, 80, 0.05));
    color: #fff;
    border-left-color: #4CAF50;
    transform: translateX(8px);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.2);
}

.sidebar-item.active {
    background: linear-gradient(90deg, rgba(76, 175, 80, 0.25), rgba(76, 175, 80, 0.1));
    color: white;
    border-left-color: #4CAF50;
    box-shadow: 
        inset 0 0 20px rgba(76, 175, 80, 0.1),
        0 4px 15px rgba(76, 175, 80, 0.3);
}


.item-icon {
    font-size: 18px;
    transition: all 0.3s ease;
    flex-shrink: 0;
    display: inline-block;
}

.sidebar-item:hover .item-icon {
    transform: scale(1.2) rotate(15deg);
    filter: brightness(1.3);
}

.sidebar-item.active .item-icon {
    transform: scale(1.1);
    filter: brightness(1.2);
}


.item-text {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.sidebar-item:hover .item-text {
    font-weight: 600;
}


.item-arrow {
    font-size: 14px;
    color: #666;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateX(-10px);
}

.sidebar-item:hover .item-arrow {
    opacity: 1;
    transform: translateX(0);
    color: #4CAF50;
}


.item-badge {
    font-size: 9px;
    font-weight: bold;
    padding: 3px 6px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: badge-pulse 2s infinite;
}

.item-badge.hot {
    background: linear-gradient(45deg, #FF6B6B, #FF8E53);
    color: white;
    box-shadow: 0 0 10px rgba(255, 107, 107, 0.5);
}

.item-badge.new {
    background: linear-gradient(45deg, #4ECDC4, #44A08D);
    color: white;
    box-shadow: 0 0 10px rgba(78, 205, 196, 0.5);
}

.item-badge.popular {
    background: linear-gradient(45deg, #FFD93D, #FF6B6B);
    color: white;
    box-shadow: 0 0 10px rgba(255, 217, 61, 0.5);
}

.item-badge.fun {
    background: linear-gradient(45deg, #A8E6CF, #7FCDCD);
    color: #2d2d2d;
    box-shadow: 0 0 10px rgba(168, 230, 207, 0.5);
}

.item-badge.collection {
    background: linear-gradient(45deg, #C7CEEA, #B8B8FF);
    color: #2d2d2d;
    box-shadow: 0 0 10px rgba(199, 206, 234, 0.5);
}

@keyframes badge-pulse {
    0%, 100% { 
        transform: scale(1); 
        opacity: 1; 
    }
    50% { 
        transform: scale(1.05); 
        opacity: 0.9; 
    }
}


.item-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(76, 175, 80, 0.1) 50%, 
        transparent 100%);
    opacity: 0;
    transform: translateX(-100%);
    transition: all 0.6s ease;
}

.sidebar-item:hover .item-glow {
    opacity: 1;
    transform: translateX(100%);
}


.sidebar-item.active .item-glow {
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(76, 175, 80, 0.2) 50%, 
        transparent 100%);
    animation: active-glow 3s infinite;
}

@keyframes active-glow {
    0% { 
        transform: translateX(-100%); 
        opacity: 0; 
    }
    50% { 
        opacity: 1; 
    }
    100% { 
        transform: translateX(100%); 
        opacity: 0; 
    }
}

.main-content {
    flex: 1;
    padding: 30px;
}

.right-sidebar {
    width: 300px;
    background-color: #2d2d2d;
    padding: 20px;
    border-left: 1px solid #444;
}


body .reaction-text{
    color: #fff;
}
.reaction-info {
    background-color: #333;
    border-radius: 10px;
    padding: 20px;
}

.reaction-info h3 {
    color: #fff;
    margin-bottom: 15px;
    text-align: center;
    font-size: 18px;
}

.rating-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    margin-bottom: 8px;
    border-radius: 8px;
    font-weight: 500;
}

.rating-item.excellent {
    background-color: rgba(0, 184, 148, 0.2);
    color: #00b894;
}

.rating-item.great {
    background-color: rgba(116, 185, 255, 0.2);
    color: #74b9ff;
}

.rating-item.good {
    background-color: rgba(85, 239, 196, 0.2);
    color: #55efc4;
}

.rating-item.average {
    background-color: rgba(255, 179, 43, 0.2);
    color: #ffb32b;
}

.rating-item.slow {
    background-color: rgba(255, 107, 107, 0.2);
    color: #ff6b6b;
}

.rating-time {
    font-weight: 600;
}

.rating-label {
    font-weight: 500;
}


.score-box.orange.excellent {
    background: linear-gradient(135deg, #00b894, #00a085);
    border-color: #00b894;
    box-shadow: 0 4px 15px rgba(0, 184, 148, 0.3);
}

.score-box.orange.great {
    background: linear-gradient(135deg, #74b9ff, #0984e3);
    border-color: #74b9ff;
    box-shadow: 0 4px 15px rgba(116, 185, 255, 0.3);
}

.score-box.orange.good {
    background: linear-gradient(135deg, #55efc4, #00b894);
    border-color: #55efc4;
    box-shadow: 0 4px 15px rgba(85, 239, 196, 0.3);
}

.score-box.orange.average {
    background: linear-gradient(135deg, #ffb32b, #e17055);
    border-color: #ffb32b;
    box-shadow: 0 4px 15px rgba(255, 179, 43, 0.3);
}

.score-box.orange.slow {
    background: linear-gradient(135deg, #ff6b6b, #e84393);
    border-color: #ff6b6b;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.score-box.orange.default {
    background: linear-gradient(135deg, #fd79a8, #e84393);
    border-color: #fd79a8;
}


.score-box.orange.excellent .score-number,
.score-box.orange.great .score-number,
.score-box.orange.good .score-number,
.score-box.orange.average .score-number,
.score-box.orange.slow .score-number,
.score-box.orange.excellent .score-label,
.score-box.orange.great .score-label,
.score-box.orange.good .score-label,
.score-box.orange.average .score-label,
.score-box.orange.slow .score-label {
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.title {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
}

.trending-section {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    justify-content: center;
}

.trending-text {
    font-size: 18px;
    font-weight: bold;
}

.trending-text::after {
    content: "🔥";
    margin-left: 5px;
}

.tag {
    background-color: #555;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
}

.score-boxes {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    justify-content: center;
}

.score-box {
    flex: 1;
    max-width: 200px;
    padding: 20px;
    border-radius: 25px;
    text-align: center;
    color: white;
    font-weight: bold;
}

.score-box.purple {
    background: linear-gradient(45deg, #8B5CF6, #A855F7);
}

.score-box.orange {
    background: linear-gradient(45deg, #F97316, #EA580C);
}

.score-box.green {
    background: linear-gradient(45deg, #10B981, #059669);
}

.score-number {
    font-size: 36px;
    font-weight: bold;
}

.score-label {
    font-size: 12px;
    margin-top: 5px;
    opacity: 0.9;
}


.click-area {
    user-select: none;
    touch-action: manipulation;
    
    background-color: #000;
    border-radius: 15px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
    cursor: pointer;
    border: 2px solid #333;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    transition: border-color 0.3s;
}

.click-area:hover {
    border-color: #4CAF50;
}


.click-area.waiting {
    background-color: #ff4444 !important;
    border-color: #ff6b6b;
    animation: pulse-red 1.5s infinite;
}

.click-area.active {
    background-color: #44ff44 !important;
    border-color: #4CAF50;
    animation: pulse-green 0.5s infinite;
}

.click-area.result {
    background-color: #4444ff !important;
    border-color: #6c5ce7;
}

.click-area.error {
    background-color: #ff4444 !important;
    border-color: #ff6b6b;
    animation: shake 0.5s ease-in-out;
}

.click-area.final-result {
    background-color: #00b894 !important;
    border-color: #00cec9;
}

@keyframes pulse-red {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.02); opacity: 1; }
}

@keyframes pulse-green {
    0%, 100% { transform: scale(1); opacity: 0.9; }
    50% { transform: scale(1.05); opacity: 1; }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.spacebar-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.spacebar-key {
    background: linear-gradient(180deg, #f8f9fa 0%, #e9ecef 20%, #dee2e6 80%, #adb5bd 100%);
    border: 1px solid #6c757d;
    border-bottom: 3px solid #495057;
    border-radius: 6px;
    padding: 12px 80px;
    box-shadow: 
        0 6px 12px rgba(0, 0, 0, 0.15),
        0 2px 4px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    transition: all 0.1s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    min-width: 200px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spacebar-key::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 10px;
    right: 10px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.9), transparent);
    border-radius: 1px;
}

.spacebar-label {
    color: #495057;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 4px;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
    font-family: 'Arial', sans-serif;
    opacity: 0.8;
}

.click-area.game-active .spacebar-key {
    background: linear-gradient(180deg, #81c784 0%, #66bb6a 20%, #4caf50 80%, #388e3c 100%);
    border: 1px solid #2e7d32;
    border-bottom: 3px solid #1b5e20;
    box-shadow: 
        0 6px 12px rgba(76, 175, 80, 0.3),
        0 2px 4px rgba(76, 175, 80, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.click-area.game-active .spacebar-label {
    color: white;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.3);
    opacity: 1;
}

.click-text {
    color: #888;
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 2px;
}


.typing-area {
    background-color: #000;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 40px;
    border: 2px solid #333;
    transition: border-color 0.3s;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.typing-area iframe{
        height: 500px;
}

.typing-area:hover {
    border-color: #4CAF50;
}

.typing-area.game-active {
    border-color: #4CAF50;
}

.text-to-type {
    background-color: #1a1a1a;
    border-radius: 10px;
    padding: 20px;
    font-size: 24px;
    line-height: 1.5;
    color: #ccc;
    font-family: 'Courier New', monospace;
    border: 1px solid #333;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: text;
    outline: none;
    user-select: none;
    position: relative;
    letter-spacing: 2px;
    white-space: nowrap;
    overflow: hidden;
}

.text-to-type .start-text {
    font-size: 16px;
}

.text-to-type.has-content {
    text-align: left;
    align-items: center;
    justify-content: flex-start;
}

.text-to-type:focus {
    border-color: #4CAF50;
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.3);
}

.text-to-type .word {
    margin-right: 5px;
    position: relative;
}

.text-to-type .word.current {
    background-color: #333;
    border-radius: 3px;
    padding: 2px 4px;
}

.text-to-type .word.completed {
    color: #4CAF50;
}

.text-to-type .word.error {
    color: #f44336;
    background-color: rgba(244, 67, 54, 0.1);
    border-radius: 3px;
    padding: 2px 4px;
}


.text-to-type .char {
    position: relative;
}

.text-to-type .char.current {
    background-color: #FFD700;
    color: #000;
    animation: cursor-blink 1s infinite;
}

.text-to-type .char.correct {
    color: #4CAF50;
}

.text-to-type .char.incorrect {
    color: #f44336;
    background-color: rgba(244, 67, 54, 0.2);
}

.text-to-type .char.pending {
    color: #888;
}

@keyframes cursor-blink {
    0%, 50% {
        background-color: #FFD700;
        color: #000;
        box-shadow: 0 0 8px rgba(255, 215, 0, 0.8);
    }
    51%, 100% {
        background-color: rgba(255, 215, 0, 0.3);
        color: #888;
        box-shadow: 0 0 4px rgba(255, 215, 0, 0.4);
    }
}

.hidden-input {
    position: absolute !important;
    left: -9999px !important;
    opacity: 0 !important;
    pointer-events: none;
}

.time-selector {
    margin-bottom: 30px;
}

.time-title-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.time-title {
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    flex: 1;
}

.time-collapse-btn {
    display: none;
    
    background: none;
    border: none;
    color: #ccc;
    font-size: 16px;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    transition: all 0.3s ease;
}

.time-collapse-btn:hover {
    background-color: #444;
    color: white;
}

.collapse-icon {

    display: inline-block;
}

.icon-expand,
.icon-collapse {
    display: inline-block;
}


.icon-expand {
    display: inline-block;
}

.icon-collapse {
    display: none;
}


.time-collapse-btn.collapsed .icon-expand {
    display: none;
}

.time-collapse-btn.collapsed .icon-collapse {
    display: inline-block;
}

.time-buttons-container {
    transition: all 0.3s ease;
}


.time-btn {
    position: relative;
    width: 100%;
    padding: 15px 12px;
    margin-bottom: 10px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #444 0%, #3a3a3a 100%);
    color: white;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    overflow: hidden;
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.time-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    border-color: rgba(76, 175, 80, 0.3);
}

.time-btn.active {
    background: linear-gradient(135deg, #F97316 0%, #EA580C 100%);
    border-color: #F97316;
    box-shadow: 
        0 6px 20px rgba(249, 115, 22, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}


.btn-icon {
    font-size: 18px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.time-btn:hover .btn-icon {
    transform: scale(1.2) rotate(10deg);
    filter: brightness(1.3);
}

.time-btn.active .btn-icon {
    animation: icon-bounce 0.6s ease;
}

@keyframes icon-bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3) rotate(15deg); }
}


.btn-text {
    flex: 1;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.time-btn:hover .btn-text {
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}


.btn-badge {
    font-size: 8px;
    font-weight: bold;
    padding: 3px 6px;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: badge-glow 2s infinite;
    flex-shrink: 0;
}

.btn-badge.lightning {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    color: #2d2d2d;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
}

.btn-badge.quick {
    background: linear-gradient(45deg, #FF6B6B, #FF8E53);
    color: white;
    box-shadow: 0 0 10px rgba(255, 107, 107, 0.6);
}

.btn-badge.popular {
    background: linear-gradient(45deg, #4ECDC4, #44A08D);
    color: white;
    box-shadow: 0 0 10px rgba(78, 205, 196, 0.6);
}

.btn-badge.balanced {
    background: linear-gradient(45deg, #A8E6CF, #7FCDCD);
    color: #2d2d2d;
    box-shadow: 0 0 10px rgba(168, 230, 207, 0.6);
}

.btn-badge.medium {
    background: linear-gradient(45deg, #FFB347, #FFCC5C);
    color: #2d2d2d;
    box-shadow: 0 0 10px rgba(255, 179, 71, 0.6);
}

.btn-badge.endurance {
    background: linear-gradient(45deg, #B19CD9, #C7CEEA);
    color: white;
    box-shadow: 0 0 10px rgba(177, 156, 217, 0.6);
}

.btn-badge.marathon {
    background: linear-gradient(45deg, #FF9A9E, #FECFEF);
    color: #2d2d2d;
    box-shadow: 0 0 10px rgba(255, 154, 158, 0.6);
}

.btn-badge.extreme {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.6);
}

@keyframes badge-glow {
    0%, 100% { 
        opacity: 1; 
        transform: scale(1);
    }
    50% { 
        opacity: 0.8; 
        transform: scale(1.05);
    }
}


.btn-ripple {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    transform: scale(0);
    transition: all 0.6s ease;
    border-radius: 12px;
}

.time-btn:active .btn-ripple {
    opacity: 1;
    transform: scale(1);
    transition: all 0.3s ease;
}


.speed-test:hover {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #2d2d2d;
}

.quick-test:hover {
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%);
}

.standard-test.active {
    animation: active-pulse 2s infinite;
}

@keyframes active-pulse {
    0%, 100% { 
        box-shadow: 
            0 6px 20px rgba(249, 115, 22, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
    50% { 
        box-shadow: 
            0 8px 25px rgba(249, 115, 22, 0.6),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }
}

.balanced-test:hover {
    background: linear-gradient(135deg, #A8E6CF 0%, #7FCDCD 100%);
    color: #2d2d2d;
}

.medium-test:hover {
    background: linear-gradient(135deg, #FFB347 0%, #FFCC5C 100%);
    color: #2d2d2d;
}

.long-test:hover {
    background: linear-gradient(135deg, #B19CD9 0%, #C7CEEA 100%);
}

.marathon-test:hover {
    background: linear-gradient(135deg, #FF9A9E 0%, #FECFEF 100%);
    color: #2d2d2d;
}

.extreme-test:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.time-btn.manual {
    background: linear-gradient(45deg, #6B7280, #4B5563);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.time-btn.manual::after {
    content: "✏️";
}

.description {
    margin-bottom: 40px;
}

.description h2 {
    font-size: 24px;
    margin-bottom: 15px;
}

.description p {
    line-height: 1.6;
    color: #ccc;
    margin-bottom: 15px;
}

.description ol {
    margin-left: 20px;
    color: #ccc;
    line-height: 1.6;
}

.description ol li {
    margin-bottom: 8px;
}

.highlight {
    color: #4CAF50;
}

.bottom-sections {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.bottom-section h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

.bottom-section p {
    color: #ccc;
    line-height: 1.6;
}


@keyframes urgent-pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

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

@keyframes spacebar-press {
    0% {
        transform: translateY(0);
        border-bottom-width: 3px;
        box-shadow: 
            0 6px 12px rgba(0, 0, 0, 0.15),
            0 2px 4px rgba(0, 0, 0, 0.1),
            inset 0 1px 0 rgba(255, 255, 255, 0.8),
            inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    }
    50% {
        transform: translateY(2px);
        border-bottom-width: 1px;
        box-shadow: 
            0 2px 4px rgba(0, 0, 0, 0.2),
            0 1px 2px rgba(0, 0, 0, 0.15),
            inset 0 1px 0 rgba(255, 255, 255, 0.6),
            inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    }
    100% {
        transform: translateY(0);
        border-bottom-width: 3px;
        box-shadow: 
            0 6px 12px rgba(0, 0, 0, 0.15),
            0 2px 4px rgba(0, 0, 0, 0.1),
            inset 0 1px 0 rgba(255, 255, 255, 0.8),
            inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    }
}

@keyframes spacebar-press-active {
    0% {
        transform: translateY(0);
        border-bottom-width: 3px;
        box-shadow: 
            0 6px 12px rgba(76, 175, 80, 0.3),
            0 2px 4px rgba(76, 175, 80, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.6),
            inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    }
    50% {
        transform: translateY(2px);
        border-bottom-width: 1px;
        box-shadow: 
            0 2px 4px rgba(76, 175, 80, 0.4),
            0 1px 2px rgba(76, 175, 80, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.4),
            inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    }
    100% {
        transform: translateY(0);
        border-bottom-width: 3px;
        box-shadow: 
            0 6px 12px rgba(76, 175, 80, 0.3),
            0 2px 4px rgba(76, 175, 80, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.6),
            inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    }
}



@media (max-width: 1024px) {

    
    .mobile-menu-btn {
        display: flex;
    }

    
    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        width: 280px;
        z-index: 1000;
        transform: translateX(-100%);
        padding: 0;
        overflow-y: auto;
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .sidebar-header {
        display: flex;
    }

    .sidebar-item {
        padding: 18px 20px;
        border-bottom: 1px solid #444;
        margin: 0;
        border-radius: 0;
    }

    
    .item-icon {
        font-size: 20px;
    }

    .item-text {
        font-size: 15px;
    }

    .item-badge {
        font-size: 8px;
        padding: 2px 5px;
    }

    .item-arrow {
        font-size: 16px;
    }

    
    .sidebar-item:hover {
        transform: translateX(5px);
    }

    
    .sidebar-item:hover .item-glow {
        transition: all 0.4s ease;
    }

    
    .container {
        flex-direction: column;
    }

    
    .main-content {
        padding: 20px 15px;
        order: 2;
    }

    .right-sidebar {
        width: 100%;
        padding: 15px;
        order: 1;
        
        border-left: none;
        border-bottom: 1px solid #444;
    }

    
    .score-boxes {
        flex-direction: column;
        gap: 10px;
    }

    .score-box {
        max-width: none;
    }

    
    .time-btn {
        padding: 16px 12px;
        font-size: 14px;
        margin-bottom: 12px;
        gap: 12px;
    }

    
    .btn-icon {
        font-size: 20px;
    }

    .btn-text {
        font-size: 14px;
    }

    .btn-badge {
        font-size: 7px;
        padding: 2px 5px;
    }

    
    .time-btn:hover {
        transform: translateY(-1px);
    }

    
    .btn-ripple {
        transition: all 0.4s ease;
    }

    
    .time-collapse-btn {
        display: block;
        
    }

    
    .time-collapse-btn .icon-expand {
        display: none;
    }

    .time-collapse-btn .icon-collapse {
        display: inline-block;
    }

    .time-collapse-btn.expanded .icon-expand {
        display: inline-block;
    }

    .time-collapse-btn.expanded .icon-collapse {
        display: none;
    }

    
    .time-buttons-container {
        max-height: 0;
        overflow: hidden;
        margin-bottom: 0;
        opacity: 0;
        transition: all 0.3s ease;
    }

    .time-buttons-container.expanded {
        max-height: 1000px;
        
        overflow: hidden;
        opacity: 1;
        margin-bottom: inherit;
    }

    
    .click-area {
        height: 200px;
        margin-bottom: 30px;
    }

    .spacebar-key {
        padding: 8px 50px;
        min-width: 150px;
        height: 40px;
        border-bottom: 2px solid #495057;
    }

    .spacebar-label {
        font-size: 10px;
        letter-spacing: 3px;
    }

    .click-text {
        font-size: 14px;
    }

  
    .typing-area {
        padding: 20px;
        min-height: 250px;
        margin-bottom: 30px;
    }

    .typing-area iframe{
        height: 300px;
    }

    .text-to-type {
        font-size: 16px;
        padding: 15px;
        min-height: 100px;
    }

    .bottom-sections {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .container {
        flex-direction: column;
    }

    .sidebar,
    .right-sidebar {
        width: 100%;
    }

    .bottom-sections {
        grid-template-columns: 1fr;
    }

    .main-content{
        order: 2;
    }
    .right-sidebar{
        width: 100%;
        padding: 15px;
        order: 1;
        border-left: none;
        border-bottom: 1px solid #444;
    }
}


.simple-footer {
    background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 50%, #2d2d2d 100%);
    border-top: 2px solid #444;
    margin-top: 40px;
    padding: 25px 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.3);
}


.footer-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
}

.decoration-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    background: rgba(76, 175, 80, 0.6);
    border-radius: 50%;
    animation: dot-float 4s ease-in-out infinite;
}

.dot-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 3s;
}

.dot-2 {
    top: 60%;
    right: 15%;
    animation-delay: 1s;
    animation-duration: 4s;
}

.dot-3 {
    bottom: 30%;
    left: 80%;
    animation-delay: 2s;
    animation-duration: 3.5s;
}

@keyframes dot-float {
    0%, 100% {
        transform: translateY(0px) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-15px) scale(1.2);
        opacity: 1;
    }
}

.decoration-line {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(76, 175, 80, 0.5), transparent);
    animation: line-glow 6s ease-in-out infinite;
}

.line-1 {
    top: 25%;
    left: 0;
    right: 0;
    animation-delay: 0s;
}

.line-2 {
    bottom: 25%;
    left: 0;
    right: 0;
    animation-delay: 3s;
}

@keyframes line-glow {
    0%, 100% {
        opacity: 0.3;
        transform: scaleX(0.5);
    }
    50% {
        opacity: 0.8;
        transform: scaleX(1);
    }
}

.footer-wave {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #4CAF50, #45a049, #4CAF50);
    background-size: 200% 100%;
    animation: wave-flow 4s ease-in-out infinite;
}

@keyframes wave-flow {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    position: relative;
    z-index: 1;
}


.copyright {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #999;
    font-size: 14px;
    transition: all 0.3s ease;
}

.copyright:hover {
    color: #ccc;
    transform: translateY(-2px);
}

.copyright-icon {
    font-size: 18px;
    animation: icon-pulse 3s ease-in-out infinite;
}

@keyframes icon-pulse {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.1) rotate(5deg);
        opacity: 1;
    }
}

.copyright-text {
    font-weight: 500;
}


.footer-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-link {
    position: relative;
    color: #ccc;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 20px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid transparent;
}

.footer-link:hover {
    color: #4CAF50;
    background: rgba(76, 175, 80, 0.1);
    border-color: rgba(76, 175, 80, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.2);
}

.link-icon {
    font-size: 16px;
    transition: all 0.3s ease;
}

.footer-link:hover .link-icon {
    transform: scale(1.2) rotate(10deg);
    filter: brightness(1.3);
}

.link-text {
    font-weight: 500;
    transition: all 0.3s ease;
}

.link-underline {
    position: absolute;
    bottom: 2px;
    left: 12px;
    right: 12px;
    height: 2px;
    background: linear-gradient(90deg, #4CAF50, #45a049);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    border-radius: 1px;
}

.footer-link:hover .link-underline {
    transform: scaleX(1);
}

.separator {
    color: #666;
    font-size: 16px;
    font-weight: bold;
    animation: separator-glow 4s ease-in-out infinite;
}

@keyframes separator-glow {
    0%, 100% {
        color: #666;
        text-shadow: none;
    }
    50% {
        color: #4CAF50;
        text-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
    }
}


.footer-bottom-decoration {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    overflow: hidden;
}

.decoration-gradient {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        #4CAF50 25%, 
        #45a049 50%, 
        #4CAF50 75%, 
        transparent 100%);
    animation: gradient-slide 3s ease-in-out infinite;
}

@keyframes gradient-slide {
    /* 0%, 100% {
        transform: translateX(-100%);
    }
    50% {
        transform: translateX(100%);
    } */
}


@media (max-width: 1024px) {
    .simple-footer {
        padding: 20px 0;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .copyright {
        justify-content: center;
        font-size: 13px;
    }
    
    .copyright-icon {
        font-size: 16px;
    }
    
    .footer-links {
        gap: 15px;
    }
    
    .footer-link {
        padding: 6px 10px;
        font-size: 13px;
    }
    
    .link-icon {
        font-size: 14px;
    }
    
    .separator {
        font-size: 14px;
    }
    
    
    .decoration-dot {
        width: 6px;
        height: 6px;
    }
    
    .footer-wave {
        height: 2px;
    }
    
    .decoration-gradient {
        height: 3px;
    }
    
    .time-selector {
        margin-bottom: 0px;
    }
}


.cookie-intro {
    margin-bottom: 30px;
}

.intro-box {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.1), rgba(76, 175, 80, 0.05));
    border: 2px solid rgba(76, 175, 80, 0.3);
    border-radius: 15px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 5px 20px rgba(76, 175, 80, 0.1);
}

.intro-icon {
    font-size: 48px;
    animation: cookie-rotate 4s ease-in-out infinite;
}

@keyframes cookie-rotate {
    0%, 100% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(10deg) scale(1.1); }
}

.intro-content h2 {
    color: #4CAF50;
    margin-bottom: 10px;
    font-size: 24px;
}

.intro-content p {
    color: #ccc;
    line-height: 1.6;
    font-size: 16px;
}


.cookie-info-panel {
    background: linear-gradient(135deg, #2d2d2d, #1a1a1a);
    border-radius: 15px;
    padding: 20px;
    border: 2px solid rgba(76, 175, 80, 0.3);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.info-header {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(76, 175, 80, 0.3);
}

.info-header h3 {
    color: #4CAF50;
    font-size: 18px;
    margin: 0;
}

.info-content {
    margin-bottom: 20px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.info-item:hover {
    background: rgba(76, 175, 80, 0.1);
    border-color: rgba(76, 175, 80, 0.3);
    transform: translateX(5px);
}

.info-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.info-text h4 {
    color: #4CAF50;
    font-size: 14px;
    margin: 0 0 5px 0;
}

.info-text p {
    color: #999;
    font-size: 12px;
    margin: 0;
    line-height: 1.4;
}

.cookie-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cookie-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border: none;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.cookie-action-btn.primary {
    background: linear-gradient(45deg, #4CAF50, #45a049);
    color: white;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.cookie-action-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.cookie-action-btn.secondary {
    background: linear-gradient(45deg, #666, #555);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.cookie-action-btn.secondary:hover {
    transform: translateY(-2px);
    background: linear-gradient(45deg, #777, #666);
}

.btn-icon {
    font-size: 16px;
}

.btn-text {
    font-weight: 600;
}


@media (max-width: 1024px) {
    .intro-box {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .intro-icon {
        font-size: 36px;
    }
    
    .intro-content h2 {
        font-size: 20px;
    }
    
    .intro-content p {
        font-size: 14px;
    }
    
    .cookie-info-panel {
        padding: 15px;
    }
    
    .info-item {
        padding: 10px;
    }
    
    .info-icon {
        font-size: 20px;
    }
    
    .cookie-action-btn {
        padding: 10px;
        font-size: 13px;
    }
}