@import url('reset.css');

.city::-webkit-scrollbar {
    width: 5px;               /* ширина всей полосы прокрутки */
  }
  
.city::-webkit-scrollbar-track {
    background: rgb(126, 125, 125);        /* цвет зоны отслеживания */
}
  
.city::-webkit-scrollbar-thumb {
    background-color:#7A956B ;    /* цвет бегунка */
    border-radius: 20px;       /* округлось бегунка */
    border: 3px solid #ffffff;  /* отступ вокруг бегунка */
}


body {
    padding-top: 70px;
    background: rgb(65, 64, 64);
}

.container{
    padding: 0 15px;
}

.wrapper {
    background: #7A956B;
    border-radius: 10px;
    padding: 20px;
    max-width: 480px;
    margin: 0 auto;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.weather {
    margin-bottom: 20px;
}

.weather__header {
    display: flex;
}

.weather__main {
    flex: 1 1 auto;
}

.weather__city {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 15px;
}

.weather__status {
    font-size: 20px;
    margin-bottom: 20px;
}

.weather__temp {
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 10px;
}

.weather__temp::after,
.weather__feels-like::after {
    display: inline-block;
    margin-left: 5px;
    content: "°C";
}

.weather__loading {
    display: flex;
    justify-content: center;
    align-items: center;
}

.weather__loading img {
    max-width: 50px;
}

.weather__country {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
}

.weather__country select:focus {
    box-shadow: 0 0 0 3px #7da354a1;
}

.city {
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.select  {
    margin-bottom: 10px;
    line-height: 1.2;
    background-color: #7A956B;
}

option:checked {
    background-color: rgba(0, 0, 0, 0.127);
    color:  #000;
  }

.select,
.input__city {
    border: 1px solid black;
    padding: 5px;
    margin-right: 20px;
    border-radius: 5px;
    background-color: #7A956B;
}

.input__city {
    margin-bottom: 10px;
}

.input__city,
.select:focus {
    box-shadow: 0 0 0 3px #7da354a1;
}

.city{
    position: relative;
    left: 10%;
    text-align: center;
    max-height: 100px;
    max-width: 200px;
    padding: 8px;
    font-weight: 400;
    overflow: auto;
    box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.1);
}

.city li:not(:last-child) {
    margin-bottom: 8px;
}

.city__wrepper{
    margin-bottom: 10px;
}

.weather>*:last-child {
    margin-bottom: 0px;
}

input,
select,
label,
.checkbox {
    cursor: pointer;
}

.hide {
    display: none;
}

/* Покращуємо чекбокс для старих версій */
.checkbox {
  vertical-align: top;
  margin: 0 3px 0 0;
  width: 17px;
  height: 17px;
}

/* Оформлення чекбокса в нових браузерах, так як старі не підтримують селектори :not и :checked */

/* Ховаємо оригінальний чекбокс */
.checkbox:not(checked) {
  position: absolute;
  opacity: 0;
}
.checkbox:not(checked) + label {
  position: relative; /* позиціонуємо псевдочекбокс відносно label */
 padding: 0 0 0 50px; /* залишаємо зліва від label місце під псевдочекбокс */
}
/* Оформлення першої частини чекбокса у вимкненому стані (фон) */
.checkbox:not(checked) + label:before {
  content: '';
  position: absolute;
  top: 0px;
  left: 0;
  width: 45px;
  height: 20px;
  border-radius: 13px;
  background: #CDD1DA;
  box-shadow: inset 0 2px 3px rgba(0,0,0,.2);
}
/* Оформлення другої частини псевдочекбокса (перемикач) */
.checkbox:not(checked) + label:after {
  content: '';
  position: absolute;
  top: 1px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #FFF;
  box-shadow: 0 2px 5px rgba(0,0,0,.3);
  transition: all .2s; /* анимация, чтобы чекбокс переключался плавно */
}
/* Міняємо фон чекбокса, коли він увімкнений */
.checkbox:checked + label:before {
  background: #9FD468;
}
/* Зміщуємо перемикач чекбокса, коли він увімкнений */
.checkbox:checked + label:after {
  left: 25px;
}
/* Чукбокс у стані фокусу */
.checkbox:focus + label:before {
  box-shadow: 0 0 0 3px #7da354a1;
}