/**
 * CORE CONFIG
 * This powers everything from utility class generation to breakpoints
 * to enabling/disabling pre-built components/utilities.
 */
/* Box sizing rules */
*,
*::before,
*::after {
  box-sizing: border-box;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

/* @link https://utopia.fyi/type/calculator?c=320,18,1.2,1240,20,1.25,5,2,&s=0.75|0.5|0.25,1.5|2|3|4|6,s-l&g=s,l,xl,12 */

:root {
    --step--2: clamp(0.7813rem, 0.7747rem + 0.0326vw, 0.8rem);
    --step--1: clamp(0.9375rem, 0.9158rem + 0.1087vw, 1rem);
    --step-0: clamp(1.125rem, 1.0815rem + 0.2174vw, 1.25rem);
    --step-1: clamp(1.35rem, 1.2761rem + 0.3696vw, 1.5625rem);
    --step-2: clamp(1.62rem, 1.5041rem + 0.5793vw, 1.9531rem);
    --step-3: clamp(1.944rem, 1.771rem + 0.8651vw, 2.4414rem);
    --step-4: clamp(2.3328rem, 2.0827rem + 1.2504vw, 3.0518rem);
    --step-5: clamp(2.7994rem, 2.4462rem + 1.7658vw, 3.8147rem);
    --cmu-maroon: #6b0132;
    --cmu-gold: #ffc82d;
  }
  
  /* @link https://utopia.fyi/space/calculator?c=320,18,1.2,1240,20,1.25,5,2,&s=0.75|0.5|0.25,1.5|2|3|4|6,s-l&g=s,l,xl,12 */
  
  :root {
    --space-3xs: clamp(0.3125rem, 0.3125rem + 0vw, 0.3125rem);
    --space-2xs: clamp(0.5625rem, 0.5408rem + 0.1087vw, 0.625rem);
    --space-xs: clamp(0.875rem, 0.8533rem + 0.1087vw, 0.9375rem);
    --space-s: clamp(1.125rem, 1.0815rem + 0.2174vw, 1.25rem);
    --space-m: clamp(1.6875rem, 1.6223rem + 0.3261vw, 1.875rem);
    --space-l: clamp(2.25rem, 2.163rem + 0.4348vw, 2.5rem);
    --space-xl: clamp(3.375rem, 3.2446rem + 0.6522vw, 3.75rem);
    --space-2xl: clamp(4.5rem, 4.3261rem + 0.8696vw, 5rem);
    --space-3xl: clamp(6.75rem, 6.4891rem + 1.3043vw, 7.5rem);
  }
  
/* Remove default margin */
body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul[role="list"],
ol[role="list"] {
  list-style: none;
  padding: 0;
}

/* Set core root defaults */
html:focus-within {
  scroll-behavior: smooth;
}

/* Set core body defaults */
body {
  min-height: 100vh;
  text-rendering: optimizeSpeed;
  letter-spacing: -0.01em;
}

/* All elements that don't have a class get default styles */
a:not([class]) {
  text-decoration-skip-ink: auto;
}

/* Make images easier to work with */
img,
picture {
  max-width: 100%;
  display: block;
}

/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
  font: inherit;
}

@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }
}

h1,
.h1 {
  font-size: var(--step-5);
}

h2,
.h2 {
  font-size: var(--step-4);
}

h3,
.h3 {
  font-size: var(--step-3);
}

h4,
.h4 {
  font-size: var(--step-2);
}

h5,
.h5 {
  font-size: var(--step-1);
}

:focus {
  outline: 2px dashed #00ff19;
  outline-offset: 0.25rem;
}

main:focus {
  outline: none;
}

/* define some constants */
.flex {
    display: flex;
    align-items: center;
    gap: var(--space-s);
  }
  @media (max-width: 468px) {
    .flex {
      flex-wrap: wrap;
    }
  }
  .flex_center {
    justify-content: center;
  }
  .flex_around {
    justify-content: space-around;
  }
  .flex_between {
    justify-content: space-between;
  }
  @media (max-width: 468px) {
    .flex_around {
      justify-content: center;
    }
    .flex_between {
      justify-content: center;
    }
  }
  .text_center {
    text-align: center;
  }
  .text_right {
    text-align: right;
  }
  
  /* define spacing */
  .padding-top-3xs {
    padding: var(--space-3xs);
  }

.wrapper {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    margin-top: 5%;
}

.wrapper_inner {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.site_header {
    padding: var(--space-s) 0;
    background: linear-gradient(rgba(26,26,64,0.9), rgba(26,26,64,0.8));
    font-size: large;
}
.site_header_nav ul li a {
    text-decoration: none;
    color: #fff
}

.cmu {
    color: var(--cmu-gold);
    background-color: var(--cmu-maroon);
    font-weight: 650;
}
.active_page {
    background-color: #97e49e;
    font-weight: 800;
    font-size: larger;
}

.foottext {
    text-align: center;
    font-size: 90%;
    padding-top: 150px;
  }

.footlink {
    color:rgb(0, 0, 0);
    background-color: #97e49e;
    font-size: 120%;
    text-decoration: none;
}

.gallery {
    display: grid;
    gap: 5%; /* Space between images */
    padding: 0%;
    grid-template-columns: repeat(auto-fit, minmax(100%, 1fr)); 
    /* Automatically adjusts number of columns */
}

.gallery figure {
    text-align: center;
    background: #f5f5f5;
    width: fit-content;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
}

.gallery img {
    width: auto;
    height: auto;
    border-radius: 8px;
} 

figcaption {
    font-size: 14px;
    color: #555;
    margin-top: 5px;
}

@keyframes animated-gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.name {
    font-weight: bold;
    background: linear-gradient(45deg, #ff6b6b, #6b73ff, #32cd32, #ffa500);
    background-size: 300% 300%;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: animated-gradient 20s ease infinite;
}

::-moz-selection { /* Code for Firefox */
    color: var(--cmu-gold);
    background: var(--cmu-maroon);
  }
  
::selection {
    color: var(--cmu-gold);
    background: var(--cmu-maroon);
  }

.main-content {
    display: flex;
    flex-wrap: wrap;
    padding: 20px;
}

.about-me {
    flex: 1;
    max-width: 33%;
    background-color: #f4f4f4;
    padding: 20px;
    border-radius: 5%;
}

/* Blog Section (2/3 of the width) */
.blog {
    flex: 2;
    max-width: 67%;
    background-color: #fff;
    padding: 20px;
}

@media (max-width: 768px) {
    .content {
        flex-direction: column;
    }

    .about, .blog {
        max-width: 100%;
        border-right: none;
    }
}