@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

/*RESET - https://hankchizljaw.com/wrote/a-modern-css-reset/ */
/* Box sizing rules */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Remove default margin */
*,
body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
  padding: 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;
}

/* Set core root defaults */
html {
  scroll-behavior: smooth;
}

/* Set core body defaults */
body {
  min-height: 100vh;
  text-rendering: optimizeSpeed;
  line-height: 1.5;
}

/* A 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;
}

/* Remove all animations and transitions for people that prefer not to see them */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
/* ------------------ END RESET ------------------ */

/* COLORS */
:root {
  --nav-inactive: #DEEBF7;
  --white: #FFFFFF;
  --brand-secondary: #9C3B36;
  --black: #000000;
  --brand-primary: #0C304F;
  --background-container: #B2D0EC;
  --background-primary: #DEEBF7;
}

li {
  margin-left: 10px;
}

body {
  background: var(--background-primary);
  font-family: "Roboto", sans-serif;
}

body,
p {
  color: var(--brand-primary);
}

h1,
h2,
h3,
h4 {
  color: var(--black)
}

.highlight-line {
  background-color: var(--brand-secondary);
  height: 3px;
}

header {
  background-color: var(--brand-primary);
  display: flex;
  justify-content: center;
}

nav {
  display: flex;
  justify-content: end;
  width: 1074px;
  margin: auto 0;
}

nav li {
  list-style-type: none;
  display: inline-block;
  padding: 10px 10px;
  font-size: 2rem;
}

nav li.active a {
  border-bottom: 3px solid var(--white);
  font-weight: 700;
  color: var(--white);
}

nav a {
  color: var(--nav-inactive);
  text-decoration: none;
}

.page-header {
  text-align: center;
  font-size: 3rem;
  margin-top: 1.5rem;
}

.button-link {
  background-color: var(--brand-secondary);
  border-radius: 4px;
  padding: 10px;
  margin-right: 20px;
  margin-top: 1rem;
  text-decoration: none;
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 700;
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
  flex-basis: auto;
}

.container {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  max-width: 1140px;
}

.card {
  /* There will be 2 cards per row */
  /* flex-basis: 515px; */
  width: 515px;
  flex: 0 0 auto;
  margin: 10px 22px;
  /* flex-direction: row; */
  border-radius: 0px;
  /* box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25); */
}

.card-title {
  font-size: 3rem;
  font-weight: 700;
  text-align: center;
}

.card-content {
  background-color: var(--background-container);
  padding: 1.25rem 1.25rem 1.25rem 1.25rem;
  font-size: 1.125rem;
  /* box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25); */
  display: flex;
  flex-wrap: wrap;
  justify-content: start;
}

.card-content > ul {
  padding: 1rem;
}

.card img {
  object-fit: cover;
  width: 515px;
  height: 515px;
  /* width: 100%; */
}

.top-bar {
  display: inline-block;
  font-size: 3rem;
  flex: 1;
}
/* Hide mobile nav by default */
#toggle-nav, .hamburger-icon {
  display: none;
}

.social-icon {
  stroke: var(--white);
  width: 60px;
  height: 60px;
  background-color: var(--brand-secondary);
  border-radius: 4px;
  padding: 5px;
  margin: 1rem;
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
}

.icon-link {
  text-decoration: none;
}

/* Mobile */
@media (max-width: 750px) {
  /* Show mobile elements */
  .top-bar, #toggle-nav, .hamburger-icon {
    display: block;
  }

  nav {
    position: relative;
  }

  nav ul {
    flex: 4;
  }

  nav li {
    display: block;
    padding: 5px 0px;
  }

  nav > ul > li > a {
    color: var(--white);
    padding: 16px 16px;
    text-decoration: none;
    font-size: 1.5rem;
    display: block;
  }

  nav li.active a {
    border-bottom: none;
    background-color: var(--brand-secondary);
  }

  nav a.hamburger-icon {
    position: absolute;
    right: 0;
    top: 0;
    padding: 0;
  }

  /* Put the checkbox over the hamburger icon */
  #toggle-nav[type="checkbox"] {
    opacity: 0;
    width: 72px;
    height: 72px;      
    position: absolute;
    top: 0px;
    right: 0px;
    margin-right: 20px;
    cursor: pointer;
    z-index: 1;
  }
  
  nav ul {
    display: none;
  }

  nav input:checked ~ ul {
    display: block;
  }
  
  .hamburger-icon svg {
    stroke: var(--white);
    width: 65px;
    height: 65px;
    margin-top: 4px;
    margin-right: 10px;
  }
  
  .card, .card img {
    width: 100%;
  }

  .social-icon {
    stroke: var(--white);
    width: 80px;
    height: 80px;
  }
}

footer {
  background-color: var(--brand-primary);
  display: flex;
  justify-content: center;
  padding: 5px;
  /* position:fixed; */
  bottom:0;
  width: 100%;
}

footer p {
  color: var(--white);
}
