.flags-container {
  display: flex;
  width: 100%;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.flag-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 20px;
  padding: 15px;
  gap: 10px;
  box-shadow: 0 2px 5px 0 var(--color1);
  width: 600px;
  height: 400px;
}

.flag {
  outline: 1px solid var(--color1);
  position: relative;
  padding: 0;
  margin: 0;
  width: 500px;
  height: 300px;
}

.country-name {
  font-size: 18pt;
  font-weight: bold;
}

/******** FLAG DATA ********/


/* ANDORRA */

.flag-ad {
    display: grid;
    grid-template-columns: repeat(3,1fr);
}

.ad-blue {
    background: #001Df2;
}

.ad-yellow {
    background: #FFFC00;
}

.ad-red {
    background: #FF0061;
}

/* CZECH REPUBLIC */

.flag-cz {
    position: relative;
    display: grid;
    grid-template-rows: repeat(2,1fr);
}

.cz-blue {
    background: #0055a4;
    fill: #0055a4;
  }
  
.cz-white {
background: #ffffff;
}

.cz-red {
background: #ef4135;
}

.cz-stripe {
    z-index: 1;
}

.cz-triangle {
    z-index: 3;
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
}

.cz-triangle-container {
    z-index: 2;
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 50%;
}

/* FRANCE */

.flag-fr {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.fr-blue {
  background: #0055a4;
}

.fr-white {
  background: #ffffff;
}

.fr-red {
  background: #ef4135;
}

/* IRELAND */

.flag-ie {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.ie-green {
  background: #169b62;
}

.ie-white {
  background: #ffffff;
}

.ie-orange {
  background: #ff883e;
}

/* JAPAN */

.flag-jp {
  height: calc((500px / 3) * 2);
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
}

.jp-dot {
  fill: #ee0000;
  height: 60%;
  width: 60%;
}

/* SPAIN */

.flag-es {
    width: 450px;
    position: relative;
}

.es-coat {
    position: absolute;
    top: 80px;
    left: 80px;
    height: 120px;
    width: 120px;
    z-index: 2;
}

.es-coat > * {
    width: 100%;
}

.es-red {
    background: #AD1519;
    height: 75px;
}

.es-yellow {
    background: #FABD00;
    height: 150px;
}

/* SWITZERLAND */

.flag-ch {
    width: 300px;
    background: #FF0000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ch-cross {
    fill: #ffffff;
    height: 187px;
    width: 187px;
}

/* UNITED STATES */

.flag-us {
  display: grid;
  grid-template-rows: (1fr,13);
}

.us-red {
  background: #b31942;
}

.us-white {
  background: #ffffff;
}

.us-blue {
  background: #0a3161;
}

.us-stripe {
  width: 100%;
  margin: 0;
  padding: 0;
  z-index: 1;
}

.us-star-area {
  position: absolute;
  top: 0;
  left: 0;
  width: calc(500px * (2 / 5));
  height: calc(300px * (7 / 13));
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(11, 1fr);
  grid-template-rows: repeat(8, 1fr);
  padding: 5px;
}

.us-star {
  z-index: 3;
  opacity: 1;
  fill: white;
  width: 15px;
  height: 15px;
}

.us-space {
  width: 15px;
  height: 15px;
}
