:root {
  --primary-color1: #DA291C;
  --primary-color2: #ffffff;
  --flag-height: 200px;
  --flag-width: calc(var(--flag-height) * 5/3);
}
.box-bahrain {
  height: 90vh;
  border: 1px solid;
  border-radius: 50px;
  margin: 30px 50px;
  text-align: center;
}
h1.title {
  font-size: 50px;
}
.back-color {
  position: relative;
  background-color: var(--primary-color1);
  height: var(--flag-height);
  width: var(--flag-width);
  margin: 20px auto;
  border: 1px solid;
  border-radius: 5px;
}
.white {
  background-color: var(--primary-color2);
}
.rect {
  height: var(--flag-height);
  width: calc(var(--flag-width) * 1/4);
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;
}
.triangle {
  position: absolute;
  width: 0;
  height: 0;
  border-top: calc(var(--flag-height) * 1/10) solid transparent;
  border-bottom: calc(var(--flag-height) * 1/10) solid transparent;
  border-left: calc(var(--flag-width) * 3/20) solid var(--primary-color2);
  left: calc(var(--flag-width) * 1/4);
  top: 0;
}
.t2 {
  top: calc(var(--flag-height) * 1/5);
}
.t3 {
  top: calc(var(--flag-height) * 2/5);
}
.t4 {
  top: calc(var(--flag-height) * 3/5);
}
.t5 {
  top: calc(var(--flag-height) * 4/5);
}

span {
  display: inline-block;
  height: 15px;
  width: 15px;
  border: 1px solid;
}
.span-color1 {
  background-color: var(--primary-color1);
}
.span-color2 {
  background-color: var(--primary-color2);
}
@media (max-width: 320px) {
  :root {
    --flag-height: 50vw;
  }
  span {
    height: 12px;
    width: 12px;
  }
  .box-bahrain {
    margin: 15px auto;
    height: 80vh;
  }
  h1.title {
    font-size: 28px;
  }
  h2 {
    font-size: 20px;
  }
  p {
    font-size: 15px;
  }
}
@media (min-width: 321px) and (max-width: 420px) {
  :root {
    --flag-height: 35vw;
  }
  .box-bahrain {
    margin: 15px auto;
    height: 90vh;
  }
  h1.title {
    font-size: 30px;
  }
  h2 {
    font-size: 25px;
  }
  p {
    font-size: 20px;
  }
}
@media (min-width: 421px) and (max-width: 600px) {
  :root {
    --flag-height: 150px;
  }
  .box-bahrain {
    margin: 20px 20px;
    height: 90vh;
  }
  h1.title {
    font-size: 40px;
  }
  h2 {
    font-size: 28px;
  }
  p {
    font-size: 18px;
  }
}
@media (min-width: 601px) and (max-width: 768px) {
  :root {
    --flag-height: 180px;
  }
  .box-bahrain {
    margin: 20px 30px;
    height: 90vh;
  }
  h1.title {
    font-size: 40px;
  }
  h2 {
    font-size: 28px;
  }
  p {
    font-size: 18px;
  }
}