@font-face {
    font-family: 'Roboto';
    src: url('css/Roboto-Regular.ttf') format('truetype');
    font-weight: 100 900;
    font-display: swap;
    font-style: normal;
}
  
  @font-face {
    font-family: 'Roboto-bold';
    src: url('css/Roboto-Bold.ttf') format('truetype');
    font-weight: 100 900;
    font-display: swap;
    font-style: normal;
}
  
.roboto {
    font-family: 'Roboto', sans-serif;
}

.roboto-bold {
    font-family: 'Roboto-bold', sans-serif !important;
}

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;
}

.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 {
    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;
    border-radius: 5px;
}

@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;
    }
}

h1 {
    margin-top: 5px !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;
}

.grid-container.grid-view {
    grid-template-columns: repeat(2, 1fr);
}

.grid-container.list-view {
    grid-template-columns: 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;
    font-size: 40px;
    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;
}

.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);
}

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

.favorites-section {
    margin-top: 20px;
    padding: 20px;
    background-color: #FFEAC1;
    border: 1px solid #F77D0F; 
    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;
}

body {
    color: #424549 !important;
}

.btn-align {
    background-color: #FFEAC1 !important;
    color: whitesmoke !important;
}

.font-name {
    justify-content: left !important;
    font-size: 10px;
    color: slategrey;
}

textarea {
    resize: none;
}

.font-size-uniform {
    font-size: 68px;
}

.options-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, auto);
    background-color: white;
    border: 1px solid #cbd5e1;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 0.75rem;
    height: auto;
    width: 100%;
    padding: 1.25rem;
    gap: 1rem;
}

@media (min-width: 640px) {
    .options-container {
        display: flex;
        flex-direction: row;
        height: 13rem;
        gap: 0;
    }
}


.centered-column {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    width: 100%;
    max-width: 25%;
    gap: 0.5rem;
    height: 100px;
}

@media (max-width: 640px) {
    .centered-column {
        width: 100%;
        height: 100%;
        max-width: 100%;
    }
}


.centered-column label {
    margin: 0 0 0.5rem 0;
}

.centered-column input[type="color"] {
    width: 40px;
    height: 40px;
    border: none;
    cursor: pointer;
    padding: 0;
}

#fontSizeSlider {
    width: 100%;
    height: 8px;
    background: #ddd;
    outline: none;
    border-radius: 5px;
}


#fontSizeSlider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #F77D0F;
    border-radius: 50%;
    cursor: pointer;
}

#fontSizeSlider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #F77D0F;
    border-radius: 50%;
    cursor: pointer;
}

#fontSizeSlider::-ms-thumb {
    width: 20px;
    height: 20px;
    background: #F77D0F;
    border-radius: 50%;
    cursor: pointer;
}

.display-buttons {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.display-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid #7AC4A8;
    border-radius: 5px;
    background-color: #F4FFF0;
    cursor: pointer;
    transition: background-color 0.3s, border-color 0.3s;
}

.display-button svg path {
    stroke: #017F70;
    transition: stroke 0.3s;
}

.display-button:hover {
    background-color: #7AC4A8;
}

.display-button.selected {
    border-color: #017F70;
    background-color: #017F70;
}

.display-button.selected svg path {
    stroke: #FFFFFF; 
}

@media (max-width: 768px) { 
    #grid-display {
        display: none;
    }
}





