:root {
  --font-primary: "Roboto";
  --font-secondary: "Merriweather", serif;
  --space: 0.5rem;
  --space-sm: calc(var(--space) / 2);
  --space-lg: calc(var(--space) * 4);
}

/* Grid properties */
.box-grid {
  display: grid;
  grid-template:
    [box-start] "tagline actions" [box-end] /
    [box-start] 1fr auto [box-end];
}

.box-grid > *,
.box-grid::before {
  grid-area: box;
}

.title-grid {
  place-self: center;
}

/* Box styles */
.box-grid {
  --color: white;
  --bg-color: #A4070B;

  direction: var(--direction, ltr);
  position: relative;
  overflow: hidden;
  padding: var(--space-sm);
  color: var(--color, white);
  border: 4px solid var(--bg-color, crimson);
}

.box-grid::before {
  content: "";
  position: relative;
  background: black;
  opacity: 0.4;
  z-index: -1;
  transition: opacity 200ms ease-out;
}

.box-grid h2 {
 font-size: 30px;
	color: #fff;
	font-weight: 600;
	
}

.box-grid img {
  position: relative;
  inline-size: 100%;
  height: auto;
  z-index: -2;
}

.title-grid {
  padding: var(--space);
  font-size: 2rem;
  font-family: var(--font-secondary);
  line-height: 1.2;
  text-align: center;
  user-select: none;
  font-family: 'Roboto' !important;
  text-shadow: 4px 4px 2px #000000;
}

.title-grid a {
  color: inherit;
  text-decoration: none;
}

.title-grid a::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Transitions */
.box-grid {
  transition: border-color 200ms ease;
}

.box-grid:hover {
  border-color: transparent;
}

.box-grid .tagline {
  opacity: 0;
}

.box-grid .title-grid,

.box-grid::before {
  transition: opacity 200ms ease;
}

.box-grid:hover .title-grid,
.box-grid:hover .tagline,
.box-grid:hover::before {
  opacity: 0;
}



.img {
  transition: transform 200ms ease-out;
}

.box:hover .img {
  transform: scale(1.05);
}

/* Other styles */
* {
  box-sizing: border-box;
}

.body {
  height: 100%;
}

.body {
  font-family: var(--font-primary);
  padding: calc(var(--space) * 2);
  margin-block-start: var(--space-lg);
  margin-block-end: var(--space-lg);
  margin-inline-start: auto;
  margin-inline-end: auto;
  max-inline-size: 1000px;
}

.header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space);
  margin-block-end: 2rem;
  inline-size: 100%;
  text-align: center;
}

.select {
  font-size: inherit;
}

.main {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  grid-gap: calc(var(--space) * 2);
  padding-block-end: var(--space-lg);
  inline-size: 100%;
}
