* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    list-style: none;
    font-family: 'M PLUS Rounded 1c', sans-serif;
}

.flag {
    width: 16px;
    height: 11px;
    background: #fcfcfc;
    background: url("../source/flags.png") no-repeat;
  }
  .flag.flag-nl {
    background-position: -32px -55px;
  }
  .flag.flag-br {
    background-position: -16px -11px;
  }
  .flag.flag-ax {
    background-position: -80px 0;
  }
  .flag.flag-md {
    background-position: -96px -44px;
  }
  .flag.flag-de {
    background-position: -112px -11px;
  }
  .flag.flag-me {
    background-position: -112px -44px;
  }
  .flag.flag-om {
    background-position: -64px -55px;
  }
  .flag.flag-by {
    background-position: -32px -11px;
  }
  .flag.flag-it {
    background-position: -112px -33px;
  }
  .flag.flag-at {
    background-position: -64px 0;
  }
  .flag.flag-be {
    background-position: -128px 0;
  }
  .flag.flag-sa {
    background-position: -16px -66px;
  }
  .flag.flag-cz {
    background-position: -96px -11px;
  }
  .flag.flag-tr {
    background-position: 0 -77px;
  }
  .flag.flag-lt {
    background-position: -32px -44px;
  }
  .flag.flag-no {
    background-position: -48px -55px;
  }
  .flag.flag-uz {
    background-position: -64px -77px;
  }
  .flag.flag-sm {
    background-position: -96px -66px;
  }
  .flag.flag-am {
    background-position: -48px 0;
  }
  .flag.flag-ie {
    background-position: -48px -33px;
  }
  .flag.flag-id {
    background-position: -32px -33px;
  }
  .flag.flag-sj {
    background-position: -64px -66px;
  }
  .flag.flag-my {
    background-position: -16px -55px;
  }
  .flag.flag-tm {
    background-position: -128px -66px;
  }
  .flag.flag-az {
    background-position: -96px 0;
  }
  .flag.flag-is {
    background-position: -96px -33px;
  }
  .flag.flag-gr {
    background-position: -128px -22px;
  }
  .flag.flag-fr {
    background-position: -64px -22px;
  }
  .flag.flag-gg {
    background-position: -96px -22px;
  }
  .flag.flag-im {
    background-position: -80px -33px;
  }
  .flag.flag-hr {
    background-position: 0 -33px;
  }
  .flag.flag-lv {
    background-position: -64px -44px;
  }
  .flag.flag-ad {
    background-position: 0 0;
  }
  .flag.flag-lu {
    background-position: -48px -44px;
  }
  .flag.flag-ru {
    background-position: 0 -66px;
  }
  .flag.flag-mc {
    background-position: -80px -44px;
  }
  .flag.flag-gi {
    background-position: -112px -22px;
  }
  .flag.flag-dk {
    background-position: -128px -11px;
  }
  .flag.flag-si {
    background-position: -48px -66px;
  }
  .flag.flag-ro {
    background-position: -112px -55px;
  }
  .flag.flag-pt {
    background-position: -96px -55px;
  }
  .flag.flag-ua {
    background-position: -32px -77px;
  }
  .flag.flag-tw {
    background-position: -16px -77px;
  }
  .flag.flag-ch {
    background-position: -64px -11px;
  }
  .flag.flag-xk {
    background-position: -96px -77px;
  }
  .flag.flag-cn {
    background-position: -80px -11px;
  }
  .flag.flag-il {
    background-position: -64px -33px;
  }
  .flag.flag-mk {
    background-position: -128px -44px;
  }
  .flag.flag-th {
    background-position: -112px -66px;
  }
  .flag.flag-se {
    background-position: -32px -66px;
  }
  .flag.flag-gb {
    background-position: -80px -22px;
  }
  .flag.flag-uk {
    background-position: -80px -22px;
  }
  .flag.flag-en {
    background-position: -80px -22px;
  }
  .flag.flag-ca {
    background-position: -48px -11px;
  }
  .flag.flag-sk {
    background-position: -80px -66px;
  }
  .flag.flag-us {
    background-position: -48px -77px;
  }
  .flag.flag-li {
    background-position: -16px -44px;
  }
  .flag.flag-va {
    background-position: -80px -77px;
  }
  .flag.flag-ae {
    background-position: -16px 0;
  }
  .flag.flag-bg {
    background-position: 0 -11px;
  }
  .flag.flag-al {
    background-position: -32px 0;
  }
  .flag.flag-fo {
    background-position: -48px -22px;
  }
  .flag.flag-ba {
    background-position: -112px 0;
  }
  .flag.flag-fi {
    background-position: -32px -22px;
  }
  .flag.flag-ee {
    background-position: 0 -22px;
  }
  .flag.flag-kz {
    background-position: 0 -44px;
  }
  .flag.flag-es {
    background-position: -16px -22px;
  }
  .flag.flag-rs {
    background-position: -128px -55px;
  }
  .flag.flag-mt {
    background-position: 0 -55px;
  }
  .flag.flag-je {
    background-position: -128px -33px;
  }
  .flag.flag-hu {
    background-position: -16px -33px;
  }
  .flag.flag-pl {
    background-position: -80px -55px;
  }

#header {
    display: flex;
    justify-content: space-between;
    height: 300px;
    background: url("../images/header-bg.jpg");
    background-size: cover;
    background-position: center;
    align-items: flex-start;
}
#header #header-nav {
    margin: 20px 0 20px 5vw;
    display: flex;
    gap: 20px;
}
#header #header-nav a{
    padding: 5px 10px;
    background: #ffd900;
    color: #000;
    transition: all 0.6s ease;
    font-weight: 600;
    border: 3px solid black;

}
#header #header-nav a:hover{
    background: #ff9900;
}

#header #header-langs {
    margin: 20px 5vw 20px 0;
}

#header #header-langs .langs-dropdown {
    position: relative;
}
#header #header-langs .langs-dropdown:hover  .langs-dropdown-content{
    display: flex;
}
#header #header-langs .langs-dropdown-button {
    padding: 5px 10px;
    min-width: 60px;
    display: flex;
    gap: 5px;
    align-items: center;
    justify-content: center;
    background-color: #ffd900;
    border: none;
    color: #000;
    font-weight: 600;
    border: 3px solid black;
}

/* Header */
#header #header-langs .langs-dropdown-content{
    display: none;
    position: absolute;
    background-color: #ffd900;
    border-top: 0;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    border: 3px solid black;
    border-top:0;
}
#header #header-langs .langs-dropdown-content a {
    display: flex;
    flex-wrap: nowrap;
    flex-direction: row;
    justify-content: flex-start;
    gap: 5px;
    color: #000;
    align-items: center;
    padding: 5px;
    min-width: 60px;
    font-weight: 600;
 }
 #header #header-langs .langs-dropdown-content a:hover {
  background: #ff9900;
 }

/* Main */
#text {
  max-width: 1000px;
  margin: 0 auto;
}
#text-container {
    margin: 20px 5vw;
}
#text-container p,#text-container li,#text-container h1,#text-container h2, #text-container h3,#text-container h4,#text-container h5,#text-container h6 {
    margin-bottom: 10px;
}
#text-container ul {
    padding: 10px;
}
.items-index {
    background: #f0f0f0;
    padding: 20px 0;
}
#items-title {
    margin-bottom: 15px;
    text-align: center;
    text-transform: uppercase;
}
.ad-content {
    display: flex;
    padding: 10px;
    flex-direction: column;
    color: black;
    gap: 5px;
    font-size: 18px;
}
.ad-content .ad-title {
    font-size: 22px;
    font-weight: 600;
}

.ad-content .ad-price {
    color: red;
    position: absolute;
    right: 0;
    bottom: 0;
    padding: 5px;
    font-weight: 600;
}
.ad-content .ad-parameter {
    margin-bottom: 20px;
}
.ad-content .ad-parameter p{
    background: #fafafa;
    padding: 5px;
    margin-bottom: 10px;
}

.ad-list {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    justify-content: space-evenly;
    gap:15px;
    padding: 0 5vw;
}

.ad-list a {
    width: 23%;
    padding: 10px;
    box-shadow: 0px 0px 2px 2px #e0e0e0;
    text-decoration: none;
    position: relative;
    background: #fff;
    border: 3px solid black;
}
.ad-list a:hover {
  box-shadow: 0px 0px 2px 2px #ffd900;
}

.ad-list a .ad-preview img{
    width: 100%;
}

/* LIST */

.items-offers {
    background: #f0f0f0;
    padding: 20px 0;
}
.items-offers  .pager {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 15px 0;
}

.items-offers  .pager  .pager-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}
.items-offers  .pager  .pager-container .cur_{
    padding: 5px 10px;
    background: #ff9800;
    box-shadow: 0px 0px 2px 2px #e0e0e0;
    text-decoration: none;
    color: #000;
    display: flex;
    border: 3px solid #000;
}

.items-offers  .pager  .pager-container a {
    background: #ffd900;
    padding: 5px 10px;
    transition: all 0.5s ease; 
    color:#000;
    box-shadow: 0px 0px 2px 2px #e0e0e0
}

.items-offers  .pager  .pager-container a:hover {
    background: #ff9800;
    
}

#search-tools {
    box-sizing: border-box;
    padding: 20px;
    transition: all .5s ease;
    border-top: 1px solid #f0f0f0;
  }
  #search-tools form {
    background: #fff;
    border: solid 2px #fff;
    box-shadow: 1px 1px 2px 2px #e0e0e0;;
    font-size: 12px;
    margin: 0 auto;
    padding: 10px;
    position: relative;
    max-width: 350px;
  }
  #search-tools form .search-tools-field {
    display: block;
    font-size: 11px;
    margin: 0 auto;
    max-width: 300px;
  }
  #search-tools form .search-tools-field label {
    color: #1b1920;
    font-size: 11px;
    text-transform: uppercase;
  }
  #search-tools form .search-tools-field .search-tools-field-inputs input[type="text"] {
    appearance: none;
    -webkit-appearance: none;
    background: #fff;
    -webkit-box-shadow: 0px 0px 0px 1px #fff;
    -moz-box-shadow: 0px 0px 0px 1px #fff;
    box-shadow: 0px 0px 0px 1px #fff;
    border: solid 1px #eaeaea;
    border-radius: 0;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    margin: 3px 0px 7px;
    padding: 6px 6px;
    max-width: 130px;
  }
  #search-tools form .search-tools-field input[name="kw"] {
    appearance: none;
    -webkit-appearance: none;
    background: #fff;
    -webkit-box-shadow: 0px 0px 0px 1px #fff;
    -moz-box-shadow: 0px 0px 0px 1px #fff;
    box-shadow: 0px 0px 0px 1px #fff;
    border: solid 1px #eaeaea;
    border-radius: 0;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    margin: 3px 0px 7px;
    padding: 6px 6px;
    width: 100%;
    max-width: 270px;
  }
  #search-tools form .submit-tools-field {
    text-align: center;
  }
  #search-tools form .submit-tools-field input[type="submit"] {
    appearance: none;
    -webkit-appearance: none;
    background-color: #ffd900;
    border: 3px solid #000;
    color: #000;
    font-size: 14px;
    font-weight: bold;
    margin-top: 25px;
    padding: 10px;
    text-transform: uppercase;
    transition: all 0.5s ease;
    cursor: pointer;
    width: 100%;
  }
  #search-tools form .submit-tools-field input[type="submit"]:hover {
    background: #ff9900;
  }
  #search-tools form .search-tools-field .search-tools-field-inputs input:focus-visible {
    outline: #ffd900 auto 1px;
  }

  #search-tools form .search-tools-field input[name="kw"]:focus-visible {
    outline: #ffd900 auto 1px;
  }

#offers-text {
  max-width: 1000px;
  margin: 20px auto;
}

#offers-text-container {
  margin: 20px 5vw;
}
#offers-text p,#offers-text li,#offers-text h1,#offers-text h2, #offers-text h3,#offers-text h4,#offers-text h5,#offers-text h6 {
    margin-bottom: 10px;
}
#offers-text ul {
    padding: 10px;
}

/*ITEM */
#wrap-item {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  border-bottom: solid 1px #9e9e9e;
  border-top: solid 1px #9e9e9e;
  position: relative;
}

#slider-item {
    padding: 20px;
    width: 50%;
}

#slider-item .lSSlideOuter {
  box-sizing: border-box;
  margin: 0 auto;
  width: 97%;
}

#slider-item .lSSlideOuter img {
  width: 100%;
}

#item {
  width: 50%;
}

#item #item-description {
    padding: 20px 5vw;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
#item #item-description h1 {
    text-align: center;
}

#item #item-contact {
    border-top: solid 1px #9e9e9e;
    padding: 20px 0;
  }
  #item #item-contact #item-contact-form {
    border-right: solid 1px #fff;
    margin: 20px 0;
    text-align: center;
  }
  #item #item-contact #item-contact-form #contact-form-title {
    text-align: left;
    padding-bottom: 20px;
  }
  #item #item-contact #item-contact-form #contact-form-title h2 {
    background: #fff;
    font-size: 16px;
    font-weight: 400;
    margin: 10px auto;
    padding: 10px;
    text-align: center;
    text-transform: uppercase;
    text-shadow: 0px 0px 2px rgba(141, 140, 143, 0.4);
  }
  #item #item-contact #item-contact-form #contact-form-body form {
    background: #fff;
    -webkit-box-shadow: 0px 0px 0px 1px #eaeaea;
    -moz-box-shadow: 0px 0px 0px 1px #eaeaea;
    box-shadow: 0px 0px 0px 1px #eaeaea;
    border: 3px solid #000;
    display: inline-block;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    text-align: left;
    width: 300px;
    max-width: 500px;
  }
  #item #item-contact #item-contact-form #contact-form-body form .contact-form-field {
    align-items: flex-start;
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    justify-content: space-between;
  }
  #item #item-contact #item-contact-form #contact-form-body form .contact-form-field label {
    font-size: 11px;
    text-transform: uppercase;
  }
  #item #item-contact #item-contact-form #contact-form-body form .contact-form-field input {
    appearance: none;
    -webkit-appearance: none;
    background: #fff;
    -webkit-box-shadow: 0px 0px 0px 1px #fff;
    -moz-box-shadow: 0px 0px 0px 1px #fff;
    box-shadow: 0px 0px 0px 1px #fff;
    border: solid 1px #eaeaea;
    border-radius: 0;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    margin: 3px 0px 7px;
    padding: 6px 6px;
    width: 100%;
  }

  #item #item-contact #item-contact-form #contact-form-body form .contact-form-field input:focus-visible {
    outline: #ffd900 auto 1px;
  }

  #item #item-contact #item-contact-form #contact-form-body form .contact-form-field textarea {
    appearance: none;
    -webkit-appearance: none;
    background: #fff;
    -webkit-box-shadow: 0px 0px 0px 1px #fff;
    -moz-box-shadow: 0px 0px 0px 1px #fff;
    box-shadow: 0px 0px 0px 1px #fff;
    border: solid 1px #eaeaea;
    border-radius: 0;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
    font-size: 11px;
    height: 100px;
    margin: 3px 0px 7px;
    padding: 6px 6px;
    width: 100%;
    max-width: 300px;
  }
  #item #item-contact #item-contact-form #contact-form-body form .contact-form-field textarea:focus-visible {
    outline: #ffd900 auto 1px;
  }

  #item #item-contact #item-contact-form #contact-form-body form .contact-form-submit {
    text-align: center;
  }
  #item #item-contact #item-contact-form #contact-form-body form .contact-form-submit input[type="submit"] {
    appearance: none;
    -webkit-appearance: none;
    background-color: #ffd900;
    border: 3px solid black;
    color: #000;
    font-size: 14px;
    font-weight: bold;
    margin-top: 25px;
    padding: 10px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.5s ease;
  }
  #item #item-contact #item-contact-form #contact-form-body form .contact-form-submit input[type="submit"]:hover {
    background: #ff9900;
  }
  #item #item-contact #item-contact-info {
    font-weight: 300;
    font-size: 14px;
  }
  #item #item-contact #item-contact-info a:link {
    color: #fff;
  }
  #item #item-contact #item-contact-info p {
    padding: 5px 30px;
  }
  #item #item-contact #item-contact-info .contact-info-name {
    background: #fff;
    font-size: 16px;
    font-weight: 400;
    margin: 10px auto;
    padding: 10px;
    text-align: center;
    text-transform: uppercase;
    text-shadow: 0px 0px 2px rgba(141, 140, 143, 0.4);
  }

/*Footer */
#footer {
  align-items: center;
  display: flex;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  height: 70px;
  text-align: center;
  background: #ffeb3b;
  border-top: 3px solid #000;
}

@media screen and (max-width: 1000px) {
    .ad-list a {
        width: 30%;
    } 
}

@media screen and (max-width: 800px) {
  #wrap-item #slider-item {
    width: 100%;
  }
  #wrap-item #item {
    width: 100%;
  }
}
@media screen and (max-width: 600px) {
    #header #header-nav a{
      font-size: 14px;
   }
    .ad-list{
        flex-direction: column;
        align-items: center;
    }
    .ad-list a {
        width: 80%;
    } 
}