@import "flag-icon.min.css";

/* header */
#header, #header .navbar-section {
  height: 6rem;
}

/* logo */
#header .logo a {
  display: flex;
  flex-direction: row;
  height: 100%;
  align-items: center;
}

  #header .logo a img
, #header.scrolled .logo a img {
  margin-right: 1rem;
  height: 80% !important;
}

#header .logo a .titles {
  height: 80% !important;
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: space-evenly;
}

#header .logo a .titles .title {
  font-size: 1.5rem;
}

@media screen and (max-width: 286px) {
    #header .logo a .titles .title {
        font-size: 1rem;
    }
}

#header .logo a .titles .subtitle {
  font-size: 0.7rem;
  opacity: 1;
  /* height: 18px; */
  transition: opacity 500ms ease, height 500ms ease;
}

@media screen and (max-width: 350px) {
    #header .logo a .titles .subtitle {
        display: none;
    }
}

#header.scrolled .logo a .titles .subtitle {
  font-size: 0.8rem;
  opacity: 0;
  height: 0; 
}

/* menu */
.dropmenu ul li a {
  padding-right: 20px;
}

.dropmenu ul li a::before {
  display: none;
}

/* language switcher */
.langswitcher {
  margin: 0 !important;
  display: block;
  transform: none;
  position: relative;
  top: 0;
}

.overlay-menu .langswitcher {
  margin-left: 2.15rem !important;
  margin-top: 1rem !important;
  font-size: 1.3rem;
  text-align: left;
}

.langswitcher li {
  margin: 0;
}

.langswitcher a {
  opacity: 0.4;
}

.langswitcher a.active, #header .langswitcher a:hover {
  text-decoration: none;
  opacity: 1;
}

/* layout */
@media screen and (min-width: 1200px) {
    .bricklayer-column-sizer {
        width: 33%;
    }
}

/* hero */
.hero-hide-arrow #to-start {
  display: none;
}

.hero-tight {
  padding-bottom: 0;
}

.hero-tight #to-start {
  position: static;
}

.text-shadow-light {
  text-shadow:
    0 0 0.5em white,
    0 0 0.1em white;
}

.text-shadow-dark {
  text-shadow:
    0 0 0.5em black,
    0 0 0.1em black;
}

/* image aligns */

img.float-left {
  display: inline;
  float: left;
  margin: 5px 15px 5px 0;
  max-width: 47%;
}
img.float-right {
  float: right;
  margin: 5px 0 5px 15px;
  max-width: 47%;
}
img.clear-left {
  clear: left;
}
img.clear-right {
  clear: right;
}
img.clear-both {
  clear: both;
}
img.aligncenter {
  display: block;
  margin: 10px auto;
}

/* icons and colors */

i.icon-hemaratings {
  display: inline-block;
  width: 1.25rem;
}

i.icon-hemaratings::before {
  display: inline-block;
  content: '';
  width: 1.25rem;
  height: .89rem;
  background-image: url('https://hemaratings.com/content/icons/favicon-32x32.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position-x: center;
  margin-bottom: -0.1rem;
}

i.icon-pixelfed {
  display: inline-block;
  width: 1.25rem;
  height: 1rem;
}

i.icon-pixelfed::before {
  display: inline-block;
  content: '';
  width: 100%;
  height: 100%;
  background-image: url('https://raw.githubusercontent.com/pixelfed/brand-assets/refs/heads/master/logo/icon.svg');
  background-size: 100%;
  background-position: center;
  vertical-align: text-bottom;
}

.regular-color {
  color: #50596c;
}

.tw-color {
  color: #55acee;
}

.fb-color {
  color: #3b5998;
}

.ig-color {
  color: #517fa4;
}

.yt-color {
  color: #b00;
}

.mastodon-color {
  color: #2b90d9;
}

/* club list */
.card.club .card-image {
  text-align: center;
}

.card.club .card-image img {
  max-height: 200px;
}

/* sidebars */
@media screen and (min-width: 841px) {
  #sidebar.sticky {
    position: sticky;
    top: 4rem;
    height: calc(100vh - 11rem);
    overflow-y: auto;
  }
}

#sidebar ul.data {
  list-style: none;
  margin: 0;
}

#sidebar ul.data li i {
  margin-right: .25rem;
}

#sidebar ul.data li.location {
  display: flex;
  flex-direction: row;
  align-items: start;
}

#sidebar ul.data li.location i {
  height: 1.25em;
  line-height: 1;
}

#sidebar ul.data li.location ul {
  margin-top: -.1rem;
  list-style: none;
  margin: 0;
  display: inline-block;
}

#club-sidebar ul.data li.location ul li {
  margin: 0;
}

#sidebar ul.data li.generic-sublist ul {
  margin-top: 0;
}

.profile-pic {
  padding: 2rem;
  padding-bottom: 0;
}

.profile-pic img {
  border-radius: 50%;
}

/* tables */
.table {
  margin-bottom: 1.2rem;
}

.table-narrow {
  width: fit-content !important;
}

.table-nohead thead {
  display: none;
}