body {
    transition: background-image 0.5s ease-in-out;
    margin: 0;
    padding: 0;
    text-align: center;
    background-image: none;
    background-size: cover;
    display: flex;
    justify-content: center;
    color: var(--text);
    font-family: 'Roboto', sans-serif;
    overflow: hidden;
}

.background-image {
    transition: background-image 0.5s ease-in-out;
    margin: 0;
    padding: 0;
    text-align: center;
    background-image: none;
    background-size: cover;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.9;
}

.control-panel {
    position: absolute;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 9998;
    left: 1rem;
}

.control-panel-top { 
    top: 1rem;
}

.control-panel-bottom {
    bottom: 1rem;
}

.control-panel > button, .control-panel > a {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text);
    width: 2rem;
    height: 2rem;
    font-size: 2rem;
    padding: 0.1rem;

    display: flex;
    align-items: center;
    justify-content: center;
}

.control-panel > button > img, .control-panel > a > img {
    width: 100%;
    height: 100%;
}

.modal {
    background-color: rgba(255, 255, 255, 0.2);
    border: solid 0.1rem rgba(0, 0, 0, 0.5);
    border-radius: var(--radius);
    height: 70%;
    min-width: 50%;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
}

.modal-header > button {
    background-color: transparent;
    border: none;
    color: var(--text);
    cursor: pointer;
    font-size: 1rem;
}

.modal-header > button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.modal-content {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    height: 100%;
}

.modal-widget-title {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.modal-widget-title > input {
    flex: 1;
    padding: 0.5rem;
    border: none;
    border-radius: var(--radius);
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text);
}

.modal-widget-content-options {
    display: grid;
    width: 100%;
    padding: 1rem;
    max-height: 100%;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
    overflow-y: auto;
    padding: 0rem;
    margin-bottom: 2rem;
}

.modal-widget-content-options::-webkit-scrollbar {
    display: none;
}

.modal-widget-content-option {
    width: 100%;
    min-height: 20vh;
    background-color: rgba(255, 255, 255, 0.1);
    border: solid 0.1rem rgba(0, 0, 0, 0.5);
    border-radius: var(--radius);
    padding: 0.5rem;
    cursor: pointer;
}

.modal-widget-colors {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    justify-content: space-between;
    align-items: center;
}

.modal-widget-color {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    width: 100%;
    height: 100%;
}

.modal-widget-color > input {
    border: none;
    border-radius: 50%;
    padding: 0rem;
    background: none;
    color: var(--text);
    width: 1.25rem;
    height: 1.25rem;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.modal-widget-color > input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
    border-radius: 50%;
}
.modal-widget-color > input[type="color"]::-webkit-color-swatch {
    border: none;
    border-radius: 50%;
}

.slider {
    -webkit-appearance: none;
    appearance: none;
    width: 4rem;
    height: 1.5rem;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.1);
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 1.5rem;
    height: 1.5rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    border: none;
    cursor: pointer;
}

.slider::-moz-range-thumb {
    width: 1.5rem;
    height: 1.5rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    border: none;
    cursor: pointer;
}

.slider:focus {
  outline: none;
}

.background-option {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    border-radius: var(--radius);
    cursor: pointer;
}

.background-modal-custom-background {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
}

.background-modal-custom-background > input {
    width: 65%;
    padding: 0.5rem;
    border: none;
    border-radius: var(--radius);
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text);
}

.import-export-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    height: 100%;
}

.import-export-options > textarea {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: var(--radius);
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text);
    resize: none;
    padding: 0.5rem;
    scrollbar-width: 0;
}

.import-export-options > textarea::-webkit-scrollbar {
    display: none;
}

.import-export-options > textarea:focus {
    outline: none;
}

.import-export-options > button {
    width: 15%;
    padding: 0.5rem;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
}

.import-export-button-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: auto;
}

.import-export-button-container > button, .import-export-button-container > div > button {

    height: 2rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;

}

button > img {
    height: 100%;
    width: 100%;
}

.background-modal-keep-background {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.background-detail-options {
    display: flex;
    flex-direction: row;
    width: 100%;
    gap: 2rem;
}

.background-detail-options > div {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}