/* Fonts */
@font-face {
	font-family: 'Barlow Condensed';
	font-style: normal;
	font-weight: 100;
	src: url('../fonts/barlowcondensed/BarlowCondensed-Thin.ttf') format('ttf');
}

@font-face {
	font-family: 'Barlow Condensed';
	font-style: normal;
	font-weight: 200;
	src: url('../fonts/barlowcondensed/BarlowCondensed-ExtraLight.ttf') format('ttf');
}

@font-face {
	font-family: 'Barlow Condensed';
	font-style: normal;
	font-weight: 300;
	src: url('../fonts/barlowcondensed/BarlowCondensed-Light.ttf') format('ttf');
}

@font-face {
	font-family: 'Barlow Condensed';
	font-style: normal;
	font-weight: 400;
	src: url('../fonts/barlowcondensed/BarlowCondensed-Regular.ttf') format('ttf');
}

@font-face {
	font-family: 'Barlow Condensed';
	font-style: normal;
	font-weight: 500;
	src: url('../fonts/barlowcondensed/BarlowCondensed-Medium.ttf') format('ttf');
}

@font-face {
	font-family: 'Barlow Condensed';
	font-style: normal;
	font-weight: 600;
	src: url('../fonts/barlowcondensed/BarlowCondensed-SemiBold.ttf') format('ttf');
}

@font-face {
	font-family: 'Barlow Condensed';
	font-style: normal;
	font-weight: 700;
	src: url('../fonts/barlowcondensed/BarlowCondensed-Bold.ttf') format('ttf');
}

@font-face {
	font-family: 'Barlow Condensed';
	font-style: normal;
	font-weight: 800;
	src: url('../fonts/barlowcondensed/BarlowCondensed-ExtraBold.ttf') format('ttf');
}

@font-face {
	font-family: 'Barlow Condensed';
	font-style: normal;
	font-weight: 900;
	src: url('../fonts/barlowcondensed/BarlowCondensed-Black.ttf') format('ttf');
}

body {
  -ms-overflow-style: none; /* for Internet Explorer, Edge */
  scrollbar-width: none; /* for Firefox */
  overflow-y: scroll; 
}

body::-webkit-scrollbar {
  display: none; /* for Chrome, Safari, and Opera */
}
@media screen and (min-width: 600px) and (max-width: 799px) {
  .flexgrid .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
  }
  .flexgrid .container > * {
    width: calc( 50% - 0.5rem );
    margin-left: 0.5rem;
    margin-right: 0.5rem;
  }
  .flexgrid .container > *:nth-child(1) {
    margin-left: 0;
  }
  .flexgrid .container > *:nth-child(2n) {
    margin-right: 0;
  }
  .flexgrid .container > *:nth-child(2n+1) {
    margin-left: 0;
  }
}
@media screen and (min-width: 800px) {
  .flexgrid .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .flexgrid .container > * {
    width: calc( 33% - 0.5rem );
    margin-left: 0.5rem;
    margin-right: 0.5rem;
  }
  .flexgrid .container > *:nth-child(1) {
    margin-left: 0;
  }
  .flexgrid .container > *:nth-child(3n) {
    margin-right: 0;
  }
  .flexgrid .container > *:nth-child(3n+1) {
    margin-left: 0;
  }
}
.flexgrid {
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
overflow-y: scroll;
overflow-x: hidden;
width: 100%;
}
.flexgrid *, .flexgrid *:before, .flexgrid *:after {
box-sizing: border-box;
}
.flexgrid body {
min-height: 100vh;
max-height: 100vh;
  font-family: 'Barlow Condensed';

text-align: center;
line-height: 1.5em;
background-size: cover;
background-blend-mode: multiply;
background-color: #00000060;
}

@media screen and (max-width: 599px) {
  .flexgrid body {
    min-height: 100vh;
    max-height: none;
      font-family: 'Barlow Condensed', sans-serif;

    text-align: center;
    text-transform: uppercase;
    line-height: 1;
    overflow: hidden;
    }
}

.flexgrid .container {
padding: 1rem;
height: 100vh;
}
.flexgrid .title {
  font-family: 'Barlow Condensed', sans-serif;

font-size: 300%;
padding: 2rem 1rem;
}
.flexgrid .thing {
color: #FEFEFE;
font-size: 1000%;
display: flex;
flex-direction: column;

min-height: 300px;
margin-bottom: 1rem;
box-shadow: 0 2.5px 5px rgba(25, 25, 25, 0.1);
background: #29c300;
background: linear-gradient(to bottom, #29c300, #1f9300);
background: linear-gradient(to bottom, #d5d5d5, #a1a1a1);
background: rgb(0 0 0 /60%);
border: 4px solid #fff;

}
.flexgrid .thing {
/* -webkit-animation-name: shake;
        animation-name: shake; */
-webkit-animation-duration: 1s;
        animation-duration: 1s;
-webkit-animation-iteration-count: infinite;
        animation-iteration-count: infinite;
}


.flexgrid .thing.yellow {
background: #ffc107;
background: linear-gradient(to bottom, #ffc10700, #e7ad00);
}
.flexgrid .thing.yellow {
-webkit-animation-name: bounce;
        animation-name: bounce;
}

.flexgrid .thing.red {
background: #cc0000;
background: linear-gradient(to bottom, #cc000000, #b50000);
}
.flexgrid .thing.red {
-webkit-animation-name: tada;
        animation-name: tada;
}
.flexgrid .thing.red span.emoji.red {
  opacity: 1;
  display: flex;
  align-self: center;
}
.flexgrid .thing.yellow span.emoji.yellow {
  opacity: 1;
  display: flex;
  align-self: center;
}
.flexgrid .emoji {
  font-size: 100%;
  opacity: 0;
  display: none;
}
@-webkit-keyframes bounce {
from, 20%, 53%, 80%, to {
  -webkit-animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
          animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
  transform: translate3d(0, 0, 0);
}
40%, 43% {
  -webkit-animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);
          animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);
  transform: translate3d(0, -30px, 0);
}
70% {
  -webkit-animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);
          animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);
  transform: translate3d(0, -15px, 0);
}
90% {
  transform: translate3d(0, -4px, 0);
}
}
@keyframes bounce {
from, 20%, 53%, 80%, to {
  -webkit-animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
          animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
  transform: translate3d(0, 0, 0);
}
40%, 43% {
  -webkit-animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);
          animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);
  transform: translate3d(0, -30px, 0);
}
70% {
  -webkit-animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);
          animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);
  transform: translate3d(0, -15px, 0);
}
90% {
  transform: translate3d(0, -4px, 0);
}
}
@-webkit-keyframes shake {
from, to {
  transform: translate3d(0, 0, 0);
}
10%, 30%, 50%, 70%, 90% {
  transform: translate3d(-10px, 0, 0);
}
20%, 40%, 60%, 80% {
  transform: translate3d(10px, 0, 0);
}
}
@keyframes shake {
from, to {
  transform: translate3d(0, 0, 0);
}
10%, 30%, 50%, 70%, 90% {
  transform: translate3d(-10px, 0, 0);
}
20%, 40%, 60%, 80% {
  transform: translate3d(10px, 0, 0);
}
}
.flexgrid .shake {
-webkit-animation-name: shake;
        animation-name: shake;
}
@-webkit-keyframes swing {
20% {
  transform: rotate3d(0, 0, 1, 15deg);
}
40% {
  transform: rotate3d(0, 0, 1, -10deg);
}
60% {
  transform: rotate3d(0, 0, 1, 5deg);
}
80% {
  transform: rotate3d(0, 0, 1, -5deg);
}
to {
  transform: rotate3d(0, 0, 1, 0deg);
}
}
@keyframes swing {
20% {
  transform: rotate3d(0, 0, 1, 15deg);
}
40% {
  transform: rotate3d(0, 0, 1, -10deg);
}
60% {
  transform: rotate3d(0, 0, 1, 5deg);
}
80% {
  transform: rotate3d(0, 0, 1, -5deg);
}
to {
  transform: rotate3d(0, 0, 1, 0deg);
}
}
@-webkit-keyframes tada {
from {
  transform: scale3d(1, 1, 1);
}
10%, 20% {
  transform: scale3d(0.9, 0.9, 0.9) rotate3d(0, 0, 1, -3deg);
}
30%, 50%, 70%, 90% {
  transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg);
}
40%, 60%, 80% {
  transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg);
}
to {
  transform: scale3d(1, 1, 1);
}
}
@keyframes tada {
from {
  transform: scale3d(1, 1, 1);
}
10%, 20% {
  transform: scale3d(0.9, 0.9, 0.9) rotate3d(0, 0, 1, -3deg);
}
30%, 50%, 70%, 90% {
  transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg);
}
40%, 60%, 80% {
  transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg);
}
to {
  transform: scale3d(1, 1, 1);
}
}

.flex-item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70px;
}

.flex-item.data {
  flex-grow: 5;
  flex-shrink: 1;
  flex-basis: auto;
  font-weight: 600;
}

.flex-item.term {
  flex-grow: 1;
  flex-shrink: 1;
  font-size: 24px;
  flex-basis: auto;
}
.flex-item.term .subterm {
  font-size: 20px;
  font-weight: 300;
}


.flex-item.header {
  flex-grow: 1;
  flex-shrink: 1;
  font-size: 24px;
  flex-basis: auto;
}
