* {
    padding: 0;
    margin: 0;
    font-size: 0;
    font-family: monospace, sans-serif;
}

html, body {
    font-size: 20px;
}

body {
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    background-color: #222;
}

div.area {
    display: flex;
    gap: 1rem;
}

div.area button:has(img) {
    min-width: unset;
    padding: 1rem;
}

button {
    font-size: 1rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: 1rem;
    border: 1px solid #fff;
    background-color: transparent;
    color: #fff;
    min-width: 10rem;
}

button[disabled] {
    color: gray;
    border-color: gray;
    pointer-events: none;
}

button[disabled] img {
    filter: invert(.4);
}

button img {
    height: 1rem;
    width: 1rem;
    scale: 1.75;
    filter: invert(1);
}

button:hover {
    border-color: #222;
    background-color: #fff;
    color: #222;
    cursor: pointer;
}

button:hover img {
    filter: none;
}

button#remove-repeat {
    color: gray;
    padding: 0;
    border: unset;
    font-size: .5rem;
    position: fixed;
    bottom: .5rem;
    right: .5rem;
    min-width: unset;
}

#modal,
#loader {
    position: fixed;
    inset: 0;
    background-color: rgba(34, 34, 34, .95);
    justify-content: center;
    align-items: center;
}

#modal:not(.open),
#loader:not(.open) {
    display: none;
}

#modal.open,
#loader.open {
    display: flex;
}

#loader span {
    border: 1rem solid transparent;
    border-top: 1rem solid #fff;
    border-radius: 50%;
    width: 6rem;
    height: 6rem;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#modal {
    position: fixed;
    inset: 0;
}

#modal div {
    padding: 1rem;
    max-width: 80vw;
    max-height: 80vh;
    min-width: 15rem;
    background-color: #222;
    border: 1px solid #fff;
    border-radius: 1rem;
    overflow-y: auto;
}

#modal div p,
#modal div p b {
    font-size: .8rem;
    color: #fff;
    margin-bottom: .5rem;
}

#modal div p::first-letter {
    text-transform: uppercase;
}

#modal div button {
    width: 100%;
    margin-top: .5rem;
}
