:root {
  --transparent: transparent;
  --black-transparent: #000000CC;
  --black: #333;
  --black-darker: #282828;
  --black-dark: #161616;
  --black-lighter: #666666;
  --white: #fff;
  --whitish: #F2F4F4;

  --primary: #1C7F9D;
  --primary-light: #18A3CB;
  --primary-lighter: #7dcffa;
  --primary-lightest: #6cbfe9;
  --primary-pale: #d7f2ff;
  --primary-dark: #386979;

  --secondary: #486169;
  --secondary-alt: #546A71;
  --secondary-lighter: #7B959D;
  --secondary-light: #A7B8BE;
  --secondary-lightest: #E2EEF2;

  --gray-dark: #adb8c1;
  --gray: #BECBD0;
  --gray-light: #E2EEF2;
  --gray-light-alt: #E4ECEF;
  --gray-lightest: #EDF5F7;

  --red: #FF4B4B;
  --red-lighter: #FF9999;
  --red-light: #FFCBCB;
  --red-dark: #E50000;

  --yellow-lighter: #ffdd00;
  --yellow: #FFE667;
  --yellow-dark: #7C6C17;

  --orange-light: #ffba61;
  --orange-dark: #785105;

  --green: #71EE52;
  --green-dark: #335A2A;
  --green-light: #ACFF97;

  --screen-sm: '320px';
  --screen-md: '768px';
  --screen-lg: '1250px';

  --radius-md: .5rem;

  --page-bg: #F2F4F4;
}

body {
  background-color: var(--page-bg);
  padding: 0;
  margin: 0;
}

* {
  box-sizing: border-box;
  font-family: "Segoe UI", Arial, sans-serif;
}

h1 {
  color: var(--black);
  margin: 0;
}

.formheader{
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  margin-bottom: 20px;
}

.flex-page {
  display: flex;
  flex-flow: row;
  height: 100vh;
}

.flex {
  display: flex;
}

.form, .preview {
  display: block;
  height: 100vh;
}

iframe{
  width: 1250px;
}

.form {
  padding: 5em;
}

@media screen and (min-width: 1440px) {
  .form {
    padding: 5em 15em;
  }

  .form, .preview {
    width: 50%;
  }

  iframe{
    width: 100%;
  }
}

.preview {
  background-color: var(--white);
}

.form-group {
  display: flex;
  flex-flow: column;
  margin-bottom: .45em;
}

.small {
  /*font-size: .75em;*/
  width: 100px;
  text-align: center;
}

.small a{
  text-align: center;
  padding: 5px 7px;
  margin: 0 5px;
}

.small a:hover{
  background-color: #1C7F9D;
  border-radius: 5px;
}

.link {
  color: var(--black);
  text-decoration: none;
}

.link:hover {
  background-color: var(--black);
  color: white;
}

label {
  font-weight: bolder;
  color: var(--black);
  font-size: .85em;
  margin-bottom: .2em;
}

.textbox {
  padding: 1em 1.25em;
  border-radius: .5em;
  border: 1px solid var(--gray);
  width: 100%;
}

.textbox:focus {
  outline: var(--secondary-lightest) solid 3px;
  border: 1px solid var(--primary-lightest);
}

.hidden {
  display: none;
}

.error {
  color: var(--red);
  font-size: .85em;
}

.button {
  background-color: var(--primary);
  padding: 1em 1.25em;
  border: none;
  border-radius: .7rem;
  color: var(--white);
  font-weight: bold;
  font-size: .85rem;
  cursor: pointer;
  text-underline: none;
  margin-right: .75em;

}

a.button {
  text-decoration: none;
  color: var(--white);
}

.button-secondary {
  background-color: var(--secondary-lighter);
}

.button:hover {
  background-color: var(--primary-dark);
}

#load-langfile{
  margin-right: 0;
}

.product-counter {
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--white);
  font-width: bold;
  border-radius: 5em;
  width: 2em;
  height: 2em;
  margin: .35em;
  background-color: var(--secondary);
}

.product-counter-label {
  margin: 1em 0.5em 1em 0;
  font-weight: bolder;
  color: var(--black);
  font-size: .85em;
}


.actions {
  background-color: var(--white);
  border-radius: 2em;
  padding: 2em;
  margin-top: 2em;
}

.actions h3 {
  margin: 0;
  padding: 0;
}

.mt-1 {
  margin-top: .5em;
}

.table {
  width: 100%;
  border-spacing: 0;
  border-collapse: collapse;
  /*border: 1px solid var(--gray);*/
}

.table tr td, .table tr th {
    border: 1px solid var(--gray);
}

.table th{
  padding: 10px;
}

.table td{
  padding: 10px;
  max-width: 150px;
  word-break: break-all;
}

.item-actions{
  width: 100px;
  text-align: center;
  padding: 0 !important;
}

.item-actions a{
  text-align: center;
  padding: 5px 7px;
  font-size: 18px;
}

.action-edit{
  color: black;
  padding: 5px 7px;
  margin-right: 5px;
}

.action-edit:hover{
  border-radius: 5px;
  background-color: black;
  color: white;
}

.action-delete{
  color: red;
  padding: 5px 7px;
}

.action-delete:hover{
  border-radius: 5px;
  background-color: red;
  color: white;
}

.links {
  display: block;
  margin-bottom: 1rem;
  width: 1100px;
}

.link {
  color: var(--primary);
  font-weight: 600;
  padding: 2px;
  font-size: .85rem;
}

.link:hover {
  background-color: var(--primary);
  color: var(--white);
  text-decoration: none;
}

.link:visited {
  color: var(--primary);
}

.link:hover:visited {
  color: var(--white);
}

.preview-code{
  background-color: black;
  color: white;
  padding: 25px;
  margin-top: 25px;
  border-radius: 15px;
  position: relative;
  word-break: break-all;
}

#copyButton{
  position: absolute;
  top:0;
  right: 0;
  margin-right: 25px;
}

.error-bar {
  background-color: var(--red);
  color: var(--white);
  padding: .75rem;
  font-weight: 700;
}

.table tr:hover {
  cursor: grab;
  background-color: rgba(173, 216, 230, 0.5);
}

.table tr:active {
  cursor: grabbing;
  background-color: rgba(0, 0, 0, 0);
}

.placeholderBackground{
  background-color: rgba(173, 216, 230, 0.5);
}

#deleteModalContainer{
  display: none;
  position: absolute;
  top:0;
  left:0;
  width: 100%;
  height: 100%;
  background-color: rgba(173, 216, 230, 0.5);
}

.modal-dialog {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0; /* Override Bootstrap's margin */
  border: 2px solid black;
  border-radius: 15px;
  padding: 35px;
  background-color: white;
}

.modal-title{
  margin-top: 0;
  text-align: center;
}

.modal-body{
  text-align: center;
  font-size: 20px;
  max-width: 500px;
}

#product-name{
  margin-top: 15px;
  font-weight: 600;
  font-size: 22px;
  line-height: 40px;
}

.modal-footer{
  display: flex;
  justify-content: space-around;
  margin-top: 30px;
}

.modal-footer button{
  background-color: var(--primary);
  padding: 1em 1.25em;
  border: none;
  border-radius: .7rem;
  color: var(--white);
  font-weight: bold;
  font-size: 18px;
  cursor: pointer;
  text-underline: none;
}

.modal-footer button:hover{
  cursor: pointer;
  background-color: var(--primary-dark);
}

#confirmDelete{
  background-color: red;
}

#confirmDelete:hover{
  background-color: darkred;
}

.page {
  border-radius: 2em;
  margin: 5rem auto;
  padding: 2rem;
  width: 60rem;
  background-color: white;
}

.xml-actions {
  padding: 2rem 0;
}

#linkStyling{
  display: flex;
  flex-direction: row;
  align-items: center;
  margin: 20px 0;
  gap: 5px;
  font-size: 20px;
  font-weight: 600;
}

#linkStyling label{
  margin-top: 5px;
}

#linkStyling span{
  margin-right: 20px;
}

#linkStyling input:hover{
  cursor: pointer;
}