html {
    height: 100%;
    box-sizing: border-box;
}

body {
    position: relative;
    margin: 0;
    padding-bottom: 10rem;
    min-height: 100%;
    overflow-y: scroll;
    overflow-x: scroll;
}

.navbar {
    border-bottom: 1px solid black;
}

.footer {
    border-top: 1px solid black;
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    text-align: center;
    color: white;
    font-size: 0.8em;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
   -webkit-appearance: none;
   margin: 0;
}
input[type="number"] {
   -moz-appearance: textfield;
}

/* Popover */
.popover {
    border: 2px solid black;
    background-color: rgba(255, 255, 255, 0.9);
    max-width: 25em;
}
 
/* Background */
.background {
    background-color: rgb(5, 37, 75)
}

.btn-blue {
    background-color : rgb(33, 28, 83);
    color : white;
    border : 1px solid black;
}

.btn-blue:hover, .btn-blue:focus, .bttn-blue:active {
    color : white;
    background-color : rgb(26, 21, 62);
}

.btn-red {
    background-color : rgb(76, 8, 5);
    color : white;
    border : 1px solid black;
}

.btn-red:hover, .btn-red:focus, .btn-red:active {
    color : white;
    background-color : rgb(60, 8, 5);
}

/* rows */
.dropdown-multicol{
    min-width: 24em;
}


.dropdown-menu-center {
    left: 50% !important;
    right: auto !important;
    text-align: center !important;
    transform: translate(-50%, 0) !important;
    transform: translate();
    margin-top: 2.5em;
}

.dropdown-menu {         
    max-height: 25em;
    overflow-y: scroll;
    overflow-x: hidden;
}

.dropdown-item {
    word-wrap: break-word;
}

.dropdown-fit {
    width: 100%;
    min-width: 10%;
    text-align: center !important;
}

.dropdown-runes {
    width: 20em;
}

.centered-title {
    position: absolute;
    left: 50%;
    transform: translate(-50%, 0);
}

.right-align-btn {
    position: absolute;
    left: 100%;
    transform: translate(-100%, 0);
    width: 4em;
}

/* Champions and Items */
.champ-name {
    word-wrap: normal;
    font-size: 0.85em;
}

.image-holder {
    display: inline-block;
    width: 25%;
}

.portrait {
    width: 100%;
    display: block;
    background-color: black;
}

.champ-img {
    width: 45%;
}

.item-img {
    width: 80% !important;
    padding-top: 80% !important;
    display: block !important;
    border: 1px solid black;
    outline: 2px solid black;
    outline-offset: -2px;
}

.item-placeholder {
    background-image: none !important;
}

.hovered {
    border: 1px solid white;
}

.bg-hover:hover {
    background-color: rgba(176, 176, 176, 0.5);
}

.show-border {
    border: 0px solid white;
}

.item {
    background-color: rgba(52, 58, 64)
}

.text {
    color: rgb(153, 150, 135);
}

#leftGoldCost, #rightGoldCost {
    width: 100%;
}

.ability {
    border: 1px solid black;
    display: block !important;
    border: 1px solid black;
    outline: 1px solid black;
    outline-offset: -2px;
}

.passive {
    border: 1px solid black;
    display: block !important;
    border: 1px solid black;
    outline: 1px solid black;
    outline-offset: -2px;
}

.max-img {
    max-width: 64px;
    min-width: 16px;
    max-height: 64px;
    min-height: 16px;
    position: relative;
}

.item-filter {
    font-size: 0.8em;
}

#left-item-filter-options {
    position: absolute;
    max-height: 22.65em;
    width: 15em;
    margin-top: 2.5em;
    overflow-x: auto;
}

#right-item-filter-options {
    position: absolute;
    max-height: 22.65em;
    width: 15em;
    margin-top: 2.5em;
    overflow-x: auto;
}

/* Stats */

.health-box {
    /*background-color: lightgray;*/
    position: relative;
    background-color: black;
    width: 100%;
    height: 1.5em;
    margin-top: 1em;
    border: 1px solid black;
}

.health-bar {
    background-color: rgb(51, 139, 32);
    width: 100%;
    height: 100%;
    position: relative;
}

.cooldown {
    position: absolute;
    top: 0;
    width: 0%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    overflow-y: hidden;
}

.health-text {
    position: absolute;
    /*bottom: 1.65em;*/
    top: 0;
    font-size: 0.8em;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
}

.resource-box {
    position: relative;
    background-color: black;
    width: 100%;
    height: 1.5em;
    margin-top: 0.25em;
    margin-bottom: 1em;
    border: 1px solid black;
}

.resource-bar {
    background-color: rgb(23, 121, 234);
    width: 100%;
    height: 100%;
    position: relative;
}

.resourceless {
    background-color: black;
}

.energy-based {
    background-color: yellow;
}

.resource-text {
    position: absolute;
    top: 0;
    font-size: 0.8em;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
}

.energy-text {
    position: absolute;
    top: 0;
    font-size: 0.8em;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.0);
}

.magic-shield-bar {
    background-color: rgb(138, 116, 182);
    width: 0;
    height: 100%;
    position: absolute;
}

.shield-bar {
    background-color: rgb(220, 220, 220);
    width: 0;
    height: 100%;
    position: absolute;
}

td.stat-col {
    padding-right: 1em;
}

.action-queue {
    width: 60%;
}

.left-action {
    border-color: rgb(33, 28, 83);
    border-style: dashed;
    border-width: 2px;
    width: 100%;
}

.right-action {
    border: rgb(76, 8, 5);
    border-style : solid;
    border-width: 2px;
}

.left-action:hover, .right-action:hover {
    border-top-color: white;
    border-bottom-color: white;
}

.reset-row {
    width: 60%;
}

.sticky {
    /* Safari */
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    background-color: white;
    z-index: 1;
}

.rune {
    outline: 1px solid white;
    outline-offset: -1px;
}

.selected-rune {
    box-shadow: 0px 0px 0px 1px rgb(176, 176, 176) inset;   
    border-radius: 10px;
}

.slide {
    display: none;
}

.fade {
    -webkit-animation-name: fade;
    -webkit-animation-duration: 0.1s;
    animation-name: fade;
    animation-duration: 0.1s;
}

@-webkit-keyframes fade {
    from {opacity: .4} 
    to {opacity: 1}
}

@keyframes fade {
    from {opacity: .4} 
    to {opacity: 1}
}