.flag--tricolor-horz{
    aspect-ratio: 3/2;
    display: grid;
    grid-template-rows: 1fr 1fr 1fr;
}

.flag--tricolor-horz .stripe:nth-child(1) {
  background: var(--stripe-1);
}

.flag--tricolor-horz .stripe:nth-child(2) {
  background: var(--stripe-2);
}

.flag--tricolor-horz .stripe:nth-child(3) {
  background: var(--stripe-3);
}

.flag--tricolor-vert{
    aspect-ratio: 3/2;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
}

.flag--tricolor-vert .stripe:nth-child(1) {
  background: var(--stripe-1);
}

.flag--tricolor-vert .stripe:nth-child(2) {
  background: var(--stripe-2);
}

.flag--tricolor-vert .stripe:nth-child(3) {
  background: var(--stripe-3);
}

.flag--japan{
  aspect-ratio: 3/2;
}

.red-disc,.ashoka-chakra,.chakra-center{
  position: absolute;
  background-color: #EE0000;
  width: 40%;
  height: 60%;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.ashoka-chakra,.chakra-center{
  width: 20.5%;
  height: 30.85%;
  background-color: #ffffff;
  border: 3px solid #06038D;
  box-shadow: inset 0px 0px 30px rgb(255, 255, 255);
  overflow: hidden;
}

.chakra-center{
  width: 17%;
  height: 20%;
  border: 4px solid #06038D;
}
.chakra-spokes {
  position: absolute;
  inset: 0;
  background:repeating-conic-gradient(from 0deg,#06038D 0deg 5deg,transparent 5deg 15deg);
  border-radius: 50%;
}

.flag--iceland{
  aspect-ratio: 25/18;
}

.flag--iceland > .whitecross-vertical {
  left: 40%;
  width: 15%;
  transform: translateX(-90%);
}

.flag--iceland > .redcross-vertical {
  left: 39%;
  width: 10%;
  transform: translateX(-100%);
}

.flag--iceland>.whitecross-horizontal{
  height:22%;
}

.flag--iceland>.redcross-horizontal{
  height: 15%;
}