.language-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    transition: all 0.3s ease;
}

.submarine-container {
    position: relative;
    width: 120px;
    height: 50px;
    cursor: pointer;
    transition: all 0.5s ease;
}

.submarine-container:hover {
    transform: translateY(-5px);
}

.submarine {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.submarine-body {
    position: absolute;
    top: 10px;
    left: 20px;
    width: 80px;
    height: 30px;
    background: linear-gradient(145deg, #009fe3, #0084be);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 159, 227, 0.4);
    z-index: 2;
    transition: all 0.3s ease;
}

.window {
    position: absolute;
    top: 7px;
    left: 15px;
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.9);
    border: 2px solid #0084be;
    border-radius: 50%;
}

.periscope {
    position: absolute;
    top: -8px;
    left: 50px;
    width: 5px;
    height: 12px;
    background-color: #0084be;
    border-radius: 2px;
}

.propeller {
    position: absolute;
    top: 12px;
    right: -5px;
    width: 10px;
    height: 8px;
    border-radius: 0 4px 4px 0;
    background-color: #e94e1b;
    animation: propellerSpin 2s linear infinite;
}

@keyframes propellerSpin {
    0% {
        transform: scaleY(1);
    }

    50% {
        transform: scaleY(1.5);
    }

    100% {
        transform: scaleY(1);
    }
}

.bubbles {
    position: absolute;
    bottom: 15px;
    right: 10px;
}

.bubble {
    position: absolute;
    width: 8px;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    opacity: 0;
}

.b1 {
    right: 0;
    animation: bubbleRise 3s linear infinite;
}

.b2 {
    right: 10px;
    animation: bubbleRise 3s linear infinite 0.8s;
}

.b3 {
    right: 20px;
    animation: bubbleRise 3s linear infinite 1.6s;
}

@keyframes bubbleRise {
    0% {
        opacity: 0.7;
        transform: translateY(0) scale(0.8);
    }

    100% {
        opacity: 0;
        transform: translateY(-40px) scale(1.2);
    }
}

.lang-flags {
    position: absolute;
    top: 55px;
    left: 50%;
    transform: translateX(-50%) scale(0);
    display: flex;
    gap: 10px;
    background: rgba(255, 255, 255, 0.95);
    padding: 8px 12px;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1;
}

.submarine-container:hover .lang-flags {
    transform: translateX(-50%) scale(1);
    opacity: 1;
}

.flag {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-weight: bold;
    color: white;
    font-size: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.hr-flag {
    background: linear-gradient(135deg, #FF0000, #0000FF);
}

.en-flag {
    background: linear-gradient(135deg, #00247D, #CF142B);
}

.flag:hover {
    transform: scale(1.15);
}

@media (max-width: 768px) {
    .language-switcher {
        top: 10px;
        right: 10px;
    }

    .submarine-container {
        width: 90px;
        height: 40px;
    }

    .submarine-body {
        width: 60px;
        height: 25px;
    }

    .window {
        width: 8px;
        height: 8px;
        top: 8px;
        left: 10px;
    }

    .periscope {
        height: 8px;
        top: -6px;
        left: 35px;
    }
}

.language-indicator {
    position: absolute;
    right: 135px;
    top: 15px;
    background: rgba(255, 255, 255, 0.95);
    padding: 5px 10px;
    border-radius: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    font-size: 12px;
    font-weight: bold;
    color: var(--primary);
    opacity: 0.9;
    transition: all 0.3s ease;
    animation: pulseIndicator 3s infinite;
    z-index: 1;
}

@keyframes pulseIndicator {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.language-switcher:hover .language-indicator {
    opacity: 0;
    transform: translateX(20px);
}

.bouncing-arrow {
    margin-left: 8px;
    animation: bounceArrow 1.5s infinite;
}

@keyframes bounceArrow {

    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(5px);
    }
}

.active-language {
    position: absolute;
    bottom: -5px;
    right: 10px;
    background: white;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--secondary);
}

.current-lang {
    font-size: 8px;
    font-weight: bold;
    color: var(--secondary);
}

.language-switcher {
    animation: attentionSeeker 3s 1s ease-in-out;
}

@keyframes attentionSeeker {
    0% {
        transform: translateY(0);
    }

    5% {
        transform: translateY(-10px);
    }

    10% {
        transform: translateY(0);
    }

    15% {
        transform: translateY(-8px);
    }

    20% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .language-indicator {
        right: 105px;
        padding: 4px 8px;
        font-size: 10px;
    }

    .active-language {
        width: 14px;
        height: 14px;
        bottom: -4px;
        right: 8px;
    }

    .current-lang {
        font-size: 7px;
    }
}

.highlight-switcher {
    transform: scale(1.1);
    filter: brightness(1.2);
}

.highlight-switcher .submarine-body {
    box-shadow: 0 0 20px rgba(233, 78, 27, 0.7);
}