/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */

/* Document
   ========================================================================== */

/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */

 html {
    line-height: 1.15; /* 1 */
    -webkit-text-size-adjust: 100%; /* 2 */
  }
  
  /* Sections
     ========================================================================== */
  
  /**
   * Remove the margin in all browsers.
   */
  
  body {
    margin: 0;
  }
  
  /**
   * Render the `main` element consistently in IE.
   */
  
  main {
    display: block;
  }
  
  /**
   * Correct the font size and margin on `h1` elements within `section` and
   * `article` contexts in Chrome, Firefox, and Safari.
   */
  
  h1 {
    font-size: 2em;
    margin: 0.67em 0;
  }
  
  /* Grouping content
     ========================================================================== */
  
  /**
   * 1. Add the correct box sizing in Firefox.
   * 2. Show the overflow in Edge and IE.
   */
  
  hr {
    box-sizing: content-box; /* 1 */
    height: 0; /* 1 */
    overflow: visible; /* 2 */
  }
  
  /**
   * 1. Correct the inheritance and scaling of font size in all browsers.
   * 2. Correct the odd `em` font sizing in all browsers.
   */
  
  pre {
    font-family: monospace, monospace; /* 1 */
    font-size: 1em; /* 2 */
  }
  
  /* Text-level semantics
     ========================================================================== */
  
  /**
   * Remove the gray background on active links in IE 10.
   */
  
  a {
    background-color: transparent;
  }
  
  /**
   * 1. Remove the bottom border in Chrome 57-
   * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
   */
  
  abbr[title] {
    border-bottom: none; /* 1 */
    text-decoration: underline; /* 2 */
    text-decoration: underline dotted; /* 2 */
  }
  
  /**
   * Add the correct font weight in Chrome, Edge, and Safari.
   */
  
  b,
  strong {
    font-weight: bolder;
  }
  
  /**
   * 1. Correct the inheritance and scaling of font size in all browsers.
   * 2. Correct the odd `em` font sizing in all browsers.
   */
  
  code,
  kbd,
  samp {
    font-family: monospace, monospace; /* 1 */
    font-size: 1em; /* 2 */
  }
  
  /**
   * Add the correct font size in all browsers.
   */
  
  small {
    font-size: 80%;
  }
  
  /**
   * Prevent `sub` and `sup` elements from affecting the line height in
   * all browsers.
   */
  
  sub,
  sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
  }
  
  sub {
    bottom: -0.25em;
  }
  
  sup {
    top: -0.5em;
  }
  
  /* Embedded content
     ========================================================================== */
  
  /**
   * Remove the border on images inside links in IE 10.
   */
  
  img {
    border-style: none;
  }
  
  /* Forms
     ========================================================================== */
  
  /**
   * 1. Change the font styles in all browsers.
   * 2. Remove the margin in Firefox and Safari.
   */
  
  button,
  input,
  optgroup,
  select,
  textarea {
    font-family: inherit; /* 1 */
    font-size: 100%; /* 1 */
    line-height: 1.15; /* 1 */
    margin: 0; /* 2 */
  }
  
  /**
   * Show the overflow in IE.
   * 1. Show the overflow in Edge.
   */
  
  button,
  input { /* 1 */
    overflow: visible;
  }
  
  /**
   * Remove the inheritance of text transform in Edge, Firefox, and IE.
   * 1. Remove the inheritance of text transform in Firefox.
   */
  
  button,
  select { /* 1 */
    text-transform: none;
  }
  
  /**
   * Correct the inability to style clickable types in iOS and Safari.
   */
  
  button,
  [type="button"],
  [type="reset"],
  [type="submit"] {
    -webkit-appearance: button;
  }
  
  /**
   * Remove the inner border and padding in Firefox.
   */
  
  button::-moz-focus-inner,
  [type="button"]::-moz-focus-inner,
  [type="reset"]::-moz-focus-inner,
  [type="submit"]::-moz-focus-inner {
    border-style: none;
    padding: 0;
  }
  
  /**
   * Restore the focus styles unset by the previous rule.
   */
  
  button:-moz-focusring,
  [type="button"]:-moz-focusring,
  [type="reset"]:-moz-focusring,
  [type="submit"]:-moz-focusring {
    outline: 1px dotted ButtonText;
  }
  
  /**
   * Correct the padding in Firefox.
   */
  
  fieldset {
    padding: 0.35em 0.75em 0.625em;
  }
  
  /**
   * 1. Correct the text wrapping in Edge and IE.
   * 2. Correct the color inheritance from `fieldset` elements in IE.
   * 3. Remove the padding so developers are not caught out when they zero out
   *    `fieldset` elements in all browsers.
   */
  
  legend {
    box-sizing: border-box; /* 1 */
    color: inherit; /* 2 */
    display: table; /* 1 */
    max-width: 100%; /* 1 */
    padding: 0; /* 3 */
    white-space: normal; /* 1 */
  }
  
  /**
   * Add the correct vertical alignment in Chrome, Firefox, and Opera.
   */
  
  progress {
    vertical-align: baseline;
  }
  
  /**
   * Remove the default vertical scrollbar in IE 10+.
   */
  
  textarea {
    overflow: auto;
  }
  
  /**
   * 1. Add the correct box sizing in IE 10.
   * 2. Remove the padding in IE 10.
   */
  
  [type="checkbox"],
  [type="radio"] {
    box-sizing: border-box; /* 1 */
    padding: 0; /* 2 */
  }
  
  /**
   * Correct the cursor style of increment and decrement buttons in Chrome.
   */
  
  [type="number"]::-webkit-inner-spin-button,
  [type="number"]::-webkit-outer-spin-button {
    height: auto;
  }
  
  /**
   * 1. Correct the odd appearance in Chrome and Safari.
   * 2. Correct the outline style in Safari.
   */
  
  [type="search"] {
    -webkit-appearance: textfield; /* 1 */
    outline-offset: -2px; /* 2 */
  }
  
  /**
   * Remove the inner padding in Chrome and Safari on macOS.
   */
  
  [type="search"]::-webkit-search-decoration {
    -webkit-appearance: none;
  }
  
  /**
   * 1. Correct the inability to style clickable types in iOS and Safari.
   * 2. Change font properties to `inherit` in Safari.
   */
  
  ::-webkit-file-upload-button {
    -webkit-appearance: button; /* 1 */
    font: inherit; /* 2 */
  }
  
  /* Interactive
     ========================================================================== */
  
  /*
   * Add the correct display in Edge, IE 10+, and Firefox.
   */
  
  details {
    display: block;
  }
  
  /*
   * Add the correct display in all browsers.
   */
  
  summary {
    display: list-item;
  }
  
  /* Misc
     ========================================================================== */
  
  /**
   * Add the correct display in IE 10+.
   */
  
  template {
    display: none;
  }
  
  /**
   * Add the correct display in IE 10.
   */
  
  [hidden] {
    display: none;
  }
  
   
    :root {
    --dark-clr: hsl(0, 0%, 20%);
    --darker-clr: hsl(0, 0%, 10%);
    --darkest-clr: hsl(0, 0%, 0%);

    --main-clr: hsl(150, 40%, 30%);
    --main-darker: hsl(150, 40%, 20%);
    --main-darkest: hsl(150, 40%, 10%);

    --light-clr: hsl(0, 0%, 80%);
    --lighter-clr: hsl(0, 0%, 90%);
    --lightest-clr: hsl(0, 0%, 100%);

    --eggshell-clr: hsl(46, 46%, 89%);

    color-scheme: light;
}


@media (width > 1px) {
    :root {
        --hero-font-size: 1rem;
        --hero-height: 10rem;
    }
}

@media (width > 48rem) {
    :root {
        --hero-font-size: 2.5rem;
        --hero-height: 15rem;
    }
}
 
    .grid {
    display: grid;

    grid-template-columns: auto;
    grid-template-rows: auto;
    gap: 1.5rem;
}

@media screen and (width >= 48rem) {
    .grid-1\/4 {
        grid-template-columns: repeat(4, 25%);
    }
}
    :root {
    --sans-serif: "Roboto", "Helvetica", sans-serif;
    --sans-serif-heading: "Playfair Display";
}

* {
    font-family: var(--sans-serif);
}

.content h2 {
    font-family: var(--sans-serif-heading);
}
 
    .navbar {
    background-color: light-dark(var(--main-darker), var(--darkest-clr));
    color: var(--lightest-clr);
    min-height: 2rem;
    padding: 0.5rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    border-bottom: 2px solid light-dark(var(--eggshell-clr), var(--lightest-clr));
    position: sticky;


    .navbar__left {
        display: flex;
        font-weight: bold;
        font-size: 1.5rem;
        align-items: center;
        gap: 1rem;
    }

    .navbar__right {
        li, li a {
            text-decoration: none;
            list-style: none;
            color: var(--lightest-clr);
        }

        .icon {
            fill: var(--lightest-clr);
            width: 1rem;
            height: 1rem;
            padding-right: 2px;
        }
    }
}

@media (width < 48rem){
    .navbar {
        flex-direction: column;

        .navbar__right {
            display: none;
            flex-direction: column;
            gap: 0.5rem; 
    
            &.is-active {
                display: flex;
                padding: 0;
            }
        }
    }

    .navbar__left {
        width: 100%;
        justify-content: space-between;
        height: 100%;
        align-items: center;
    }

    
    .navbar__burger {
        background-color:  light-dark(var(--main-darker), var(--darkest-clr)) ;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 1px solid var(--lightest-clr);
        border-radius: 10px;
        padding: 0.5rem;
        .icon {
            color: var(--lightest-clr);
            fill: var(--lightest-clr);
            width: 1.5rem;
            height: 1.5rem;
        }
       
    } 
}

@media (width >= 48rem) {
    .navbar {
        flex-direction: row;

        .navbar__right {
            display: flex;
            flex-direction: row;
            gap: 1rem; 
        }
    }

    .navbar__burger {
        display: none;
    }
}
 
    .hero {
    display: flex;
    justify-content: center;
    align-items: center;

    height: var(--hero-height);

    .hero__title {
        color: var(--lightest-clr);
        font-size: var(--hero-font-size);
        text-shadow: 2px 2px var(--darkest-clr);
    }
}
    html, .body {
 height: 100%;
}

.body {
    background-color: light-dark(var(--eggshell-clr), var(--darker-clr));
    display: flex;
    flex-direction: column;
}

.content {
    padding: 0.5rem 1.5rem;
    flex: 1 0 auto;

    p, h1, h2, h3, h4, h5, h6 {
        padding: 0;
        margin: 0.5rem 0;
    }

    h1, h2, h3, h4, h5, h6 {
        font-family: var(--sans-serif-heading);
    }

    h2 {
        border-bottom: 5px solid var(--main-darker);
        text-align: center;
        width: 100%;
        padding-bottom: 2px;
    }

    img {
        width: min(20rem, 100%);
    }
}


@media screen and (width >= 48rem) {
    .content { 
        padding: 0.5rem 20%;

        h2 {
            text-align: left;
            width: fit-content;
        }
    }
}

    :root {
    --hide-on-sm: none;
    --hide-on-md: flex;
    --col-on-sm: column;
    --col-reverse-on-sm: column-reverse;
}


.w-100 {
    width: 100%;
}

.f {
    display: flex;
}

.f-fixed {
    flex: 1 1 0;
}

.f-row {
    flex-direction: row;
}

.f-centered {
    justify-content: center;
    align-items: center;
}

.f-items-centered {
    align-items: center;
}

.f-between {
    justify-content: space-between;
}

.f-evenly {
    width: 100%;
    justify-content: space-evenly;
}

.md\:hide {
    display: var(--hide-on-md);
}

.sm\:hide {
    display: var(--hide-on-sm);
}

.sm\:col {
    flex-direction: var(--col-on-sm);
}

.sm\:col-reversed {
    flex-direction: var(--col-reverse-on-sm);
}

.gap-1 {
    gap: 1rem;
}

.p-0 {
    padding: 0;
}

.p-1 {
    padding: 1rem;
}

.py-2 {
    padding: 2rem 0;
}

@media screen and (width > 48rem) {
    :root{
        --hide-on-md: none;
        --col-on-sm: row;
        --col-reverse-on-sm: row;
    }

    :root {
        --hide-on-sm: flex;
    }

    .md\:f-basis-75 {
        flex-basis: 75%;
    }

    .md\:f-basis-50 {
        flex-basis: 50%;
    }
}

@media screen and (width <= 48rem) {
    .sm\:f-items-centered {
        align-items: center;
        justify-content: center;
    }
}
    .btn {
    text-decoration: none;
    border-radius: 5px;
    display: flex;
    padding: 5px 0;
    text-align: center;
    justify-content: center;
    align-items: center;
}

.btn-primary {
    color: var(--lightest-clr);
    background-color: var(--main-clr);
    font-weight: bold;

    &:hover {
        background-color: var(--main-darker);
    }
} 
    .footer {
    background-color: light-dark(var(--main-darker), var(--darkest-clr));
    color: var(--lightest-clr);
    min-height: 8rem;
    margin-top: 1rem;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
}

.social-media__title {
    font-size: 1rem;
    font-style: italic;
}

.social-media {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: .5rem 1.5rem;
    justify-content: space-between;

    .icon {
        width: 17px;
        height: 17px;
        fill: var(--lightest-clr);
    }

    .social-media__link {
        font-size: 16px;
        text-decoration: none;
        color: var(--lightest-clr);
        line-height: 0px;
        gap: 0.5rem;
    }
}


@media screen and (width > 40rem){
    .social-media  {
        align-items: end;
    }

    .footer {
        justify-content: end;
        min-height: 5rem;
    }
}
    .card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 320px;

    .card__body {
        display: flex;
        gap: 5px;
        flex-direction: column;
        border: 2px solid var(--main-clr);
        border-top: none;
        border-radius: 0 0 10px 10px;
        height: 150px;
        padding: .5rem;
        justify-content: space-between;
    }

    .card__header {
        display: flex;
        flex-direction: column;
    }

    .card__img {
        aspect-ratio:  4 / 3;
        border-radius: 10px 10px 0 0;
    }

    .card__title {
        font-style: normal;
        font-size: 1rem;
        font-weight: bold;
    }

    .card__subtitle {
        font-style: italic;
    }
}
    .slide__container {
    display: flex;
    overflow: auto;
    width: 100%;
    align-items: end;
    justify-content: end;
    
}

.slide__item.is-active{
    display: flex;
    max-height: 300px;
    width: 100%;
    /** maintains aspect ratio */
    border-radius: 10px;
    align-items: end;
    justify-content: end;
    aspect-ratio: 4 / 3;
}

.slide__item {
    display: none;
    animation-name: fade;
    animation-duration: 2s;
}

@keyframes fade {
    from { opacity: 0.3}
    to { opacity: 1}
}