/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: #fff;
    color: #333;
    min-height: 100vh;
    text-align: center;
}

body .container {
    max-width: 600px;
    margin: auto;
    padding: 8px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-radius: 6px;
}

/* Exclude header and footer containers */
header .container,
footer .container {
    background: transparent !important;
    box-shadow: none !important;
}

/* Header */
h1 {
  font-size: 1.5rem; /* smaller */
  font-weight: bold;
  margin-bottom: 0.5rem;
}

h2 {
  font-size: 1.2rem; /* smaller */
  font-weight: bold;
  margin-bottom: 0.4rem;
}

p {
    font-size: 13px;
    margin-bottom: 4px;
}

/* Labels */
label {
    margin: 0;
    padding: 0;
    font-size: 13px;
    font-weight: bold;
}

/* Form Styling */
form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px; /* smaller gap */
}

input[type="file"],
input[type="number"],
input[type="range"],
select {
    padding: 5px 6px; /* reduced padding */
    width: 100%;
    max-width: 320px; /* narrower */
    border: 1px solid #007bff;
    border-radius: 4px;
    font-size: 13px;
    background: #fff;
}

input[type="file"] {
    cursor: pointer;
}

/* Button Styling */
button {
    background: #28a745;
    color: #fff;
    padding: 6px 10px; /* smaller */
    font-size: 13px;   /* smaller */
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

button:hover {
    background: #218838;
}

/* Download Button */
.download-btn {
    display: inline-block;
    margin-top: 6px;
    padding: 6px 10px;
    background: #007bff;
    color: #fff;
    font-size: 12px;
    text-decoration: none;
    border-radius: 4px;
}

.download-btn:hover {
    background: #0056b3;
}


.loader {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #007bff;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  animation: spin 0.8s linear infinite;
  display: inline-block;
  vertical-align: middle;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}


.photo-tool-buttons {
    display: flex;
    flex-direction: column; /* Stack buttons vertically */
    align-items: center;     /* Center-align horizontally */
    gap: 2px;
    margin-top: 2px;
}

.blue-button {
    background-color: #007BFF;
    color: #fff;
    width: 200px;              /* Fixed width */
    height: 45px;              /* Fixed height */
    text-align: center;
    padding: 10px 0;           /* Vertical padding only */
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 14px;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;       /* Vertically center text */
    justify-content: center;   /* Horizontally center text */
}

.blue-button:hover {
    background-color: #0056b3;
}

/* Base styles */
.tool-article {
  text-align: left;
  line-height: 1.6;
  font-size: 16px;
  color: #333;
}

/* Theme-based heading sizes */
.tool-article h1 {
  font-size: 2.25rem; /* 36px */
  font-weight: bold;
  margin-bottom: 1rem;
}

.tool-article h2 {
  font-size: 1.75rem; /* 28px */
  font-weight: bold;
  margin-bottom: 0.75rem;
}

.tool-article h3 {
  font-size: 1.5rem; /* 24px */
  font-weight: bold;
  margin-bottom: 0.5rem;
}

/* FAQ Section */
.faq-section {
    text-align: left;
    padding: 5px;
    margin-top: 10px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.faq-section h3 {
    font-size: 16px;
    margin-bottom: 5px;
}

.faq-item {
    margin-bottom: 5px;
}

.faq-item p {
    font-size: 14px;
    margin-bottom: 3px;
}


