* {
    box-sizing: border-box;
}

*:disabled {
    cursor: not-allowed !important;
}

body {
    max-width: 100%;
    text-align: center;
    background: #d0f2f2;
    font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif
}

a {
    text-decoration: none;
    color: #154c4c;
}

.message {
    max-width: 50vw;
    margin: auto;
}

#attribution {
    z-index: 999999999;
    margin: auto;
    right: 0;
    width: 200px;
    max-width: 50vw;
}

#attribution img {
    width: 100%;
}

#social-icons {
    height: 50px;
}

#social-icons img {
    height: 100%;
}

#youtube {
    border-radius: 15%;
}

#logo {
    margin: auto;
    z-index: 999999999;
    width: 500px;
    max-width: 90vw;
    /* background: #d0f2f2; */
}

#logo img {
    width: 100%;
}

.icon-settings {
    cursor: pointer;
}

.icon-settings:hover {
    background-color: #a2e5e5;
    box-shadow: rgba(0, 0, 0, .06) 0 2px 4px;
    border-radius: 50%;
}

#icon-settings {
    width: 46px;
}

#settings input[type="text"] {
    font-size: large;
}

#event-toc a {
    cursor: pointer;
}

#event-toc a.not-shown {
    filter: invert(1);
}

#event-toc a:not(:last-child)::after {
    content: " | ";
}

#events-and-games {
    margin-top: 2rem;
    margin-left: 10vw;
    margin-right: 10vw;
}

#events-and-games img {
    max-height: 150px;
}

.explore-bgg-link::before {
    content: "Explore more on BGG";
    position: relative;
    color: white;
    padding: 2pt;
    left: 175px;
    bottom: 90%;
    margin-left: -150px;
}

.video-entries {
    text-align: left;
}
.video-entries iframe {
    margin-right: 1rem;
}
.game-entries {
    display: flex;
    flex-flow: row nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    height: 275px;
}

.game-entries > div {
    margin: 0.5rem 1rem 0.5rem 0;
    max-width: 250px;
}

.holiday-result {
    cursor: pointer;
}

.event > div:last-child:not(.game-entries) {
    margin-bottom: 2rem;
}

.event:not(:last-child) {
    border-bottom: 10px #154c4c solid;
}

.entries:not(.games) > div:not(:last-child) {
    border-bottom: 2px #154c4c solid;
}

.sticky-logo-wrapper {
    width: 46px;
}

#sticky-logo {
    height: 100%;
    z-index: 9999999;
}

#sticky-settings {
    height: 100%;
    z-index: 9999999;
}

#scroll-header {
    height: 3.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 10px;
    position: sticky;
    top: -1px;
    background: #d0f2f2;
    z-index: 999998;
}

#scroll-header > * {
    margin-right: 2px;
    margin-left: 2px;
    height: 100%;
    flex: 0 0 auto;
}

.event h2 {
    position: sticky;
    background: #d0f2f2;
    z-index: 999997;
}

.event h3 {
    position: sticky;
    background: #d0f2f2;
    z-index: 999996;
}

.event h4 {
    position: sticky;
    background: #d0f2f2;
    padding-bottom: 30px;
}

#footer {
    margin-top: 2em;
    height: 3em;
    max-width: 80vw;
    margin: auto;
}

#choose-day {
    font-weight: bold;
    width: 8rem;
    text-align: center;
    font-size: large;
}

#alert-filter {
    color: orange;
    font-weight: bold;
}

#alert-clear-filter {
    background: white;
    border-radius: 40%;
    padding: 3px;
    cursor: pointer;
}

#share-link {
    cursor: pointer;
}

#modal-header * {
    float: left;
}

#modal-header img {
    width: 2em;
}

#share-link.copied::after {
    content: "Copied!";
    background-color: green;
    color: white;
    position: absolute;
    left: 0;
    right: 0;
    top: calc(50vh - 2rem);
    width: 200px;
    margin: auto;
}

.game-title {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
}

.button-5 {
  align-items: center;
  background-clip: padding-box;
  background-color: #2fa74d;
  border: 1px solid transparent;
  border-radius: .25rem;
  box-shadow: rgba(0, 0, 0, 0.02) 0 1px 3px 0;
  box-sizing: border-box;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-family: system-ui,-apple-system,system-ui,"Helvetica Neue",Helvetica,Arial,sans-serif;
  font-size: large;
  font-weight: 600;
  justify-content: center;
  line-height: 1.25;
  margin: 0;
  min-height: 3rem;
  padding: calc(.875rem - 1px) calc(1.5rem - 1px);
  position: relative;
  text-decoration: none;
  transition: all 250ms;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  vertical-align: baseline;
  width: auto;
}

.button-5:hover,
.button-5:focus {
  background-color: #40c962;
  box-shadow: rgba(0, 0, 0, 0.1) 0 4px 12px;
}

.button-5:hover {
  transform: translateY(-1px);
}

.button-5:active {
  background-color: #247f3b;
  box-shadow: rgba(0, 0, 0, .06) 0 2px 4px;
  transform: translateY(0);
}

.button-5:disabled {
    background-color: gray;
    color: lightgray;
    transform: none;
    cursor: default;
    filter: opacity(0.5);
}

.link-about {
    cursor: pointer;
}

.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
    z-index: 99999999;
  }

  .message {
    margin-bottom: 3rem;
  }
  
  /* Modal Content/Box */
  .modal-content {
    background-color: #fefefe;
    margin: 5rem auto;
    padding: 1rem;
    border: 1px solid #888;
    width: 80vw;
  }

  #modal-about .modal-content {
    /* background-color: #40c962; */
    margin: 5rem auto;
    padding: 1rem;
    border: 1px solid #888;
    width: 80vw;
    margin-top: 30vh;
  }
  
  /* The Close Button */
  .close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    margin-right: 1rem;
  }
  
  .close:hover,
  .close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
  }

  /* @media only screen and (max-width: 600px) { */
    .game-entries.scrollable::after {
        content: "Scroll right for more";
        color: white;
        background: #154c4c;
        position: absolute;
        right: calc(10vw + 8px);
        height: 275px;
        width: 20px;
        filter: opacity(0.9);
        text-align: center;
        writing-mode: vertical-lr;
        -webkit-writing-mode: vertical-lr;
        pointer-events: none;
        transition:ease-in;
    }
  /* } */

  @media (hover: none) {
    .game-entries.scrollable::after {
        content: "Swipe left for more";
    }
  }