
* {
  box-sizing: border-box;
}

/* 3. Brand Colors */
:root {
    --light-blue: #D9E8F5;
    --beige: #F5F2E9;
    --soft-yellow: #FFE9A3;
    --slate-gray: #4A4A4A;
  }
  
  /* 4. Base Styles */
  body {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    background-color: var(--beige);
    color: var(--slate-gray);
    margin: 0;
    padding: 0;
  }
  
  h1, h2, h3, .site-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--slate-gray);
    margin: .1em 0;
  }

  p {
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    color: var(--slate-gray);
    margin: 0 0 0.5em;
    }

  ul {
  padding-left: 20px;
  margin-top: 0;
    }

  .site-title {
    text-align: right;
  }
  
  a {
    text-decoration: none;
  }
  
  a:hover {
    text-decoration: underline;
  }
  
  /* 5. Button Style */
  .buttons a {
    background-color: var(--soft-yellow);
    color: var(--slate-gray);
    border: none;
    padding: 0.5em 1.2em;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    display: inline-block;
    margin: 0.2em auto;
    text-align: center;

  }

  .buttons a:hover {
    background-color: var(--light-blue);
  }
  
  /* 6. Responsive Images */
  img {
    width: 100%;
    height: auto;
  }


  #intro {
    background-color: var(--light-blue);
    width: 100%;
    margin: .5em auto;
    padding: .3em;
  }

  /* 7. Header and Footer */
  .logo {
    width: 3em;
    height: auto;
    display: inline-block;
  }

  .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1em 1em 0em;
  }

  .footer {
  background-color: var(--light-blue);
  padding: 1em;
  }

  .tight {
  line-height: 0;
  }

  .container {
    margin: 1em 1em;
    max-width: 500px;
  }

  .center {
    text-align: center;
  }

  .copyright{    
    font-size: 12px;
    font-style: italic
  }

  @keyframes color-change {
    from {fill: #edc655;}
    to {fill: #f76414;}
  }

  .sun {
    animation-duration: 4s;
    animation-name: color-change;
    animation-iteration-count: infinite;
    animation-direction: alternate;
    animation-timing-function: linear;
  }

  @keyframes cloud-move {
    from {transform: translate(0,50px);}
    to {transform: translate(200px,50px);}
  }

  .cloud-front {
    animation-duration: 30s;
    animation-name: cloud-move;
    animation-iteration-count: infinite;
    animation-direction: alternate;
    animation-timing-function: linear;
  }
  
  @keyframes cloud-move-reverse {
    from {transform: translate(446px,48px);}
    to {transform: translate(100px, 48px);}
  }

  .cloud-back {
    animation: 34s cloud-move-reverse infinite alternate linear;
  }

  @media  (min-width: 768px), (min-width: 1024px) {
    header {
      display: flex;
      justify-content: space-between; /* logo/title on left, nav on right */
      align-items: center;           /* vertically center everything */
      padding: 0 20px;                /* optional spacing */
    }
    .col-md-6 {
      width: 50%;   
    }
    
    .row {
        display: flex;
        justify-content: center;     /* center horizontally */
        gap: 20px;              /* space between columns */
        margin: 0 auto;             /* center the row in the page */
    }

    h1, h2{
        text-align: center;         
    }
    .center-vertical {  
    align-items: center;
  }

  main, footer{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1em;
    max-width: 800px;
    padding: 0 auto;
  }

}