#custom_page_wrap {
    @media (min-width: 1200px){
        display: grid;
        grid-template-columns: 720px auto;
        gap: 12px;
        margin: 0 auto 12px;
        max-width: var(--max-width);
    }
}

#custom_wrap {
    display: flex;
    align-items: center;
    gap: 24px;
    border-radius: 12px;
    background-color: var(--background);
    padding: 1rem;
    color: var(--on-surface);
    font-size: 1rem;
    line-height: 150%;
    @media (max-width: 800px) {
        flex-wrap: wrap;
    }
    #test {
        border: none;
        border-radius: 6px;
        width: 250px;
        height: 160px;
    }
}
#custom_input {
    display: flex;
    flex-direction: column;
    gap: 24px;

    label {
        display: block;
    }
}

#switch_container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    
    label {
        width: 4.5rem;
    }
}
.switch_box {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.switch {
    position: relative;
    width: 3rem !important;
    height: 1.5rem;

    input {
        opacity: 0;
        width: 0;
        height: 0;
    }
    .slider {
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        cursor: pointer;
        background-color: var(--surface);
        -webkit-transition: .4s;
        transition: .4s;

        &:before {
            position: absolute;
            bottom: 0.25rem;
            left: 0.25rem;
            background-color: white;
            width: 1rem;
            height: 1rem;
            content: "";
            -webkit-transition: .4s;
            transition: .4s;
        }
    }
    input:checked + .slider {
        background-color: var(--primary);

        &:before {
           -webkit-transform: translateX(1.5rem);
           -ms-transform: translateX(1.5rem);
           transform: translateX(1.5rem);
        }
    }
    input:focus + .slider {
        box-shadow: 0 0 1px var(--primary-container);
    }
    .slider.round {
        border-radius: 0.75rem;

        &:before {
            border-radius: 50%;
        }
    }
}

#presets {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;

    label {
        padding: 4px 0;
        width: 5rem;
    }
    .preset-button {
        transition: background-color 0.5s ease, color 0.5s ease;
        border-radius: 6px;
        background-color: rgba(132, 214, 194, 0.2);
        padding: 4px 12px;
    }
    .now_preset {
        background-color: var(--primary);
        color: var(--on-primary);
    }
}
#color_form {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;

    label {
        width: 6rem;
    }
    input {
        border: none;
        background-color: var(--surface-container);
        width: 3rem;
        height: 1.5rem;
    }
}

.clipboard_link {
    display: flex;
    width: 100%;
    line-height: 150%;

    input {
        border: none;
        border-radius: 6px 0 0 6px;
        background-color: var(--secondary-container);
        padding: 4px 12px;
        width: calc(100% - 8px - 1.5rem);
        color: var(--on-secondary-container);
        font-size: 1rem;
    }
    .material-symbols-rounded {
        border-radius: 0 6px 6px 0;
        background-color: var(--secondary);
        padding: calc(4px + 0.25rem);
        color: var(--on-secondary);
        font-size: 1rem;
    }
}
.clipboard_link_css {
    position: relative;
    grid-template-columns: auto calc(8px + 1.5rem);
    width: 100%;
    height: 150px;
    line-height: 150%;

    textarea {
        border: none;
        border-radius: 6px;
        background-color: var(--secondary-container);
        padding: 4px 12px;
        width: 100%;
        color: var(--on-secondary-container);
        font-size: 1rem;
    }
    .material-symbols-rounded {
        position: absolute;
        top: 0;
        right: 0;
        border-top-right-radius: 6px;
        background-color: var(--secondary);
        padding: calc(4px + 0.25rem);
        color: var(--on-secondary);
        font-size: 1rem;
    }
}

.download_card {
    display: flex;
    position: relative;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    border-radius: 12px;
    background-color: #fc4d50;
    padding: 4px 12px 4px 8px;
    width: fit-content;
    color: var(--on-primary);

    a {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }
    img {
        border-radius: 6px;
        width: 2rem;
        height: 2rem;
    }
    p {
        font-size: 1rem;
        line-height: 150%;
    }
}