.wordleGoodbyeImage {
    width: 100%;
    height: 100%;
    background-image: url('/wordle/goodbye-message.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center center;
}

#board-container:has(.wordleGoodbyeImage) {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.otherGamesDashboard p {
    font-size: 14pt;
}

.otherGamesDashboard a {
    color: red;
}

.redirectPopup {
    position: absolute;
    z-index: 10000000;
    left: 5vw;
    top: 5vh;
    width: 90vw;
    max-height: 90vh;
    max-width: 950px;
    border-radius: 10px;
    --background-color: #fff5ab;
    background-color: var(--background-color);
    box-shadow: #858585 0 0 20px 5px;
    overflow: hidden;

    display: flex;
    flex-direction: column;
    align-items: center;

    text-align: justify;
    font-family: 'Fredoka', sans-serif;
}

:root.darkMode .redirectPopup {
    color: black;
    box-shadow: #b7b6b638 0 0 20px 5px;}

:root.darkMode .redirectPopup a {
    color: initial;
}

.redirectPopup > .scrollContainer {
    width: 100%;
    flex-grow: 1;
    padding: 40px 15px 10px 15px;
    overflow-y: auto;

    display: flex;
    flex-direction: column;
    align-items: center;
}
@media screen and (min-width: 900px) {
    .redirectPopup > .scrollContainer {
        padding-bottom: 68px;
    }
}

.redirectPopup > .scrollContainer > .content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 700px;
}

.redirectPopup b {
    font-weight: 500;
}

.redirectPopup :is(h2, p) {
    margin: 8px 0;
    width: 100%;
    text-align: left;
}

.redirectPopup .header {
    width: 100%;
    display: flex;
    height: 78px;
    justify-content: space-between;
    padding: 15px;
    gap: 25px;
}

.redirectPopup img.logo {
    /* max-width: 25%;
    margin: 10px 0;
    max-height: 192px; */
    height: 100%;
}

.redirectPopup button.close {
    padding: 12px 13px;
    display: flex;
    align-content: center;
    justify-content: center;
    align-items: center;
    font-size: 15px;
    text-transform: uppercase;
    /* margin: 12px 20px; */
    cursor: pointer;
    transition: background-color 0.3s;

    border-radius: 5px;
    background-color: beige;
    border: 1px solid #737373;
    color: #313131;
}

.redirectPopup button.close:hover {
    background-color: #d3d33c;
}

.redirectPopup .instructionElement {
    display: flex;
    flex-direction: column;
    align-items: center;
    
    border: 2px solid #414040;
    border-radius: 4px;
    background-color: #e1454530;
}

.redirectPopup .instructionElement {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 12px 0;
    width: 100%;
}

.redirectPopup .instructionElement button {
    width: 100%;
    height: 48px;
    background: transparent;
    border: none;
    cursor: pointer;
    
    font-size: inherit;
    text-transform: uppercase;
    font-weight: 500;
}

.redirectPopup .instructionElement .content {
    border-top: 1px solid #2b2b2b;
    padding: 10px;
}

.redirectPopup .instructionElement .content ol {
    padding-left: 20px;
    padding-right: 10px;
}

.redirectPopup .instructionElement .content ol li {
    padding-left: 10px;
}

.redirectPopup .instructionElement .content img {
    margin: 10px auto 50px auto;
    max-width: 100%;
}
.redirectPopup .instructionElement .content li:last-child img {
    margin-bottom: 10px;
}

/* https://css-tricks.com/books/greatest-css-tricks/scroll-shadows/ */
.scrollShadow {
    /* max-height: 200px; */
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    overflow-scrolling: touch;
  
    background:
      /* Shadow Cover TOP */
      linear-gradient(
        var(--background-color) 30%,
        rgba(255, 255, 255, 0)
      ) center top,
      
      /* Shadow Cover BOTTOM */
      linear-gradient(
        rgba(255, 255, 255, 0), 
        var(--background-color) 70%
      ) center bottom,
      
      /* Shadow TOP */
      radial-gradient(
        farthest-side at 50% 0,
        rgba(0, 0, 0, 0.2),
        rgba(0, 0, 0, 0)
      ) center top,
      
      /* Shadow BOTTOM */
      radial-gradient(
        farthest-side at 50% 100%,
        rgba(0, 0, 0, 0.2),
        rgba(0, 0, 0, 0)
      ) center bottom;
    
    background-repeat: no-repeat;
    background-size: 100% 40px, 100% 40px, 100% 14px, 100% 14px;
    background-attachment: local, local, scroll, scroll;
}

.redirectPopupContainer {
    width: 100vw;
    height: 100vh;
    background-color: #00000054;
    position: absolute;
    top: 0px;
    left: 0px;
}