@font-face {
    font-family: myIvyMode;
    src: url(../font/ivy-mode.ttf);
}

* {
    font-family: "Helvetica Neue", serif;
}

body {
    background-color: #F7F0EB;
    padding: 1rem;
}

a {
    text-decoration: none;
    color: black;
}

.content-container {
    min-height: calc(100vh - 2 * 1rem);
    padding: 3rem;
}

.title {
    font-family: myIvyMode, serif;
    font-size: 1.5rem;
    width: fit-content;
}

.profile-icon {
    background-color: white;
    border-radius: 50%;
    width: 64pt;
    height: 64pt;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-image {
    background-color: gray;
    border-radius: 50%;
    width: 48pt;
    height: 48pt;
}

.input-container {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    overflow: hidden;
    padding: 4pt;
    gap: 4pt;
}

.distribute {
    flex-wrap: nowrap;
    align-items: center;
}

.distribute * {
    flex: 1;
}

/* Modifiers */

.bordered {
    border-radius: 0.5rem;
    border: 1px solid #D5D5D5;
}

.scrollable {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
}

.width-fit-content {
    width: fit-content;
}

/* Buttons */

.button-default {
    background-color: #E5E5E5;
    border: none;
    padding: 8pt 12pt;
    width: auto;
    font-size: 1rem;
    transition: background-color 0.25s;
    border-radius: 0.5rem;
}

.button-black {
    background-color: black;
    color: white;
    border: none;
    width: auto;
    padding: 8pt 12pt;
    font-size: 1rem;
    transition: background-color 0.25s;
    border-radius: 0.5rem;
}

.button-black:disabled {
    background-color: #505050;
}

.button-red {
    background-color: #A94B40;
    color: white;
    border: none;
    width: auto;
    padding: 8pt 12pt;
    font-size: 1rem;
    transition: background-color 0.25s;
    border-radius: 0.5rem;
}

.button-close {
    display: flex;
    width: 32pt;
    height: 32pt;
    background: #F7F0EB;
    border-radius: 50%;
    justify-content: center;
    align-items: center;
}

/* Dialog */

.dialog {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1000;
    justify-content: center;
    align-items: start;
    padding: 32pt;
}

.dialog-frame {
    background-color: #fefefe;
    border-radius: 8pt;
    padding: 32pt 28pt;
    max-width: 70%;
    min-height: 100%;
    max-height: 100%;
    display: flex;
    flex: 1;
    flex-direction: column;
}

.dialog-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: start;
    overflow: hidden;
    padding: 0 4pt;
}

/* Data Table */

.data-table {
    width: 100%;

}

.data-table thead {
    height: 48pt;
    background-color: #F9F9F9;

}

.data-table th, .data-table td {
    padding: 4pt;
    height: 40pt;
    vertical-align: middle;
}

.data-table .selected {
    background-color: lightgray;
}

/* Asset Dialog Table */

.asset-table th:nth-child(1), .asset-table td:nth-child(1) {
    width: 48pt;
}

.asset-table th:nth-child(3), .asset-table td:nth-child(3) {
    width: 72pt;
}

.asset-table th:first-child, .asset-table td:first-child {
    padding-left: 0;
}

.asset-table th:last-child, .asset-table td:last-child {
    padding-right: 0;
}


/* Article Selection Table */

.article-dialog-table th:nth-child(2), .article-dialog-table td:nth-child(2) {
    width: 120pt;
}

.article-dialog-table th:nth-child(3), .article-dialog-table td:nth-child(3) {
    width: 160pt;
}

.article-dialog-table th:nth-child(4), .article-dialog-table-table td:nth-child(4) {
    width: 100pt;
}

.article-dialog-table th:nth-child(5), .article-dialog-table td:nth-child(5) {
    width: 80pt;
}

/* Asset Table */

.article-table th:nth-child(2), .article-table td:nth-child(2) {
    width: 120pt;
}

.article-table th:nth-child(3), .article-table-table td:nth-child(3) {
    width: 200pt;
}

.article-table th:nth-child(4), .article-table td:nth-child(4) {
    width: 100pt;
}

.article-table th:nth-child(5), .article-table td:nth-child(5) {
    width: 80pt;
}

.article-table th:nth-child(6), .article-table td:nth-child(6) {
    width: 48pt;
}

/* Episode Table */

.episode-table th:first-child, .episode-table td:first-child {
    width: 64pt;
}

/* Workout Table */

.workout-table th:nth-child(1), .workout-table td:nth-child(1) {
    width: 64pt;
}

.workout-table th:nth-child(2), .workout-table td:nth-child(2) {
    width: 64pt;
}

/* Comment Table */

.comment-table th:nth-child(1), .comment-table td:nth-child(1) {
    width: 120pt;
}

.comment-table th:nth-child(3), .comment-table td:nth-child(3) {
    width: 104pt;
}

.comment-table th:nth-child(4), .comment-table td:nth-child(4) {
    width: 64pt;
}

.comment-table th:nth-child(5), .comment-table td:nth-child(5) {
    width: 64pt;
}

.asset-icon {
    width: 48pt;
    height: 48pt;
    border-radius: 4pt;
    object-fit: cover;
}

.preview {
    max-height: 90vh;
    display: flex;
    overflow: hidden;
}

.preview-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.badge-container {
    border-radius: 8pt;
    width: fit-content;
    padding: 3pt 8pt;
}

.spacer {
    width: 16pt;
    height: 16pt;
    flex: none;
}

.separator {
    height: 1px;
    width: 100%;
    background-color: #D5D5D5;
}

.alert-position {
    position: fixed;
    z-index: 2000;
    top: 16pt;
    right: 16pt;
}

/* Context Menu */

.context-menu {
    background-color: white;
    z-index: 1000;
    overflow: hidden;
    position: absolute;
    display: flex;
    flex-direction: column;
    border-radius: 8pt;
    border: 1px solid #D5D5D5;
}

.context-menu-item {
    padding: 8pt 16pt;
    border-bottom: 1px solid #D5D5D5;
}

.context-menu-item:last-child {
    padding: 8pt 16pt;
    border-bottom: none;
}

.context-menu-item:hover {
    background-color: #D5D5D5;
}