body {
max-width: 1200px!important;
    margin: 0px auto;
background-color: #F3F3F3;
min-height: 1000px!important;
}
main{
    background-color: white;
     /*margin-top: 40px;*/
     min-height: 500px;
}
header {
/*background-color:black;*/
margin-bottom: 10px;

}
header .bar_desktop{

    padding: 6px;
    /*background-color: #333333;*/
    background-color: #1f2736;
        display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

.logomenu{
    height: 45px;
    margin-left: 10px;
    width:150px;
}
.logomenu a img{
        height: 100%;
    width: auto;
}

.buttons {
display: flex;
    margin-left: auto;
    flex-direction: row;
    height: 45px;
    width: 80%;
    justify-content: flex-end;
    align-items: center;
}

.iconblock {
  padding: 0px 10px;
      height: 25px;
}
.iconblock a img{
    height: 27px;
}
.search_bar{
     height: 35px;
     width: 50%;
}
@media(max-width:1000px){
.search_bar{
     height: 35px;
     width: 30%;
}
.buttons{
width:75%;
}

}


.search_bar input[name="search_query"] {
    width: 100%;
    /*border-bottom-left-radius: 5px;
    border-top-left-radius: 5px;*/
    border-radius:2px;
    border: 0px;
    height: 100%;
}
.search_bar .result_query{
    min-height: 50px;
    background-color: white;
    margin-top: 10px;
    position: relative;
    border: 1px solid #959595;
    border-radius: 2px;
    display:none;
        max-height: 300px;
    overflow-y: scroll;
}
.search_bar .result_query[active]{
display:block;
}
.search_bar .result_query li a{
width: 100%;
    display: block;
    padding: 5px 20px;
    font-size:16px;
}
.search_bar .result_query li a:hover{
color:black;
background-color:#f3f3f3;
}
.search_bar .result_query li a .veh_name,.search_bar .result_query li a .reg_name{
    color: #539367;
    font-weight: 700;
}
.search_bar .result_query li a .veh_name{
    margin-right: 10px;
}
.search_bar .result_query li a .reg_name{
   margin-left: 10px;
}
.search_bar input[type="submit"] {
height: 100%;
    margin-left: 0px;
    background-color: #35b708;
    border: 0px solid;
    color: white;
    border-bottom-right-radius: 5px;
    border-top-right-radius: 5px;
    width: 20%;
}
/*Mobile search query*/
.mobile_search .result_query{
    min-height: 50px;
    background-color: white;
    margin-top: 10px;
    position: relative;
    border: 1px solid #959595;
    border-radius: 2px;
    display:none;
        max-height: 300px;
    overflow-y: scroll;
}
.mobile_search .result_query[active]{
display:block;
}
.mobile_search .result_query li a{
width: 100%;
    display: block;
    padding: 5px 20px;
    font-size:16px;
}
.mobile_search .result_query li a:hover{
color:black;
background-color:#f3f3f3;
}
.mobile_search .result_query li a .veh_name,.search_bar .result_query li a .reg_name{
    color: #539367;
    font-weight: 700;
}
.mobile_search .result_query li a .veh_name{
    margin-right: 10px;
}
.mobile_search .result_query li a .reg_name{
   margin-left: 10px;
}



.mycabinet > a {
font-size: 22px;
    color: white;
    font-family: Arial;
    font-weight: 600;
}
        .dropdown-content {
            display: none;
            position: relative;
            background-color: #f9f9f9;
            min-width: 160px;
            box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
            z-index: 1;
            opacity: 0; /* Начальная непрозрачность */
            transition: opacity 0.3s ease, transform 0.3s ease; /* Добавление перехода */
            transform: translateY(-10px); /* Начальная позиция для эффекта */
         font-size:14px;
         padding:7px 0px;
        }

        .dropdown-content a ,.dropdown-content button {
            color: black;
            padding: 5px 10px;
            text-decoration: none;
            display: block;
        }

        .dropdown-content a:hover {
            background-color: #f1f1f1;
        }

        .mycabinet:hover .dropdown-content {
            display: block;
            opacity: 1; /* Увеличение непрозрачности при наведении */
            transform: translateY(0); /* Возвращение в исходную позицию */
        }



.selldiv a{
    font-size: 13px;
    color: white;
    font-family: Arial;
    text-decoration: none;
    padding: 10px;
    background-color: #35B708;
    border-radius: 4px;
}
.selldiv a span{
    font-weight: 600;
}
.menu_bar{
        font-size: 50px;
    color: white;
    font-weight: bold;
    display: none;
    margin-left: 10px;
    margin-right: 20px;
}

header .mobile_menu{
    padding: 20px;
    background-color: #D8FFCA;
    display: none;
}
header .mobile_menu ul{
margin: 0px;
    padding: 0px;
    list-style-type: none;
}
header .mobile_menu ul li{
        margin: 10px 0px;
}
header .mobile_menu ul li a{
    font-size: 40px;
    text-decoration: none;
    font-family: Arial;
    color: #333333;
}
header .mobile_menu ul li > span{
        font-size: 40px;
    font-family: Arial;
    color: #333333;
}
header .mobile_menu ul li a > span{
font-size:20px;
}

header .mobile_menu ul li div input[name="search_query"] {
        width: 100%;
    height: 60px;
    border: 0px;
    border-radius:5px;
    border: 2px solid silver;
}
header .mobile_menu ul li form input[type="submit"] {
height: 62px;
    border: 0px;
    background-color: #35b708;
    padding: 10px 20px;
    width: 22%;
    color: white;
    text-align: center;
}
header .mobile_menu ul .sell_block a{
        background-color: #35b708;
    display: block;
    font-size: 20px;
    padding: 15px;
    text-align: center;
    color: white;
}
header .mobile_menu ul .sell_block a span{
    color: white;
    font-size: 20px;
}



/*Версия планшента*/
@media(max-width:768px){
    header .mobile_menu[clicked]{
        display: block;
    }
.search_bar {
    display: none;
}
#sell_desktop{
    display: none;
}
.selldiv a{
    font-size: 20px;
    padding: 4.14px 9.5px;
    border-radius: 50%;
    margin-left: 10px;
    display:none;
}
.menu_bar{
    display: block;
}
.buttons{
width:68%;
}

}
@media(max-width:550px){
#save,#message,.mycabinet{
    display: none;
}
.buttons{
width:50%;
}
}


/*Navigation*/

nav{
        background-color: #EE3030;
}

nav ul{
    margin: 0px 0px;
    list-style-type: none;
    color: white;
    padding: 0px;
}
nav ul li{
display: inline-block;
    font-size: 15px;
    padding: 13px 10px;
}
nav ul li:hover{
        border-bottom: 4px solid white;
}
nav ul li a{
        color: white;
    text-decoration: none;
    font-family: Arial;
    font-weight: 600;
}
nav ul li a:hover{
color:white;
}
@media(max-width:800px){
nav{
background-color: #EE3030;
    overflow-x: scroll;
    white-space: nowrap;
}

}


footer{
    margin-top: 20px;
    min-height: 40px;
    padding: 10px;
    padding: 10px 0px;
    background-color: #1f2736;
}
footer > div{
    margin: 0px 10px;
}
footer div div ul{
    /*width: 170px;*/
    padding: 0px 10px;
}
footer div div ul li{
    margin: 5px;
    font-size: 16px;
}
footer div div ul li a{
    color: white;
}