:root {
  --primary-color: #2E5BFF;
  --accent-color: #829dff;
  --text-color: #333333;
  --bg-main: #ffffff;
  --bg-secondary: #fafafa;
  --bg-third: #f5f5f5;
}

body {
  font-family: Arial, sans-serif;
  margin: 0;
  background-color: var(--bg-third);
  color: var(--text-color);
}

header {
    background: var(--bg-main);
    padding: 15px 20px;
    margin: auto;
    color: black;
}

.header-size {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 800px;
    margin: auto;
}

.logo img {
    height: 40px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

nav a {
    color: black;
    text-decoration: none;
}

.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

.hero {
  text-align: center;
  padding: 3rem 1rem;
  background: var(--bg-main);
}

.hero h1 {
  font-size: 2.5rem;
}

.btn-primary {
  padding: 0.6rem 1.2rem;
  background: var(--primary-color);
  border: 2px solid var(--primary-color);
  color: white;
  cursor: pointer;
  font-size: 1rem;
  border-radius: 4px;
}

.btn-primary:hover {
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  background: white;
  padding: 0.6rem 1.2rem;
  cursor: pointer;
  font-size: 1rem;
}

.tools-section {
  background: var(--bg-secondary);
  padding: 2rem;
}

.tools-section h2 {
  text-align: center;
  margin-bottom: 1rem;
}

#searchBox {
  display: block;
  margin: 0 auto 1.5rem;
  padding: 0.5rem;
  width: 80%;
  max-width: 400px;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

/* ANIMACIJA KORTELEMS */
.tool-card {
  background: var(--bg-main);
  padding: 1rem;
  border-radius: 5px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  opacity: 0;
  transform: translateY(20px);
}

.tool-card.visible {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.4s ease;
}

.tool-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
}

.tool-card svg {
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.btn-link {
  display: inline-block;
  margin-top: 0.5rem;
  color: var(--primary-color);
  text-decoration: none;
}

.about {
  max-width: 800px;
  background: var(--bg-main);
  padding: 2rem;
  margin: auto;
}

/* BUTTON BAR STYLES */
.extra-actions {
  gap: 0.5rem;
  margin: 1rem 0;
  text-align: center;
}

.extra-actions button {
  margin: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: 0.9rem;
  background: var(--primary-color);
  border: 1px solid var(--primary-color);
  color: white;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem; /* tarpas tarp ikonos ir teksto */
}

.extra-actions svg {
  width: 1em; /* automatiškai prisitaiko prie teksto dydžio */
  height: 1em;
  position: relative; top: 1px;
}

.extra-actions button:hover {
  margin: 0.5rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  border: 1px solid var(--primary-color);
  background: white;
  color: var(--primary-color);
}


footer {
  background: var(--primary-color);
  color: white;
  text-align: center;
  padding: 10px;
  margin-top: 30px;
}

/* Mobile styles */
@media (max-width: 768px) {
    nav ul {
        display: none;
        flex-direction: column;
        background: white;
        position: absolute;
        top: 60px;
        right: 0;
        width: 200px;
        padding: 10px;
    }
    nav ul.show {
        display: flex;
    }
    .menu-toggle {
        display: block;
    }
}