/* Put this at the TOP of your main stylesheet */
:root {
  /* Fluid type scale 16px → 20px */
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.25rem);
  /* Fluid spacing scale */
  --space-xs: clamp(0.5rem, 0.4rem + 0.5vw, 0.75rem);
  --space-s : clamp(0.75rem, 0.65rem + 0.5vw, 1rem);
  --space-m : clamp(1rem, 0.9rem + 0.5vw, 1.5rem);
  --space-l : clamp(1.5rem, 1.3rem + 1vw, 2.5rem);
}

*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: system-ui, sans-serif;
  text-align: center;
  
  color: #222;
  background: #fff;
}

.grid {
  display: grid;
  gap: var(--space-m);
  grid-template-columns: repeat(
    auto-fit,
    minmax(min(100%, 280px), 1fr)
  );
}


@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.animate-on-scroll {
  animation: fadeUp 0.6s ease-out both;
  animation-timeline: view();   /* modern browsers */
}

.btn {
  padding: var(--space-s) var(--space-m);
  background: #0066ff;
  color: #fff;
  border: none;
  border-radius: 6px;
  transition: box-shadow 0.25s;
}
.btn:hover {
  box-shadow: 0 0 0 4px rgba(0,102,255,.25);
}

a:link, a:visited {
  background-color: #800080;
  color: white;
  padding: 14px 25px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
}

a:hover, a:active {
  background-color: #008000;
}

ol li::marker {
  color: blue;
}
ul li::marker {
  color: black;
}

ul.a {list-style-type: circle;}
ul.b {list-style-type: square;}
ol.c {list-style-type: upper-roman;}
ol.d {list-style-type: lower-alpha;}


.mycontainer {
  display: flex;
}


.mycontainer > div {
  width:33%;
}

.card-container {
  display: flex;
}


.card-container > div {
  width:33%;
}

.rounded-image {
  border-radius: 50px;
  width: 300px;
  height: auto;
}


img {
    border-radius: 10px;
}

#round {
  border-radius: 12px;
  background: #4A5CFE;
  padding: 0px; 
  width: 100px;
  height: 100px; 
} 

.card-container {
    max-width: 800px;
    margin: 50px auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.card-container img {
  height: 70%;
  width: 100%;
}


.card {
    height: 315px;
    width: 300px;
    border: 1px solid black;
    border-radius: 8px; /* Consider using a CSS variable */
    margin: 5px;
    
}


/* Navigation Styles 
nav ul {
    list-style-type: none;
    padding: 0;
}*/
nav li {
    display: inline-flex;
    
}

nav li a {
    color: #fff;
    text-decoration: none;
}


/* Footer Styles */
footer {
    background-color: darkblue;
    color: white; 
    text-align: center;
    padding: 20px 10px;
    border: 1px solid lightgrey; /* Consider specifying border style and color */
    margin: 15px;
}

footer li {
    list-style-type: none;
}



/* Media Queries */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        padding-top: 20px;
        text-align: center;
    }

    /* Responsive columns */
    .container {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
        gap: 1rem;
    }

    .item {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    @media screen and (max-width: 400px) {
        .column {
            width: 100%;
            display: block;
            margin-bottom: 20px;
        }
    }
}

/* Style the counter cards */
.card {
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
    padding: 16px;
    text-align: center;
    background-color: #f1f1f1;
}

/* Tablets and Under */
@media (max-width: 768px) {
    .grid,
    .grid-3 {
        grid-template-columns: 1fr;
    }
}
