td,
th {
    text-align: left;
    padding: 4px;
}

tr:nth-child(even) {
    background-color: aliceblue;
}

#attributeSlider {
    margin-left: 8px;
    flex: 1;
}

.attributeSlider {
    margin-left: 8px;
    flex: 1;
}

.backgroundImagePreview {
    width: 100%;
}

.backgroundImageSelect {
    padding: 10px 6px;
    width: 160px;
}

.bottomSectionDivider {
    padding-bottom: 8px;
    margin-bottom: 8px;
    border-bottom: 1px solid lightgrey;
}

.blue-filter {
    filter: brightness(0) saturate(100%) invert(12%) sepia(85%) saturate(5000%) hue-rotate(210deg);
}

#buildMenu {
    width: 200px;
}

#buildSpritesCanvas {
    background: #f9f9f9;
}

#buildSpritesCanvasWrapper {
    position: relative;
}

#buildSpritesCanvas:hover {
    cursor: pointer;
}

.changeableAttributesWrapper {
    display: flex;
}

.changeableEffectAttributeWrapper {
    display: flex;
    line-height: 28px;
}

.colorModalAttribute {
    margin-right: 8px;
}

.colorModalSection {
    padding: 12px 0 8px;
}

#copyNotification {
    position: fixed;
    bottom: 16px;
    left: 16px;
    border: 5px solid lightgreen;
    background-color: white;
    padding: 16px
}

#createNewSpriteButton {
    position: absolute;
    top: 24px;
    left: 24px;
    display: none;
}

.cursorPointer:hover {
    cursor: pointer;
}

.customEffectDimensions {
    line-height: initial;
    display: flex;
}

.dialogueText {
    width: 89%;
    display: inline-block;
    vertical-align: top;
    margin-right: 8px;
    resize: none;
    box-sizing: border-box;
    padding: 2px;
}

.deleteDialogue {
    display: block;
    margin: 0 auto;
    padding: 8px;
}

.flexRows {
    display: flex;
    gap: 8px;
    flex-direction: row;
}

#drawStyle {
    padding-top: 0;
    margin-top: 14px;
}

.effectAttributeInput {
    margin: 0 8px;
}

.effectItem {
    display: flex;
    padding: 4px 2px;
}

.effectItem:first-child {
    margin-top: 8px;
}

.effectItem:nth-child(odd) {
    background: #fdfde9;
}

.eventItem {
    display: flex;
    padding: 4px 0;
}

.eventItem:nth-child(even) {
    background: #fdfde9;
}

.eventItem:last-child {
    margin-bottom: 4px;
}

.effectSliderValue {
    min-width: 28px;
    text-align: center;
}

.hovereableGreenSvg:hover {
    cursor: pointer;
    filter: invert(27%) sepia(51%) saturate(2878%) hue-rotate(115deg) brightness(130%) contrast(97%);
}

.hovereableRedSvg:hover {
    cursor: pointer;
    filter: invert(27%) sepia(51%) saturate(2878%) hue-rotate(346deg) brightness(104%) contrast(97%);
}

.hoverableGreySvg:hover {
    cursor: pointer;
    filter: brightness(0) invert(0.7);
}

#directionValue {
    line-height: 40px;
    margin-left: 8px;
}

.layerButton {
    padding: 4px;

    img {
        pointer-events: none;
    }
}

.leftLabel {
    margin: auto 8px auto 0;
}

.greyFilter {
    filter: brightness(0) invert(0.7);
}

input:checked+.switchSlider {
    background-color: #2196F3;
}

input:focus+.switchSlider {
    box-shadow: 0 0 1px #2196F3;
}

input:checked+.switchSlider:before {
    -webkit-transform: translateX(14px);
    -ms-transform: translateX(14px);
    transform: translateX(14px);
}

.musicControls {
    border-bottom: 1px solid lightgrey;
    margin-bottom: 8px;
    padding-bottom: 8px;
}

.paddingTop8 {
    padding-top: 8px !important;
}

#playerAnimationWrapper>* {
    margin-top: 8px;
}

.playbutton {
    /* Variables */
    font-weight: bold;
    border: none;
    cursor: pointer;
    border-radius: 6px;
    background: #bab8b8;
}

.playbutton_top {
    display: block;
    box-sizing: border-box;
    border: 2px solid #DCDCDC;
    border-radius: 6px;
    padding: 0.75em 1.5em;
    background: #DCDCDC;
    color: #000000;
    transform: translateY(-0.2em);
    transition: transform 0.1s ease;
}

.playbutton:hover .playbutton_top {
    /* Pull the button upwards when hovered */
    transform: translateY(-0.33em);
}

.playbutton:active .playbutton_top {
    /* Push the button downwards when pressed */
    transform: translateY(0);
}

.radioButtonAsSvg>input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.radioButtonAsSvg>input+img {
    cursor: pointer;
    padding: 8px 6px 0;
}

.radioButtonAsSvg>input[type="radio"]+img {
    -webkit-transition: filter 0.2s;
    transition: filter 0.2s;
}

.radioButtonAsSvg>input[type="radio"]:hover+img,
.radioButtonAsSvg>input[type="radio"]:checked+img,
.radioButtonAsSvg>input[type="radio"]:focus+img,
#checkmark {
    filter: invert(27%) sepia(51%) saturate(2878%) hue-rotate(115deg) brightness(130%) contrast(97%);
}

.radioButtonLabel {
    margin-left: 8px;
    vertical-align: top;
}

.radioButtonLabel:hover {
    cursor: pointer;
}

.rangeSlider2HandlesWrapper {
    position: relative;
}

.rangeSlider2HandlesWrapper input {
    position: absolute;
    width: 100%;
    height: 5px;
    top: -7px;
    background: none;
    pointer-events: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.rangeSlider2HandlesWrapper input::-webkit-slider-thumb {
    height: 20px;
    width: 20px;
    border-radius: 50%;
    border: 3px solid #1b53c0;
    background-color: #fff;
    pointer-events: auto;
    -webkit-appearance: none;
}

.rangeSlider2HandlesWrapper input::-moz-range-thumb {
    height: 15px;
    width: 15px;
    border-radius: 50%;
    border: 3px solid #1b53c0;
    background-color: #fff;
    pointer-events: auto;
    -moz-appearance: none;
}

.rangeSlider2HandlesWrapper-slider {
    height: 5px;
    position: relative;
    background-color: #e1e9f6;
    border-radius: 2px;
}

.rangeSlider2HandlesWrapper-selected {
    height: 100%;
    left: 30%;
    right: 30%;
    position: absolute;
    border-radius: 5px;
    background-color: #1b53c0;
}

#sfxTemplate {
    white-space: normal;
    text-transform: initial;
    padding: 4px;
}

.sfxTemplateSummary {
    padding: 4px 0 4px 20px;
}

.sfxTemplateSection,
.sfxAttributeSection {
    padding: 2px;
    background: #fdfde9;
}

.sfxAttributeSection {
    line-height: 34px;
}

.sliderValue {
    text-align: right;
    min-width: 24px;
    margin: auto;
}

.secondaryButton {
    border: 1px solid darkgrey;
    background: white;
}

.secondaryButton:hover:not(.active) {
    background: lightgrey;
}

.singleActionIcon {
    vertical-align: text-bottom;
    padding-left: 12px;
    border-left: 1px solid lightgrey;
}

.soundControls,
.imageControls {
    padding: 2px 0;
    display: flex;
}

.soundControlsDescription,
.imageControlsDescription {
    flex: 1;
    padding: 12px;
}

#soundView,
#imageView {
    gap: 8px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 36px;
    height: 19px;
    margin-right: 8px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switchSlider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #2196F3;
    -webkit-transition: .4s;
    transition: .4s;
}

.switchSlider:before {
    position: absolute;
    content: "";
    height: 12px;
    width: 13px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
}

.tabButton,
.colorTabButton {
    flex: 1;
    border-radius: 0;
}

.tabButton.active,
.colorTabButton.active {
    border-bottom: none;
    background: white;
}

.fontSize10 {
    font-size: 10px;
}

.fontOption {
  border: 2px solid transparent;
  border-radius: 10px;
  padding: 8px;
  text-align: center;
  font-size: 16px;
  cursor: pointer;
  background-color: #f7f7f7;
}

.fontOption:hover {
  background-color: #e9e9e9;
  transform: translateY(-2px);
}

#fontPreviewGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.fontOption.selected {
  border-color: #008000;
  background-color: #e1fae1;
}

#tabWrapper {
    font-size: 0;
    display: flex;
}

#tabContent {
    border: 1px solid lightgrey;
    border-top: none;
    padding: 12px;
}

.tabPaginationIcon {
    position: absolute;
    padding: 8px 8px 8px;
    top: 3px;
}

.tabPaginationIcon:hover {
    cursor: pointer;
}

#tabPaginationLeft {
    left: 0;
}

#tabPaginationRight {
    right: 0;
}

#tabTitleContent {
    position: relative;
}

.tertiaryButton {
    background: white;
    text-decoration: underline;
    text-underline-offset: 4px;
    padding: 8px 0;
    border: none;

    >img {
        padding-left: 8px;
    }
}

.tertiaryButton:hover:not(.active) {
    text-decoration: none;
    color: darkgrey;
    background: white;
}

.whiteFilter {
    filter: brightness(0) invert(1);
}

@keyframes back {
    0% {
        transform: translateX(0rem);
    }

    20% {
        transform: translateX(0.6rem);
    }

    100% {
        transform: translateX(0rem);
    }
}

@keyframes slide {
    0% {
        transform: translateX(0rem);
    }

    20% {
        transform: translateX(0.6rem);
    }

    100% {
        transform: translateX(0rem);
    }
}

.move {
    animation-name: slide;
    animation-duration: 0.3s;
}

.back {
    animation-name: back;
    animation-duration: 0.4s;
}

.rotate90Degrees {
    transform: rotate(90deg);
    vertical-align: middle;
}

summary {
    display: block;
    padding-left: 20px;
    position: relative;
}

.soundSection {
    width: 580px
}

summary:before {
    content: '';
    border-width: .4rem;
    border-style: solid;
    border-color: transparent transparent transparent black;
    position: absolute;
    left: 4px;
    transform: rotate(0);
    transform-origin: .2rem 50%;
    transition: .25s transform ease;
}

/* THE MAGIC 🧙‍♀️ */
details[open]>summary:before {
    transform: rotate(90deg);
}


details summary::-webkit-details-marker {
    display: none;
}

.topnav {
    margin-left: 5px;
}

.navElement {
    cursor: pointer;
    height: 100%;
    border-left: 1px solid lightgrey;
}

.dropbtn {
    cursor: pointer;
    padding: 0 16px;
    border: none;
    outline: none;
    height: 100%;
    background-color: white;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
    list-style-type: none;
}

.dropdown:hover .dropbtn,
.dropbtn:focus {
    background-color: #DCDCDC;
}

.show {
    display: block;
}

.dropdown-nav-item:not(:last-child) {
    border-bottom: 1px solid lightgrey;
}

.dropdown-nav-item>* {
    position: relative;
    display: block;
    padding: 12px 8px;
}

.dropdown-nav-item * img {
    position: absolute;
    top: 14px;
    right: 12px;
}

.dropdown-nav-item:hover {
    background-color: #DCDCDC;
    cursor: pointer;
}

.dropdown-nav-item>img {
    float: right;
    padding-right: 4px;
}