/* @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap'); */

*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
  transition: all 0.4s ease;;
}

body {
    color: #333;
}

/* ===== Colours ===== */
:root{
  --body-color: #E4E9F7;
  --nav-color: #4070F4;
  /* --side-nav: #010718; */
  --side-nav: #42444a;
  --text-color: #FFF;
  --search-bar: #F2F2F2;
  --search-text: #010718;
}

body{
  height: 100vh;
  background-color: var(--body-color);
}

body.dark{
  --body-color: #18191A;
  --nav-color: #242526;
  --side-nav: #242526;
  --text-color: #CCC;
  --search-bar: #242526;
}

nav{
  position: fixed;
  top: 0;
  left: 0;
  height: 40px;
  width: 100%;
  background-color: var(--nav-color);
  z-index: 100;
}

body.dark nav{
  border: 1px solid #393838;

}

nav .nav-bar{
  position: relative;
  height: 100%;
  width: 100%;
  background-color: var(--nav-color);
  margin: 0 auto;
  padding: 0 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

nav .nav-bar .sidebarOpen{
  color: var(--text-color);
  font-size: 25px;
  padding: 5px;
  cursor: pointer;
  display: none;
}

nav .nav-bar .logo a{
  font-size: 25px;
  font-weight: 500;
  color: var(--text-color);
  text-decoration: none;
}

.menu .menu-header{
  display: none;
}

.nav-bar .nav-links{
  display: flex;
  align-items: center;
}

.nav-bar .nav-links li{
  margin: 0 5px;
  list-style: none;
}

.nav-links li a{
  position: relative;
  font-size: 17px;
  font-weight: 400;
  color: var(--text-color);
  text-decoration: none;
  padding: 10px;
}

.nav-links li a::before{
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  height: 6px;
  width: 6px;
  border-radius: 50%;
  background-color: var(--text-color);
  opacity: 0;
  transition: all 0.3s ease;
}

.nav-links li:hover a::before{
  opacity: 1;
}

.nav-bar .nav-buttons{
  display: flex;
  align-items: center;
}

.nav-buttons .dark-light,
.nav-buttons .search-button{
  height: 40px;
  width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 5px;
}

.dark-light i,
.search-button i{
  position: absolute;
  color: var(--text-color);
  font-size: 22px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dark-light i.sun{
  opacity: 0;
  pointer-events: none;
}

.dark-light.cedsamun i.sun{
  opacity: 1;
  pointer-events: auto;
}

.dark-light.cedsamun i.moon{
  opacity: 0;
  pointer-events: none;
}

.search-button i.cancel{
  opacity: 0;
  pointer-events: none;
}

.search-button.cedsamun i.cancel{
  opacity: 1;
  pointer-events: auto;
}

.search-button.cedsamun i.search{
  opacity: 0;
  pointer-events: none;
}

.search-block{
  position: relative;
}

.search-block .search-string{
  position: absolute;
  bottom: -85px;
  right: 5px;
  height: 50px;
  width: 300px;
  display: flex;
  align-items: center;
  background-color: var(--nav-color);
  padding: 3px;
  border-radius: 6px;
  box-shadow: 0 5px 5px rgba(0, 0, 0, 0.1);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}

.search-button.cedsamun ~ .search-string{
  bottom: -74px;
  opacity: 1;
  pointer-events: auto;
}

.search-string::before{
  content: '';
  position: absolute;
  right: 14px;
  top: -4px;
  height: 12px;
  width: 12px;
  background-color: var(--nav-color);
  transform: rotate(-45deg);
  z-index: -1;
}

.search-string input{
  height: 100%;
  width: 100%;
  padding: 0 45px 0 15px;
  outline: none;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 400;
  color: var(--search-text);
  background-color: var(--search-bar);
}

body.dark .search-string input{
  color: var(--text-color);
}

.search-string i{
  position: absolute;
  color: var(--nav-color);
  right: 15px;
  font-size: 22px;
  cursor: pointer;
}

body.dark .search-string i{
  color: var(--text-color);
}

.navlogo {
/*    background-color: #b3cef5; */
    padding: 6px 20px;
}

.menu {
    flex-grow: 2;
}

@media (max-width: 790px) {
  nav .nav-bar .sidebarOpen{
  display: block;
  }

  .menu{
  position: fixed;
  height: 100%;
  width: 250px;
  left: -100%;
  top: 0;
  padding: 20px;
  background-color: var(--side-nav);
  z-index: 100;
  transition: all 0.4s ease;
  }

  nav.cedsamun .menu{
  left: -0%;
  }

  nav.cedsamun .nav-bar .navlogo a{
  opacity: 0;
  transition: all 0.3s ease;
  }

  .menu .menu-header{
  display: block;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  }

  .menu-header .siderbarClose{
  color: var(--text-color);
  font-size: 24px;
  cursor: pointer;
  }

  .nav-bar .nav-links{
  flex-direction: column;
  padding-top: 30px;
  }

  .nav-links li a{
  display: block;
  margin-top: 20px;
  }
}

#content {
    margin-top: 50px;
    text-align: center;
}

/* modal window */
/* Затемнение всей страницы при открытии окна */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; /* разрешаем прокрутку */
    background-color: rgba(0,0,0,0.4);
}

/* Добавляется при открытии окна */
.modal-open {
    display: block;
}

/* Содержимое модального окна */
.modal-content {
    background-color: #fefefe;
    margin: 15% auto; /* отступ сверху и центрирование по горизонтали */
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
}


/* Кнопка закрытия модального окна */
.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.w-full {
    width: 100%;
}

.rounded-md {
    border-radius: 0.375rem;
}

.modal-content input, select {
    background-color: #fff;
    padding: 0.5rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5rem;
    border-color: #e5e7eb;
    border-radius: 0.375rem;
    width: 100%;
}

form input, select {
    background-color: #fff;
    padding: 0.5rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5rem;
    border-color: #e5e7eb;
    border-radius: 0.375rem;
    width: 100%;
}

.modal-content select {
    width: 30%;
}