@import url('apps.css');
@import url('navigation.css');
@import url('tabbed_forms.css');
@import url('subscription.css');
@import url('panel_lists.css');

.dictionary-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    margin: 5px 0;
}

input.dictionary-search {
    width: 50%;
}

#site\.dictionary\.subsection\.dictionary\.search {
    justify-content: space-evenly;
    flex-direction: row;
}

.dictionary-search-result {
    margin: 10px 50px;
    border: solid 2px var(--gray);
    border-radius: 8px;
    width: 90%;
    padding: 10px;
    cursor: pointer;
}

.dictionary-search-result:hover {
    border-color: var(--dark-link-color);
    color: var(--dark-link-color);
    background-color: var(--light-background-color);
}

.dictionary-search-result-translation {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    margin: 5px;
    padding: 5px;
}

.dictionary-search-result-match {
    font-weight: bold;
    border-radius: 5px;
}

.dictionary-search-result-language {
    display: inline-flex;
    width: 50px;
    font-weight: bold;
}

.dictionary-search-result-text {
    display: inline-flex;
    width: 90%;
}

div#translation-options {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    width: 100%;
}

.form-list-wrap {
    display: flex;
    flex-direction: column;
    width: calc(100% - 30px);
    padding: .375rem 0;
    background-clip: padding-box;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    max-height: 280px;
    overflow-y: auto;
    border: solid 1px var(--sparq-teal);
    padding: 5px 15px;
}

.form-control:focus {
    /*color: #212529;
    background-color: #fff;
    border-color: #86b7fe;*/
    box-shadow: 0 0 0 .25rem rgba(26, 133, 161,.25);
}

/** BEGIN - Refactored styles for checkboxes */
.form-list-wrap label.checkbox {
    position: relative;
    display: flex;
    align-items: center;
}

.form-list-wrap label.checkbox:not(:last-child) {
    margin-bottom: .475rem;
}
label.checkbox {
    position: relative;
    display: flex;
    align-items: center;
}

label.checkbox:not(:last-child) {
    margin-bottom: .475rem;
}

label.checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

label.checkbox span.check {
    position: relative;
    top: unset;
    left: unset;
    height: 18px;
    width: 18px;
    border-radius: 0;
    border: solid 2px #AAAAAA;
    transition: all 0.3s ease-out;
    --webkit-transition: all 0.3s ease-out;
    --moz-transition: all 0.3s ease-out;
    --ms-transition: all 0.3s ease-out;
    --o-transition: all 0.3s ease-out;
}

label.checkbox input:checked ~ span.check::after {
    position: relative;
    top: -0.35em;
    color: var(--black);
    font-size: 1.5em;
    content: "\2713";
}

label.checkbox input:focus ~ span.check {
    outline: none !important;
    outline: 0;
    box-shadow: 0 0 0 .25rem rgba(13,110,253,.25);
}

label.checkbox input:checked ~ span.check {
    background-color: transparent;
    border-radius: 0;
    --webkit-transform: rotate(0deg) scale(1);
    --ms-transform: rotate(0deg) scale(1);
    transform: rotate(0deg) scale(1);
    border: solid 2px #AAAAAA;
}

span.check + span {
    margin-left: 12px;
}

label.checkbox input:disabled + span, label.checkbox input:disabled + span + span{
    opacity: 0.25;
}

.judge-info {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    width: 100%;
}

.judge-info .label {
    margin-inline-end: 0.5rem;
}

.person-detail-description {
    margin: 1rem 0 2rem 0;
}

p.about-themes {
    text-align: center;
}

.theme-list {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    margin: 0;
    width: 100%;
    z-index: 1;
}

a.theme-link {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 250px;
    margin: 0.5rem;
    padding: 0.5rem;
}

a.theme-link.current-theme {
    outline: solid 2px var(--sparq-dark-blue);
}

a.theme-link.selected-theme {
    outline: dotted 2px var(--sparq-orange);
}

a.theme-link.current-theme.selected-theme {
    outline: solid 2px var(--sparq-dark-blue);
}

.theme-link img {
    width: calc(100% - 2px);
    object-fit: contain;
    border: solid 1px var(--sparq-teal);
    -webkit-transition-property: all;
    -webkit-transition-duration: 0.3s;
    -webkit-transition-timing-function: ease;
}

.theme-link img:hover {
    transform: scale(3);
}

#dialog\.font_editor\.form .form-field {
    width: 500px;
}

#dialog\.font_editor\.form .form-field .value.split select {
    width: 60% !important;
    margin-inline-end: 2rem;
}

.display-table {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    width: calc(100% - 2px);
    border: solid 1px var(--sparq-dark-blue-with-alpha);
    border-radius: 8px;
}

.display-table-row {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
}

.display-table-row.dots-row {
    justify-content: center;
}

.display-table-row.display-table-header {
    padding: 1rem;
    width: calc(100% - 2rem);
    background-color: var(--sparq-dark-blue-with-alpha);
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.display-table-row.display-table-header input {
    width: 50%;
    margin: 0 1rem;
}

.display-table-row:not(:last-child) {
    border-bottom: solid 1px var(--sparq-gray);
}

.display-table-cell {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    margin: 0.5rem;
    font-weight: 400;
    flex-wrap: wrap;
}

#dialog\.font_editor .display-table-cell.label-column {
    width: calc(12% - 1rem)
}

#dialog\.font_editor .display-table-cell.wide-column {
    width: calc(40% - 1rem);
}

#dialog\.font_editor .display-table-cell.all-caps {
    text-transform: uppercase;
}

#dialog\.font_editor .display-table-cell.thin {
    font-weight: 100;
}

#dialog\.font_editor .display-table-cell.bold {
    font-weight: 800;
}

#dialog\.font_editor .display-table-cell.italic {
    font-style: italic;
}

.sample-text-rtl {
    direction: rtl;
}

.sample-text-ltr {
    direction: ltr;
}

.recommendation-synopsis {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: flex-start;
    width: calc(100% - 2rem);
    padding: 1rem;
    margin: 0;
    height: calc(40vh - 2rem);
    min-height: 100px;
    background-color: var(--black);
    color: var(--white);
    border-radius: 4px;
}

.recommendation-poster {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-end;
    height: 100%;
}

.recommendation-poster img {
    height: 100%;
    object-fit: contain;
}

.recommendation-meta {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    margin: 0 1rem 0 0;
}

.dialog-body.modern .recommendation-meta h2 {
    color: var(--white);
    font-size: 1.5rem;
}

.centered-meta {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 0.5rem 0;
    font-size: 0.8rem;
}
