@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');

.r-editor {
    width: 1400px;
    height: auto;
    background-color: #ededed;
    border: 10px solid #ededed;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

.r-editor, .r-editor * {
    box-sizing: border-box;
    position: relative;
    cursor: default;
    font-family: "Open Sans", sans-serif;
    outline: none;
}

.r-editor button, .r-editor a {
    cursor: pointer;
}

.r-editor > .menu {
    display: flex;
    width: 100%;
    padding-left: 10px;
    background-color: #005a8c;
    height: 50px;
    align-items: center;
    margin-bottom: 10px;
}

.r-editor > .menu > img {
    width: 36px;
    height: 36px;
    margin-right: 10px;
}

.r-editor > .menu > button {
    color: white;
    font-weight: bold;
    border: none;
    background-color: #005a8c;
    padding: 8px 16px;
    border-left: 1px solid white;
}

.r-editor > .menu > button:first-of-type {
    border-left: none;
}

.r-editor > .menu > button:hover {
    background-color: #0073b3;
}

.r-editor > .menu > button.active {
    background-color: white;
    color: #005a8c;
}

.r-editor > .menu > button.active:before {
    content: " ";
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-top: 20px solid #005a8c;
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -20px;
}

.r-editor > .menu > p {
    color: white;
    font-weight: bold;
    margin-left: auto;
    margin-right: 10px;
}

.r-editor > .content {
    height: 600px;
    overflow-y: auto;
    width: 700px;
}

.r-editor > .frame-detail {
    height: 600px;
    width: 220px;
    margin-left: auto;
    overflow: hidden;
}

.r-editor > .frame-detail > img {
    width: 100%;
    height: 50%;
    object-fit: cover;
    object-position: left top;
    background-color: white;
}

.r-editor > .preview {
    height: 600px;
    overflow-y: auto;
    background-color: white;
    width: 450px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 5px solid white;
}

.r-editor > .preview > p {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 0;
    text-align: left;
    margin: 0;
    font-size: 12px;
    background-color: white;
}

.r-editor > .preview > div {
    width: 100%;
    height: 100%;
    overflow: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.r-editor > .content > div {
    display: none;
}

.r-editor > .content > div.visible {
    display: flex;
}

.r-editor > .content > div.rc-image {
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.r-editor > .content > div.rc-image > h2, .r-editor > .content > div.rc-image > p {
    margin: 0;
    padding: 0;
}

.r-editor > .content > div.rc-image > h2 {
    margin-top: 10px;
    font-size: 32px;
    margin-bottom: 2px;
    color: #005a8c;
}

.r-editor > .content > div.rc-image > p {
    font-size: 14px;
}


.r-editor > .content > div.rc-image label {
    background-color: white;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 300px;
    margin: 30px 0 0 0;
    padding: 0 20px;

}

.r-editor > .content > div.rc-image label:hover {
    box-shadow: 5px 5px 20px 0px rgba(211,211,211,1);
}

.r-editor > .content > div.rc-image label, .r-editor > .content > div.rc-image label * {
    cursor: pointer;
}

.r-editor > .content > div.rc-image label > p {
    font-size: 12px;
}

.r-editor > .content > div.rc-image label > img {
    width: 64px;
    height: 64px;
}

.r-editor > .content > div.rc-image > i {
    margin-top: 50px;
    font-weight: bold;
    font-size: 14px;
}

.r-editor > .content > div.rc-image input {
    font-size: 12px;
    margin-top: 10px;
    cursor: pointer;
}

.r-editor > .content > div.rc-image span {
    display: inline-flex;
    width: 200px;
    align-items: center;
    justify-content: center;
    margin-top: 30px;
}

.r-editor > .content > div.rc-image span * {
    padding: 0;
    margin: 0;
    font-size: 14px;
}

.r-editor > .content > div.rc-image span input {
    width: 100px;
    text-align: center;
    margin: 0 10px 0 10px;
    cursor: text;
    border: 1px solid #005a8c;
    background-color: white;
    border-radius: 0px;
    padding: 10px 0;
    font-weight: bold;
}

.r-editor > .content > div.rc-image span select {
    border: 1px solid #005a8c;
    border-radius: 0;
    padding: 10px 20px;
    background-color: white;
    cursor: pointer;
    font-weight: bold;
}

.r-editor > .content > div.rc-image span option {
    cursor: pointer;
}

#previewImage {
    background-color: white;
    border: none;
    object-fit: contain;
    object-position: center center;
    max-width: 90%;
    max-height: 90%;
}

.r-editor > .content > div.rc-frames {
    overflow: hidden;
}

.r-editor > .content > div.rc-frames > .frames {
    overflow: auto;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
}

.r-editor > .content > div.rc-frames > .frames > span {
    display: flex;
    flex-direction: column;
    background-color: white;
    cursor: pointer;
    border: 5px solid white;
}

.r-editor > .content > div.rc-frames > .frames > span.selected {
    border: 5px solid #005a8c;
}

.r-editor > .content > div.rc-frames > .frames > span * {
    cursor: pointer;
}

.r-editor > .content > div.rc-frames > .frames > span > img {
    width: 120px;
    height: 120px;
    object-position: top left;
    object-fit: cover;
}

.r-editor > .content > div.rc-frames > .frames > span > p {
    margin: 0;
    padding: 0;
    width: 100%;
    text-align: left;
    font-size: 14px;
}

.r-editor > .content > div.rc-frames > .frames > span > p > font {
    display: block;
    width: 100%;
    margin-top: 5px;
    font-size: 12px;
    font-weight: bold;
}

.r-editor > .content > div.rc-frames > .frames > span.selected > p {
    color: white;
    background-color: #005a8c;
}

.loader {
    width: 60px;
    aspect-ratio: 4;
    background: radial-gradient(closest-side at calc(100%/6) 50%,#000 90%,#0000) 0/75% 100%;
    position: absolute;
    animation: l15-0 1s infinite linear;
    display: none;
  }

  .loader.visible {
    display: block;
  }

  .loader::before {
    content:"";
    position: absolute;
    background: inherit;
    clip-path: inset(0 0 0 50%);
    inset: 0;
    animation: l15-1 0.5s infinite linear;
  }

.no-uploaded-image-box {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    background: rgba(10, 25, 60, 0.55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255,255,255,0.08);
}

.no-uploaded-image-box.visible {
    display: flex;
}

.no-uploaded-image-box > div {
    width: 400px;
    height: 200px;
    background-color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px;
    box-sizing: border-box;
    flex-direction: column;
    flex-wrap: nowrap;
}

.no-uploaded-image-box > div > p {
    font-weight: bold;
}

.no-uploaded-image-box > div > button {
    background-color: #005a8c;
    color: white;
    font-weight: bold;
    padding: 16px 32px;
    border: none;
    box-sizing: border-box;
    margin-top: 20px;
    font-size: 18px;
    transition: 0.2s ease all;
    -webkit-transition: 0.2s ease all;
}

.no-uploaded-image-box > div > button:hover {
    background-color: #0073b3;
}

#buyFrame {
    background-color: #005a8c;
    padding: 10px;
    display: none;
    flex-direction: column;
    flex-wrap: nowrap;
    width: 100%;
    height: 50%;
}

#buyFrame.visible {
    display: flex;
}

#buyFrame * {
    color: white;
}

#buyFrame > p {
    font-size: 14px;
}

#buyFrame > h3 {
    margin: 0;
    padding: 0;
    margin-bottom: 20px;
}

#buyFrame > button {
    width: 100%;
    background-color: white;
    padding: 16px 32px;
    color: #005a8c;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    border: none;
    margin-top: auto;
    margin-bottom: 5px;
}

#buyFrame > button:hover {
    text-decoration: underline;
}

  @keyframes l15-0 { 
      0%,49.99% {transform: scale(1)}
      50%,100%  {transform: scale(-1)} 
  }
  @keyframes l15-1 { 
      0%       {transform: translateX(-37.5%) rotate(0turn)} 
      80%,100% {transform: translateX(-37.5%) rotate(1turn)} 
  }