* ,
*::before,
*::after {
  box-sizing: border-box;
}

@font-face {
  font-display: swap;
  font-family: 'Urbanist';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/urbanist-v17-latin-regular.woff2') format('woff2');
}

body, html {
  width: 100%;
  margin: 0;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #162234;
  font-family: "Urbanist", sans-serif;
  font-optical-sizing: auto;
}

header {
  position: relative;
  height: 200px;
  margin-bottom: 1rem;
  background-color: #0d1521;
  background-image: url("https://assets.retrogamebeurzen.nl/banner.webp");
  background-position: left top;
  background-repeat: no-repeat;
  border-radius: 0px 0px 15px 15px;
}

header h1 {
  margin: 0px;
  color: #F1F2F6;
  text-align: center;
}

main {
  padding-left: 10px;
  padding-right: 10px;
}

footer {
  padding-left: 10px;
  padding-right: 10px;
  margin-top: 1rem;
}

a {
  color: #97e3f5;
  text-decoration: none;
}

a:hover {
  color: #c0e7ef;
  text-decoration: none;
}

a:focus-visible {
  outline: 2px solid #97e3f5;
  outline-offset: 2px;
  border-radius: 2px;
}

h1, h2, h3 {
  color: rgb(255, 20, 147);
}

h2 a,
h3 a {
  color: rgb(255, 20, 147);
}

.container {
  width: 100%;
  max-width: 800px;
  color: #FFF;
  line-height: 1.5;
}

.menu {
  position: absolute;
  bottom: 0px;
  width: 100%;
  background-color: #193052;
  text-align: center;
  font-size: 24px;
  border-radius: 15px;
}

.menu-item {
  height: 150%;
  margin-left: 5px;
  margin-right: 5px;
  color: #97e3f5;
}

.menu-item:hover {
  color: rgb(255, 20, 147);
}

.event-list-item {
  position: relative;
  background-color: #2e476b;
  padding: 5px;
  padding-left: 10px;
  padding-right: 10px;
  margin-bottom: 15px;
  border-radius: 15px;
}

.event-list-item h2,
.event-list-item h3 {
  margin: 0;
}

.event-list-item h2 a::after,
.event-list-item h3 a::after {
  content: '';
  position: absolute;
  inset: 0;
}

.event-list-info-wrapper {
  overflow: hidden;
  margin-top: 5px;
  margin-bottom: 10px;
}

.event-list-info-item {
  float: left;
  width: 50%;
}

.event-cancelled-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 10px;
  background-color: #a4133c;
  color: #FFFFFF;
  border-radius: 15px;
  font-size: 0.6em;
  font-weight: normal;
  vertical-align: middle;
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.page-header h1 {
  margin: 0;
}

.country-filter {
  display: flex;
  align-items: center;
}

.country-filter select {
  height: 40px;
  background-color: #193052;
  color: #97e3f5;
  border: none;
  border-radius: 15px;
  font-size: 18px;
  font-family: "Urbanist", sans-serif;
  padding-left: 10px;
  padding-right: 10px;
  cursor: pointer;
}

.event-list-all-items {
  width: 100%;
  height: 40px;
  background-color: #193052;
  text-align: center;
  font-size: 24px;
  line-height: 40px;
  border-radius: 15px;
}

.event-list-all-items a:hover {
  color: rgb(255, 20, 147);
}

.event-cancelled-banner {
  padding: 10px 16px;
  margin-bottom: 1rem;
  background-color: #a4133c;
  color: #FFFFFF;
  text-align: center;
  font-size: 20px;
  border-radius: 15px;
}

.event-info-wrapper {
  overflow: hidden;
}

.event-info-item {
  float: left;
  width: 33%;
}

.event-secondary-info-wrapper {
  float: left;
  width: 50%;
}

.event-tertiary-info-item {
  float: left;
  width: 50%;
}

.event-action-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 90%;
  height: auto;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  padding: 10px 6px 0;
  background-color: #17c2e8;
  border-radius: 15px;
  color: #162234;
  text-align: center;
  text-decoration: none;
  overflow: hidden;
}

.event-action-tile-icon-pink {
  display: none;
}

@media (hover: hover) {
  a.event-action-tile-calendar:hover,
  a.event-action-tile-calendar:focus-visible {
    background-color: #193052;
    color: rgb(255, 105, 180);
  }

  a.event-action-tile-calendar:hover .event-action-tile-label,
  a.event-action-tile-calendar:focus-visible .event-action-tile-label {
    color: rgb(255, 105, 180);
  }

  a.event-action-tile-calendar:hover .event-action-tile-icon-dark,
  a.event-action-tile-calendar:focus-visible .event-action-tile-icon-dark {
    display: none;
  }

  a.event-action-tile-calendar:hover .event-action-tile-icon-pink,
  a.event-action-tile-calendar:focus-visible .event-action-tile-icon-pink {
    display: block;
  }

  .event-action-tile-link:hover,
  .event-action-tile-link:focus-visible {
    background-color: #193052;
    color: rgb(255, 105, 180);
  }
}

.event-action-tile-icon {
  flex: 0 0 auto;
  height: 40%;
  width: auto;
}

.event-action-tile-label {
  margin-top: 6px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  color: #162234;
}

.event-action-tile-calendar .event-action-tile-label {
  flex: 0 0 auto;
  margin-top: calc(16% - 4.8px);
  padding: 0 6px;
}

.event-action-tile-calendar {
  padding-top: 0;
}

/* Social buttons (the "follow us" section on the contact page): action tiles
   in the style of the event page. Add one .social-button per feed/profile
   link; the tiles share the row and match the event page tile size because
   the container is 50% of the content width, like .event-secondary-info-wrapper */
.social-buttons {
  display: flex;
  width: 50%;
  margin: 0 0 10px;
}

.social-button {
  flex: 1 1 0;
  min-width: 0;
}

@media only screen and (max-width: 40em) {
  .social-buttons {
    width: 100%;
  }
}

.event-action-tile-calendar .event-action-tile-icon {
  margin-top: calc(22% - 6.6px);
}

.event-action-tile-routing {
  padding: 0;
  gap: 5px;
  background: transparent;
}

.event-action-tile-top {
  flex: 1 1 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 6px;
  background-color: #193052;
  border-radius: 15px 15px 0 0;
  color: #FFFFFF;
}

.event-action-tile-routing .event-action-tile-icon {
  height: 60%;
}

.event-action-tile-routing .event-action-tile-label {
  padding: 0;
  color: #FFFFFF;
}

.event-action-tile-links {
  display: flex;
  width: 100%;
  margin-top: auto;
}

.event-action-tile-routing .event-action-tile-links {
  flex: 1 1 0;
  height: auto;
  margin-top: 0;
  gap: 5px;
}

.event-action-tile-link {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 4px;
  background-color: #17c2e8;
  color: #162234;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.event-action-tile-link:first-child {
  border-bottom-left-radius: 15px;
}

.event-action-tile-link:last-child {
  border-bottom-right-radius: 15px;
}

.event-action-tile-link-sub {
  display: block;
}

.event-parking-info-item {
  float: left;
  width: 100%;
  height: 150px;
  align-items: center;
  background-color: #17c2e8;
  border-radius: 15px;
  color: #FFFFFF;
  text-decoration: none;
}

@media only screen and (max-width: 40em) {
  .event-info-item {
    float: none;
    width: 100%;
    margin-bottom: 5px;
  }

  .event-secondary-info-wrapper{
    float: none;
    width: 100%;
    margin-bottom: 5px;
  }

  .event-tertiary-info-item {
    float: left;
    width: 50%;
    margin-bottom: 5px;
  }

  .event-action-tile {
    width: 95%;
    height: auto;
  }

  .event-parking-info-item {
    margin-top: 15px;
  }

  .event-secondary-info-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .event-cancelled-badge {
    display: block;
    width: fit-content;
    margin: 5px 0 0;
  }

}

.event-title,
.event-cancelled-banner,
.event-main-info,
.event-poster-figure figcaption,
.event-no-poster,
.event-tags {
  width: 97.5%;
  margin-left: auto;
  margin-right: auto;
}

.event-poster-figure {
  margin: 0;
}

.event-poster-figure a {
  display: inline-block;
  border-radius: 15px;
}

.event-poster {
  display: block;
  margin: 20px auto 0;
  width: 97.5%;
  max-width: 800px;
  height: auto;
  border-radius: 15px;
}

.event-poster-figure figcaption {
  margin-top: 0.4rem;
  font-size: 0.85rem;
  color: #97e3f5;
  text-align: center;
}


.footer {
  float: left;
  background-color: #193052;
  padding: 5px;
  margin-bottom: 65px;
  border-radius: 15px
}

/* Archive page styles */
.past-event {
  opacity: 0.7;
}

.past-event:hover {
  opacity: 0.9;
}

.archive-summary {
  background-color: #193052;
  padding: 15px;
  border-radius: 15px;
  margin-top: 2rem;
  text-align: center;
}

.archive-summary p {
  margin: 0;
  color: #F1F2F6;
  font-weight: 500;
}

/* Tags overview styles */
.tags-overview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.tag-item {
  position: relative;
  background-color: #2e476b;
  padding: 15px;
  border-radius: 15px;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.tag-item:hover {
  transform: translateY(-3px);
  background-color: #3a5a7d;
}

.tag-item h2 {
  margin: 0 0 8px 0;
  font-size: 1.2rem;
}

.tag-item h2 a {
  color: rgb(255, 20, 147);
  text-decoration: none;
}

.tag-item h2 a:hover {
  color: #ff69b4;
}

.tag-item h2 a::after {
  content: '';
  position: absolute;
  inset: 0;
}

.tag-item p {
  margin: 0;
  color: #97e3f5;
  font-size: 0.9rem;
}

/* FAQ styles */
.faq {
  margin-top: 1rem;
}

.faq-item {
  background-color: #2e476b;
  border-radius: 15px;
  margin-bottom: 10px;
  padding: 10px 15px;
  cursor: pointer;
}

.faq-question {
  color: rgb(255, 20, 147);
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::marker {
  display: none;
}

.faq-answer {
  margin-top: 10px;
  margin-bottom: 5px;
}

.skip {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip:focus {
  position: static;
  width: auto;
  height: auto;
}

/* RSS copy widget */
.rss-copy-container {
  display: flex;
  gap: 10px;
  width: 100%;
}

.rss-url-input {
  flex: 1;
  min-width: 0;
  background-color: #2e476b;
  color: #F1F2F6;
  border: none;
  border-radius: 15px;
  padding: 10px 15px;
  font-family: "Urbanist", sans-serif;
  font-size: 1rem;
}

.rss-url-input:focus {
  outline: 2px solid #97e3f5;
  outline-offset: 2px;
}

.rss-copy-button {
  flex-shrink: 0;
  background-color: #17c2e8;
  color: #FFFFFF;
  border: none;
  border-radius: 15px;
  padding: 10px 18px;
  font-family: "Urbanist", sans-serif;
  font-size: 1rem;
  cursor: pointer;
  white-space: nowrap;
}

.rss-copy-button:hover {
  background-color: #0da8cc;
}

.rss-copy-button:focus-visible {
  outline: 2px solid #97e3f5;
  outline-offset: 2px;
}

/* Calendar feed widget: the country dropdown sits left of the URL input
   and shares its color scheme and corner radius (rss-url-input) */
.calendar-feed-widget {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.calendar-feed-select {
  flex: 0 0 auto;
}

.lang-switcher {
  position: absolute;
  top: 8px;
  right: 10px;
  z-index: 10;
}

.lang-select {
  height: 40px;
  background-color: #193052;
  color: #97e3f5;
  border: none;
  border-radius: 15px;
  font-size: 18px;
  font-family: "Urbanist", sans-serif;
  padding-left: 10px;
  padding-right: 10px;
  cursor: pointer;
}

.lang-select:focus-visible,
.calendar-feed-select:focus-visible,
.country-filter select:focus-visible {
  outline: 2px solid #97e3f5;
  outline-offset: 2px;
}

.lang-noscript-link {
  display: block;
  margin-top: 4px;
  color: #97e3f5;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
