*,
 ::before,
 ::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body,
textarea {
    font-family: 'Arial', sans-serif;
}

input {
    display: block;
}

main {
    background: #f5f5f5;
}


/* =============== CUBE =============== */

.preview {
    width: 100%;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.preview_cube {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background: #8e91fb;
}


/* =============== SETTINGS =============== */

.settings {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    padding: 20px;
    background: #ffffff;
}

.settings h2 {
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(51, 51, 51, 0.8);
    margin-bottom: 30px;
}


/* input color */

.color {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.color label {
    width: 120px;
}

.color input {
    border: none;
    outline: none;
}

.color input::-webkit-color-swatch-wrapper {
    padding: 0;
}

.color input::-webkit-color-swatch {
    border: 1px solid #dddddd;
}


/* input range & option */

.range,
.option {
    display: flex;
    margin-bottom: 15px;
}

.range label,
.option p {
    width: 100px;
    display: flex;
    align-items: center;
}

.range input[type="range"] {
    width: calc(100% - 175px);
    margin-right: 20px;
}

.value {
    display: block;
    width: 55px;
}


/* SWITCH BTN */

.switch_btn {
    position: relative;
    width: 45px;
    height: 24px;
    border-radius: 30px;
    background: #dddddd;
    border: 2px solid #dddddd;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
}

.switch_btn.active {
    background: #2c8fe0;
    border: 2px solid #2c8fe0;
}

.switch_btn::before {
    content: "";
    position: absolute;
    right: 21px;
    display: block;
    width: 20px;
    height: 20px;
    background: #ffffff;
    border-radius: 50%;
    transition: all 0.15s ease-in-out;
}

.switch_btn.active::before {
    right: 0px;
}


/* TEXTAREA CODE CSS */

.bg_code_container {
    position: relative;
}

.bg_code {
    display: block;
    width: 100%;
    padding: 20px 25px;
    line-height: 20px;
    background: #f5f5f5;
    color: #555555;
    border: 1px solid #cccccc;
    border-radius: 5px;
    resize: none;
}

.code_btn {
    display: flex;
    width: 100%;
    margin-top: 10px;
}


/* Btn copy css */

.btn {
    display: flex;
    justify-content: center;
    padding: 13px 35px;
    margin: 0 0 0 5px;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 1px;
    cursor: pointer;
    border: 1px solid #cccccc;
    border-radius: 6px;
    color: rgba(51, 51, 51, 0.7);
    transition: all 0.15s ease-in-out;
    user-select: none;
}

.btn.copied {
    border: 1px solid transparent;
    color: rgb(66, 134, 60);
    background: rgba(115, 194, 108, 0.4);
}

.btn .bx {
    font-size: 17px;
}

.bg_code_container .btn:nth-of-type(1) {
    padding: 12px;
    margin: 0 5px 0 0;
}


/* alert msg css copied */


/* ============= RESPONSIVE ============= */

@media screen and (min-width: 576px) {}

@media screen and (min-width: 768px) {
    main {
        display: flex;
    }
    .preview {
        width: 55%;
    }
    .settings {
        width: 40%;
    }
}

@media screen and (min-width: 992px) {
    .settings {
        width: 40%;
        height: 80vh;
        padding: 30px;
        margin: auto 0;
        background: #ffffff;
        box-shadow: 0 15px 30px -5px rgba(33, 33, 33, 0.3);
        border-radius: 5px;
    }
}

@media screen and (min-width: 1200px) {}