/*Шрифт названий команд*/
@font-face {
  font-family: "Gunterz";
  src: url("../font/Gunterz-Medium.woff2") format("woff2");
}

@font-face {
  font-family: "galderglynn";
  src: url("../font/galderglynn-titling.bl-regular.otf");
}

/*Шрифт счета*/
@font-face {
  font-family: "Integral CF Bold";
  src: url("../font/IntegralCF-Bold_last.woff2") format("woff2");
}

/*Шрифт таймеров и четверти*/
@font-face {
  font-family: "IntegralCF-DemiBold-Mono";
  src: url("../font/IntegralCF-DemiBold-Mono.woff2") format("woff2");
}

/*Шрифт попытки и флага*/
@font-face {
  font-family: "Integral CF DemiBold";
  src: url("../font/IntegralCF-DemiBold_last.woff2") format("woff2");
}

/*Шрифт для рейтинга и баланса*/
@font-face {
  font-family: "IntegralCF-Medium";
  src: url("../font/IntegralCF-Medium.woff2") format("woff2");
}

body {
  color: white;
  background-color: #999;
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, Roboto, Arial, Helvetica Neue, Helvetica, sans-serif;
  box-sizing: border-box;
}

button, input, select {
  height: 40px;
  padding: 0 5px;
}

button {
  cursor: pointer;
  border-radius: 10px;
  border: solid 1px rgb(200, 200, 200);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  background: #fff;
  font-size: 20px;
}

input {
  border: 1px solid #3f424c;
  font-size: 25px;
  text-align: center;
  width: 30px;
  margin: 0 2px;
  box-sizing: border-box;
  display: inline-block;
  vertical-align: middle;
  line-height: normal;
  border-radius: 3px;
  background: #fff;
  color: #7c7c7c;
  text-indent: 0;
  outline: none;
}

select {
  font-size: 16px;
}

.flex {
  display: flex;
}

.flexCenter {
  display: flex;
  justify-content: center;
}

.block {
  color: #000;
  border-radius: 10px;
  border: none;
  background: #dfdfdf;
  padding: 5px;
  margin: 0 5px 5px 5px;
}

.team-detail {
  display: block;
  flex-direction: column;
  justify-content: space-between;
  text-shadow: 0 1px 8px #222;
  font-family: "galderglynn";
}

.team-logo img {
  transform: scale(1.5);
}

.team-logo {
  overflow: hidden;
  width: 80px;
}

.scoreblock {
  background: rgba(0, 0, 0, 0.5);
  width: 80px;
  overflow: hidden;
  position: relative;
}

.timer {
  flex-direction: column;
  background-color: #222;
  font-family: "IntegralCF-DemiBold-Mono";
}

.timer-container {
  flex-direction: row;
}

#team1_pos_arrow, #team2_pos_arrow {
  font-family: "Arial";
  position: absolute;
  padding-top: 36px;
}

#qtr, #clock, #clock_mini {
  display: flex;
  flex-direction: row;
  justify-content: center;
}

#timeleft .inner-flex {
  display: flex;
  justify-content: center;
  height: 100%;
}

#shotclock .inner-flex {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

#quarter {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 28px;
  font-size: 17px;
}

#timeleft {
  width: 60px;
  font-size: 31px;
  border-left: 1px solid white;
  text-shadow: none;
  height: 25px;
}

#shotclock {
  width: 18px;
  font-size: 19px;
  border-left: 1px solid white;
}

/*======================Кнопки Счёта=========================*/
.scoreButtonBlock {
  display: flex;
  flex-wrap: wrap;
}

.scoreButton {
  display: flex;
  align-items: center;
  width: 100%;
  margin-bottom: 3px;
}

.scoreButton > button {
  margin: 0 3px;
  font-size: 22px;
}

.scoreButton > button, .scoreButton > input {
  width: 33%;
}

.leftHalf {
  margin-right: 2.5px;
}

.rightHalf {
  margin-left: 2.5px;
}

/*======================Кнопки Таймаутов=========================*/
.timeoutButton > * {
  width: 23%;
  font-size: 16px;
  margin: 0 1px;
}

/*======================Кнопки Попытки и ярдов=========================*/
.yardButtonWidth {
  flex-wrap: wrap;
}

.yardButtonWidth > * {
  margin: 1px 2px;
  width: 18%;
  font-size: 18px;
}

.popButton > * {
  width: 19%;
  margin: 0 2px;
}

.downYardButton > button {
  margin: 0 2px;
}

#dowy_input {
  width: 30%;
  min-width: 130px;
  font-size: 22px;
}

/*======================Кнопки четверти=========================*/
.quarterButton {
  width: 100%;
  flex-wrap: wrap;
}

.quarterButton > * {
  font-size: 18px;
  width: 24%;
  margin: 2px 1px;
}

/*======================Кнопки флага=========================*/
.flag_button > * {
  height: 50px;
  width: 20%;
  min-width: 100px;
  font-size: 18px;
  margin: 0 3px;
}

/*======================Выбор команды=========================*/
.teamSelect {
  display: flex;
  flex-wrap: wrap;
  width: 50%;
  padding: 5px;
}

.teamColor {
  height: 40px;
  width: 20%;
}

.teamInput {
  width: 30%;
}

.teamUpdate {
  font-size: 18px;
  width: 60%;
}

.textName {
  width: 100%;
}

.team_score_wrapper {
  position: relative;
  overflow: hidden;
  width: 80px;
  height: 50px;
}

.score-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  transition: transform 0.35s ease-out, opacity 0.35s ease-out; /* [ИЗМЕНЕНО] ease-in-out -> ease-out */
}

.score-container.entering {
  transform: translateY(-100%);
  opacity: 0;
}

.score-container.exiting {
  transform: translateY(100%);
  opacity: 0;
}

.team_score {
  font-size: 42px;
  font-family: "Integral CF Bold";
  text-shadow: 0 1px 8px #111;
  color: white;
  margin-top: -10px;
}

.aniDownWrapper {
  position: relative;
  height: 100%;
  overflow: hidden;
  width: 200px;
  margin-top: 7px;
}

.aniDownContainer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: transform 0.35s ease-in-out, opacity 0.35s ease-in-out;
  text-align: center;
}

.aniDownContainer.entering {
  transform: translateX(100%);
  opacity: 0;
}

.aniDownContainer.exiting {
  transform: translateX(-100%);
  opacity: 0;
}

.downYards {
  font-size: 24px;
  color: #fff;
  text-align: center;
}

#downandyard {
  background-color: #777;
  font-size: 25px;
  font-family: "Integral CF DemiBold";
  font-style: italic;
  color: white;
  white-space: nowrap;
  text-shadow: 0 1px 8px #000;
  width: 200px;
}

#downandyard .inner-flex {
  display: flex;
  justify-content: center;
  height: 100%;
}

.yflag {
  position: absolute;
  font-size: 32px;
  background-color: #d4c519;
  color: #242424;
  text-shadow: 0 1px 3px #444;
  transform: scale(0);
  transition: transform 0.4s ease;
  align-items: center;
  width: 200px;
  height: 50px;
}

.yflag.show {
  transform: scale(1);
}

.yflag.hide {
  transform: scale(0);
}