@charset "utf-8"; 


textarea#dummy {
    position: absolute; 
    opacity: 0;
    z-index: -100;
}

a {
    cursor: cell;
}

.toc-container {
    position: fixed; 
    z-index: 11; 
    background-color: #c0c0b0;
    padding: 1em 10%;
    transform-origin: bottom;
    transition: all .5s;
    overflow-y: auto;
    padding-bottom: 5em;
}

.toc-container.full {
    width: 100%;
    min-height: 100%;
    max-height: 100%;
}

.toc-container.full.hidden {
    transform: translateY(-100%);
}

.toc-container.full.revealed {
    transform: translateY(0%);
}

.toc-container .button {
    position: absolute; 
    right: 0px;
    top: 0em;
    cursor: cell;
}

.toc-container .button.close {
    background-color: #333; 
    height: 50px; 
    width: 50px; 
    border-radius: 50px;
    transform: rotate(45deg);
    
}

.toc-container .button.close img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transform-origin: center;
    height: 70%;
}

.toc-container h1 {
    font-family: bit; 
    margin-top: 2em;
    margin-bottom: 2em;
}

.toc-container table {
    border-left: 3px solid #333;
    padding-left: 1em;
    font-family: monospace;
    font-size: 1.2em;
}

.toc-container table tr td {
    cursor: cell;
}

.toc-container table tr.one td {
    padding-left: 1em;
    font-weight: bold;
}

.toc-container table tr.two td {
    padding-left: 2em;
}

.modal {
    position: fixed;
    z-index: 2;
    background-color: rgba(0, 0, 0, .5); 
    height: 100%;
    width: 100%;
    font-family: monospace;
}



.modal .button {
    user-select: none; 
    cursor: cell; 
}

.modal.citation {
    
}

.modal.hidden {
    opacity: 0;
    z-index: -1;
}

.modal.visible {
    opacity: 1;
    z-index: 2;
}

.modal.none {
    display: none;
}

.modal .content-container {
    position: relative;
    z-index: 3;
    display: table;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 1em;
    padding-bottom: 0;
    border-radius: 8px;
    overflow: hidden;
    background-color: #f0f0e0;
    max-width: 420px;
}

.modal .content-container *:first-child {
    margin-top: 0;
}

.modal .content-container.citation .reference {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    background-color: #e0e0d0;
    width: calc(100%);
    padding: .5em;
    border-radius: 8px;
    overflow: hidden;
}

.modal .content-container.citation .input-frame {
    border-radius: 4px;
    border: none;
    padding: .5em;
    margin-right: .5em;
    width: 100%;
    background-color: #fafafa;
}

.modal .content-container.citation .reference:last-of-type {
    margin-bottom: .5em;
}

.modal .content-container.citation .reference .button {
    display: flex; 
    align-items: center;
    width: 50px;
    background-color: #d0d0c0;
    margin: -.5em;
    margin-left: 0em;
    padding: 1em;
}

.modal .content-container.citation .reference .button:hover {
    background-color: #d7d7c7;
}

.modal .content-container.citation .reference .button:active {
    background-color: #c0c0b0;
}

.modal .content-container.citation .reference .button img {
    width: 100%;
}

.modal .content-container.share .SoMe-container {
    display: flex; 
    flex-direction: row; 
    justify-content: space-between;
    background-color: #e0e0d0;
    margin: 0em -1em;
    padding: .7em;
}

.modal .content-container.share .SoMe-container img {
    height: 55px;
    width: 55px;
    flex-basis: 0;
    flex-grow: 0;
    flex-shrink: 0;
    cursor: cell;
    border-radius: 8px;
    padding: .5em;
    margin: .5em;
}

.modal .content-container.share .SoMe-container img:hover {
    
    background-color: #cacaba;
}

.modal .content-container.share .SoMe-container img:active {
    
    background-color: #b0b0a0;
}



