Menu

Applying the CSS

Applying the CSS

This file contains the application's styling. The styles defined here control the appearance of the Age Calculator component, including layout, spacing, and overall design.

File Path: Age_Calculator\src\App.css

@import "tailwindcss";

.main-wrapper {
  background: linear-gradient(135deg, #e0f2fe 0%, #f1f5f9 100%);
  position: relative;
}

h1 {
  font-weight: 700;
  text-align: center;
}

.age-calculator-component {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  border-radius: 8px;
  background: #f8fafc;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
}

.age-text {
  background: #2563eb;
  color: #ffffff;
  font-weight: 500;
  border-radius: 8px;
  opacity: 0.9;
  transition: 0.3s;
}

.age-text:hover {
  opacity: 1;
  cursor: pointer;
}

.text-head {
  color: #334155;
  font-weight: 500;
}