* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: black;
    font-family: monospace;
}

.wrapper {
    border: 1px solid lime;
    margin: 1rem;
    padding: 1rem;
    height: calc(100vh - 40px);
    background-color: hsl(120, 100%, 50%, 10%);
    overflow: auto;
    animation: pulseShadow 3s infinite ease-in-out;
}

@keyframes pulseShadow {
    0% {
        box-shadow: 0px 0px 5px lime;
    }

    50% {
        box-shadow: 0px 0px 20px lime;
    }

    100% {
        box-shadow: 0px 0px 5px lime;
    }
}

header {
    text-align: center;
    color: lime;
}

header h1 {
    margin-bottom: 1rem;
    font-family: "superscore-vf", sans-serif;
    font-variation-settings: "FLUX" 0, "wght" 300;
    text-transform: uppercase;
    color: aqua;
}

header p {
    letter-spacing: 1px;
    color: red;
}

.communicator {
    max-width: 400px;
    margin: 2rem auto;
}

.com {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.com p {
    color: lime;
}



.charactercard {
    border: 2px solid lime;
    width: 100px;
    height: 100px;
    position: relative;
    box-shadow: 0 0 10px lime;
}

.charactercard img {
    width: 100%;
}

.charactercard p {
    text-align: center;
    background-color: hsl(120, 100%, 50%, 75%);
    position: absolute;
    bottom: 0;
    width: 100%;
    font-family: monospace;
    font-weight: 600;
    color: black;
}

.message {
    padding: .5rem;
    border: 2px solid lime;
    box-shadow: 0 0 10px lime;

}

/* Scrollbar track */
.wrapper::-webkit-scrollbar {
    width: 10px;
}

/* Scrollbar background */
.wrapper::-webkit-scrollbar-track {
    background: hsl(120, 100%, 50%, 50%);
}

/* Scrollbar thumb (the draggable part) */
.wrapper::-webkit-scrollbar-thumb {
    background: lime;
    border-radius: 10px;
}

.redbutton {
    width: 100%;
    display: block;
    margin: auto;
    border: 2px solid red;
    color: red;
    padding: .5rem;
    text-align: center;
    text-decoration: none;
    background-color: hsl(0, 100%, 50%, 25%);
    border-radius: 10px;


}

.meter {
    max-width: 400px;
    width: 100%;
    height: 20px;
    border: 2px solid yellow;
    margin: auto;
    position: relative;
    overflow: hidden;
    box-shadow: 0px 0px 10px yellow;
    margin-top: 1rem;
}

.meterblocks {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 10px;
    margin-left: 5px;
    position: absolute;
    top: 3px;
}
.block {
    height: 10px;
    width: 4px;
    background-color: hsl(60, 100%, 50%, 75%);
    border-radius: 2px;
}
.meterfill {
    height: 20px;
    background-color: black;
    position: absolute;
    top: 0;
    right: 0;
    animation: metering 5s infinite ease-in-out;

}


@keyframes metering {
    0%   { width: 28%; }
    10%  { width: 44%; }
    20%  { width: 9%; }
    30%  { width: 37%; }
    40%  { width: 15%; }
    50%  { width: 50%; }
    60%  { width: 22%; }
    70%  { width: 5%; }
    80%  { width: 41%; }
    90%  { width: 18%; }
    100% { width: 33%; }
  }