#wpbody-content > *:not(#wpupg-template, .wpupg-wrap),
#wpfooter {
    display: none;
}

#update-nag,
.update-nag,
.updated,
.error,
.is-dismissible {
    display: none;
}

.rtl {
    #wpupg-template-main {
        .wpupg-setting-required {
            border-radius: 3px;
            margin-left: 0;
        }
    }
}

#wpupg-template-menu,
.wpupg-template-properties,
.wpupg-main-container {
    background-color: white;
    border-radius: 5px;
}

#wpupg-template-buttons {
    text-align: center;
    padding-top: 10px;

    background-color: white;
    border-radius: 5px;

    p {
        font-weight: bold;
        margin-top: 0;
    }

    button {
        display: inline-block;
        margin: 0 3px;
        margin-bottom: 10px;
    }
}

#wpupg-template-main {
    .wpupg-main-container {
        padding: 0 25px 25px 25px;
        margin-bottom: 20px;

        &:last-child {
            margin-bottom: 0;
        }
    }

    .wpupg-main-container-name {
        text-align: center;
    }
    .wpupg-main-container-name {
        padding: 20px 10px 0 10px;
        padding-bottom: 0;
        margin: 5px 0;
        font-size: 1.8em;
        font-weight: 400;
    }
}

@media screen and (min-width: 783px) {
    .rtl {
        #wpupg-template-main {
            margin-right: 225px;
            margin-left: 0;
        }
    }

    #wpupg-template-sidebar {
        position: fixed;
        width: 200px;
        max-height: calc(100% - 50px);
        overflow-y: scroll;
    }

    #wpupg-template-main {
        margin-left: 225px;
    }
}

@media screen and (min-width: 1024px) {
    .rtl {
        #wpupg-template-main {
            margin-right: 275px;
            margin-left: 0;
        }
    }
    #wpupg-template-sidebar {
        width: 250px;
    }

    #wpupg-template-main {
        margin-left: 275px;
    }
}