/* CSS Reset: https://www.joshwcomeau.com/css/custom-css-reset/ */
/*
  1. Use a more-intuitive box-sizing model.
*/
*,
*::before,
*::after {
  box-sizing: border-box;
}
/*
    2. Remove default margin
  */
* {
  margin: 0;
}
/*
    Typographic tweaks!
    3. Add accessible line-height
    4. Improve text rendering
  */
body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  font-family: Arial, Helvetica, sans-serif;
  background-color: #333;
}
/*
    5. Improve media defaults
  */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}
/*
    6. Remove built-in form typography styles
  */
input,
button,
textarea,
select {
  font: inherit;
}
/*
    7. Avoid text overflows
  */
p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}
/*
    8. Create a root stacking context
  */
#root,
#__next {
  isolation: isolate;
}

/* Styling for nav bar */
nav {
  background-color: #333; /* Black background color */
  position: fixed; /* Make it stick/fixed */
  top: 0; /* Stay on top */
  width: 100%; /* Full width */
  transition: top 0.2s; /* Transition effect when sliding down (and up) */
}

/* Style the navbar links */
nav a {
  float: left;
  display: block;
  color: white;
  text-align: center;
  padding: 1rem;
  text-decoration: none;
}

nav a.selected {
  background-color: hsl(0, 100%, 32%);
}

nav a:hover {
  /* background-color: #7b7b7b; */
  /* color: black; */
  background-color: hsl(0, 100%, 32%);
}

#logo img {
  height: 2.5ch;
}

.main {
  --footer-min-height: 100px;
  display: grid;
  grid-template-rows: 1fr var(--footer-min-height);
  min-height: 100svh;
}

section.content {
  /* border: 4px solid red; */
  /* background-color: gray; */
  /*padding: 0px 15px 1250px 15px;*/ /* set the bottom pad high to show scrolling with nav hidden/shown */
  padding: 0px 15px 50px 15px; /* set the bottom pad high to show scrolling with nav hidden/shown */
  font-size: 30px;
  margin-top: 53px;
}

footer {
  display: flex;
  padding: 1rem;
  background-color: rgb(74, 74, 74);
  /* height: 200px; */
  color: #e0e0e0;
  justify-content: center;
  align-items: center;
}

footer h1 {
  font-size: 1rem;
}

footer p {
  color: hsla(0, 0%, 100%, 0.696);
  font-size: 0.9rem;
}

footer a {
  color: white;
}

footer a:link,
footer a:visited,
footer a:active,
footer a:hover {
  text-decoration: none;
}

footer .media_links {
  display: flex;
  margin: auto;
  h1 {
    font-size: 1.2rem;
    color: #e0e0e0;
  }
  * {
    height: 1.7rem;
  }
  a {
    /* border: 1px solid red; */
    padding-left: 3ch;
  }
}

.contact {
  /* border: 1px solid red; */
  font-size: 1.5rem;
  padding: 1rem;

  a:link,
  a:visited,
  a:active,
  a:hover {
    text-decoration: none;
    color: rgb(251, 251, 251);
  }
}

/* section.content .videolinks {
  background-color: pink;
} */

ul.videolinks {
  display: grid;
  --min-column-size: 460px;
  display: grid;
  gap: 1rem;
  /* smallest width is 10rem but allow resize to whatever fits across the parent */
  /* grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); */
  grid-template-columns: repeat(auto-fit, minmax(min(var(--min-column-size), 100%), 1fr));
  background-color: #333;
  margin-top: 1rem;

  /* border: 1px solid red; */
  list-style-type: none;
  margin: 0;
  padding: 0;
  li {
    /* border: 1px solid red; */
    border: 1px solid #ddd;
    background-color: #fdfdfd;
    border-radius: 4px;
    /* padding: 1rem; */
    overflow: hidden;

    padding: 1rem;
    h1 {
      font-weight: 500;
      font-size: 1.5rem;
      color: #4c4c4c;
    }
    iframe {
      width: 100%;
      aspect-ratio: 1.778;
      border-radius: 4px;
    }
  }
}

.contact,
.landing,
.about {
  color: rgb(236, 236, 236);
}

.landing,
.about {
  background-color: rgb(27, 27, 27);
}

.landing {
  h1 {
    text-align: center;
    color: rgb(236, 236, 236);
    font-size: 2rem;
    margin-top: 1rem;
  }
}

.video-background {
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 1rem;
}

.contact {
  p {
    display: grid;
    grid-template-columns: 5ch 1fr;
  }
}
