/* ========== Общие стили ========== */
body {
  margin: 0;
  padding: 0;
  font-family: sans-serif;
  overflow: hidden;
}

.background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: url('background.png');
  background-size: cover;
  background-position: center;
  filter: blur(15px);
  z-index: -1;
  transform: scale(1.1);
}

.centered-image {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 406px;
  height: 351px;
  transform: translate(-50%, -50%);
}

.header-content {
  position: fixed;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 10;
}

.header-logo {
  width: 64px;
  height: auto;
  object-fit: contain;
  user-select: none;
}

.header-text {
  color: rgba(255, 255, 255, 0.582);
  font-size: 36px;
  font-weight: bold;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  user-select: none;
  margin-top: -18px;
}

.menu-wrapper {
  position: fixed;
  top: 10px;
  left: 20px;
  z-index: 30;
}

.menu-toggle {
  font-size: 28px;
  background-color: #686868;
  color: white;
  border: none;
  border-radius: 6px;
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.side-menu {
  position: fixed;
  top: 60px;
  left: 0;
  width: 200px;
  height: calc(100vh - 64px);
  background-color: rgb(85, 85, 85);
  display: none;
  flex-direction: column;
  padding: 20px;
  gap: 10px;
  z-index: 20;
}

.side-menu.active {
  display: flex;
}

.side-menu button {
  background: transparent;
  border: none;
  color: white;
  font-size: 16px;
  padding: 5px;
  margin: 0;
  cursor: pointer;
  position: relative;
}

.side-menu button:hover {
  background-color: #767676;
}

.side-menu button::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: rgb(143, 143, 143);
  opacity: 0.5;
}

.header {
  position: fixed;
  left: 0;
  width: 100%;
  height: 60px;
  background-color: rgb(85, 85, 85);
  z-index: 15;
}

.header-underline {
  position: fixed;
  left: 0;
  top: 60px;
  width: 100%;
  height: 4px;
  background-color: rgb(62, 62, 62);
  z-index: 15;
}

.center-square {
  position: fixed;
  top: calc(30px + 50%);
  left: 50%;
  width: 550px;
  height: 550px;
  background-color: rgb(85, 85, 85);
  transform: translate(-50%, -50%);
  border-radius: 8px;
  padding: 20px;
  box-sizing: border-box;
  color: white;
  overflow-y: auto;
  text-align: left;
}
p {
  font-size: 14px;
}
h2 {
  font-size: 17px;
}
.ok-button {
  background-color: #00bfff;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-left: 20px;
  flex-shrink: 0;
}

.ok-button:hover {
  background-color: #0099cc;
}
#copy-alert {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #2ecc71;
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: bold;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
#copy-alert.show {
  opacity: 1;
}

@media (max-width: 768px) {
  .header {
    height: 50px;
  }

  .header-underline {
    top: 50px;
  }

  .header-content {
    gap: 6px;
  }

  .header-logo {
    width: 48px;
  }

  .header-text {
    font-size: 13px;
    margin-top: -10px;
  }

  .menu-toggle {
    width: 36px;
    height: 36px;
    font-size: 24px;
  }

  .side-menu {
    width: 160px;
    top: 50px;
    height: calc(100vh - 50px);
  }

  .center-square {
    position: fixed;
    top: 60px; 
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    overflow-y: auto;
    padding: 16px;
    border-radius: 8px;
  }

  .center-square h2 {
    font-size: 17px;
  }

  .center-square p {
    font-size: 14px;
  }

  .centered-image {
    width: 80%;
    height: auto;
    max-width: 300px;
  }
}
