body {
  background-color: rgb(16, 23, 25);
  color: #e7f;
  font-family: monospace;
  max-width: 1000px;
  margin: auto;
  font-size: 1.7em;
}
@media screen and (max-width: 1080px) {
  body {
    padding: 0 2em;
  }
}
@media screen and (max-width: 640px) {
  body {
    padding: 0 1em;
    font-size: 1.5em;
  }
}


h1, h2, h3, h4, h5 {
  color: magenta;
}

a {
  color: #239892;
  text-decoration: none;
}

a:visited {
  color: #196e69;
}

a:hover, a:active {
  color: #2cc3ba;
}

article, aside {
  line-height: 1.5em;
}

footer {
  font-size: 0.7em;
  padding-top: 2em;
}

/*
badge styles are modelled after bootstrap badges:
https://getbootstrap.com/docs/5.1/components/badge/
*/
.badge {
  display: inline-block;
  padding: .35em .65em;
  font-size: .75em;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  border-radius: 0.25rem;
  vertical-align: baseline;
}

.badge.info {
  background-color: #0dcaf0;
  color: #212529;
}

.badge.light {
  background-color: #f8f9fa;
  color: #212529;
}

.badge.dark {
  background-color: #212529;
  color: #f8f9fa;
}

.badge.secondary {
  background-color: #6c757d;
  color: #f8f9fa;
}

.badge.danger {
  background-color: #dc3545;
  color: #f8f9fa;
}

.badge.warning {
  background-color: #ffc107;
  color: #212529;
}

#header {
  text-align: center;
}

#header div.title {
  display: flex;
  flex-wrap: nowrap;
}
#header div.title div img {
  width: 100%;
}
#header div.title div:first-child img {
  opacity: 10%;
  transition: .5s;
}
#header div.title div:first-child img.visible {
  opacity: 90%;
}


#gimmicks {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  font-size: 64px;
  padding: 0.5em 0;
}

#numbers, #icons {
  white-space: nowrap;
}

#numbers div {
  display: inline-block;
  font-weight: bold;
  border: 2px dotted magenta;
  border-radius: 0.2em;
  padding: 0.25em;
  color: #239892;
  transition:.5s;
}

#numbers div:hover {
  color: #3cd3ca;
  border-color: #e7f;
  cursor: pointer;
}

#icons {
  transform: rotate(-15deg);
}

#icons div {
  display: inline-block;
  padding: .5em 0 0 0;
  transition: .5s;
}

#icons #push-the-button {
  font-size: 20px;
  display: block;
  text-align: center;
  font-weight: bold;
  border: 1px dotted magenta;
  border-radius: 4px;
  padding: .35em .65em;
  opacity: 10%;
}
#icons #push-the-button.visible {
  opacity: 100%;
}
#icons #push-the-button:hover {
  cursor: pointer;
}

#gamepad {
  transition: .5s;
}

#gamepad.spinning {
  animation: spin 2s ease-in-out;
  font-size: .8em;
}
@keyframes spin {
    0%  { transform: rotate(0deg); }
    100% { transform: rotate(1080deg); }
}

#space-invader, #star {
  position: relative;
  top: 0%;
  left: 0%;
}
#space-invader.jump, #star.jump {
  animation: jump 1s;
}
/*
thanks to Ferenc Almasi and their article on webtips.dev for the jumping animation:
https://www.webtips.dev/making-a-jumping-box-animation-using-only-css
*/
@keyframes jump {
    0% { transform: translate(0%, 0%) scale(1.25, 0.75); }
    50% { transform: translate(0%, -70%) scale(1, 1); }
    55% { transform: translate(0%, -70%) rotate(15deg); }
    60% { transform: translate(0%, -70%) rotate(-15deg); }
    65% { transform: translate(0%, -70%) rotate(15deg); }
    70% { transform: translate(0%, -70%) rotate(-15deg); }
    100% { transform: translate(0%, 0%) scale(1.25, 0.75); }
}
