@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,400;0,700;1,400;1,700&display=swap");

* {
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

/* ############################# STYLES FOR THE LAYOUT PAGE ############################# */
body {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  --s: 144px; /* control the size*/
  --c1: #b2b2b2;
  --c2: #ffffff;
  --c3: #d9d9d9;

  --_g: var(--c3) 0 120deg, #0000 0;
  background: conic-gradient(from -60deg at 50% calc(100% / 3), var(--_g)),
    conic-gradient(from 120deg at 50% calc(200% / 3), var(--_g)),
    conic-gradient(
      from 60deg at calc(200% / 3),
      var(--c3) 60deg,
      var(--c2) 0 120deg,
      #0000 0
    ),
    conic-gradient(from 180deg at calc(100% / 3), var(--c1) 60deg, var(--_g)),
    linear-gradient(
      90deg,
      var(--c1) calc(100% / 6),
      var(--c2) 0 50%,
      var(--c1) 0 calc(500% / 6),
      var(--c2) 0
    );
  background-size: calc(1.732 * var(--s)) var(--s);
}

main {
  flex: 1;
}

section {
  width: 100%;
}

.header-main {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 2vw;
  height: 13vh;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #fbfbfb;
}

.header-title-div {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.header-main h1 {
  margin: 0;
  font-size: 2em;
  color: #333;
}
.header-main nav a {
  margin-left: 20px;
  text-decoration: none;
  color: #007bff;
  font-size: 1.5em;
}
.header-main nav a:hover {
  text-decoration: none;
}

.footer-main {
  background-color: #464a5d;
  color: #fff;
  text-align: center;
  padding: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 16px;
}

.footer-main nav {
  margin-top: 20px;
}

.social-links button {
  padding: 0;
  background: transparent;
  cursor: pointer;
  border: none;
  margin: 0 10px;
}

.social-links svg{
  height: 32px;
  width: 32px;
  fill: #fff;
}

.footer-links {
  display: flex;
  gap: 16px;
}

.footer-links a{
  text-decoration: none;
  color: #fff;
}

.footer-links a:hover{
  text-decoration: underline;
}

/* ############################# STYLES FOR THE INDEX PAGE ############################# */

.index-section {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  min-height: 87vh;
}

.welcome-div {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  margin: 30px 0px 0px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.welcome-title-div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.welcome-title-div h1 {
  font-size: 4em;
  font-weight: 600;
  color: #333;
  margin: 0;
}

.welcome-title-div p {
  font-size: 1.25em;
  color: #333;
}

.index-buttons-div {
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  align-items: center;
  width: 100%;
}

.info-div {
  display: flex;
  flex-direction: row;
  justify-content: center;
}

.index-card {
  margin: 3vw;
  width: 100%;
}

.card-icon {
  width: 68px;
  height: 68px;
  vertical-align: middle;
}

.card-title {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.card-title h2 {
  color: #333;
}

/* ############################# STYLES FOR THE CONVERT PAGE ############################# */

#file-input {
  display: none;
}

#file-preview {
  display: none;
}

.file-preview-div {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  width: 100%;
}

.highlight {
  border-color: #005af0 !important;
  cursor: copy;
}

.upload-div {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.upload-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.drop-file-div {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
}

.container {
  width: 100%;
  align-items: center;
  display: flex;
  justify-content: center;
  min-height: 87vh;
}

.card {
  border-radius: 16px;
  box-shadow: 0 5px 10px 0 rgba(0, 0, 0, 0.3);
  padding: 20px 40px;
  background-color: #f8f8f5;
}

.card h3 {
  font-size: 1.75em;
  font-weight: 600;
}

.drop_box {
  margin: 10px 0;
  padding: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border: 3px dotted #a3a3a3;
  border-radius: 5px;
}

h4 {
  font-size: 1.5em;
  font-weight: 400;
  color: #2e2e2e;
}

.drop-box-p {
  margin-top: 10px;
  margin-bottom: 20px;
  font-size: 1em;
  color: #a3a3a3;
}

.btn {
  text-decoration: none;
  background-color: #005af0;
  color: #ffffff;
  padding: 10px 20px;
  border: none;
  outline: none;
  transition: 0.3s;
  cursor: pointer;
  border-radius: 4px;
  font-size: 1.25em;
}

.btn:hover {
  text-decoration: none;
  background-color: #ffffff;
  color: #005af0;
  padding: 10px 20px;
  border: none;
  outline: 1px solid #010101;
}

#h4-filename {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.file-preview-header {
  width: 100%;
  text-align: center;
}

.choose-div {
  text-align: center;
}

.select-div {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-around;
  width: 100%;
  margin-top: 10px;
  margin-bottom: 20px;
  gap: 20px;
}

select {
  width: 80%;
  padding: 12px 20px;
  border-radius: 4px;
  border: none;
  outline: none;
  background-color: #e2e2e2;
  cursor: pointer;
}

#loading-img {
  width: 60px;
  height: 60px;
}

/* ############################# STYLES FOR WEB ############################# */

.download-form input {
  margin: 10px 0;
  width: 100%;
  background-color: #e2e2e2;
  border: none;
  outline: none;
  padding: 12px 20px;
  border-radius: 4px;
}

.web-box {
  margin: 10px 0;
  padding: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border: 1px solid #a3a3a3;
  border-radius: 5px;
}

.web-div {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  width: 100%;
}

.download-p {
  font-size: 1em;
  color: #a3a3a3;
}

/* ############################# STYLES FOR DOWNLOAD ############################# */

.download-div {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  width: 45%;
}

.file-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.file-info p {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.file-info div {
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  align-items: center;
  width: 100%;
}

.media-preview {
  max-height: 30vh;
  max-width: 100%;
}

.links-div {
  display: flex;
  gap: 25px;
  font-size: 0;
}

.links-btn {
    position: relative;
    display: flex;
    justify-content: center;
    font-size: 12px;
}

.links-btn:hover svg {
  fill: #005af0;
}

.file-preview-div {
  display: flex;
  gap: 30px;
  margin: 2vh 0;
}

.tooltip {
  z-index: 1;
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  margin-left: 10px;
  opacity: 0;
  background-color: rgb(12, 12, 12);
  color: white;
  padding: 5px 10px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition-duration: 0.2s;
  pointer-events: none;
  letter-spacing: 0.5px;
}

.tooltip::before {
  position: absolute;
  content: "";
  width: 10px;
  height: 10px;
  background-color: rgb(12, 12, 12);
  transform: rotate(45deg);
  left: -5px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  transition-duration: 0.3s;
}

.links-btn:hover .tooltip {
  opacity: 1;
  transition-duration: 0.3s;
}
