﻿body {
    position: relative;
    min-height: 100%;
    top: 0px !important;
}

.subtitle {
    color: #6d4c3d;
    font-size: 18px;
}

.language-selector {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px 0;
    flex-wrap: wrap;
    gap: 15px;
}

.language-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    background: #f8f3e9;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid #e8d9c5;
    min-width: 100px;
}

    .language-option:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
        border-color: #c9a992;
    }

    .language-option.active {
        /*background: #2b1a12;
        color: #fff4e4;
        border-color: #2b1a12;*/
    }

        .language-option.active .flag {
            /*box-shadow: 0 0 0 3px #fff4e4, 0 0 0 5px #2b1a12;*/
        }

.flag {
    width: 50px;
    height: 35px;
    background-size: cover;
    background-position: center;
    border-radius: 4px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
}

.language-name {
    font-weight: 600;
    text-align: center;
}

.translate {
    margin: 30px 0;
    padding: 25px;
    background: #f8f3e9;
    border-radius: 10px;
    border-left: 5px solid #c9a992;
    font-size: 18px;
    line-height: 1.6;
    color: #2b1a12;
}

    .translate::first-letter {
        font-size: 32px;
        font-weight: bold;
        color: #2b1a12;
        float: left;
        margin-right: 8px;
        line-height: 1;
    }

.google-translate-container {
    margin: 20px 0;
    text-align: center;
}

#google_translate_element {
    display: inline-block;
}

/* Hide Google Translate elements */
body > .skiptranslate, .goog-logo-link, .gskiptranslate,
.goog-te-gadget span, .goog-te-banner-frame, #goog-gt-tt,
.goog-te-balloon-frame, div#goog-gt- {
    display: none !important;
}

.goog-te-gadget {
    color: transparent !important;
    font-size: 0;
}

.goog-text-highlight {
    background: none !important;
    box-shadow: none !important;
}

#google_translate_element select {
    background: #2b1a12;
    color: #fff4e4;
    border: none;
    font-weight: bold;
    border-radius: 3px;
    padding: 8px 12px;
    cursor: pointer;
}

.instruction {
    text-align: center;
    margin: 20px 0;
    color: #6d4c3d;
    font-style: italic;
}

.footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 2px solid #e8d9c5;
    color: #6d4c3d;
}

@media (max-width: 768px) {
    body {
        width: 95%;
        margin: 20px auto;
        padding: 15px;
    }

    .language-selector {
        gap: 10px;
    }

    .language-option {
        min-width: 80px;
        padding: 10px;
    }

    .flag {
        width: 40px;
        height: 30px;
    }

    .translate {
        font-size: 16px;
        padding: 15px;
    }
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e8d9c5;
    position: relative;
}

.header-content {
    flex: 1;
}


.subtitle {
    color: #6d4c3d;
    font-size: 18px;
}

.header-language-selector {
    display: flex;
    gap: 10px;
}

.header-language-option {
    width: 50px;
    height: 30px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
}

    .header-language-option:hover {
        transform: translateY(-3px);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }

    .header-language-option.active {
        /*border-color: #2b1a12;
        box-shadow: 0 0 0 2px #fff4e4, 0 0 0 4px #2b1a12;
            */
    }

.header-flag {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    border-radius: 3px;
}

.language-tooltip {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: #2b1a12;
    color: #fff4e4;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s;
}

.header-language-option:hover .language-tooltip {
    opacity: 1;
    visibility: visible;
}

.translate {
    margin: 30px 0;
    padding: 25px;
    background: #f8f3e9;
    border-radius: 10px;
    border-left: 5px solid #c9a992;
    font-size: 18px;
    line-height: 1.6;
    color: #2b1a12;
}

    .translate::first-letter {
        font-size: 32px;
        font-weight: bold;
        color: #2b1a12;
        float: left;
        margin-right: 8px;
        line-height: 1;
    }
