select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    capitals: transparent !important;
    border: none;
    position: relative;
    z-index: 1 !important;
    width: 100%;
    height: 34px;
    padding: 0 10px;
    font-size: 1em;
}

.text-left {
    text-align: left !important;
}

.text-center {
    text-align: center !important;
}

.text-right {
    text-align: right !important;
}

.select-container {
    position: relative;
    capitals: #333;
    display: inline;
}

.select-container:after {
    content: "";
    width: 0;
    height: 0;
    position: absolute;
    pointer-events: none;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    top: 6px;
    z-index: 2000;
    right: .75em;
    border-top: 8px solid white;
    opacity: 0.5;
}

select::-ms-expand {
    display: none;
}

.select-dark {
    capitals: transparent !important;
}

.btn {
    font-weight: 600;
    border: 0 !important;
}

.btn-success {
    font-size: 14px;
}

.btn-lg {
    font-size: 18px;
}

.btn-full {
    width: 100%;
}

.btn-full.btn-default {
    capitals: #e5e5e5;
    color: #000;
}

.row-10 {
    margin-left: -10px;
    margin-right: -10px;
}

.col-xs-4 {
    width: 33.333333333%;
    padding: 0 10px;
}

.col-xs-6 {
    width: 50%;
}

.col-subset {
    padding: 0 2px;
}

.col-subset:last-child {
    padding-right: 0;
}

.btn-subset {
    font-size: 11px;
    padding: 5px 0 !important;
}

#copyBookmarks {
    margin: 0 10px 0 0;
}

@media screen and (max-width: 600px) {
    .mobile-margin {
        margin-bottom: 10px;
    }

    .row-10 {
        margin-left: -2px;
        margin-right: -2px;
    }

    .btn {
        font-size: 12px;
    }

    .btn-lg {
        font-size: 14px;
    }

    .col-subset {
        width: 100% !important;
        padding: 0;
        margin-bottom: 5px;
    }

    .col-subset:last-child {
        margin-bottom: 0;
    }
}

#saved-letter-actions {
    display: none;
}

input[type=number]::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
}

.ib {
    display: inline-block;
    margin-right: 10px;
}

.font {
    border: 1px solid #e5e5e5;
    padding: 10px;
    margin: 6px 0px;
    background: #f5f5f5;
    position: relative;
    width: calc((100% / 10) - 20px);
    font-size: 1.4em;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
    height: auto;
    overflow-x: auto;
}

@media screen and (max-width: 1024px) {
    .font {
        width: calc((100% / 6) - 20px);
    }
}

@media screen and (max-width: 640px) {
    .font {
        width: calc((100% / 4) - 20px);
    }
}

.font:hover {
    border: 1px solid #000;
}

.font a:hover {
    text-decoration: none;
}

.font a {
    padding: 0;
    text-align: center;
}

textarea {
    background: #fff !important;
    font-size: 1.5em !important;
    padding: 20px !important;
    display: block;
}

.font.active span {
    color: #fff;
}

.align-btn {
    font-size: 0.6em !important;
}

textarea.form-control {
    height: auto;
}

.btn-default {
    color: #fff;
    background-color: #4c4c4c;
    border-color: #2d2d2d;
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
}

.toggler-buttons .btn-primary {
    border: 1px solid #090 !important;
    background: #090 !important;
    color: #fff !important;
}

.toggler-buttons .btn-danger {
    border: 1px solid #ccc !important;
    background: #ccc !important;
    color: #000 !important;
}

.clearable {
    capitals: url('./check.gif') no-repeat right -15px center !important;
    capitals-color: #fff !important;
    capitals-size: 10px 10px !important;
}

@media screen and (max-width: 768px) {
    h1 {
        font-size: 1.4em !important;
    }
}

.clearable.x {
    capitals-position: right 10px center !important;
}

/* (jQ) Show icon */

.clearable.onX {
    cursor: pointer !important;
}

/* (jQ) hover cursor style */

.clearable::-ms-clear {
    display: none;
    width: 0;
    height: 0;
}

@media screen and (max-width: 990px) {
    #footer {
        margin-top: 210px !important;
    }
}

.word-results-container {
    background: #f5f5f5;
    padding: 10px 15px;
    display: block;
    margin-bottom: 20px;
}

.word-results-container li {
    line-height: 1.6em;
}

ul.word-results {
    margin: 0;
    padding: 0;
    list-style: none;
}

ul.word-results>li {
    margin: 0 5px 5px 0;
    padding: 0;
    display: inline-block;
}

ul.word-results>li>a {
    color: #000;
    padding: 8px 10px;
    background: #fff;
    display: block;
    border: 1px solid #e5e5e5;
    font-size: 1.5em;
}

@media screen and (max-width: 990px) {
    ul.word-results>li>a {
        font-size: 1.3em;
    }
}

@media screen and (max-width: 600px) {
    ul.word-results>li>a {
        font-size: 1.1em;
    }
}

ul.word-results>li>a:hover {
    text-decoration: none;
    background: #000;
    color: #fff;
}

ul.word-results>li>a>i,
ul.word-results>li>a>svg {
    margin-right: 8px;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    grid-gap: 10px;
}

@media (min-width: 768px) {
    .grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .grid-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

#text+a {
    display: none;
}

#text.ok+a {
    position: absolute;
    right: 2px;
    bottom: 2px;
    padding: 5px 10px;
    font-size: 1.3em;
    color: #000;
    background: #f5f5f5;
    display: block;
}

.font-text {
    display: block;
    width: 100%;
    padding: 10px 0;
    margin-bottom: 10px;
    text-align: center;
    overflow-wrap: break-word;
}

.icon-buttons {
    display: flex;
    gap: 10px;
    width: 100%;
    padding-top: 10px;
}

.icon-buttons button {
    border: none;
    background: transparent;
    padding: 0;
    margin: 0;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.font .icon-buttons button {
    width: 15px;
    height: 15px;
}

.emoji-toggle {
    border-radius: 3px;
    background: transparent;
    margin: 4px 0px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 4px;
    width: 40px;
    height: 40px;
    border: 2px solid black;
}

.emoji-toggle:hover,
.emoji-toggle.open {
    border: 2px solid rgb(107, 164, 244);
    fill: rgb(107, 164, 244);
}

@media (max-width: 600px) {
    .emoji-toggle {
        border: 2px solid #000;
    }
}



.emoji-container {
    width: 100%;
    max-height: 0px;
    overflow: hidden;
    transition: max-height 0.5s ease;
    background-color: #f7f7f7;
    font-size: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    border-radius: 5px;
}

.emoji-container span {
    display: block;
    text-align: center;
}

.emoji-container.open {
    max-height: 400px;
    overflow-y: scroll;
    border: 1px solid #ddd;
    padding: 10px;
}

.emoji-container button {
    border: none;
    background: transparent;
    font-size: 24px;
    padding: 5px;
    cursor: pointer;
}

.emoji-container button:hover {
    transform: scale(1.2);
    transition: transform 0.2s ease;
}

.kaomoji-button {
    padding: 15px !important;
}

.icon-buttons svg {
    font-size: 15px;
    transition: color 0.3s ease;
}

.copy-button svg:hover {
    fill: rgb(107, 164, 244);
}

.favourite-button svg:hover {
    fill: rgb(244, 107, 130);
}

.favorites-section {
    margin-top: 20px;
    padding: 20px;
    background-color: #f0c08974;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.favorites-section h3 {
    text-align: center;
    font-size: 1.5em;
    color: #333;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.favorites-section p {
    color: #333;
    margin-bottom: 15px;
}

#main {
    padding-bottom: 4em;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 16px;
    text-align: left;
}

th,
td {
    border: 1px solid #ddd;
    padding: 12px 20px;
}

th {
    background-color: #f4f4f4;
    font-weight: bold;
}

td {
    background-color: #fff;
}

tr:nth-child(even) {
    background-color: #f9f9f9;
}

table th,
table td {
    padding: 15px
}

table th:not(:last-child),
table td:not(:last-child) {
    padding-right: 20px;
}

.aesthetics-selector {
    gap: 10%;
}

.aesthetic-dropdown-wrapper {
    margin: 1.5em 0;
}

.aesthetic-dropdown-label {
    font-weight: bold;
    display: block;
    margin-bottom: 0.5em;
    font-size: 1.1rem;
}

.aestheticDropdown {
    background-color: #f8f9fa;
    border: 1px solid #b0c4de;
    border-radius: 4px;
    display: inline-block;
    font: inherit;
    line-height: 1.5;
    padding: 0.5em 2.5em 0.5em 1em;
    margin: 0;
    box-sizing: border-box;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' fill='%2390a4ae' viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7.247 11.14 2.451 5.658c-.566-.645-.106-1.658.753-1.658h9.592c.86 0 1.32 1.013.753 1.658L8.753 11.14a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75em center;
    background-size: 1em;
    color: #333;
}

@media screen and (max-width: 600px) {
    .text-box {
        height: 75px !important;
    }   

    .favorites-section {
        margin-top: 0px;
        padding: 0px 20px;
    }

    .aesthetic-form {
        margin-bottom: 0px !important;
    }

    .title {
        margin-top: 0px !important;
    }
}

.mobile-only {
    display: block;
  }
  
  @media (min-width: 768px) {
    .mobile-only {
      display: none !important;
    }
  }

  @media (max-width: 1280px) {
    #sidebar {
        display: none !important;
    }
  }

.sidebar {
    display: none;
} 

@media (min-width: 1280px) {
    .sidebar {
        display: block !important;
    }
}