@keyframes color{
    0% { background: #171236; }
    25% { background: #21172b; }
    33% { background: #1c1138; }
    50% { background: #171f33; }
    100% { background: #171236; }
  }

@keyframes count-fly{
    0% { transform: translateY(140px); opacity: 0; }
    100% { transform: none; opacity: 1; }
}

@keyframes button-fly{
    0% { transform: translateX(-70px); opacity: 0; }
    100% { transform: none; opacity: 1; }
}

@keyframes bounce{
    55% { transform: scale(0.82, 0.82); }
    100% { transform: none; }
}

@keyframes new{
    50% { font-size: 35px; color: aquamarine;}
    100% { font-size: 25px; color: white;}
}

@keyframes rainbow{
    from { filter:hue-rotate(10deg); }
    to { filter:hue-rotate(360deg); }
}

@keyframes rainbow-bounce{
    0% { filter:hue-rotate(10deg); }
    55% { transform: scale(0.82, 0.82); }
    100% { transform: none; filter:hue-rotate(360deg); }
}

.start-bouncing {
    animation: bounce 0.35s ease-in 1;
}

.f-none {
    filter: none;
}

.f-invert {
    filter: invert(1);
}

.f-grayscale {
    filter: grayscale(1);
}

.f-rainbow {
    animation: rainbow 4s steps(36) infinite;
}

.count-intro, .life-intro {
    animation: count-fly 0.5s ease-in 1;
}

.button-intro {
    animation: button-fly 0.5s ease-in 1;
}

.new-unlock {
    animation: new 0.5s ease-in 1;
}

#bounce {
    user-select: none;
}

.dd {
  position: relative;
  display: inline-block;
}

.tleftnav {
    position: fixed; /* Fix the navbar at the top of the viewport */
    top: 0;
    left: 0;
    width: auto;
    display: flex;
    justify-content: flex-start; /* Align items to the start (left) */
    padding: 10px;
}

.trightnav {
    position: fixed; /* Fix the navbar at the top of the viewport */
    top: 0;
    right: 0;
    width: auto;
    display: flex;
    justify-content: flex-start; /* Align items to the start (left) */
    padding: 10px;
}

.bleftnav {
    position: fixed; /* Fix the navbar at the bottom of the viewport */
    bottom: 0;
    left: 0;
    width: auto;
    display: flex;
    justify-content: flex-start; /* Align items to the start (left) */
    padding: 10px;
}

.brightnav {
    position: fixed; /* Fix the navbar at the bottom of the viewport */
    bottom: 0;
    right: 0;
    width: auto;
    display: flex;
    justify-content: flex-end; /* Align items to the start (left) */
    padding: 10px;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.warn-modal {
    display: none;
    position: fixed;
    z-index: 2;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.mbtn-container {
    width: inherit;
}

.modal-btn, .accept-modal-btn, .deny-modal-btn{
    bottom: 0;
    margin: 5px;
    padding: 5px;
    background: none;
    border: white solid;
    color: white;
    font-family: monospace;
    cursor: pointer;
    width: inherit;
}
.accept-modal-btn {
    border: limegreen solid;
    color: limegreen;
    width: initial;
}

.accept-modal-btn:hover {
    background: limegreen;
    color: black;
}

.deny-modal-btn {
    border: red solid;
    color: red;
    width: initial;
}

.deny-modal-btn:hover {
    background: red;
    color: black;
}

h2 {
    margin-top: 40px;
}

.changelog-head {
    margin-top: 5px;
    margin-bottom: 5px;
}

.modal-content {
    background-color: black;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    height: auto;
    max-width: 500px;
    font-size: 24px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    border-radius: 5px;
    overflow-y: auto;
    color: white;
}

.modal-content:not(#changelog-modal .modal-content) {
    max-height: 40%;
}

.subtext {
    color: gray;
}

.close, .back {
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.back {
    float: left;
}

.close {
    float: right;
}

ul {
    font-size: 20px;
}

.ddcontent {
  position: absolute;
  bottom: calc(100% + 46px);
  left: 0;
  background: none;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
  border: rgba(255, 255, 255, 0.2) solid
}

particle {
    border-radius: 50%;
    left: 0;
    pointer-events: none;
    position: fixed;
    top: 0;
    opacity: 0;
    z-index: 1;
}

.ddcontent button {
    background: none;
    color: white;
    font-family: monospace;
    padding: 12px 16px;
    min-width: inherit;
    border: none;
    text-decoration: none;
    display: block;
    cursor: pointer;
}

.ddcontent button:hover {
    background-color: white;
    color: black;
}

.button {
  position: fixed;
  bottom: 0;
  margin: 20px;
  background: none;
  border: white solid;
  color: white;
  font-family: monospace;
  cursor: pointer;
}

.button:hover, .winbutton:hover, .modal-btn:hover {
  background: white;
  color: black;
}

.head-button {
  top: 0;
  justify-content: baseline;
  height: 50px;
  font-size: 50px;
  margin-right: 5px;
  background: none;
  border: none;
  color: white;
  font-family: monospace;
  cursor: pointer;
}

body {
    background: #0d141e;
    animation: color 40s infinite linear;
    font-family: monospace;
    color: #fff;
    overflow: hidden;
    font-size: 25px
}

.center{
    position: absolute;
    margin: auto;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 666px;
    height: 500px;
}

.small-avg {
    font-size: 20px;
}
.small {
    font-size: 16px;
}
.smallmed {
    font-size: 12px;
}
.smaller{
    font-size: 10px;
    color: #bbb;
}

.hidden {
    display: none !important;
}
#bounce {
    cursor: pointer;
}

* {
    -webkit-tap-highlight-color: transparent;
}
