.popup {
  border: solid silver;
  border-radius: 15px;

  /* width: 1000px; */
  /* height: 500px; */
  /* max-width: 100%; */
  display: flex;
  flex-direction: column;
  background-color: silver;
  margin: 1em;
}


.popup header {
  font-variant: small-caps;
  border-radius: 10px 10px 0 0;
  display: flex;
  flex-grow: 0;
  text-align: center;
}

.popup header .popup-button {
  border: solid black;
  border-radius: 15px;
  margin: 5px;
  width: 1em;
  height: 1.15em;
  text-align: center;
  content: "X";
  cursor: pointer;
  text-decorations: none;
}

.popup header .title-text {
  padding: 5px;
  flex: 10;
}

.popup footer {
  border-radius: 0 0 10px 10px;
}

.popup footer, .popup header {
  background-color: inherit;
  padding: 5px;
}

.popup .content {
  background-color: blue;
  flex: 1;
  border-radius: 10px;
  padding: 5px;
}

body {
  display: flex;
}

main {
  flex: 50;
}

body header nav {
  flex: 1;
  height: 100%;
  max-width: 200px;
}

body header nav .popup .content {
  display: flex;
  flex-direction: column;
}

body header nav .popup .content a {
  flex: 1;
  text-align: center;
  padding: 5px;
  margin: 5px;
  border-radius: 15px;
}

body header nav .popup .content a:hover {
  background-color: gold;
}


.floating_head {
  position: fixed;
  bottom: 0;
  right: 0;
}

.floating_head .popup .content{
  display: flex;
  flex-direction: rows;
  overflow: clip;
}

.floating_head .popup .content img {
  width: 128px;
  transform: scaleX(-1.2) scaleY(1.2);
}

.badge {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}

.badge img {
  width: 128px;
  height: 128px;
}

.badge .popup {
  width: 150px;
  height: 200px;
  overflow: clip;
}

.badge * {
  z-index: auto;
}

.badge *:hover {
  z-index: 1000;
  height: auto;
}
