:root {
  --clr-sand: #DAD3C3;
  --clr-accent: #E7A304;
  --container: 100%;
}
@media(min-width: 576px)  {:root{--container: 540px;}}
@media(min-width: 768px)  {:root{--container: 720px;}}
@media(min-width: 992px)  {:root{--container: 960px;}}
@media(min-width: 1200px) {:root{--container: 1140px;}}
@media(min-width: 1400px) {:root{--container: 1320px;}}

.grid {
  display: grid;
  grid-template-columns: 1fr;
  padding: 3rem 2rem 0;
  max-width: var(--container);
  margin: 0 auto;
  row-gap: 1rem;
  /* Line below: In case you'd rather align vertically from center */
  /* align-items: center;  */
}
@media(min-width: 575px) {
  .grid {padding: 3rem 0; row-gap: 0;}
}

@media(min-width: 992px) {
  .grid {grid-template-columns: 1fr 3fr 1fr;}
}

/* Factions Column Start */
.factions {
  display: flex;
  flex-direction: column;
}

.factions__label {
  display: grid;
  grid-template-columns: auto 3rem;
  margin-bottom: .5rem;
  cursor: pointer;
  user-select: none;
  position: relative;
  align-items: center;
}

.factions__faction:last-child .factions__label {
  margin-bottom: 0;
}


.factions__label span {
  font-family: sans-serif;
  background: rgba(0, 0, 0, .25);
  padding: 5px 10px;
  color: white;
  order: 1;
}

.factions__checkbox {
  height: 2em;
  width: 2em;
  appearance: none;
  border: none;
  outline: none;
  transition-duration: 0.3s;
  background-color: white;
  cursor: pointer;
  margin: 0;
  margin-left: 0px;
  margin-left: 1rem;
  order: 2;
  position: relative;
}

.factions__checkbox:checked {
  background-color: var(--clr-accent);
}

.factions__checkbox:checked::after {
  content: '\2715';
  display: block;
  color: white;
  position: absolute;
  font-size: 1.4rem;
  line-height: 1;
  top: 2px;
  left: 4px;
  margin: auto;
  font-weight: 700;
}
/* Factions End */

/* Map Column Start */
.map__inner {
  position: relative;
}

.map__overlay {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
  opacity: 1;
  transition: 400ms;
}

.map__overlay--hidden {
  opacity: 0;
}

.map__text {
  z-index: 2;
}
/* Map End */

/* Data Column Start */
.data__faction {
  opacity: 1;
  transition: opacity 400ms, max-height 700ms;
  max-height: 300px;
}

.data__faction--hidden {
  opacity: 0;
  max-height: 0;
}

.data__faction h3 {
  background-color: var(--clr-accent);
  color: white;
  padding: .5rem 1rem;
  margin: 0;
  font-weight: 400;
  font-family: sans-serif;
}

.data__content {
  font-family: sans-serif;
  background-color: white;
  margin-bottom: 1rem;
}

.data__faction:last-child .data__content {
  margin-bottom: 0;
}

.data__content p {
  padding: 1rem;
  margin: 0;
}

/* Data END */


/* Development only */
body {
  background: var(--clr-sand);
}

body {
  margin: 0;
  padding: 0;
}

img {
  width: 100%;
  display: block;
}