#wpe {
    text-align: center;
    position: relative;
}

#wpe #form * {
    font-size: 22px;
}

#wpe #form {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#wpe #flex-container {
    display: block;
}

#wpe #form table {
    border-collapse: separate;
    border-spacing: 10px;
}

#wpe #form table tbody tr td:first-child {
    text-align: right;
}

#wpe #form table tbody tr td:last-child {
    text-align: left;
}

#wpe #form table tbody tr td input:not(input[type="color"]) {
    padding: .5rem;
    width: 100%;
    max-width: 300px;
}

#wpe #background-colors {
    display: flex;
    gap: 10px;
}

#wpe .background-color-button {
    width: 40px;
    height: 40px;
    padding: 3px;
    border: 1px solid rgb(138, 138, 138);
    border-radius: 3px;
    cursor: pointer;
}

#wpe .background-color-button * {
    pointer-events: none;
}

#wpe .background-color-button.active {
    border: 2px solid var(--orange);
}

#wpe .background-color {
    width: 100%;
    height: 100%;
    border: 1px solid rgb(138, 138, 138);
}

#wpe #text-color {
    height: 40px;
    width: 80px;
}

#wpe #canvas {
    width: 100%;
    max-width: 1200px;
    border: 1px solid #CCCCCC;
    margin-top: 1rem;
}

#toast {
    display: block;
    position: fixed;
    font-size: 20px;
    z-index: 100;
    bottom: -80px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 10px;
    background-color: #FFFFFF;
    border: 2px solid #FFFFFF;
    width: 0;
    height: 0;
    opacity: 0;
}

#toast.show {
    width: auto;
    height: auto;
    opacity: 1;
    transform: translateX(-50%);
    bottom: 20px;
    transition: all 0.25s ease-in-out;
}

#toast span {
    display: block;
    border-radius: 10px;
    padding: 1rem 1.25rem;
    background-color: #FFFFFF;
    font-style: italic;
}

#toast.success span {
    border: 4px solid green;
}

#toast.error span {
    border: 4px solid red;
}

#download {
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    color: white;
    font-size: 1rem;
    background-color: var(--orange);
    font-weight: bold;
    margin: 1rem;
}

#download[disabled] {
    background-color: gray;
}

#wallpapers {
    margin-top: 1.5rem;
}

#wallpapers h2 {
    font-size: 24px;
}

#wallpaper-thumbs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
}

#wallpaper-thumbs img {
    display: block;
    cursor: pointer;
    padding: 3px;
    border: 3px solid transparent;
    border-radius: 15px;
}

#wallpaper-thumbs img.active {
    border: 5px solid var(--orange);
}

section.hero-banner {
    margin-bottom: 0 !important;
}

@media only screen and (min-width: 1200px) {
    #wpe #flex-container {
        display: flex;
    }

    #wpe #form {
        width: 30%;
    }

    #wpe #canvas {
        width: 70%;
    }
}