@import "./define";

a::selection,
span::selection,
img::selection,
label::selection {
  background-color: transparent;
}

.resize,
.resize-drag {
  font-size: 20px;
  touch-action: none;
  /* This makes things *much* easier */
  box-sizing: border-box;
  border: 1px dashed #84bcda;
}

.resize:hover,
.resize-drag:hover {
  border: 2px dashed #84bcda;
}

.contentArea p:hover {
  border: 1px dashed gray;
}

marquee .editable:hover {
  border: 1px dashed gray;
}

.video:hover {
  border: 2px dashed #84bcda;
}

// /*tabs*/

// /* Style the tab */

.tab {
  overflow: hidden;
  display: flex;
  justify-content: center;
  margin: 0 auto 0 auto;
}

// /* Style the buttons inside the tab */

.tab a {
  background-color: inherit;
  color: rgb(59, 59, 59);
  float: right;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 13px 16px 0px 16px;
  transition: 0.3s;
  font-size: 17px;
  height: 100%;
}

/*@@@@@@@@@@@@@@@@@@@@@@*/

// input.pathBox {
//   min-width: 250px;
// }

/* Change background color of buttons on hover */
.tab a {
  color: #f9f9f9;
}
.tab a:hover,
.tab a.active {
  border-bottom: 4px solid #ddd;
  text-decoration: none;
  padding-top: 14px;
}

/* Create an active/current tablink class */

/* Style the tab content */

// .tabcontent {
//   // display: none;
//   padding: 0;
//   border-top: none;
// }

/*accordion*/

// .accordion {
//   background-color: #eee;
//   color: #444;
//   cursor: pointer;
//   padding: 18px;
//   width: 100%;
//   border: none;
//   text-align: left;
//   outline: none;
//   font-size: 15px;
//   transition: 0.4s;
//   text-align: right;
// }

.accordion:hover {
  background-color: #4957a4;
}

.subTitleBlock {
  border: 1px dashed gray;
}

.draggable img {
  width: 150px;
  display: block;
  margin: auto;
}

.tab i {
  font-size: 1.5rem;
}

#logo {
  max-width: 14%;
  max-height: 55px;
  position: absolute;
  right: 15px;
  padding-top: 4px;
}

// .tab {
//   min-height: 50px;
// }

.menuContainer {
  background-color: #6849fc;
  margin: 0px !important;
}

// redesign
.dropdown:hover .dropdown-menu {
  display: block;
  margin-top: 0; // remove the gap so it doesn't close
}

.dropdown-item {
  text-align: right;
  color: #303030 !important;

  &:hover {
    color: rgb(151, 151, 151) !important;
    cursor: pointer;
  }

  i {
    font-size: 18px !important;
  }
}

.dropdown {
  & > button {
    color: #fff;
  }
}

.dropdown-menu {
  .dropdown-item:not(:nth-child(1)) {
    border-top: 1px solid rgb(236, 236, 236);
  }
}

// ###############################################
// Video/image styles

.single-video-preview {
  background-color: lightgray;
  border-radius: 4px;
  height: 270px;
  background-image: url("../../img/samples/video-place.png");
  background-size: cover;
  background-repeat: no-repeat;

  img {
    width: 100%;
  }

  video {
    width: 100%;
  }
}

.single-image-source-type,
.single-video-details-bar {
  background-color: lightgray;
  height: 20px;
  border-radius: 0 0 8px 8px;
}

.size-bar {
  background-color: $light-blue;
  height: 50px;
  border-radius: 4px;
  padding: 8px;
  display: flex;
  flex-flow: row-reverse;
  justify-content: space-evenly;
  align-items: center;

  label {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
  }

  select,
  input {
    max-width: 150px;
    border-radius: 4px;
    border: none;
  }
}

.single-image-source-type,
.source-switcher {
  background-color: $light-blue;
  height: 50px;
  border-radius: 4px 4px 0 0;
}

.source-switcher {
  .btn-group-toggle {
    width: 100%;
    border-radius: 4px;
  }

  label {
    width: 50%;
    height: 35px;
  }

  & > div {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 8px;
  }
}

.single-image-preview {
  height: 300px;
  background-color: lightgray;
  border-radius: 4px;
  height: 270px;
  background-image: url("../../img/samples/img-place.png");
  background-size: cover;
  background-repeat: no-repeat;

  img {
    height: 100% !important;
    width: auto;
    display: block;
    margin: auto;
  }
}

.source-bar {
  background-color: $light-blue;
  height: 50px;
  border-radius: 0 0 4px 4px;
  padding: 8px;
  display: flex;
  justify-content: center;
  align-items: center;

  select,
  input {
    width: 100%;
    border: none;
    border-radius: 4px;
    height: 34px;
    direction: ltr;
    padding: 0 8px;

    &:hover {
      cursor: pointer;
    }
  }

  input {
    &:hover {
      cursor: text;
    }
  }
}

.btn-group-toggle {
  border-radius: 4px;

  label {
    border-radius: 0;
    width: 70px;
  }
}

.add-source-btn {
  width: 34px;
  height: 34px;
  background-color: #fff;
  border-radius: 4px;
  display: flex;
  justify-content: center;
  align-items: center;

  &:hover {
    cursor: pointer;
  }
}

.image {
  width: 25%;
  height: auto;
}

.pri-btn {
  color: #fff;
  background-color: #6849fc;
  padding: 5px 15px;
  min-width: 80px;
  border-radius: 10px;

  &:hover {
    background-color: #6749fcb4;
  }
}

.sec-btn {
  color: #fff;
  background-color: #565656;
  padding: 5px 15px;
  min-width: 80px;
  border-radius: 10px;

  &:hover {
    background-color: #565656bb;
  }
}

.multi-video-source-path,
.multi-video-source-selector {
  background-color: rgb(212, 224, 240);
  border-radius: 5px;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
  height: 50px;

  & input,
  & select {
    border: none;
    border-radius: 5px !important;
    margin: 0 5px;
    text-align: left;
    height: 30px;
  }

  div {
    margin: 0 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #fff;
    border-radius: 5px;
    width: 30px;
    height: 30px;

    &:hover {
      cursor: pointer;
      box-shadow: 1px 1px 6px gainsboro;
    }
  }
}

.addBtn {
  background: #fff;
  width: 25px;
  height: 25px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.tool-bar {
  color: #f9f9f9;
  display: flex;
  justify-content: center;
  align-items: start;
  width: 100%;
  list-style-type: none;
  cursor: pointer;
  margin: 10px 0;
  padding-right: 0;
  height: 40px;
  overflow: hidden;

  li {
    margin-top: 8px;

    &:hover:not(.line-vertical) {
      padding-top: 3px;
    }
  }

  a {
    color: #ffff;

    &:visited {
      color: #ffff;
      outline: none;
      text-decoration: none;
    }

    &:hover {
      color: #6849fc;
      text-decoration: none;
    }
  }

  img {
    width: 22px;
  }

  .line-vertical {
    &:hover {
      background-color: unset;
      cursor: default;
      color: unset;
    }
  }
}

#editorSubmit {
  border: none;
  border-radius: 4px;
  padding: 0 6px 5px 6px;

  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 14px;

  img {
    margin-left: 5px;
  }
}

#dropdownMenuButton {
  img {
    width: 25px;
    margin: 0 4px;
  }
}

// #dropdownMenuButton{
//   &:hover{
//     padding-top: 0;
//   }
// }
#dropdownMenuButton {
  &:hover {
    color: #fff;
  }
}

// ###############################################
/* background color setting */

.cp-default {
  padding-left: 0 !important;
}

#bg-color {
  background-color: lightgray;
  overflow: auto;
  display: flex;
  align-content: center;
  justify-content: center;
  margin: 2px auto;
}

#bg-image {
  background-color: lightgray;
  overflow: auto;
  margin: 4px auto;
  padding: 5px;
}

#bg-image textarea {
  width: 100%;
  height: 35px;
  text-align: center;
}

#bg-image > select {
  width: 100%;
  margin-bottom: 15px;
}

.bg-type-selector {
  width: 100%;
  border-radius: 4px;
}

.modal-body > div {
  text-align: right;
}

.modal-body > div > select {
  direction: ltr;
  text-align: center;
  border: 1px solid rgb(199, 199, 199);
}

.active-primary {
  background-color: #0062cc !important;
}

// ###############################################
// Subtilte styles

.marquee,
.marquee-with-options,
.marquee-vert-before,
.marquee-vert {
  width: 50%;
  margin: auto;
  height: 50px;
  overflow: hidden;
  border: 1px solid #ccc;
}

.subtitle-preview {
  background-color: lightgray;
  border-radius: 4px;
  height: 100px;

  marquee {
    position: relative;
  }
}

.modal-row-section {
  margin-top: 5px;
  margin-bottom: 10px;
  background-color: $light-blue;
  border-radius: 4px;
  padding: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.subtitle-text {
  width: 100%;
  height: 150px;
}

.marquee-vert > div {
  width: 100% !important;
}

#cke_editor1 {
  max-width: 96% !important;
  margin-left: 15px;
  border-radius: 4px;
}

.subtitle-editor {
  margin: 20px;
  width: 90%;
}

.size-input {
  border: none;
  border-radius: 4px;
  width: 50%;
}

.page-content {
  & > div {
    background-color: #f1f1f1;
  }
}

.offcanvas-togglers {
  display: flex;
  justify-content: flex-end;
  align-items: center;

  a {
    margin: 0 4px;
    border-radius: 4px !important;
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    color: gray;
    display: flex;
    justify-content: center;
    align-items: center;

    &:focus {
      box-shadow: none;
    }
  }
}

#pin-sidebar i {
  font-size: 2rem;
  font-weight: 400;
}

.user-pic {
  display: flex;
  justify-content: center;
  align-items: center;
  /* border: 1px solid gray; */
  border-radius: 50%;
  background-color: #f9f9f9;
  margin: 0 8px;
}

.tool-bar-container {
  background-color: $main-color;
}

.sidebar-footer img {
  max-width: 25px;
}

.default-theme .sidebar-wrapper {
  // background-color: #181c46 !important;
  background-color: #001b48 !important;
}

.default-theme.sidebar-bg .sidebar-wrapper .sidebar-menu .sidebar-dropdown div {
  background-color: rgba(19, 19, 19, 0.5) !important;
  color: #ccc !important;
}

.default-theme .sidebar-wrapper .sidebar-menu a:hover i,
.default-theme .sidebar-wrapper .sidebar-menu a:hover:before,
.default-theme .sidebar-wrapper .sidebar-menu li.active a i {
  color: #ccc;
}

// .default-theme.sidebar-bg .sidebar-wrapper .sidebar-menu ul li a i {
//   background-color: rgba(81, 81, 81, 0.5); }
// .default-theme .sidebar-wrapper .sidebar-menu ul li a i {
//   background-color: #2b2b2b; }
.dropdown-item:focus,
.dropdown-item:hover {
  background-color: transparent;
  color: #ffff;
}

.menu-text {
  text-align: right;
  margin-right: 16px;
}

// ###############################################
/****** Editor ******/

#cke_editor1 {
  width: 100% !important;
  display: block !important;
}

.editor {
  background-color: #ffffff;
}

.editor > i {
  margin: 6px;
  background-color: #ffffff;
  padding: 10px;
}

.editor > i:hover {
  cursor: pointer;
  background-color: #cdcee5;
}

.bgColor {
  background-color: aqua;
  padding: 2px 10px;
  margin: auto 5px;
  cursor: pointer;
}

.bgColor:hover {
  background-color: #cdcee5;
}

.colorSelector {
  padding: 2px 10px;
}

.colorSelector:hover {
  background-color: #cdcee5;
  cursor: pointer;
}

.colorSelector > i {
  border-bottom: 2px solid;
  padding-bottom: 2px;
}

// ###############################################

/*menu*/

// .itemCont {
//   position: relative;
//   display: inline;
// }

// .item {
//   list-style-type: none;
//   position: absolute;
// }

// .showItems {
//   display: block !important;
// }

// .date,
// .time {
//   border: none;
// }

// ###############################################
/*clock*/

.showClock {
  display: block;
}

#layer2-time {
  border: 2px dashed #84bcda;
}

#editor-container {
  /* display: none; */
  width: 50%;
  height: 50%;
  margin: auto;
}

#editorSubmit + div {
  display: none;
}

#editorSubmit:hover {
  border: none;
}

.cke {
  position: absolute !important;
  left: 0;
  z-index: 500;
}

#editorSubmit p {
  margin: 0;
}

marquee .editable p {
  padding-top: 0.5rem;
}

.pathBox {
  direction: ltr;
}

/* 
div.editable{
  padding-left: 25px;
  padding-right: 25px;
} */

.modal-btn {
  background-color: transparent;
  border: none;
  color: #fff;
}

.modal-btn:focus {
  outline: none;
}

.copyright-section {
  background-color: #ddd;
  padding: 5px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: #001b48;

  img {
    margin: 0 5px;
    width: 30px;
  }

  a {
    color: #001b48;
    text-decoration: none;
  }
}

.side-toolbar {
  & > div {
    display: flex !important;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin: auto;
    border-radius: 4px;
    min-width: 30px;
    width: 90%;
    padding: 4px;
  }
  i {
    font-size: 1.3rem;
    color: #ccc;
    &:hover {
      cursor: pointer;
      color: rgb(173, 172, 172);
    }
  }
}

.iframe-preview {
  background-color: lightgray;
  border-radius: 4px;
  height: 270px;
  background-image: url("../../img/samples/frame-place.png");
  background-size: cover;
  background-repeat: no-repeat;

  & > div {
    width: 100%;

    iFrame {
      width: 100%;
      height: 100%;
      border: none;
    }
  }
}
