@import url('colors.css');
@import url('sparkles.css');

html {
    height: 100%;
}

body {
    font-family: 'Open Sans', sans-serif;
    background: var(--background-primary);
    color: var(--foreground-primary);
    margin: 0;
    padding: 20px;
    font-size: 18px;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--foreground-primary);
}

#chordNotes > span.note > sup, #scaleNotes > span.note > sup, #keyChords > span.note > sup {
    font-size: 0.75rem;
    padding-left: 2px;
}


.sunburst-button {
    flex: auto;
    background: var(--background-primary);
    border: 2px solid var(--foreground-primary);
    color: var(--foreground-primary);
    padding: 16px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    transition: all 0.3s ease-in-out;
    cursor: pointer;
    border-radius: 15px;
}

.sunburst-button.selected {
    transition: all 0.3s ease-in-out;
    background: var(--foreground-primary);
    border: 2px solid var(--foreground-primary);
    color: var(--background-primary);
}

.sunburst-button.disabled {
    pointer-events: none;
    opacity: 0.5;
}

.sunburst-button:hover {
    transform: scale(1.15);
}

.sunburst-table {
    overflow-y: hidden;
    display: flex;
    flex-direction: column;
    padding: 20px 0;
}

.sunburst-table .row {
    display: flex;
}

#chordNotes, #scaleNotes, #keyChords {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.notes-container {
    padding-top: 10px;
}

#chordsContainer, #scalesContainer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
}

.note-interval {
    flex: 1;
    background: var(--background-primary);
    border: 2px solid;
    margin: 2px;
    border-radius: 15px;
    color: var(--foreground-primary);
    font-size: 22px;
    padding: 12px;
    transition: all 0.3s ease-in-out;
    text-align: center;
}

.sunburst-table .cell {
    flex: 1;
    padding: 12px;
    text-align: center;
    font-size: 22px;
    background: var(--background-primary);
    border: 2px solid var(--foreground-primary);
    margin: 2px;
    width: 30px;
    min-width: 30px;
    max-width: 30px;
    border-radius: 15px;
    color: var(--foreground-primary);
    transition: all 0.3s ease-in-out;
}

.sunburst-table .cell:hover, .sunburst-table .cell.active:hover {
    transform: scale(1.05);
    transition: all 0.3s ease-in-out;
    cursor: pointer;
}

.sunburst-table:not(.rtl) .cell:first-child {
    font-weight: bold;
    border-right: 12px solid var(--foreground-primary) !important;
}

.sunburst-table:not(.ltr) .cell:last-child {
    font-weight: bold;
    border-left: 12px solid var(--foreground-primary) !important;
}

.sunburst-table:not(.rtl) .cell.no-border {
    border-color: var(--background-primary) !important;
}

.sunburst-table:not(.ltr) .cell.no-border {
    border-color: var(--background-primary) !important;
}

.sunburst-table .cell.active {
    --animation-order: 0;
    font-weight: bold;
    transition: background 0.3s ease-in-out, color 0.3s ease-in-out, border 0.3s ease-in-out;
    animation: sparkle-0 1.5s infinite;
    animation-delay: calc(var(--animation-order) * 0.1s);
    animation-duration: calc(1.5s + var(--animation-order) * 0.5s);
    z-index: 1000;
    transform: scale(1.05);
}

.floating-button {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: var(--foreground-primary);
    color: var(--background-primary);
    padding: 10px 10px;
    height: 40px;
    width: 40px;
    cursor: pointer;
    font-size: 16px;
    z-index: 1000;
    border-radius: 20px;
    border: none;
}

select {
    -webkit-appearance: none; /* Removes default styling in Safari */
    -moz-appearance: none; /* Ensures compatibility with Firefox */
    appearance: none; /* Standard property */
    background: var(--background-primary);
    color: var(--foreground-primary);
    border: 2px solid var(--foreground-primary);
    padding: 16px;
    font-weight: bold;
    cursor: pointer;
    margin: 10px;
    border-radius: 15px;
    text-align: center;
}

select::-ms-expand {
    display: none; /* Hides the dropdown arrow in IE */
}

select::after {
    content: none; /* Ensures no arrow is displayed */
}

#container {
    width: 100%;
    margin: 0 auto;
}

.controls {
    display: flex;
    justify-content: space-between;
}

.controls .chords,
.controls .scales {
    flex: 1;
    margin: 0 10px;
}

.chords > span, .scales > span {
    display: inline-block;
    margin: 0 5px;
    padding: 10px 0 20px 0;
}
