/* #region Animations */
@keyframes opacity_reveal {
    0% {opacity: 0%;}
    100% {opacity: 100%;}   
}
/* #endregion */

/* #region Basics */
html,body {
    margin:0;
    padding:0;
    background-color: #171560;
}

p {
    margin:0;
    padding-top: 4px;
    padding-bottom: 10px;
    color: #fcffff;
    font-size: 18px;
}

h1, h2, h3 {
    color: #e7f3ff;
    text-shadow: #c8eaff 0px 0px 4px; 
    text-align: center;
    margin-top: 0;
    margin-bottom: 0;
}

/* h1,h2 {
    line-height: 75%;
} */

ul, li {
    color: #fcffff;
}

.clickable {
    cursor: pointer;
}
/* #endregion */

/* #region Chart */
#chart, #chart_content {
    position:absolute;
    margin:0;
    padding:0;
    cursor: move;
    width:100%;
    height:100%;
}

#chart_zoom {
    position: absolute;
    left: 0px;
    top: 0px;
    width:100%;
    height:100%;
}

#chart_body {
    position:absolute;
    width:100%;
    height:100%;
}

#chart_bg {
    position: absolute;
    background-image: url("images/test_background.png");
    left: -500px;
    top: -500px;
    width: 1000px;
    height: 1000px;
    z-index: -50;
}

@keyframes connection_animation {
    0% { background-position-x: 0px;}
    100% {background-position-x: 20px;}
}

.chart_connection {
    position: absolute;
    background-repeat: repeat-x;
    background-size: auto;
    animation-name: connection_animation;
    animation-duration: 0.5s;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
    z-index: -5;
}

.chart_emote {
    position: absolute;
    width: 36px;
    height: 36px;
    background-size: 36px;
    z-index: 5;
}

.character_icon, .character_icon::before, .character_icon::after, .character_icon_selected, .character_icon_selected::before, .character_icon_selected::after, .character_icon_disabled, .character_icon_disabled::before, .character_icon_disabled::after {
    position:absolute;
    content: "";
    display: inline-block;
    cursor:pointer;
    width: 128px;
    height: 128px;
}

.character_icon::before, .character_icon_selected::before, .character_icon_disabled::before {
    /* background-image: url(images/icon_back.png); */
    background-size: 128px;
    z-index: -1;
}

.character_icon::after {
    background-image: url(images/icon_front.png);
    background-size: 128px;
    z-index: 1;
}

.character_icon:hover::after {
    background-image: url(images/icon_front_hover.png);
}

.character_icon_selected::after {
    background-image: url(images/icon_front_hover.png);
    background-size: 128px;
    z-index: 1;
}

.character_icon_disabled {
    filter: grayscale(100%);
    z-index: -6;
}

.character_icon_disabled::after {
    background-image: url(images/icon_front_disabled.png);
    background-size: 128px;
}
/* #endregion */

/* #region Sidebar */
#chart_legend, #chart_sidebar {
    background-color: #0f2346;
    /* background-image: linear-gradient(to right, red, blue); */

    /*Seems to make it fill the height??*/
    position: absolute;

    border: solid;
    border-color: #aac4fd;
    /* TODO: A top to bottom gradient here could be cute? */
    /* border-image: linear-gradient(to right, red, blue) 1; */
    overflow: auto;
    z-index: 50;

    padding-left: 5px;
    padding-right: 5px;

    cursor:default;
}

#chart_sidebar_name {
    text-shadow: #c8eaff 0px 0px 4px; 
    text-align: center;
    line-height: 75%;
    margin-top: 10px;
    margin-bottom: 10px;
}

#chart_sidebar_epithet {
    text-shadow: #c8eaffba 0px 0px 4px;
    font-size: 20px;
    line-height: 75%;
    margin-bottom: 10px;
}

h2.sidebar_temp {
    text-shadow: #c8eaffba 0px 0px 4px;
}
h3.sidebar_temp {
    text-shadow: #c8eaff62 0px 0px 4px;
}

.chart_epithet_evil {
    color: #ff1200;
    text-shadow: #000000 0px 0px 8px;
    animation-name: opacity_reveal;
    animation-duration: 4s;
}

#chart_legend {
    margin-left: 5%;
    margin-top: 5%;
    min-width: 10%;
}

#chart_sidebar {
    margin-left: 70%;
    margin-right: 10%;
    margin-top: 5%;
    height: 80%;
    min-width: 20%;
}

.smalltext {
    font-size: 75%;
}

.legend_item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
}
/* #endregion */