﻿html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
}
/* Убираем ограничение ширины для body */
/*
    body {
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
*/
    /* Или только для страницы Oppikieli */
    body[style*="background-color: #FFFFCC"] {
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }
/***********/
/* Модальное окно */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    position: relative;
    overflow: auto;
}

/* Крестик закрытия - СЛЕВА */
.close {
    position: absolute;
    left: 15px;
    top: 10px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: blue;
    /*    background-color: #f59c9c;*/
    text-decoration: none;
}

    .close:hover {
        color: red;
        /*  background-color: #258cfb;*/  
    }

/* Выравнивание таблицы по центру */
#taulu {
    text-align: center;
    margin-top: 20px;
}

/* Выравнивание переводов слева */
#dTrans {
    text-align: left !important;
}

/*блок поиска */
.search-container {
    display: flex;
    align-items: center;
    height: 50px;
    width: 50%;
    border: 2px solid blue;
    padding: 5px;
    background-color: white;
    position: relative;
}

    .search-container input[type="text"] {
        flex: 1;
        height: 100%;
        font-size: 16px;
        padding: 0 10px;
        border: none;
    }

.icon-button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    height: 100%;
    width: auto;
    margin-left: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: aqua;
    transition: background-color 0.3s;
}

    .icon-button:hover {
        background-color: darkcyan;
    }

.icon-img {
    height: 90%;
    width: auto;
    vertical-align: middle;
}

.flag-img {
    height: 30px;
    width: auto;
    vertical-align: middle;
    cursor: pointer;
}

/* Стили для автозаполнения */
.search-container + #suggestions {
    position: absolute;
    top: 100%; /* Располагаем сразу под контейнером */
    left: 0;
    width: 100%; /* Ширина равна ширине .search-container */
    background-color: white;
    border: 1px solid #ccc;
    z-index: 1000; /* Увеличиваем z-index для уверенности в отображении поверх других элементов */
    max-height: 200px;
    overflow-y: auto;
    box-sizing: border-box;
    margin-top: 2px; /* Небольшой отступ от контейнера */
}

/* Стили для контейнера результатов */
.result-container {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 10px;
}

#translationDiv {
    flex: 1;
    padding: 10px;
    border: 1px solid #ccc;
}

/*конец блок поиска */
.background-block {
    background-image: url("/Images/vv_pohjaruutu.gif");
    background-repeat: repeat;
    text-align: center; 

/*    width: 80%; */
    margin-bottom: 20px;
}
.background-layout {
    background-image: url("/Images/vv_pohjaruutu.gif");
    background-repeat: repeat;
    text-align: center;

    width: 85%;
    margin: 0 auto;
    padding: 0 15px;
}
.row {
    margin-left: -15px;
    margin-right: -15px;
}
/***********/
/* fin таблица падежей
----------------------------------------------------------*/
.vTab {
    /*width: 600px;*/
    font-size: small;
    white-space: nowrap;
    border-spacing: 0px;
    text-align: left;
    width: 100%;
    border-collapse: collapse;
    margin: 5px 1px;
}

    .vTab td {
        padding: 1px 2px; /* 4px 8px; */
        border: 1px solid #ddd;
    }

.col1, .colNimi { /*new*/
    font-weight: bold;
    background-color: #f5f5f5;
}

.col2 {
    background-color: #ffffcc;
    width: 90px;
    padding-left: 4px;
    padding-right: 4px;
    font-size: 9pt;
    white-space: nowrap;
}

.colvali {
    background-color: #cfcfcf;
    width: 2px;
}

.col3 {
    /*width: 105px;*/
    padding-left: 4px;
    padding-right: 4px;
    white-space: nowrap;
}

.knopka { /*close modal*/
    display: inline-block;
    padding: 5px 10px;
    margin: 5px;
    background-color: #4CAF50;
    color: white;
    text-decoration: none;
    border-radius: 3px;
}

    .knopka:hover {
        background-color: #45a049;
    }

/* кнопка adj-num ver внутри модального окна
----------------------------------------------------------*/
a.knopka {
    outline: none; /* убирать контур в Mozilla */
    color: #fff; /* цвет текста */
    text-decoration: none; /* убирать подчёркивание у ссылок */
    user-select: none; /* убирать выделение текста */
    background: #d5c3c3; /* фон кнопки */
    /*padding: .7em 1.5em;*/ /* отступ от текста */
    border-radius: 15px;
}

    a.knopka:hover {
        background: rgb(232,95,76);
    }
    /* при наведении курсора мышки */
    a.knopka:active {
        background: rgb(152,15,0);
    }
/* при нажатии */
/*-end кнопка adj-num verb ----------------------------------------------*/

/* таблица склонений */
.vTr1 {
    background-color: #E2E4C0;
    font-size: 8pt;
    font-weight: bold;
    text-align: center;
}

.vTr2 {
    background-color: #E2E4C0;
    text-align: center;
    font-size: x-small;
}

.vCol1 {
    width: 60px;
}

.vCol1L {
    width: 60px;
    border-bottom-style: solid;
    border-bottom-width: 1px;
}

.vCol2 {
    width: 270px;
    padding-left: 4px;
}

.vCol2L {
    width: 270px;
    padding-left: 4px;
    border-bottom-style: solid;
    border-bottom-width: 1px;
}

.vCol11 {
    width: 60px;
    background-color: #CCCCFF;
    font-size: 8pt;
    padding-left: 10px;
}

.vCol11L {
    width: 60px;
    background-color: #CCCCFF;
    font-size: 8pt;
    padding-left: 10px;
    border-bottom-style: solid;
    border-bottom-width: 1px;
}

.vCol12 {
    font-size: 10pt;
    width: 270px;
    padding-left: 4px;
}

.vCol13 {
    font-size: 10pt;
    width: 250px;
    padding-left: 4px;
}

.vCol21L {
    text-align: center;
    border-bottom-style: solid;
    border-bottom-width: 1px;
}

.vTr3 {
    font-size: small;
    background-color: #CCCCFF;
}

.vColPart {
    width: 135px;
    padding-left: 4px;
    font-size: medium;
    border-bottom-style: solid;
    border-bottom-width: 1px;
}
/*-end таблица склонений ------------------------------------------------------*/
