html {
  width: 100%;
  height: 100%;
}

* {
  color: #cccccc;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: normal;
}

body {
  margin: 0;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;
  background-position: top;
  background-image: url(assets/bg-image-min.jpg);
  width: 100%;
  height: 100%;
  letter-spacing: 0.02em;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

b {
  color: #f5bf51;
  font-weight: normal;
}

::-moz-selection {
  background: #3fbb9b;
  color: #fff;
}

::-webkit-selection {
  background: #3fbb9b;
  color: #fff;
}

::selection {
  background: #3fbb9b;
  color: #fff;
}

.mainCointainer {
  position: relative;
  margin: auto 0;
  height: 90%;
  width: 90%;
  max-width: 1920px;
  max-height: 1080px;
  box-shadow: 1px 1px 3px 0 rgba(255, 255, 255, 0.21) inset,
    0 0 20px rgba(0, 0, 0, 0.5), -1px -1px 2px 0 rgba(255, 255, 255, 0.1) inset;
  border-radius: 20px;
  -webkit-backdrop-filter: blur(30px);
  backdrop-filter: blur(30px);
  display: flex;
  flex-direction: row;
}

.leftPanel {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  min-width: 400px;
  padding: 24px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}
/* set overflow with toggle */
.panelOverFlow {
  overflow-y: auto;
}

.rightPanel {
  flex: 2;
  display: flex;
  flex-direction: column;
  justify-content: start;
  gap: 20px;
  padding: 24px;
  overflow-y: auto;
}

/* the div for toogle button */
.advOpt {
  display: block;
  transition: all 0.3s ease-in-out;
}

.hidden {
  display: none;
}

.visuallyhidden {
  opacity: 0;
}

hr {
  margin: 20px 0px 40px 0px;
  border-color: #ffffff3b;
}
a {
  color: #3fbb9b;
  cursor: pointer;
  text-decoration: underline;
}

h1 {
  text-align: center;

  font-size: 24px;
  font-weight: 400;
}

.title {
  text-align: center;
  font-size: 28px;

  font-weight: 600;
}

.bodyText {
  text-align: center;
  font-size: 14px;

  font-weight: 400;
  line-height: 1.5;
}

#uploadImgWidth,
#suggStartingPoint,
#suggEndingPoint {
  color: #f5bf51;
}

.descriptionText {
  text-align: left;
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;

  font-weight: 400;
  line-height: 1.5;
  margin: 0;
  padding-top: 12px;
  padding-bottom: 20px;
}

.customFileName {
  display: flex;
  width: 100%;
  flex-wrap: wrap;
  flex-direction: row;
  align-items: center;
  padding-bottom: 0;
  -ms-grid-row-align: center;
  align-self: center;
}

#customFileName {
  margin: 12px 0px;
}

.customFileName label {
  padding: 0;
}

form {
  display: flex;
  flex-direction: column;
  color: #cccccc;

  -moz-column-gap: 12px;

  column-gap: 12px;
  padding-bottom: 20px;
}

label {
  text-align: left;

  font-size: 14px;
  padding-bottom: 12px;
}

input::-webkit-file-upload-button {
  -webkit-appearance: none;
  font-size: 14px;
  padding: 5px 24px;
  background-color: #3fbb9b;
  color: white;

  border: none;
  border-radius: 3px;
}

input::file-selector-button {
  -webkit-appearance: none;
  font-size: 14px;
  padding: 5px 24px;
  background-color: #3fbb9b;
  color: white;

  border: none;
  border-radius: 3px;
}

/* #firstImgPath {
  padding-top: 4px;
  padding-bottom: 4px;
} */

input[type="color"] {
  -webkit-appearance: none;
  min-width: 140px;
  width: auto;
  height: 34px;
  border: 0;
  flex-grow: 1;
  transition-duration: 0.2s;

  cursor: pointer;
}

input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
}
input[type="color"]::-webkit-color-swatch {
  border: 0;
}

select {
  -webkit-appearance: none;
  border: 0;
  flex-grow: 1;
  font-size: 16px;
  -moz-text-align-last: center;
  text-align-last: center;
  color: #858585;
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  height: 32px;
  transition-duration: 0.2s;
  cursor: pointer;
}

select:hover {
  background-color: rgba(0, 0, 0, 0.5);
  color: #c6c6c6;
}

select:focus {
  background-color: rgba(0, 0, 0, 0.5);
  color: #3fbb9b;
  box-shadow: 0px 0px 0px 2px #3fbb9b inset;
}

option {
  text-align: center;
}

input {
  flex-grow: 1;
  font-size: 16px;
  color: #858585;
  padding: 8px 8px;
  border-radius: 8px;
  background-color: rgba(0, 0, 0, 0.3);
  border: 0;
  text-align: center;
  transition-duration: 0.2s;
  width: auto;
}

input:hover {
  background-color: rgba(0, 0, 0, 0.5);
  color: #c6c6c6;
}

input:focus {
  background-color: rgba(0, 0, 0, 0.5);
  color: #3fbb9b;
  outline: none;
  box-shadow: 0px 0px 0px 2px #3fbb9b inset;
}

#speakerColor,
#titleColor {
  padding: 0;
  overflow: hidden;
}

textarea {
  flex-grow: 1;
  font-size: 16px;
  resize: vertical;
  line-height: 1.5;
  color: #858585;
  padding: 8px 8px;
  border-radius: 8px;
  background-color: rgba(0, 0, 0, 0.3);
  border: 0;
  text-align: left;
  transition-duration: 0.2s;

  width: auto;
}

textarea:hover {
  background-color: rgba(0, 0, 0, 0.5);
  color: #c6c6c6;
}

textarea:focus {
  background-color: rgba(0, 0, 0, 0.5);
  color: #3fbb9b;
  outline: none;
  box-shadow: 0px 0px 0px 2px #3fbb9b inset;
}

.textWithIcon {
  display: flex;
  align-items: top;
  justify-content: center;
  gap: 4px;
}

footer {
  flex: 0 0 auto;
  -ms-grid-row-align: center;
  align-self: center;
  margin: 0px;
  display: flex;

  align-items: center;
  justify-content: center;

  -moz-column-gap: 12px;

  column-gap: 12px;

  color: #cccccc;
  font-size: 12px;

  font-weight: 400;
}
footer a {
  color: #cccccc;
}

img {
  display: block;
  margin: 0 auto;
}

.single-image {
  width: 100%;
  max-width: 700px;
  padding-bottom: 20px;
}

.logo-image {
  padding-top: 20px;
  width: 150px;
}

.footer-image {
  margin: 0;
  width: 20px;
}

#canvas {
  background-image: url("assets/bg.png");
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.5);

  margin-top: auto;

  border-radius: 10px;
  width: 100%;
}

.toogleMode {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* The switch - the box around the slider */
.switch {
  position: relative;
  display: inline-block;
  width: 47px;
  height: 10px;
}

/* Hide default HTML checkbox */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* The slider */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.3);
  transition: 0.4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 13px;
  width: 13px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: 0.4s;
}

input:checked + .slider {
  background-color: #3fbb9b;
}

input:focus + .slider {
  box-shadow: 0 0 1px #3fbb9b;
}

input:checked + .slider:before {
  transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

button {
  position: relative;

  outline: none;
  border: none;
  cursor: pointer;
  display: block;
  background-color: #3fbb9b;

  font-size: 16px;
  font-weight: 400;
  color: white;
  width: 100%;
  max-width: 320px;
  padding: 12px 20px;
  border-radius: 10px;
  box-shadow: 0 6px rgba(0, 0, 0, 0.1);
  transition-duration: 0.2s;
  top: 0px;
}

#savePreset {
  border: 1px solid #3fbb9b;
  background-color: transparent;
  color: #3fbb9b;
}

#savePreset:hover {
  background-color: #3fbb9b;
  color: white;
}

button:hover {
  box-shadow: 0 6px rgba(0, 0, 0, 0.3);
  top: 3px;
}

button:active {
  box-shadow: none;
  top: 8px;
}

.btnGroup {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: center;
  padding-bottom: 0px;
  gap: 12px;
  margin-bottom: auto;
}

/* The Modal (background) */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  /* padding-top: 100px; Location of the box */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0, 0, 0); /* Fallback color */
  background-color: rgba(0, 0, 0, 0.4); /* Black w/ opacity */
}

/* Modal Content */
.modal-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  margin: auto;
  padding: 20px;
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
  border-radius: 10px;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

/* The Close Button */
.close {
  position: fixed;
  left: 95%;
  color: #aaaaaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: #3fbb9b;
  text-decoration: none;
  cursor: pointer;
}

#specialThanks,
.footer a {
  cursor: pointer;
  text-decoration: underline;
}

@media only screen and (max-width: 850px) {
  .modal-content {
    width: 100%;
    height: 100%;
    padding: 0;
    overflow: scroll;
  }
  .mainCointainer {
    max-width: 90vw;
    max-height: -webkit-fit-content;
    max-height: -moz-fit-content;
    max-height: fit-content;
    margin-top: 20px;
  }

  .modal-content img {
    width: 90%;
  }
  .modal-content h1 {
    margin-top: 40px;
  }
  .modal-content span {
    top: 16px;
  }

  .customFileName {
    flex-wrap: nowrap;
    width: 100%;
  }
  .leftPanel {
    flex: 1;
    overflow: initial;
    min-width: 0;
  }

  .rightPanel {
    flex: 1;
    height: -webkit-fit-content;
    height: -moz-fit-content;
    height: fit-content;
    overflow: hidden;
  }

  .btnGroup {
    padding-bottom: 40px;
  }

  .mainCointainer {
    flex-direction: column;
    height: -webkit-fit-content;
    height: -moz-fit-content;
    height: fit-content;
  }

  textarea {
    width: 100%;
  }
  .switch {
    width: 58px;
    height: 34px;
  }
  .slider:before {
    height: 24px;
    width: 24px;
  }
  input {
    width: 100%;
  }

  select {
    width: 100%;
  }

  input[type="color"] {
    width: 100%;
  }

  label {
    text-align: center;
    padding-bottom: 0px;
    width: 300px;
  }

  form {
    flex-direction: row;
    align-items: center;
  }

  .remarkText {
    text-align: right;
  }

  .descriptionText {
    text-align: right;
  }
}

@media only screen and (max-width: 600px) {
  h1 {
    font-size: 20px;
  }

  #title {
    font-size: 22px;
    font-weight: 400;
  }
}

@media only screen and (max-width: 420px) {
  form {
    flex-wrap: wrap;
  }
  label {
    margin-bottom: 8px;
  }

  .customFileName {
    flex-wrap: wrap;
  }
  #customFileName {
    margin-top: 0;
  }
}
