:root {
  --bg-top: rgb(22, 156, 201);
  --bg-bottom: cyan;
  --accent: #003;
  --card-bg: rgba(255, 255, 255, 0.95);
  --text-dark: #012;
  --panel-bg: rgba(255, 255, 255, 0.06);
  --glass: rgba(255, 255, 255, 0.12);
  --outline-color: transparent;
  --outline-size: 0;
}

* {
  box-sizing: border-box
}

html,
body {
  height: 100%
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: white;
  background: linear-gradient(to bottom, var(--bg-top), var(--bg-bottom));
  background-repeat: no-repeat;
  background-attachment: scroll;
  background-size: 100% 150vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding: 24px;
  text-shadow: none;
  -webkit-text-stroke: var(--outline-size) var(--outline-color);
}

header {
  max-width: 1200px;
  margin: 0 auto 20px
}

h1 {
  text-align: center;
  font-family: 'Arial Narrow', Arial, sans-serif;
  font-size: 40px;
  color: white;
  margin: 8px 0 12px;
}

#maindescription {
  text-align: center;
  font-size: 18px;
  margin: 0 auto;
  color: white;
  max-width: 900px;
  padding: 0 16px 16px;
}

hr {
  width: 90%;
  margin: 16px auto;
  border: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.25);
}

.tools-layout {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 20px;
  align-items: stretch;
  align-content: start;
}

.tools-list {
  background: var(--panel-bg);
  border-radius: 12px;
  padding: 16px;
  backdrop-filter: blur(6px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  background: rgba(19, 65, 94, 0.479);
  min-height: 220px;
}

#tools-title {
  text-align: left;
  font-family: 'Arial Narrow', Arial, sans-serif;
  font-size: 22px;
  color: white;
  margin: 4px 0 12px;

  padding-left: 0;
}

.tools-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1 1 auto;
  overflow: auto;
}

.tools-list li+li {
  margin-top: 0
}

button.tool {
  width: 100%;
  text-align: left;
  display: block;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 245, 245, 0.96));
  color: var(--text-dark);
  border: 0;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 15px;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
  line-height: 1.25;
}

button.tool:focus {
  outline: none;
  box-shadow: 0 6px 18px rgba(0, 120, 200, 0.18);
  transform: translateY(-2px);
}

button.tool:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.14);
}

.tool-detail {
  background: rgba(19, 65, 94, 0.479);
  border-radius: 12px;
  padding: 20px;
  min-height: 160px;
  color: white;
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  height: 100%;
}

#footer {
  text-align: center;
  font-size: 14px;
  color: #f0f8ff;
  margin: 16px 0 0;
}

.detail-inner {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  padding: 18px;
  min-height: 0;
  flex: 1 1 auto;
  overflow: auto;
}

.detail-title {
  margin: 0 0 8px 0;
  font-size: 20px;
  color: #fff;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 260ms ease, transform 260ms ease;
}

.detail-text {
  margin: 0;
  color: #f0f8ff;
  line-height: 1.5;
  font-size: 15px;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 260ms ease, transform 260ms ease;
}

.tool-detail .fade-out {
  opacity: 0;
  transform: translateY(-10px);
}

.tools-list button.tool[aria-selected="true"] {
  background: linear-gradient(180deg, #e8f7ff, #dff3ff);
  box-shadow: 0 12px 30px rgba(2, 95, 150, 0.12);
}

@media (max-width:880px) {
  .tools-layout {
    grid-template-columns: 1fr
  }

  .tools-list {
    order: 2
  }

  .tool-detail {
    order: 1;
    height: auto
  }
}

.detail-inner p {
  max-height: 56vh;
  overflow: auto;
  padding-right: 6px;
}

button.tool:focus-visible {
  outline: 3px solid rgba(0, 120, 200, 0.18);
  outline-offset: 2px;
}