table, th, td {
    border: 1px solid #0aa318;
    border-collapse: collapse;
    table-layout: fixed;
}

td:before {
    content: '';
    display: block;
    width: 2em;
}

img {
    max-width: 100%;
    height: auto;
}

.wiki {
    padding: 6px
}

.indextable {
    width: 100%;
    border: 0;
    border-collapse: collapse;
}

.indextable, .indextable td, .indextable th {
    border: 0;
}

.indextable th,
.indextable td {
    padding: 3px 5px;
}

.indextable td:before {
    content: none;
    width: 0;
}

.indextable tr:hover {
    background: #004000;
}

.indextable td:hover {
    font-weight: bold;
    background: #005839;
}

.tdcontainer {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    overflow: hidden;
}

.tdcontainer > * {
    flex: 1;
    min-width: 0;
    height: 100%;
}

.tdcontainer > *:first-child {
    margin-left: 0;
}

.tdcontainer > *:last-child {
    margin-right: 0;
}

.wikilink:visited {
    color: var(--secondary-color)
}

.wikilink:link {
    text-decoration: none;
    color: var(--primary-color)
}

.clock-container {
    margin: 5px;
    position: relative;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 2px solid var(--background-color);
    overflow: hidden;
    flex: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 50px;
    box-sizing: border-box;
}

.segment {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: var(--midground-color);
    transform-origin: center;
    transition: transform 0.5s;
    z-index: 1;
}

.segment.active {
    background-color: var(--secondary-color);
}

.line {
    position: absolute;
    width: 2px;
    height: 52%;
    background-color: var(--background-color);
    top: 26%;
    left: 50%;
    transform-origin: 50% 0%;
    z-index: 2;
}

.cooldown {
    position: relative;
    filter: grayscale(100%);
    animation: cooldown 5s ease forwards;
}

.clock-container.cooldown {
    animation: rotatecd 5s ease forwards;
}

@keyframes cooldown {
    0% {
        filter: grayscale(100%);
        transform: scale(90%);
    }
    90% {
        filter: grayscale(100%);
        transform: scale(95%);
    }
    95% {
        filter: saturate(120%);
        transform: scale(105%);
    }
    100% {
        filter: saturate(100%);
        transform: scale(100%);
    }
}

@keyframes rotatecd {
    0% {
        filter: grayscale(100%);
        transform: scale(90%) rotate(-5deg);
    }
    90% {
        filter: grayscale(100%);
        transform: scale(95%) rotate(720deg);
    }
    95% {
        filter: saturate(120%);
        transform: scale(105%) rotate(720deg);
    }
    100% {
        filter: saturate(100%);
        transform: scale(100%) rotate(720deg);
    }
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

.missing {
    color: var(--warn-color);
}
