/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *
 *= require_tree .
 *= require_self
 */

:root {
  --font-family-system: "Twemoji Country Flags", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

.page {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  background: #fff;
  font-family: var(--font-family-system);
}

.page__main {
  flex-grow: 1;
  margin-top: 1rem;
}

.page__container {
  width: 100%;
  max-width: 42rem;
  margin-right: auto;
  margin-left: auto;
}

/* Hide the triangle that appears next to the summary text */
details#language-switcher > summary {
  list-style: none;
}
/* Webkit browsers (Chrome, Safari, newer Edge) */
details#language-switcher > summary::-webkit-details-marker {
  display: none;
}
/* Firefox */
details#language-switcher > summary::marker {
  display: none;
}
/* Legacy Edge/IE (though Edge now uses Webkit) */
details#language-switcher > summary::-o-details-marker {
  display: none;
}
/* For older Firefox versions */
details#language-switcher > summary::-moz-list-bullet {
  list-style-type: none;
}

details summary {
  cursor: pointer;
}

.flag-index__thumbnail {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 8rem;
  overflow: hidden;
  background-color: #fff;
}

.flag-index__thumbnail-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.flag-trait-links__grid {
  display: grid;
  row-gap: 2rem;
  column-gap: 3rem;
}

@media (min-width: 640px) {
  .flag-trait-links__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.flag-trait-links__swatches {
  display: inline-flex;
  height: 0.75rem;
  overflow: hidden;
  border: 1px solid #d1d5db;
  border-radius: 0.25rem;
  vertical-align: middle;
}

.flag-trait-links__swatch {
  display: block;
  width: 0.75rem;
  height: 0.75rem;
  border-right: 1px solid #e5e7eb;
}

.flag-trait-links__swatch:last-child {
  border-right: 0;
}
