html {
  font-size: 16px;
}

body {
  font-family: Arial, sans-serif;
  background: linear-gradient(
    -45deg,
    rgb(137, 58, 150),
    rgba(0, 119, 255, 0.7),
    rgb(137, 58, 150)
  );
  background-size: 100% 100%;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
}

/* ================================================================== */
/* Main content */
/* ================================================================== */
main {
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  flex: 1 0 auto;
  margin-top: 70px;  /* IMPORTANT for the fixed header */
}


/* ================================================================== */
/* Tools container */
/* ================================================================== */

/* General */
/* ------------------------------------------------------------------ */
.tools-container {
  width: 80%;
  margin: 2rem auto;
  padding: 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Header */
.tools-header {
  background: rgb(137, 58, 150);
  border-radius: 16px;
  padding: 1rem;
  margin-bottom: 3rem;
  position: relative;
  overflow: hidden;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tools-header h2 {
  color: rgb(255, 255, 255);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.tools-header p {
  color: rgb(248, 250, 252);
  font-size: 1.2rem;
  font-weight: 400;
  margin-bottom: 0;
  opacity: 0.95;
}

/* Tools section */
/* ------------------------------------------------------------------ */
.tools-grid {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.tool-card {
  width: 300px;
  padding: 1.5rem;
  border-radius: 8px;
  background-color: rgb(245, 245, 245);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tool-card:hover {
  transform: translateY(-5px);
}

.tool-card h3 {
  margin-bottom: 1rem;
}

.tool-card p {
  margin-bottom: 1.5rem;
  color: rgb(102, 102, 102);
}

.tool-button {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  background-color: rgb(76, 175, 80);
  color: rgb(255, 255, 255);
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.tool-button:hover {
  background-color: rgb(69, 160, 73);
}
