.Winner { display: flex; position: absolute; left: 0; right: 30rem; bottom: 0; top: 0; justify-content: center; align-items: center; background: rgba(0,0,0,0.5); z-index: 1000; max-height: 100vh; overflow: auto; } .Winner > * { max-height: calc(100vh - 2em); overflow: auto; margin: 0.5em; width: 40em; display: inline-flex; padding: 0.5em; flex-direction: column; } .Winner .Title { align-self: center; padding: 2px; font-weight: bold; margin-bottom: 0.5em; } .Winner .Description { padding: 1em; box-sizing: border-box; display: flex; flex-direction: column; align-items: flex-start; } .Winner .Description > div { margin-bottom: 1rem; line-height: 1.25rem; } .Winner .Description b { margin: 0;/* 0.25rem;*/ } .Winner .Resource { width: 10em; /* 5x7 aspect ratio */ height: 14em; } .Winner .PlayerColor { display: inline-flex; width: 0.8em; height: 0.8em; padding: 0; margin: 0; } .Winner .Description .Resource { height: 3.5em; width: 2.5em; margin: 1rem 0.5rem 0 0.5rem; } .Winner .Description .Resource > div.Right { user-select: none; position: absolute; top: -0.75rem; right: -0.75rem; border-radius: 50%; border: 1px solid white; background-color: rgb(36, 148, 46); font-size: 1rem; width: 1.5rem; height: 1.5rem; text-align: center; line-height: 1.5rem; }