@font-face {
    font-family: 'GangwonEducationSaeum';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2201-2@1.0/GangwonEduSaeeum_OTFMediumA.woff') format('woff');
    font-weight: normal;
    font-display: swap;
}

@font-face {
    font-family: 'NeoDonggeunmo';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2001@1.3/NeoDunggeunmo.woff') format('woff');
    font-weight: normal;
    font-display: swap;
}

* {
    box-sizing: border-box;
    --body-color: #c24d4d;
    --body-border: #d56868;
    --tab-color: #ffc047;
    --yellow: #ffe720;
    --blue: #7c91ff;
    --correct: #53ef53;
    --incorrect: #ff3333;
    --unknown: #666;
    --alignment-jupiter: #169804;
    --alignment-mars: #c0392b;
    --alignment-saturn: #a0522d;
    --alignment-mercury: #8e44ad;
    --alignment-venus: #2980b9;
    --alignment-jupiter-dark: #145a32;
    --alignment-mars-dark: #7b241c;
    --alignment-saturn-dark: #6e2c00;
    --alignment-mercury-dark: #512e5f;
    --alignment-venus-dark: #154360;
    --alignment-jupiter-light: var(--correct);
    --alignment-mars-light: var(--incorrect);
    --alignment-saturn-light: #ef804d;
    --alignment-mercury-light: #bb58e5;
    --alignment-venus-light: var(--blue);
    --power-on-timing: 0.8s;
}

[data-alignment] {
    --alignment-color: #888;
}

[data-alignment="Jupiter"] {
    --alignment-color: var(--alignment-jupiter) !important;
    --alignment-light: var(--alignment-jupiter-light) !important;
    --alignment-dark: var(--alignment-jupiter-dark) !important;
}

[data-alignment="Mars"] {
    --alignment-color: var(--alignment-mars) !important;
    --alignment-light: var(--alignment-mars-light) !important;
    --alignment-dark: var(--alignment-mars-dark) !important;
}

[data-alignment="Saturn"] {
    --alignment-color: var(--alignment-saturn) !important;
    --alignment-light: var(--alignment-saturn-light) !important;
    --alignment-dark: var(--alignment-saturn-dark) !important;
}

[data-alignment="Mercury"] {
    --alignment-color: var(--alignment-mercury) !important;
    --alignment-light: var(--alignment-mercury-light) !important;
    --alignment-dark: var(--alignment-mercury-dark) !important;
}

[data-alignment="Venus"] {
    --alignment-color: var(--alignment-venus) !important;
    --alignment-light: var(--alignment-venus-light) !important;
    --alignment-dark: var(--alignment-venus-dark) !important;
}

body {
    background: #d3e0f1;
    word-break: keep-all;
}

.game-container {
    position: relative;
    display: flex;
    flex-direction: row;
    gap: 10px;
    width: 860px;
    height: 600px;
    justify-content: space-around;
    align-items: flex-start;
    overflow: hidden;
    visibility: hidden;
}

.game-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 96px;
    background: #5873dd;
    border-bottom: 2px solid #4559ab;
}

.letters-container {
    position: relative;
    display: flex;
    justify-content: flex-start;
    flex-direction: column;
    height: 100%;
    overflow: visible; /* fixes the envelopes - TODO does it break letters */
    z-index: 5;
}

.spacer {
    flex: 0.25;
}

.start-envelope-wrapper {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    display: none;
    justify-content: center;
    align-items: center;
}

.off .start-envelope-wrapper {
    display: flex;
}

.start-envelope-wrapper .start-envelope {
    --envelope-width: 220px;
    --envelope-height: 150px;
    width: var(--envelope-width);
    height: var(--envelope-height);
    pointer-events: all;
}

.letter-wrapper {
    position: relative;
    background: seashell;
    border: 1px solid #a29993;
    box-shadow: -2px 3px 4px rgba(0, 0, 0, 0.5);
    width: 400px;
    height: 470px;
    padding: 10px;
    overflow: auto;
    margin: 10px;
    margin-top: 25px;
    transition: all 0.1s;
}

.off .letter-wrapper {
    visibility: hidden;
}

.letter-number {
    position: absolute;
    top: 5px;
    right: 10px;
    font-size: 12px;
    display: none;
}

.letter-list-container {
    display: flex;
    flex-direction: row;
    margin-right: -150px;
    padding-top: 3px;
}

.mailbox-wrapper {
    position: relative;
    width: 80px;
    height: 60px;
}

.mailbox {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    --scale: 1;
    transition: transform 0.2s;
}

.mailbox.got-mail {
    cursor: pointer;
    animation: mailbox-bounce 0.5s ease-in-out infinite;
}

.mailbox.got-mail:hover {
    --scale: 1.03;
}

@keyframes mailbox-bounce {
    0%, 100% {
        transform: translateY(0) scale(var(--scale));
    }
    50% {
        transform: translateY(-2px) scale(var(--scale));
    }
}

/* Mailbox body - domed shape seen from the side */
.mailbox-body {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    top: 20px;
    background: var(--body-color);
    border: 1px solid var(--body-border);
    border-radius: 15px 10px 0 0;
}

/* Mailbox door - semicircular on the right side */
.mailbox-door {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 18px;
    top: 20px;
    background: #333;
    border: 2px solid #8b2e2e;
    border-bottom: none;
    border-radius: 16px 16px 0 0;
}

/* Mailbox flag on the back left */
.mailbox-flag {
    position: absolute;
    bottom: 8px;
    left: 18px;
    top: 0;
    transition: transform 0.6s;
    transform: rotate(90deg) translate(-10px, 0);
    transform-origin: left bottom;
}

.mailbox-flag.up {
    transform: none;
}

.mailbox-flag.waving {
    animation: mailbox-flag-wave 0.5s ease-in-out infinite;
}

@keyframes mailbox-flag-wave {
    0%, 100% {
        transform: rotate(0)
    }
    25% {
        transform: rotate(-5deg)
    }
    50% {
        transform: rotate(0);
    }
    75% {
        transform: rotate(5deg);
    }
}

.flag-pole {
    width: 3px;
    height: 100%;
    background: #333;
    border-radius: 10px;
}

.flag-banner {
    position: absolute;
    top: 2px;
    left: 3px;
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 14px solid var(--incorrect);
}

.mailbox-post {
    width: 20px;
    background: #3a240f;
    position: absolute;
    bottom: -25px;
    left: 35%;
    height: 40px;
}

.mail-indicators-wrapper {
    position: absolute;
    bottom: 6px;
    left: 17px;
    display: flex;
    flex-direction: row;
    gap: 4px;
}

.mail-indicators-wrapper .indicator {
    width: 10px;
    height: 10px;
    border: 1px solid black;
    background: var(--unknown);
    border-radius: 100%;
    visibility: hidden;
}

.mail-indicators-wrapper .indicator.correct {
    background: var(--correct);
}

.letter-list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
    width: 440px;
    margin-left: 8px;
    margin-top: 8px;
    padding: 5px;
    align-self: flex-start;
}

.letter-list-item {
    background: seashell;
    font-family: "Playpen Sans", sans-serif;
    font-size: 14px;
    font-weight: 300;
    --envelope-width: 42px;
    --envelope-height: 26px;
    width: var(--envelope-width);
    height: var(--envelope-height);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    box-shadow: -1px 1px 1px rgba(0, 0, 0, 0.5);
    transition: transform 0.1s;
}

.letter-list-item:not(.envelope) {
    width: 40px;
    height: 24px;
    margin: 1px;
}

.letter-list-item:not(.current):hover {
    transform: scale(1.05);
    font-weight: bold;
    outline: 1px solid black;
}

.letter-list-item.envelope:not(.current):not(.hidden):hover {
       outline: 2px solid black;
}

.letter-list-item.current {
    outline: 2px solid black;
    font-weight: bold;
    cursor: default;
}

.envelope {
    position: relative;
    background: white;
    border: 1px solid black;
    outline: 1px solid black;
    box-shadow: -2px 2px 2px rgba(0, 0, 0, 0.5);
    border-radius: 0 0 1px 1px;
    --flap-width: calc(var(--envelope-width) / 2);
    --flap-height: calc(var(--envelope-height) / 2);
}

.envelope::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 0;
    border-left: var(--flap-width) solid transparent;
    border-right: var(--flap-width) solid transparent;
    border-top: calc(var(--flap-height) + 1px) solid #333;
    z-index: 1;
}

.envelope::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 0;
    border-left: var(--flap-width) solid transparent;
    border-right: var(--flap-width) solid transparent;
    border-top: calc(var(--flap-height) - 1px) solid white;
    z-index: 1;
}

.letter-list-item.hidden {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    box-shadow: none;
    cursor: default;
}

.letter-list-item.hidden:hover {
    transform: none;
    outline: none;
}

.letter-list-item.hidden .letter-label {
    display: none;
}

.letter-label {
    z-index: 1;
    text-align: center;
    padding-bottom: 2px;
}

.envelope .letter-label {
    display: none;
}

#the-end {
    text-align: center;
    margin: 25px;
    text-transform: uppercase;
    font-weight: bold;
    display: none;
}

.dex-container {
    z-index: 1;
    margin-top: 36px;
    margin-right: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;

    font-family: "VT323", monospace;
    font-weight: 400;
    font-style: normal;
    color: black;

    /* transform: rotate(1deg); */
}

.dex-wrapper {
    display: flex;
    flex-direction: row;
}

.nav-container {
    position: relative;
    background: var(--body-color);
    border: 1px solid var(--body-border);
    height: fit-content;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 14px 0 13px 12px;
    margin-right: -8px;
    border-radius: 25px 0 0 10px;
    box-shadow: -5px 4px 2px rgba(0, 0, 0, 0.5);
    left: 0;
    transition: all 0.6s ease-out;
}

.off .nav-container {
    visibility: hidden;
    left: 115px;
    box-shadow: none;
}

.nav-buttons {
    display: flex;
    flex-direction: row;
    z-index: 1;
    padding: 0 2px;
}

.dex-nav {
    flex: 1;
    width: 15px;
    background: var(--tab-color);
    margin: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 10pt;
}

#dex-prev {
    border-radius: 0 0 0 6px;
}

#dex-next {
    border-radius: 0 0 6px 0;
}

.dex-contents {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: flex-end;
}

.page-list {
    display: flex;
    flex-direction: column;
}

.tabs-nav {
    display: flex;
    flex-direction: column;
}

.tab-nav {
    background: var(--blue);
    border: 2px solid var(--body-color);
    padding: 6px;
    cursor: pointer;
    font-size: 11pt;
    word-spacing: -3px;
    text-transform: uppercase;
    text-align: center;
    margin-right: 5px;
    border-radius: 0 0 10px 10px;
    transition: all 0.1s;
}

.tab-nav:first-child {
    z-index: 1;
}
.tab-nav:last-child {
    margin-top: -10px;
    padding-top: 12px;
}

.tab-nav:hover,
.tab-nav.current {
    text-decoration: underline;
    background: #a7b4f9;
}

.current {
    cursor: default;
}

.page-list-item {
    position: relative;
    background: var(--tab-color);
    border: 2px solid var(--body-color);
    cursor: pointer;
    font-size: 12pt;
    height: 43px;
    width: 115px;
    text-wrap: nowrap;
    margin: 2px;
    border-radius: 20px 0 0 0;
    padding: 3px 20px 20px 18px;
    margin-bottom: -18px;
    transition: all 0.1s;
}

.page-list-item:last-child {
    padding-bottom: 10px;
    margin-bottom: 0;
    height: 33px;
}

.page-list-item::after {
    content: "";
    position: absolute;
    right: 7px;
    top: 7px;
    height: 10px;
    width: 10px;
    border-radius: 100%;
    border: 1px solid black;
    background: var(--unknown);
    transition: all 0.1s;
}

.page-list-item.correct::after {
    background: var(--correct);
}

.page-list-item.incorrect::after {
    background: var(--incorrect);
}

.page-list-item.complete::after {
    background: var(--yellow);
}

.page-list-item:hover,
.page-list-item.current {
    text-decoration: underline;
    background: #ffcf74;
}

.dex-page-wrapper {
    position: relative;
    padding: 20px 15px 15px 18px;
    background: var(--body-color);
    border: 1px solid var(--body-border);
    border-left: none;
    border-radius: 20px 40px 10px 0;
    box-shadow: 2px 4px 2px rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.page {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    background: white;
    border: 6px solid black;
    padding: 10px;
    width: 270px;
    height: 445px;
    gap: 10px;
    font-size: 14pt;
    border-radius: 0 30px 0 0;
    transition: filter 1s ease-out;
    z-index: 1;
}

.page:not(.active) {
    display: none;
}

.off #dex-page {
    filter: contrast(0) brightness(0.3);
}

.off #message-wrapper {
    background: #222;
}

.off {
    pointer-events: none;
}

.power-button-wrapper {
    position: absolute;
    z-index: 2;
    top: 0;
    bottom: 0;
    left: 130px;
    right: 13px;
    display: none;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    pointer-events: none;
}

.power-button {
    width: 80px;
    height: 80px;
    background: #53ca53;
    border: 4px solid black;
    border-radius: 100%;
    box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    pointer-events: all;
    font-family: "Noto Sans Symbols 2", sans-serif;
    font-size: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    padding-top: 14px;
    margin-bottom: 60px;
    transition: all 0.1s;
}

.power-button:hover {
    transform: scale(1.03);
    background: var(--correct);
}

.off .power-button-wrapper {
    display: flex;
}

.header {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 18pt;
}

.name-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    height: 100%;
    padding-bottom: 8px;
}

#number {
  font-family: "Jersey 10", sans-serif;
  font-size: 16pt;
}

#name {
    font-family: "Jersey 10", sans-serif;
    font-size: 28pt;
    line-height: 40px;
}

/* [data-name="Sinestella"] #name {
    font-size: 24pt;
} */

.subtitle {
    height: 35px;
    width: 122px;
    font-size: 12pt;
}

#description {
    font-style: italic;
    transition: opacity 1s;
}

.revealing #description {
    opacity: 0;
}

.validate-button {
    margin-top: 8px;
    padding: 2px 6px;
    width: fit-content;
    border: 1px solid #777;
    background: #ccc;
    color: #777;
    border-radius: 4px;
    transition: all 0.1s;
}

.validate-button.active {
    border: 1px solid black;
    color: black;
    background: var(--yellow);
    cursor: pointer;
    box-shadow: -1px 1px 1px rgba(0, 0, 0, 0.5);
}

.validate-button.active:hover {
    outline: 2px solid black;
}

#dex-page-wrapper:not([data-status="correct"]) #description {
    display: none;
}

#dex-page-wrapper[data-status="correct"] #validate-button {
    display: none;
}

.indicators-wrapper {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    margin: 0 25px 15px 0;
}

.indicators {
    display: flex;
    flex-direction: row;
    gap: 6px;
    align-items: center;
    background: var(--body-color);
}

.indicator {
    height: 14px;
    width: 14px;
    border-radius: 100%;
    background: var(--unknown);
    --alignment-light: var(--unknown);
    border: 2px solid black;
    transition: all 0.1s;
}

.indicator.blue {
    background: var(--blue);
}

/* [data-status="correct"] .indicator[data-alignment] {
    background: var(--alignment-color);
} */

#correct {
    height: 23px;
    width: 23px;
}

.complete #correct {
    background: var(--yellow);
}

#correct.checking {
    background: var(--unknown);
}

[data-status="incorrect"] #correct,
#correct.incorrect {
    background: var(--incorrect);
}

[data-status="correct"] #correct,
[data-status="correct"] .indicator,
#correct.correct {
    background: var(--correct);
}

#message-wrapper {
    position: relative;
    color: white;
    background: #555;
    height: 20px;
    margin: 2px 14px;
    flex: 1;
    text-align: center;
    text-transform: uppercase;
    border: 2px solid black;
    border-radius: 4px 4px 0 0;
    font-size: 12pt;
    overflow: hidden;
    transition: all 0.6s;
}

.message {
    width: fit-content;
    position: absolute;
    white-space: nowrap;
}

.sprite-wrapper {
    position: relative;
    width: 132px;
    height: 132px;
    margin: -10px;
    margin-left: -24px;
    margin-top: -5px;
}

.sprite {
    position: relative;
    width: 64px;
    height: 64px;
    transform: scale(2);
    margin: 32px;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    min-width: auto;
    border-radius: 4px;
    transition: filter 1s;
}

#dex-page-wrapper:not([data-status="correct"]) .sprite:not(.empty), .revealing .sprite {
    filter: grayscale(100%);
}

.editable #sprite-dropdown>.sprite:not(.empty):hover {
    transform: scale(2.1);
}

.editable .dropdown-list .sprite:hover {
    outline: 2px solid black;
}

.dropdown-list .sprite {
    transform: none;
    margin: 0;
}

#dex-page-wrapper .dropdown-list .sprite.used {
  opacity: .2;
  pointer-events: none;
  filter: none;
  cursor: default;
}

#sprite-dropdown {
    background: transparent;
}

#sprite-dropdown .dropdown-list {
    width: 235px;
    flex-direction: row;
    flex-wrap: wrap;
    left: -110px;
    top: 115px;
    gap: 1px;
    justify-content: space-evenly;
}

/* Placeholder to arrange the last row correctly */
#sprite-dropdown .dropdown-list::after {
    content: "";
    width: 64px;
    cursor: default;
}

#sprite-dropdown .dropdown-arrow {
    position: absolute;
    right: 10px;
    bottom: 15px;
}

.sprite-empty {
    transform: scale(0.5);
    /** awkward.. */
    --sprite-empty-margin: -15px;
    position: absolute;
    top: var(--sprite-empty-margin);
    left: var(--sprite-empty-margin);
    right: var(--sprite-empty-margin);
    bottom: var(--sprite-empty-margin);
    border: 1px solid #555;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40pt;
    color: #555;
    pointer-events: none;
}

.editable #sprite-dropdown>.sprite:hover .sprite-empty {
    outline: 2px solid black;
}

.dropdown-list .sprite-empty {
    border: none;
}

.row-section {
    display: flex;
    flex-direction: row;
    gap: 15px;
}

.top {
    border-top: 4px double black;
    padding-top: 13px;
    margin-top: 5px;
}

.section {
    display: flex;
    flex-direction: column;
}

.label {
    padding-bottom: 2px;
    margin-bottom: 4px;
    border-bottom: 2px solid black;
}

.inner-section {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 5px;
}

.moves .inner-section {
    flex-direction: row;
}

.value {
    width: 80px;
    padding: 2px;
    border: 1px solid #777;
}

.moves .value {
    width: 120px;
}

.moves .dropdown-list {
    width: 148px;
    max-height: 175px; /* TODO or go up? */
}

.notes.section {
    flex: 1;
}

.notes .label {
    text-align: end;
}


textarea {
    font-family: "VT323", monospace;
    font-size: 12pt;
    padding: 2px;
}

#notes {
    flex: 1;
    resize: none;
}
/* 
.letter-list-item[data-author="harper"]:not(.hidden) {
    /* color: #6d146d;
    background: #faeeff;
    color: #1f3380;
    background: #e9eafd;
}

.letter-wrapper[data-author="harper"] {
    background: #e9eafd;
}

.letter-list-item[data-author="ollie"]:not(.hidden) {
    /* color: #1f3380;
    background: #e9eafd;
    color: #073607;
    background: #f6ffee;
}

.letter-wrapper[data-author="ollie"] {
    background: #f6ffee;
} */

/* .letter-list-item[data-author="vincent"] {
    color: green;
} */

.letter-wrapper {
    font-family: "Playpen Sans", sans-serif;
    font-weight: 300;
    font-style: normal;
    font-size: 14px;
}

.letter p:first-child {
    margin-top: 0;
}

.letter p.signoff {
    margin-bottom: 0;
}

.letter p.signoff + p {
    margin-top: 0;
}

/* Custom Dropdown Styles */
.custom-dropdown {
    position: relative;
    min-width: 100px;
    border-radius: 4px;
    user-select: none;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.editable .custom-dropdown:not(.disabled) {
    cursor: pointer;
}

div.custom-dropdown.open {
    z-index: 5;
    border-color: #333;
    background: #fff;
}

.custom-dropdown.highlight-empty .empty:not(.sprite), .custom-dropdown.highlight-empty .sprite-empty {
    outline: 2px solid red;
}

.dropdown-list {
    position: absolute;
    top: 32px;
    left: 0;
    background: #fff;
    border: 1px solid black;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
    max-height: 210px;
    overflow-y: auto;
    margin-top: 2px;
    display: none;
    padding: 5px;
    padding-right: 7px;
    flex-direction: column;
    gap: 5px;
}

.custom-dropdown.open .dropdown-list {
    display: flex;
}

.dropdown-arrow {
    font-size: 6pt;
    margin-left: 3px;
}

#dex-page-wrapper:not(.editable) .dropdown-arrow {
    visibility: hidden;
}

.dropdown-option {
    padding: 6px 12px;
    cursor: pointer;
    border-radius: 12px;
    margin: 2px 4px;
    display: inline-block;
}

/* Chip style for selected value */
.dropdown-chip {
    border: 1px solid #555;
    background: #888;
    color: white;
    border-radius: 4px;
    padding: 2px 8px;
    font-size: 14pt;
    height: 30px;
    width: 100px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 5px;
}

.dropdown-chip.empty {
    background: white;
    color: black;
    justify-content: center;
}

.dropdown-chip[data-alignment] {
    background: var(--alignment-color);
}

.editable .custom-dropdown:not(.disabled) .dropdown-chip:hover {
    outline: 2px solid black;
}

.moves .dropdown-chip {
    width: 120px;
}

.habitat .dropdown-chip:not(.empty) {
    background: #eee;
    color: black;
}

.alignment-symbol {
    min-width: 14px;
    font-family: "VT323", monospace;
}

.dropdown-chip[data-alignment="Jupiter"] .alignment-symbol {
    margin-left: -2px;
    margin-right: 2px;
}

.dropdown-chip[data-alignment="Mercury"] .alignment-symbol {
    margin-top: -3px;
    margin-bottom: 3px;
}

#notes-page {
    gap: 10px;
    position: relative;
    overflow: hidden;
}

#notes-page .section {
    gap: 5px;
    padding: 3px 5px 5px 3px;
}

#notes-page .label {
    text-align: left;
    font-size: 16pt;
    margin-right: 5px;
}

#full-notes {
    flex: 1;
    resize: none;
    border-radius: 0 10px 0 0;
    padding: 4px 6px;
}

#align-page .header {
    flex-direction: column;
    border-bottom: 4px double black;
    padding: 5px 0 10px 0;
    align-items: stretch;
}

#align-page .title {
    font-family: "Jersey 10", sans-serif;
    font-size: 21pt;
}

#align-page .text {
    font-size: 12pt;
    font-style: italic;
}

.validate-wrapper {
    display: flex;
    justify-content: center;
    padding: 10px;
}

#validate-alignment {
    margin: 0;
}

#dex-page-wrapper[data-status="correct"] #validate-alignment {
    display: none;
}

.validate-alignment-correct {
    display: none;
    color: var(--alignment-jupiter-dark);
}

#dex-page-wrapper[data-status="correct"] .validate-alignment-correct {
    display: flex;
}

/* Alignment Chart Styles */
.alignment-chart {
    position: relative;
    height: 280px;
    margin-top: -10px;
}

.alignment-chart .custom-dropdown {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    min-width: unset;
    z-index: 1;
}

.alignment-chart .custom-dropdown>.dropdown-chip {
    width: 60px;
    font-size: 13pt;
    flex-direction: column;
    height: 50px;
    gap: 0;
    border-radius: 10px;
    outline: 2px solid var(--alignment-dark);
    transition: all 0.1s;
}

.alignment-chart .custom-dropdown>.dropdown-chip .alignment-symbol {
    font-size: 19pt;
    margin-bottom: -5px;
}

.alignment-chart .custom-dropdown>.dropdown-chip[data-alignment="Jupiter"] .alignment-symbol,
.alignment-chart .custom-dropdown>.dropdown-chip[data-alignment="Saturn"] .alignment-symbol {
    margin-top: -4px;
}

.alignment-chart .custom-dropdown .dropdown-arrow {
    display: none;
}

.alignment-chart .custom-dropdown .dropdown-list {
    top: 50px;
    left: -25px;
}

.alignment-chart #a2 .dropdown-list, .alignment-chart #a3 .dropdown-list {
    top: unset;
    bottom: 52px;
}

/* Arrange 5 wrappers evenly in a circle */
.alignment-chart .custom-dropdown {
    --y-distance: 110px;
    --x-distance: 90px;
}

.alignment-chart .custom-dropdown:nth-child(1) {
    transform: translate(-50%, -50%) translate(0, calc(-0.8 * var(--y-distance)));
}

.alignment-chart .custom-dropdown:nth-child(2) {
    transform: translate(-50%, -50%) translate(var(--x-distance), 0);
}

.alignment-chart .custom-dropdown:nth-child(3) {
    transform: translate(-50%, -50%) translate(calc(.7 * var(--x-distance)), var(--y-distance));
}

.alignment-chart .custom-dropdown:nth-child(4) {
    transform: translate(-50%, -50%) translate(calc(-.7 * var(--x-distance)), var(--y-distance));
}

.alignment-chart .custom-dropdown:nth-child(5) {
    transform: translate(-50%, -50%) translate(calc(-1 * var(--x-distance)), 0);
}

/* Alignment chart arrows */
.alignment-arrow {
    pointer-events: none;
    z-index: 0;
    --arrow-color: #777;
}

.arrow-line {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--arrow-color);
    border-radius: 2px;
}

.arrow-head {
    position: absolute;
    top: -4px;
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 12px solid var(--arrow-color);

    /* position: absolute;
  top: -5px;
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--arrow-color);
  border-bottom: 2px solid var(--arrow-color);
  background: none;
  border-top: none;
  border-left: none;
  transform: rotate(-45deg); */
}

.inner .arrow-head.start {
    left: 40px;
}

.inner .arrow-head.end {
    right: 40px;
}

.edge .arrow-head.start {
    left: 48%;
}

.edge .arrow-head.end {
    display: none;
}

.alignment-arrow[data-alignment=""] .arrow-line {
    height: 1px;
}

.alignment-arrow[data-alignment] {
    --arrow-color: var(--alignment-color);
}


.settings-section {
    flex-direction: row;
    align-items: stretch;
}

.setting {
    display: flex;
    flex-direction: row;
    gap: 5px;
    justify-content: flex-start;
    align-items: center;
}

/* Toggle Switch Styles */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
    margin-right: 10px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ddd;
    border: 2px solid #555;
    transition: all 0.3s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: #555;
    transition: all 0.3s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: var(--correct);
    border-color: black;
}

input:checked + .toggle-slider:before {
    transform: translateX(26px);
    background-color: black;
}

.audio-section {
    justify-content: space-evenly;
}

.clear-section {
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.language-setting {
    margin: 5px 0;
}

.language-setting .custom-dropdown .dropdown-chip {
    background: white;
    color: black;
    border: 1px solid #555;
    font-size: 12pt;
    height: 30px;
}

.language-setting .dropdown-list .dropdown-chip {
    border: none;
}

.language-setting .custom-dropdown .dropdown-chip:hover {
    background: #f2f2f2;
}

#language-dropdown .dropdown-arrow {
    visibility: visible;
}

.save-text {
    font-size: 11pt;
}

.clear-button {
    margin-bottom: 4px;
    padding: 2px 6px;
    width: fit-content;
    border: 1px solid black;
    color: black;
    background: #f58080;
    font-size: 12pt;
    border-radius: 4px;
    transition: all 0.1s;
    cursor: pointer;
}

.credits-button {
    padding: 4px 12px;
    width: fit-content;
    border: 2px solid black;
    color: black;
    background: var(--blue);
    border-radius: 4px;
    transition: all 0.1s;
    cursor: pointer;
    font-weight: 500;
    align-self: center;
}

.credits-button:hover {
    background: #a7b4f9;
}

#debug-unlock-all {
    position: fixed;
    top: 10px;
    z-index: 10;
    right: 10px;
    background: aquamarine;
    display: none;
}

[data-language="ko"] .letter-wrapper {
    font-family: 'GangwonEducationSaeum';
    font-size: 22px;
}

[data-language="ko"] .dex-container {
    font-family: 'NeoDonggeunmo';
}

[data-language="ko"] #name {
    font-family: 'NeoDonggeunmo';
    font-size: 16pt;
}

[data-language="ko"] .subtitle {
    font-family: 'NeoDonggeunmo';
    font-size: 10pt;
}

[data-language="ko"] #description {
    font-style: normal;
}

[data-language="ko"] #align-page .title {
    font-family: 'NeoDonggeunmo';
    font-size: 24pt;
}

[data-language="ko"] .page-list-item {
    font-size: 9pt;
    padding-top: 6px;
}

[data-language="ko"] .dropdown-chip, [data-language="ko"] .page {
    font-size: 11pt;
}

[data-language="ko"] #notes-page {
    font-size: 10pt;
}

[data-language="ko"] .save-text {
    font-size: 8pt;
}

[data-language="ko"] .clear-section {
    flex: 2;
}

[data-language="ko"] .alignment-chart .custom-dropdown > .dropdown-chip .alignment-symbol {
    font-size: 16pt;
    margin-bottom: 0px;
}

[data-language="ko"] .page-list-item:hover,
[data-language="ko"] .page-list-item.current,
[data-language="ko"] .tab-nav:hover,
[data-language="ko"] .tab-nav.current {
  text-decoration: none;
}

/* Credits Modal */
.credits-drawer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 95%;
    background-color: white;
    border-top: 2px solid black;
    border-radius: 10px 10px 0 0;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
    z-index: 100;
    display: flex;
    flex-direction: column;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.2);
}

.credits-drawer.active {
    transform: translateY(0);
}

.drawer-close {
    position: absolute;
    top: 0px;
    right: 5px;
    background: none;
    border: none;
    font-size: 25px;
    cursor: pointer;
    color: black;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
    z-index: 1;
}

.drawer-close:hover {
    color: #666;
}

.drawer-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-family: "VT323", monospace;
    font-size: 14pt;
}

.drawer-body .label {
    font-size: 18pt;
    margin-top: 0;
}

.drawer-body ul {
    padding-left: 20px;
}