:root {
  --main-color: #0070f3;
  --sec-color: #457b9d;
  --reset-color: #e23847;
  --fourth-color: #1d3557;
}

* {
  box-sizing: border-box;
}

a {
  text-decoration: none;
  color: black;
}

body {
  font-family: Arial, sans-serif;
  background: #f9f9f9;
  margin: 20px;
}

header {
  padding: 0px 15px;
  max-width: 1225px;
  margin: auto;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 4px;
}

.grab {cursor: -webkit-grab; cursor: grab;}
.grabbing {cursor: -webkit-grabbing; cursor: grabbing;}
.container {
  max-width: 720px;
  margin: auto;
  padding: 0 20px;
}

.paragraph {
  font-size: 24px;
}

.paragraph img {
  width: 100%;
  border: 1px solid #efefef;
  border-radius: 10px;
  box-shadow: 0px 0px 12px 0px #d8d8d89e;
}

.logo-text {
  margin-right: 50px;
  font-size: 30px;
  font-weight: 600;
  color: #000;
  text-decoration: none;
}

.header-left {
  display: flex;
  align-items: center;
}

.nav-link {
  text-decoration: none;
  color: #717171;
  transition: 0.2s;
  margin-right: 25px;
}

.nav-link:hover {
  color: black;
}

.donate {
  background: #f8e2e2;
  color: #515151;
  text-decoration: none;
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 15px;
}

.nav-bar {
  display: none;
  cursor: pointer;
  font-size: 18px;
  transition: 0.2s;
}

.nav-bar:hover,
.close-btn:hover {
  transform: scale(1.1);
}

#pop-up {
  position: fixed;
  inset: 0px;
  z-index: 20;
  justify-content: flex-end;
  display: none;
  background: #00000099;
}

.close-btn {
  cursor: pointer;
  position: absolute;
  top: 23px;
  right: 29px;
  transition: 0.2s;
}

.mobile-menu {
  background: #f9f9f9;
  width: 250px;
  display: flex;
  padding: 0px 20px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 25px;
}

.mobile-menu a {
  margin-bottom: 15px;
  transition: 0.2s;
  color: #717171;
}

.mobile-menu a:hover {
  color: black;
}

.wrapper {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  width: -webkit-fill-available;
}

.input {
  width: 100%;
  border: 1px solid #efefef;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 0 #0000, 0 0 #0000, 0 1px 3px 0 rgb(0 0 0 / 10%), 0 1px 2px 0 rgb(0 0 0 / 6%);
  background: #fff;
}

.output {
  display: flex;
  justify-content: center;
  align-items: center;
}

.file-wrapper {
  margin-bottom: 20px;
  width: 100%;
  height: 40px;
  position: relative;
}

.label-file {
  border-radius: 10px;
  padding: 4px;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  font-weight: 600;
  transition: 0.08s;
  cursor: pointer;
  position: absolute;
  background: #000;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.truncate-text {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  max-width: 250px;
}

.label-file:hover {
  transform: scale(1.01);
}

.select {
  width: 100%;
  border: 1px solid #bdbdbd;
  border-radius: 10px;
  padding: 15px;
  background: #fff;
}

#canvas {
  background: #fff;
  width: 100%;
  object-fit: contain;
  border: 1px solid #ececec;
  border-radius: 15px;
  box-shadow: 0 0 #0000, 0 0 #0000, 0 1px 3px 0 rgb(0 0 0 / 10%), 0 1px 2px 0 rgb(0 0 0 / 6%);
}

#download button {
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  background: var(--main-color);
  border: 1px solid var(--main-color);
  color: #fff;
  font-size: 14px;
  border-radius: 5px;
  padding: 8px 64px;
  width: 100px;
  transition: 0.08s;
}

#download button:hover {
  transform: scale(1.01);
}

#reset button {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: #fff;
  color: #000;
  font-size: 14px;
  border: 0px;
  border-radius: 5px;
  border: 1px solid #000;
  padding: 8px 64px;
  width: 100px;
  transition: 0.08s;
}

#reset button:hover {
  transform: scale(1.01);
}

#text {
  height: 64px !important;
}

#text,
#select-font,
#select-position,
#select-font-size,
#font-style {
  margin-top: 5px;
  width: 100%;
  height: 40px;
  border-radius: 5px;
  border: 1px solid #ddd;
  padding: 9px 8px;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
  resize: vertical;
  color: #676767;
  background: #fff;
}

#text::-webkit-input-placeholder {
  color: #b0b0b0;
}

#text:-moz-placeholder {
  /* Firefox 18- */
  color: #b0b0b0;
}

#text::-moz-placeholder {
  /* Firefox 19+ */
  color: #b0b0b0;
}

#text:-ms-input-placeholder {
  color: #b0b0b0;
}

#text::placeholder {
  color: #b0b0b0;
}

#text:focus-visible,
#select-font:focus-visible,
#select-position:focus-visible,
#font-style:focus-visible,
#select-font-size:focus-visible {
  outline: none;
  border: 1px solid var(--main-color);
  box-shadow: 0 0 4px var(--main-color);
}

#colorPicker {
  padding: 0;
  border: 0;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  border: 1px solid #e5e5e5;
  outline: none;
  -webkit-appearance: none;
}

#colorPicker::-webkit-color-swatch-wrapper {
  padding: 0;
}

#colorPicker::-webkit-color-swatch {
  border: none;
  border-radius: 50%;
}

.thanks-to {
  color: #999;
  font-size: 14px;
  margin-top: 10px;
}

footer {
  padding: 30px 0 20px;
  text-align: center;
}

.copyright,
.copyright a {
  color: #555;
}

.news-wrapper {
  display: flex;
  color: black;
  overflow: hidden;
  border: 1px solid #ececec;
  border-radius: 15px;
  box-shadow: 0px 0px 12px 0px #d8d8d89e;
  margin-bottom: 40px;
}

.news-right {
  position: relative;
  flex-shrink: 0;
  width: 300px;
}

.news-right img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-left {
  /*changed*/
  padding: 20px;
  overflow: hidden;
}

.description {
  overflow: hidden;
  margin-top: 10px;
  font-size: 15px;
  color: #999;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.news-footer {
  display: flex;
  align-items: center;
  margin-top: 10px;
  font-size: 15px;
}

.news-title {
  font-size: 20px;
  font-weight: 500;
}

.draggable-file {
  position: absolute;
  height: 520px;
  width: 770px;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  border: 5px dashed #d7d7d7;
  border-radius: 15px;
  font-size: 20px;
  color: #676767;
  text-align: center;
}

.draggable-file i{
  display: block;
  color: gray;
  font-size: 50px;
  text-align: center;
  margin-top: 25%;
}

.draggable-file-label {
  cursor: pointer;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.dropbtn { 
  background: #cae4ff;
  margin-left: 10px;
}

.dropdown {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 30px;
  right: -15px;
  background-color: #fff;
  min-width: 160px;
  box-shadow: 0px 0px 12px 0px #d8d8d89e;
  border: 1px solid #efefef;
  z-index: 1;
}

.dropdown-content a {
  margin-bottom: 0;
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
}

.dropdown-content a:hover {background-color: #f3f3f3;}

.dropdown:hover .dropdown-content {display: block;}

@media (min-width: 320px) {
  .wrapper {
    flex-direction: column;
  }

  .input {
    margin-bottom: 30px;
    width: 100%;
  }
}

@media (max-width: 320px) {
  .logo-text {
    margin: 0;
  }

  .nav-link {
    display: none;
  }

  .donate {
    display: none;
    font-size: 20px;
  }

  .dropdown {
    display: none;
  }

  .dropdown-content {
    top: -241px;
    right: -7px;
  }

  .dropbtn {
    margin-left: 0px;
  }

  .nav-bar {
    display: block;
  }

  .news-wrapper {
    flex-direction: column;
  }

  .news-right {
    width: 100%;
    height: 200px;
  }

  .draggable-file {
    display: none;
  }
}

@media (max-width: 640px) {
  .logo-text {
    margin: 0;
  }

  .nav-link {
    display: none;
  }

  .donate {
    display: none;
    font-size: 20px;
  }

  .dropdown {
    display: none;
  }

  .dropdown-content {
    top: -241px;
    right: -7px;
  }

  .dropbtn {
    margin-left: 0px;
  }

  .nav-bar {
    display: block;
  }

  .news-wrapper {
    flex-direction: column;
  }

  .news-right {
    width: 100%;
    height: 200px;
  }

  .draggable-file {
    display: none;
  }
}

@media (max-width: 850px) {
  .logo-text {
    margin: 0;
  }

  .nav-link {
    display: none;
  }

  .donate {
    display: none;
    font-size: 20px;
  }

  .dropdown {
    display: none;
  }

  .dropdown-content {
    top: -241px;
    right: -7px;
  }

  .dropbtn {
    margin-left: 0px;
  }

  .nav-bar {
    display: block;
  }

  .news-wrapper {
    flex-direction: column;
  }

  .news-right {
    width: 100%;
    height: 200px;
  }
  .draggable-file {
    display: none;
  }
}

@media (min-width: 1024px) {
  .wrapper {
    flex-direction: row;
  }

  .input {
    width: 350px;
    margin: 0px 30px 0px 0px;
  }
}
