#flag-panel {
  position: fixed;
  bottom: 0px;
  right: 0px;
  width: 150px;
  border: 1px solid #fff;
  border-top-left-radius: 15px;
  border-bottom-left-radius: 15px;
  margin-right: -130px;
}

#flag-panel.open {
  margin-right: 0px !important;
}

#flag-panel.opened {
  transition: margin-right 1s;
}

#flag-panel span {
  margin-right: 10px;
  margin-left: 5px;
}

#flag-overlay {
  position: fixed;
  width: 100%;
  height: 100vh;
  top: 0;
  left: 0;
  background-color: rgba(0,0,0,0.5);
}

#flag-overlay iframe {
  width: 80%;
  min-width: 350px;
  margin: 0 auto;
  margin-top: 1vh;
  display: block;
  background-color: #fff;
  border: 3px solid #000;
  border-radius: 1em;
  overflow-y: scroll;
  height: 97vh;
}

#flag-overlay.closing {
  transition: opacity 0.5s;
}

#flag-overlay.closing iframe {
  transition: margin 1s ease, width 1s ease, height 1s ease;
  width: 350px;
  height: 170px;
  margin-top: calc(50vh - 50px);
  overflow: hidden;
}