* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  height: 100%;
  overflow: hidden;
}

body {
  height: 100%;
  overflow: auto;
  font-family: 'Lato','Helvetica','Arial', sans-serif;
  background-color: #f5f5f5;
}

a {
  text-decoration: none;
}

nav.topnav {
  height: 50px;
  margin-top: 0 !important;
  border-radius: 0 !important;
  background-color: #464257 !important;
  color: white;
  display: flex;
  position: absolute;
  top: 0;
  z-index: 10;
  left: 0;
  right: 0;
}

@media all and (min-width: 1200px) {
  nav.topnav {
    padding-left: 2em;
  }
}

@media all and (max-width: 1119px) {
  nav.topnav h3.ui.header {
    margin-left: 0.5em;
  }
}

@media all and (max-width: 412px) {
  nav.topnav h3.ui.header {
    font-size: 0.9rem;
    padding-top: 0.33rem;
  }
}

nav.topnav a,
nav.topnav a:link,
nav.topnav a:visited {
  color: rgba(255, 255, 255, 0.55) !important;
}

nav.topnav a:hover {
  color: #ffffff !important;
  background: teal !important;
}

nav.topnav h1 {
  font-weight: normal;
  font-size: 1em;
  padding: 0.5em;
  margin-right: 2em;
  /* top: 1em; */
  margin-top: 0;
}

nav.topnav ul {
  list-style-type: none;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  flex: 10;
}

nav.topnav ul li {
  display: block;
  padding: 0.5em;
}

nav.topnav ul li:not(:first-of-type) {
  margin-left: 1em;
}

#nav-login {
  cursor: pointer;
}

.nav-login {
  padding: 0.5em;
  margin-left: 1em;
  justify-content: flex-end;
  background: inherit !important;
}

.nav-login > span {
  text-align: right;
  display: block;
}

.nav-login #login-container {
  transition: all 0.5s;
}

.nav-login #login-container > div {
  height: 100px;
  transform: translateY(-220px);
  transition: all 0.5s;
  position: absolute;
  right: 10px;
  width: 300px;
  opacity: 0;
}

.nav-login #login-container.show-nav {
  transition: all 0.5s;
}

.nav-login #login-container.show-nav > div {
  transform: translateY(50px);
  opacity: 1;
  transition: all 0.5s;
}

#logout {
  cursor: pointer;
}

#page-wrapper {
  position: relative;
  margin-top: 50px;
}

.nav-admin {
  border: 1px solid rgba(34, 36, 38, 0.15);
  top: 50px !important;
  background: #f9f9f9 !important;
  padding: 1em 1em calc(50px + 1em);
}

@media all and (min-width: 1024px) {
  .nav-admin {
    width: 260px;
    min-width: 260px;
  }
}

.nav-admin > div {
  margin: 1em 0;
}

.nav-admin ul {
  list-style-type: none;
  display: flex;
  flex-direction: column;
}

input,
select {
  width: 100%;
}

main {
  display: block;
  padding: calc(50px + 2em) 2em 2em;
  margin-left: 260px;
}

@media all and (max-width: 1024px) {
  main {
    margin-left: 0;
    padding: calc(50px + 1em) 1em 1em;
  }
}

@media all and (max-width: 767px) {
  main {
    padding: calc(50px + 1em) 0.5em 0.5em;
  }
}

.hide {
  display: none;
}

.locked {
  background-color: #fafafa;
}

.locked button {
  background-color: lightgrey !important;
  color: darkgrey !important;
  pointer-events: none !important;
}

.lockme + button {
  margin-top: 2em !important;
  margin-left: -0.5em !important;
  width: calc(100% + 1em) !important;
  transition: all 1s;
}

.lockme + button i {
  transition: all 1s;
}

.backbutton {
  min-height: 2em;
}

.form-input label {
  font-weight: bold;
  width: 100%;
  box-sizing: border-box;
}

.club-shirt {
  text-shadow: 1px 0 0 #000000, 0 1px 0 #000000, -1px 0 0 #000000, 0 -1px 0 #000000;
}

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

table.ui.sortable.selectable.celled.table.unstackable.squad-table > thead > tr > th:not(.no-sort):after {
  content: '\f0d7';
  display: inline-block;
}

table.ui.sortable.selectable.celled.table.unstackable.squad-table > thead > tr > th.ascending:after {
  content: '\f0d8';
  display: inline-block;
}

.national .flag {
  height: 33px !important;
  width: auto !important;
  margin-bottom: 0.33em;
  position: absolute;
  top: -3px;
  left: 0;
}

.national-button {
  float: right;
  cursor: pointer;
}

.national-flag-player {
  height: 1.5em;
  position: absolute;
  right: 0.5em;
  top: 0.5em;
  box-shadow: 0 0 4px -1px black;
}

.national-flag-card {
  margin-top: -0.8em !important;
  filter: opacity(0.4);
}

.national-flag-card.active {
  filter: opacity(1);
}

@media all and (max-width: 767px) {
  .squad-table {
    font-size: 0.9em !important;
  }
  .squad-table .td-homecountry {
    display: none;
  }
}

@media all and (max-width: 767px) and (max-width: 409px) {
  .squad-table {
    font-size: 0.8em !important;
  }
}

.squad-table th {
  text-align: center !important;
}

.squad-table tr:hover {
  background-color: rgba(0, 0, 0, 0.05) !important;
}

.squad-table td {
  text-align: center !important;
  padding: 0.25em !important;
}

.squad-table td.td-portrait {
  display: flex;
  justify-content: center;
}

.squad-table td.td-shirt span {
  font-weight: bold;
}

@media all and (min-width: 767px) {
  .squad-table td.td-shirt span {
    font-size: 3rem;
  }
}

.squad-table td.td-name span {
  font-weight: 700;
}

@media only screen and (min-width: 992px) {
  .ui.modal > .close {
    top: 1.0535rem;
    right: 1rem;
    color: rgba(0, 0, 0, 0.87);
  }
}

.player-portrait {
  cursor: pointer;
}

@media all and (min-width: 1025px) {
  .mobile-only {
    display: none !important;
  }
}

@media all and (min-width: 767px) {
  .mobile-only-small {
    display: none !important;
  }
}

@media all and (max-width: 1024px) {
  .desktop-only {
    display: none !important;
  }
}

@media all and (max-width: 767px) {
  .desktop-only-small {
    display: none !important;
  }
}

body.dimmed.dimmable {
  overflow: auto !important;
}

.cr-boundary {
  background: grey;
}

@media all and (min-width: 767px) and (max-width: 1200px) {
  .player-card-column {
    min-width: 35% !important;
  }
  .ui.grid > [class*="twelve wide"].column.player-main-column {
    width: 65% !important;
  }
}

@media all and (max-width: 420px) {
  .player-card {
    width: 100% !important;
    max-width: 320px !important;
  }
}
