/* ==========================================
   1. BAZINIAI NUSTATYMAI IR ŠRIFTAI
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    margin: 0; 
    padding: 0;
    font-family: Arial, sans-serif;
    font-size: 13px;
    background-color: #ffffff;
}

a {
    color: #2c88df;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

p {
    padding: 2px;
}

hr {
    height: 1px; 
    border: 0;
    background-color: #2c88df;
}

/* ==========================================
   2. STRUKTŪRA IR STRUKTŪRINIAI BLOKAI
   ========================================== */
#container {
    width: 100%;
    text-align: center;
}

#header {
    width: 80%;
    margin: 10px auto;
    text-align: left;
}

#main {
    width: 80%;
    margin: 0 auto 180px auto;
    text-align: left;
}

#crefo_bg {
    width: 100%;
}

/* ==========================================
   3. HERO ir PAIEŠKOS SEKCIJA (FLEXBOX CENTRAVIMAS)
   ========================================== */
#what {
    padding: 10px 20px;
    background-image: url('../images/bg.png');
    background-repeat: repeat;
    text-align: center;
}

#what h5 {
    font-weight: normal;
    text-align: center;
    font-size: 12px;
}

/* Pagrindinis sucentruotas Hero blokas */
#search {
    background-image: url('../images/bg.png');
    background-repeat: repeat;
    padding: 40px 20px; 
    
    /* Flexbox išlygiavimas per vidurį */
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
}

#search h1 {
    text-align: center !important;
    font-weight: bold;
    font-size: fmain8px;
    margin-bottom: 8px;
    width: 100%;
}

#search h2 {
    font-weight: normal;
    text-align: center !important;
    font-size: 15px;
    color: #555;
    margin-bottom: 20px;
    width: 100%;
}

/* Forma ir jos lentelės centravimas */
#search form {
    width: 100% !important;
    max-width: 650px !important;
    margin: 0 auto !important;
}

#search .search-table {
    width: 100% !important;
    margin: 0 auto !important;
    border-collapse: collapse;
}

#search .search-table tr {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
}

#search .text-right {
    flex: 1 !important;
    text-align: right !important;
    width: auto !important;
    padding-right: 8px !important;
}

#search .text-left {
    width: auto !important;
    text-align: left !important;
}

/* Paieškos įvesties laukeliai ir mygtukas */
#sea_bar, #sea_over {
    text-align: center;
    color: #999;
    width: 100% !important; 
    height: 34px !important; 
    border: solid 1px #2c88df;
    padding: 0 10px;
    font-size: 13px;
    box-sizing: border-box !important;
}

#sea_over {
    color: #000;
}

#sea_btn {
    width: 65px; 
    height: 34px;
    background-color: #FFFFFF; 
    border: double 3px #CCC;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

#sea_btn:hover {
    border: double 3px #999;
}

#sea_btn input {
    max-width: 100%;
    max-height: 100%;
}

/* ==========================================
   4. REZULTATAI IR INFOGRAM
   ========================================== */
#result {
    margin-top: 40px;
    text-align: left;
}

#nerasta {
    margin-top: 20px;
    font-size: 14px;
    text-align: left;
}

#rezultatas {
    border-top: solid 1px #CCC; 
    border-left: solid 1px #CCC;
    border-right: solid 1px #CCC; 
    width: 160px;
    padding: 5px;
    text-align: left;
}

#more_info {
    padding: 10px;
    text-align: left;
}

#back {
    padding-top: 20px;
    text-align: right;
}

/* Rezultatų lentelės */
table#most_often {
    font-size: 13px;
    width: 90%;
    margin-top: 5px;
}

table#result_no {
    font-size: 13px;
    border-collapse: collapse;
}

table#result_no td {
    border: 1px solid #CCC;
    padding: 20px 60px;
}

table#result_yes {
    border-collapse: collapse;
    font-size: 13px;
    width: 100%;
    border: none;
}

table#result_yes th {
    background-image: url('../images/bg.png');
    background-repeat: repeat;
    font-size: 13px;
    padding: 5px;
    border-bottom: solid 1px #CCC;
}

table#result_yes tr, table#result_yes td {
    padding: 5px;
}

table#result_yes tr#more_info {
    background-image: url('../images/bg.png');
    background-repeat: repeat;
    border-bottom: solid 1px #CCC;
}

table#stabil_imo {
    width: 100%;
    font-size: 12px;
}

table#stabil_imo td {
    width: 30%;
    padding: 0 5%;
}

/* ==========================================
   5. FOOTERIS (APATINĖ JUOSTA)
   ========================================== */
#footer-mask {
    text-align: center;
    width: 100%;
}

#footer {
    text-align: center;
    font-size: 13px; 
    width: 80%;
    margin: 50px 10% 0 10%;
    position: fixed;
    bottom: 0;
    background-color: #FFF;
    padding-bottom: 15px;
    z-index: 10;
}


