/* Mobile First Approach - Default Styles */

/* Universal Reset and Basic Styling */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px; /* Base font size for rem units */
  scroll-behavior: smooth;
}

body {
  font-family: oswald;
  line-height: 1.5;
  color: #333;
  background-color: #f4f4f4;
  padding: 1rem; /* Basic padding for mobile screens */
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

h1 {
  font-size: 2rem; /* Slightly smaller for mobile */
}

h2 {
  font-size: 1.75rem;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

h5 {
  font-size: 1rem;
}

h6 {
  font-size: 0.875rem; /* Slightly smaller for mobile */
}

/* Typography */
p {
  margin-bottom: 1rem;
  font-size: 1rem; /* Maintain readability on smaller screens */
}

a {
  color: #007bff;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #0056b3;
  text-decoration: underline;
}

strong {
  font-weight: bold;
}

em {
  font-style: italic;
}

/* Lists */
ul, ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem; /* Adjust indentation for smaller screens */
}

li {
  margin-bottom: 0.5rem;
  font-size: 1rem; /* Maintain readability */
}

/* Forms */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
input[type="number"],
input[type="url"],
textarea,
select {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
  box-sizing: border-box;
}

textarea {
  min-height: 80px; /* Adjust minimum height for mobile */
}

button,
input[type="submit"],
input[type="reset"] {
  background-color: #007bff;
  color: white;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  transition: background-color 0.3s ease;
  display: block; /* Make buttons full width on mobile by default */
  width: 100%;
}

button:hover,
input[type="submit"]:hover,
input[type="reset"]:hover {
  background-color: #0056b3;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
  display: block; /* Enable horizontal scrolling for tables on small screens */
  overflow-x: auto;
}

th, td {
  padding: 0.5rem; /* Reduce padding for smaller screens */
  border: 1px solid #ddd;
  text-align: left;
  white-space: nowrap; /* Prevent text wrapping within cells */
  font-size: 0.875rem; /* Slightly smaller font for table data */
}

th {
  font-weight: bold;
  background-color: #f0f0f0;
}

/* Images */
img {
  max-width: 100%;
  height: auto;
  display: block;
  margin-bottom: 1rem;
}

/* Code */
pre {
  background-color: #eee;
  padding: 0.75rem; /* Adjust padding for smaller screens */
  border-radius: 4px;
  overflow-x: auto;
  margin-bottom: 1rem;
  font-family: monospace;
  font-size: 0.875rem; /* Smaller font for code on mobile */
}

code {
  font-family: monospace;
  background-color: #f9f9f9;
  padding: 0.2em 0.4em;
  border-radius: 3px;
  font-size: 0.875rem; /* Smaller font for inline code on mobile */
}

/* Horizontal Rule */
hr {
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1.5rem 0; /* Adjust margin for smaller screens */
}

/* Blockquote */
blockquote {
  margin: 1rem 0;
  padding: 0.5rem 0.75rem; /* Adjust padding for smaller screens */
  border-left: 3px solid #ccc; /* Thinner border for mobile */
  background-color: #f9f9f9;
  font-style: italic;
  font-size: 0.9rem; /* Slightly smaller font for blockquotes */
}

blockquote p:last-child {
  margin-bottom: 0;
}

/* Media Queries for Larger Screens (Desktop First would start with larger screens) */
@media (min-width: 768px) { /* Example breakpoint for tablets and larger */
  body {
    padding: 2rem; /* Increase padding for larger screens */
  }

  h1 {
    font-size: 2.5rem; /* Larger font size for desktop */
  }

  h6 {
    font-size: 1rem; /* Adjust font size for desktop */
  }

  ul, ol {
    padding-left: 2rem; /* Adjust indentation for larger screens */
  }

  button,
  input[type="submit"],
  input[type="reset"] {
    display: inline-block; /* Allow buttons to be side-by-side on larger screens if needed */
    width: auto; /* Adjust width for larger screens */
  }

  table {
    display: table; /* Revert to default table display on larger screens */
    overflow-x: auto; /* Keep overflow for potential wide tables */
  }

  th, td {
    padding: 0.75rem; /* Increase padding for larger screens */
    font-size: 1rem; /* Default font size for table data */
  }

  pre, code {
    font-size: 1rem; /* Default font size for code on desktop */
  }

  hr {
    margin: 2rem 0; /* Adjust margin for larger screens */
  }

  blockquote {
    padding: 0.5rem 1rem; /* Adjust padding for larger screens */
    border-left: 5px solid #ccc; /* Thicker border for desktop */
    font-size: 1rem; /* Default font size for blockquotes */
  }
}

@media (min-width: 1200px) { /* Example breakpoint for larger desktops */
  /* Further adjustments for very large screens can be added here */
}

#sendButton {
  padding: 10px 24px;
  font-size: 16px;
  background-color: #4CAF50;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
  transition: background-color 0.3s, transform 0.2s;
}

#sendButton:hover {
  background-color: #45a049;
  transform: scale(1.03);
}

#sendButton:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

.spinner {
  width: 20px;
  height: 20px;
  display: none;
}

.spinner .path {
  stroke: white;
  stroke-linecap: round;
  animation: dash 1.2s ease-in-out infinite, rotate 0.9s linear infinite;
}

@keyframes rotate {
  100% {
    transform: rotate(360deg);
  }
}

@keyframes dash {
  0% {
    stroke-dasharray: 1, 150;
    stroke-dashoffset: 0;
  }
  50% {
    stroke-dasharray: 90, 150;
    stroke-dashoffset: -35;
  }
  100% {
    stroke-dasharray: 90, 150;
    stroke-dashoffset: -124;
  }
}

.gallery-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.gallery-item {
  flex: 1 1 calc(25% - 20px);
  box-sizing: border-box;
  text-align: center;
}
.gallery-item img, .gallery-item svg {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}
.gallery-item p {
  margin-top: 10px;
  font-size: 14px;
}

/* Media query for mobile devices */
@media (max-width: 768px) {
  .gallery-item {
      flex: 1 1 100%; /* Make each item take up the full width */
  }
}