/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  background-color: #f5f5f5;
}

/* Header styles */
.header {
  height: 100px;
  background-color: #1a1d24;
  padding: 1rem 2rem;
  color: white;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  position: relative;
}
.headerCon {
  background-color: #436dd0;
  padding: 1rem 2rem;
  color: rgb(199, 189, 189);
  border-radius: 20px;
}
.header-brand {
  display: flex;
  flex-direction: column;
  margin-left: 0.7rem;
}

.brand-title {
  font-size: 2rem;
  font-weight: 500;
}

.brand-subtitle {
  font-size: 1rem;
  opacity: 0.8;
}

.logo {
  max-width: 50px; /* Максимальная ширина логотипа */
  max-height: 50px; /* Максимальная высота логотипа */
  width: auto;
  height: auto;
}

/* Navigation styles */
.nav-list {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
  margin-left: 35vw;
}

.nav-link {
  color: white;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.nav-link:hover {
  background-color: rgba(17, 159, 230, 0.486);
}

.nav-link.active {
  background-color: #0ea5e9;
}

/* Mobile menu button */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu-btn span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: white;
  margin: 5px 0;
  transition: 0.3s;
}

/* Main content styles */
.main-content {
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.weather-section {
  background-color: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Footer styles */
.footer {
  background: #000;
  color: gray;
  padding: 30px 0;
  font-family: 'Play', sans-serif;
  text-align: center;
}

.footer .row {
  margin: 10px 0;
  font-size: 0.8em;
}

.footer .row a {
  text-decoration: none;
  color: gray;
  transition: color 0.5s;
}

.footer .row a:hover {
  color: #fff;
}

.footer .row ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer .row ul li {
  display: inline-block;
  margin: 0 30px;
}

.footer .row a i {
  font-size: 2em;
  margin: 0 1%;
}

/* Quote block styles */
#random-phrase {
  font-size: 1.2rem;
  font-style: italic;
  margin-bottom: 15px;
  color: #fff;
}

#author {
  font-size: 1rem;
  margin-top: 10px;
  font-weight: bold;
  color: #ccc;
}

#next-quote {
  padding: 10px 20px;
  background-color: #00b4d8;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-size: 1rem;
}

#next-quote:hover {
  background-color: #008a9d;
}

/* GitHub link styles */
.github-link {
  display: inline-flex;
  align-items: center;
  font-size: 1rem;
  color: gray;
  margin-top: 10px;
  transition: color 0.3s ease;
}

.github-link i {
  font-size: 1.5em;
  margin-right: 5px;
}

.github-link:hover {
  color: #fff;
}

/* Responsive design */
@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
    margin-left: 15vw;
  }

  .logo {
    max-width: 40px; /* Уменьшаем размер логотипа на мобильных устройствах */
    max-height: 40px;
  }

  .nav-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #1a1d24;
    flex-direction: column;
    padding: 1rem;
    gap: 1rem;
    z-index: 10;
  }

  .nav-list.active {
    display: flex;
  }

  .nav-link {
    display: block;
    width: 100%;
    text-align: center;
  }
}
.main-content {
  background: linear-gradient(135deg, #8292af 0%, #2a5298 100%);
  min-height: 85vh;
  min-width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

.weather-section {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
  border: 1px solid rgba(255, 255, 255, 0.18);
  width: 100%;
  max-width: 600px;
}

.weather-content {
  color: #ffffff;
}

.container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.converter {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.currency-select,
.currency-input {
  width: 100%;
  padding: 0.75rem;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.2);
  color: #000000;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.currency-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.7rem top 50%;
  background-size: 1rem auto;
  padding-right: 2.5rem;
}

.currency-input {
  margin-top: 0.5rem;
}

.currency-select:focus,
.currency-input:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5);
}

#swapButton {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #000000;
  font-size: 1.5rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
}

#swapButton:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(180deg);
}

.controls {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.controls > div {
  flex: 1;
}

label {
  display: block;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: rgba(0, 0, 0, 0.8);
}

.date-picker {
  margin-top: 1.3rem;
}
.dateNumber {
  margin-top: 1.6rem;
  margin-bottom: -0.5rem;
}
.date-picker,
.margin-selector {
  width: 100%;
  padding: 0.75rem;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.2);
  color: #000000;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.date-picker::-webkit-calendar-picker-indicator {
  filter: invert(1);
}

.margin-preview {
  text-align: right;
}

@media (max-width: 768px) {
  .converter {
    flex-direction: column;
  }

  .controls {
    flex-direction: column;
  }

  .weather-section {
    padding: 1.5rem;
  }

  .footer {
    padding: 20px;
    text-align: left;
  }

  .footer .row ul li {
    display: block;
    margin: 10px 0;
  }

  .footer .row a i {
    margin: 0 3%;
  }
  .github-link {
    color: white; /* Цвет текста */
    font-size: 24px; /* Размер значка */
    text-decoration: none;
    padding: 10px;
  }
  
  .github-link:hover {
    color: #333; /* Цвет при наведении */
  }
}
