@import url('https://fonts.cdnfonts.com/css/spicy-shrimp');

:root {
    --hue-meter: hue-rotate(0deg);
    --bar-border: #ffffff;
    --icon-color: #53fc18;
    --font-color: #ffffff;
    --shadow: #000000;
    --meter-height: 600px;
}

body {
    margin: 10px;
    padding: 0;
}

#sub-goal-container {
    display: flex;
    flex-direction: row;
    width: 150px;
    height: var(--meter-height);
    font-size: 20px;
    gap: 10px;
}

#goal-right {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-right: auto;
    font-family: 'Spicy Shrimp', sans-serif;
    font-size: 1em;
    font-weight: 400;
    color: var(--font-color);
    text-shadow: -1px 1px 0 var(--shadow), -1px 1px 2px var(--shadow);
}

.event {
    display: none;
}

.goal-left {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.goal-climber {
    overflow: hidden;
    text-overflow: ellipsis;
    height: 2em;
    font-size: 1em;
    text-transform: uppercase;
    padding: 5px 0;
}

.goal-expander {
    overflow: hidden;
    text-overflow: ellipsis;
    height: calc(85% - 4em);
    font-size: 1em;
}

.goal-top {
    display: flex;
    white-space: nowrap;
    height: 1em;
    padding-top: 5px;
    margin-bottom: auto;
    gap: 5px;
}

.goal-bottom {
    display: flex;
    height: 1em;
    gap: 5px;
    padding-bottom: 5px;
}

.goal-top span, .goal-bottom span, .goal-top i, .goal-bottom i {
    display: flex;
    line-height: 1em;
    margin: auto 0;
}

#goal-end::before,
#goal-current::before {
    content: "- ";
    margin-right: 5px;
}


#iconStar {
    padding-bottom: 4px;
}

.iconsColor {
    color: var(--icon-color);
}

#progress-outer {
    border: none;
    padding: 5px;
    margin: 0;
    background: rgba(0, 0, 0, 0.45);
    width: 20px;
    min-width: 20px;
    height: calc(100% - 15px);
    border-radius: 10px;
    border: 3px solid var(--bar-border);
}

#progress-inner {
    display: flex;
    flex-direction: column-reverse;
    gap: 4px;
    width: 100%;
    height: 100%;
    border-radius: 5px;
}

#progress-inner span {
    width: 100%;
    height: 100%;
    -webkit-transition: width 2.5s ease;
    -moz-transition: width 2.5s ease;
    -o-transition: width 2.5s ease;
    transition: width 2.5s ease;
}

#progress-inner span:first-child {
    border-radius: 0 0 5px 5px;
}

#progress-inner span:last-child {
    border-radius: 5px 5px 0 0;
}

.pill-bottom {
    min-height: 16px;
    background: var(--bar-border);
    border-radius: 0 0 5px 5px;
}

.pill-top {
    min-height: 16px;
    background: var(--bar-border);
    border-radius: 5px 5px 0 0;
}

.a1,
.a2 {
    background: #32970e;
}

.a3,
.a4 {
    background: #3ab011;
}

.a5,
.a6 {
    background: #42ca13;
}

.a7,
.a8 {
    background: #4be316;
}

.a9,
.a10,
.a11,
.a12 {
    background: #53fc18;
}

.a13,
.a14 {
    background: #64fc2f;
}

.a15,
.a16 {
    background: #75fd46;
}

.a17,
.a18 {
    background: #87fd5d;
}

.a19,
.a20 {
    background: #98fd74;
}

.a39,
.a40 {
    background: #32970e;
}

.a37,
.a38 {
    background: #3ab011;
}

.a35,
.a36 {
    background: #42ca13;
}

.a33,
.a34 {
    background: #4be316;
}

.a29,
.a30,
.a31,
.a32 {
    background: #53fc18;
}

.a27,
.a28 {
    background: #64fc2f;
}

.a25,
.a26 {
    background: #75fd46;
}

.a23,
.a24 {
    background: #87fd5d;
}

.a21,
.a22 {
    background: #98fd74;
}

.blank-bar {
    background: none;
}

.hue-control {
    filter: var(--hue-meter);
}

.blink {
    animation: blink-animation 700ms infinite;
}

.blink2 {
    animation: blink 2800ms infinite;
}

@keyframes blink-animation {
    0% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes blink {

    0%,
    50%,
    100% {
        opacity: 1;
    }

    25%,
    75% {
        opacity: 0;
    }
}

.blink-delayed {
    animation: blink 4s infinite;
    animation-delay: .15s;
}

/* Add a new CSS class for the red blinking effect */
.red-blink {
    animation: red-blink-animation 1400ms 3;
}

@keyframes red-blink-animation {
    0%, 100% { background-color: #FC0900; }
    50% { background-color: transparent; }
}

i {
    text-shadow: -1px 1px 0 #000000, -1px 1px 2px #000000;
}