@import url('https://fonts.googleapis.com/css2?family=Philosopher:ital,wght@0,400;0,700;1,400;1,700&display=swap');

@charset "UTF-8";
/* === КОЛЬОРИ === */
/* === БАЗА === */
body {
  font-family: "Philosopher";
  font-size: 18px;
  color: #212121;
  margin: 0;
  background-color: #f2f2f2;
  overflow-x: hidden;
}

.wrap {
  display: grid;
  grid-template-columns: 300px 1fr;
  height: 100vh;
  min-width: 100%;
}

h1 {
  margin-top: 0;
}

/* === САЙДБАР === */
.sidebar {
  position: relative;
  background-color: #ebc2ff;
  border-right: 1px solid #a873e8;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

.logo {
  padding: 20px;
  border-bottom: 1px solid #a873e8;
  background-color: #a873e8;
  color: white;
  font-weight: bold;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 2;
}

.menu {
  display: flex;
  flex-direction: column;
  padding: 20px;
  background-color: #ebc2ff;
  line-height: 30px;
  overflow-y: auto;
  height: calc(100vh - 60px);
  position: sticky;
  top: 60px;
  scrollbar-width: none;
}
.menu span {
    display:block;
    color:#dfe6e9;
}
.menu::-webkit-scrollbar {
  display: none;
}
.menu a {
  color: #212121;
  text-decoration: none;
}
.menu a:hover {
  color: #5d7bd5;
}

/* === КОНТЕНТ === */
.content {
  overflow: hidden;
}
.content_head {
  position: fixed;
  top: 0;
  left: 300px;
  right: 0;
  background-color: #f2f2f2;
  border-bottom: 1px solid #a873e8;
  padding: 20px 30px;
  text-align: right;
  z-index: 3;
}
.content_head a {
  margin-left: 10px;
  color: #212121;
  text-decoration: none;
}
.content_head a:hover {
  color: #5d7bd5;
}
.content_page {
  width: 100%;
  height: 100vh;
  padding: 100px 30px 30px;
  box-sizing: border-box;
  overflow-y: auto;
  overflow-x: hidden;
}

/* === ТЕКСТ У БЛОЦІ КАРТИ === */
.reading-flex h3 {
  margin-top: 0px;
}

.btns {
  text-align: center;
  margin-top: 20px;
}

/* === МОБІЛЬНА ВЕРСІЯ === */
@media (max-width: 768px) {
  .wrap {
    grid-template-columns: 1fr;
  }
  /* === SIDEBAR === */
  .sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 260px;
    height: 100vh;
    background-color: #ebc2ff;
    border-right: 1px solid #a873e8;
    transition: left 0.3s ease;
    z-index: 1000;
  }
  .sidebar.open {
    left: 0;
  }
  .menu {
    height: calc(100vh - 60px);
    overflow-y: auto;
  }
  /* === КОНТЕНТ === */
  .content {
    margin-left: 0;
  }
  .content_head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1100;
    background-color: #f2f2f2;
    border-bottom: 1px solid #a873e8;
  }
  /* === БУРГЕР === */
  .burger {
    background: none;
    border: none;
    font-size: 26px;
    cursor: pointer;
    color: #212121;
    transition: transform 0.2s ease;
  }
  .burger.active {
    transform: rotate(90deg);
  }
  .burger:focus {
    outline: none;
  }
  /* === КОНТЕНТ СТОРІНКИ === */
  .content_page {
    padding: 90px 20px 20px;
  }
  /* === КОЛОДА КАРТ === */
  .deck {
    width: 100% !important;
    margin-left: 0 !important;
    padding: 10px 0;
  }
  .deck-row {
    flex-wrap: wrap;
    justify-content: center;
    overflow: visible;
  }
  .card-taro {
    --card-width: 58px;
    --card-ratio: 1.75;
    margin-left: -46px;
  }
  .board {
    flex-direction: column;
    align-items: center;
  }
  .slot {
    width: 120px;
    height: 180px;
  }
}
/* === ДЕСКТОПНА ВЕРСІЯ === */
@media (min-width: 769px) {
  .burger {
    display: none;
  }
  .sidebar {
    position: relative;
    left: 0;
  }
}