/* bacic text and font */
html { box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; }
body { font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif; line-height: 1.6; margin: 0; }

/* 1 grouping*/
h1, h2, h3 { text-transform: uppercase; letter-spacing: 0.04em; }

/* 2 */
nav.site-nav .nav-list a { font-weight: 600; }

/* 3 class*/
.highlight { background: #fff3b0; }          
p.notice { border-left: 4px solid #2a6f97; padding: 8px 12px; } 

/* 4 ol/ul and position */
ol { list-style-type: upper-roman; list-style-position: outside; margin-left: 32px; }
ul { list-style-type: square; list-style-position: inside; margin-left: 16px; }

/* 4 bullets */
ul.fancy-bullets {
  list-style-image: url("./images/leaf-1-24.png");
  list-style-type: none;             
  list-style-position: outside;      
}

/* 5 hyperlink */
a:link { color: #0b57d0; }
a:visited { color: #5e35b1; }
a:hover, a:focus { color: #0b57d0; background: #e3f2fd; outline: 2px solid transparent; text-decoration: underline; }
a:active { color: #c62828; }

/* 6 text  */
.tagline { text-align: center; font-weight: 700; text-transform: capitalize; }
.center { text-align: center; }

/* 7 lead font*/
.lead::first-letter { float: left; font-size: 48px; line-height: 1; padding-right: 4px; font-weight: 700; color: #2a6f97; }

/* 8 <nav> */
nav.site-nav { background: #1b3a57; color: #ffffff; }
nav.site-nav .nav-list { display: flex; gap: 12px; list-style-type: none; margin: 0; padding: 8px 12px; }

.site-nav .nav-list {
  display: flex;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 20px;
}

.site-nav .nav-list a {
  text-decoration: none;
  font-weight: 600;
}

/* 9 decoration for <nav> and background */
nav.site-nav .nav-list a {
  display: inline-block;
  color: #ffffff;
  text-decoration: none;
  padding: 5.6px 9.6px;
  border-radius: 6px;
}
nav.site-nav .nav-list a:hover,
nav.site-nav .nav-list a:focus {
  background: #ffffff;
  color: #1b3a57;
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

/* contact us form */
input[type=text], select, textarea{
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  resize: vertical;
  margin-top: 6px;
  margin-bottom: 12px;
}

label { 
  display:block; 
  margin-top: 12px; 
}

input[type=submit]{
  background-color:#1b3a57; 
  color:#fff; 
  padding:12px 20px; 
  border:0; 
  border-radius:4px; 
  cursor:pointer;
}

.container{
  max-width:600px; 
  margin:0 auto; 
  background:#f2f2f2; 
  padding:20px; 
  border-radius:5px; 
}

header img{
  border: none;
}

fieldset{
  border: none;
  padding: 0;
  margin: 0;
}

.purpose-options{
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  margin-top: 6px;
  margin-bottom: 12px;

  display: flex;
  gap: 20px;
  align-items: center;
}

.purpose-options label{
  margin-top: 0;
}


/* margin for all pages */
main {
    margin: 20px;
}
body h1 {
    margin: 20px;
}
footer {
    margin: 20px;
}

.hero-title {
  font-family: "sigmar-one-regular", sans-serif;
  font-size: 40px;    
  text-transform: uppercase;
  text-align: center;
  letter-spacing: 2px;
  margin: 20px 0;
}

/* background */
body {
 background-image: url("https://media4.giphy.com/media/v1.Y2lkPTc5MGI3NjExeGN4MWgxZXB6YWhvM3NuOWZ5OGloYWw2MzRqZHh6bzNvMXFnY3lobCZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw/3o6ZtcZCYVzROMckY8/giphy.gif");
 background-color: transparent;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.8); 
  z-index: -1;
}

/* banner */
.banner {
    width: 100%;
}

/* font */
.climate-crisis {
  font-family: "Climate Crisis", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.sigmar-one-regular {
  font-family: "Sigmar One", sans-serif;
  font-weight: 400;
  font-style: normal;
}

/* Koala_home */
/* paragraph next to photo in home page*/
.content-block {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin: 20px 0;
}

.content-block img {
  max-width: 300px;
  height: auto;
}

.container {
  background-color: #f5f7fa;
  width: 90%;
  max-width: 1400px;
  margin: auto;
  padding: 20px;

}

/* photo gallery*/
.gallery-container {
  max-width: 1024px;
  margin: 0 auto;
  padding: 20px;
}

/* Flexbox main */
.gallery-grid {
  display: flex;
  flex-wrap: wrap;       

}

.gallery-grid figure {
  flex: 0 0 31%;         
  margin: 0 1% 20px;  
  box-sizing: border-box;
  background-color: #4f4d4d;
  padding: 5px;
  color: white;
  text-align: center;
}


.gallery-grid img {
  height: auto;
  width: auto;
  display: block;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive: 768px and below */
@media screen and (max-width: 768px) {

  .gallery-grid {
    flex-direction: column;
  }

  .gallery-container {
    max-width: 100%;
    width: 100%;
    padding: 10px;
  }

  body {
    background-color: #f0f8ff; 
  }
}


/* figcaption */
.gallery-grid figcaption {
  margin-top: 8px;
  font-size: 14px;
}

@media (max-width: 768px) {
  .gallery-grid figure {
    flex: 0 0 48%;   
  }
}

/* copyright */
.footer-copy {
  text-align: center;
  margin-top: 30px;
}

/* Adopt page */
.adopt-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
  gap:24px;
  margin:24px 0;
}

.adopt-card{
  background:#f5f7fa;
  border-radius:16px;
  padding:16px;
  box-shadow:0 6px 14px rgba(0,0,0,.08);
  text-align:center;
}

.adopt-card img{
  width:100%;
  aspect-ratio:4/3;
  object-fit:cover;
  border-radius:12px;
  display:block;
}

.adopt-card h3{
  margin:12px 0 4px;
  font-weight:700;
}

.adopt-card .price{
  margin:0 0 8px;
  font-weight:600;
  color:#1b3a57;
}

.btn.adopt{
  display:inline-block;
  padding:10px 16px;
  border-radius:999px;
  background:#ffd166;
  color:#143a52;
  text-decoration:none;
  font-weight:700;
}

.adopt-card:hover{ transform:translateY(-2px); transition:.2s ease; }

/* FAQ page*/
.center-image {
  text-align: center;
  margin: 1.5rem 0;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

header {
  padding: 16px;
  text-align: center;
}

.climate-crisis {
  font-family: "Climate Crisis", sans-serif;
}

.site-nav ul {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 16px;
}

.site-nav a {
  text-decoration: none;
  color: #333;
}

main {
  padding: 16px 32px;
}

.faq {
  column-count: 3;
  column-gap: 32px;
  column-rule: 2px solid #ccc;
}

.faq-title {
  column-span: all;
  text-align: center;
  margin-bottom: 16px;
}

.qa {
  break-inside: avoid;
  margin-bottom: 16px;
}

.qa h3 {
  font-size: 16px;
  margin-bottom: 4px;
}

footer {
  text-align: center;
  padding: 16px;
}

/* float images */
img {
  margin: 0.75rem;
  border: 2px solid #ccc;
  max-width: 100%;
  height: auto;
}

.float-right {
  float: right;
  margin-left: 1rem;
}

.float-left {
  float: left;
  margin-right: 1rem;
}

/* h3, h4 styling */
h3, h4 {
  margin: 1rem 0;
  padding: 0.5rem 0.75rem;
  border-top: 3px solid #1b3a57;
}

/* for illustration */
img.no-style {
  max-width: none;
  height: auto;
}