@font-face {
  font-family: Vazirmatn;
  src: url('fonts/webfonts/Vazirmatn-Thin.woff2') format('woff2');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Vazirmatn;
  src: url('fonts/webfonts/Vazirmatn-ExtraLight.woff2') format('woff2');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Vazirmatn;
  src: url('fonts/webfonts/Vazirmatn-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Vazirmatn;
  src: url('fonts/webfonts/Vazirmatn-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Vazirmatn;
  src: url('fonts/webfonts/Vazirmatn-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Vazirmatn;
  src: url('fonts/webfonts/Vazirmatn-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Vazirmatn;
  src: url('fonts/webfonts/Vazirmatn-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Vazirmatn;
  src: url('fonts/webfonts/Vazirmatn-ExtraBold.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Vazirmatn;
  src: url('fonts/webfonts/Vazirmatn-Black.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Vazirmatn';
  transition: all 0.25s ease-in-out;
}

body {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
  background: linear-gradient(to right, #e0eafc, #cfdef3);
  padding: 50px;
}

.container {
  transform: translateY(-10%);
  opacity: 0;
  transition: none;
  animation: fade 0.75s ease-in-out forwards;
  flex: 1;
  width: 95%;
  max-width: 500px; 
  margin: 0 auto;
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  border: 2px solid #cfdef3;
  box-shadow: 0 0px 15px 1px rgba(0, 0, 0, 0.25);
}

@keyframes fade {
  from {}

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

h1 {
  text-align: center;
}

#urlForm {
  margin-top: 20px;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  row-gap: 20px;
}

.urllabel{
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  column-gap: 15px;
}

label {
  display: block;
}

input[type="url"],
input[type="password"] {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  border-radius: 5px;
  outline: none;
  border: 2px solid #cfdef3;
  color: grey;
}

input[type="url"]:focus,
input[type="password"]:focus {
  border: 2px solid #294bb9;
  color: #000;
}

.q {
  border: 2px double rgb(199, 98, 227);
  text-align: center;
  padding: 4px;
  width: 32px;
  height: 32px;
  font-size: 16px;
  color: #fff;
  font-weight: bolder;
  background-color: #7797dd;
  border-radius: 16px;
  cursor: pointer;
}

.help {
  display: none;
  justify-content: center;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.75);
  position: fixed;
  inset: 0;
  transition: none;
}

.help>p {
  text-align: center;
  width: 95%;
  transform: translateY(-40%);
  opacity: 0;
  transition: none;
  animation: fade 0.25s ease-in-out forwards;
  background-color: #fff;
  padding: 30px 60px;
  font-size: 16px;
  font-weight: bold;
  border: 2px solid #294bb9;
  border-radius: 10px;
}

@media screen and (min-width:576px) {
  .help>p {
    width: unset;
  }
}


input[type="submit"] {
  padding: 10px 20px;
  font-size: 16px;
  border: none;
  color: #fff;
  border-radius: 5px;
  background-color: #3498db;
  cursor: pointer;
}

input[type="submit"]:hover {
  background-color: #294bb9;
}

/* استایل پیام لینک کوتاه */
#shortLinkMessage {
  background: #e9f7f9;
  border: 1px solid #a5d6de;
  padding: 15px;
  margin: 20px auto;
  max-width: 500px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  column-gap: 15px;
  transition: none;
  box-shadow: 0 0 2px 1px rgba(0, 0, 0, 0.25);
}

.message-content{
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  row-gap: 15px;
}

#shortLinkMessage .message-icon {
  margin-right: 10px;
  font-size: 24px;
}

#shortLinkMessage .message-content p {
  padding: 0;
  font-size: 18px;
}

#shortLinkMessage .message-content a {
  display: block;
  text-align: center;
  width: 100%;
  padding: 0;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  color: #294bb9;
  word-wrap: break-word;
}

#shortLinkMessage .message-content button {
  display: inline-block;
  border: none;
  margin: 0;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 16px;
  color: #fff;
  cursor: pointer;
}

#copyBtn {
  background-color: #3498db;
}

#copyBtn:hover {
  background-color: #294bb9;
}

#shortLinkMessage .message-content #closeBtn {
  margin-right: 15px;
  background-color: #b31200;

}

#shortLinkMessage .message-content #closeBtn:hover {
  background-color: #ff1900;
}

/* استایل برای فرم غیرفعال */
#urlForm.disabled {
  opacity: 0.5;
  pointer-events: none;
}

#urlPatternErrorModal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
}

.errormodalbody {
  transform: translateY(-40%);
  opacity: 0;
  transition: none;
  animation: fade 0.25s ease-in-out forwards;
  display: flex;
  flex-direction: column;
  background-color: #fff;
  row-gap: 20px;
  font-size: 16px;
  font-weight: bold;
  border: 2px solid #294bb9;
  border-radius: 10px;
  text-align: center;
  padding: 30px 60px;
}

#closeModalBtn {
  width: max-content;
  margin: 0 auto;
  padding: 10px 20px;
  font-size: 16px;
  border: none;
  color: #fff;
  border-radius: 5px;
  background-color: #3498db;
  cursor: pointer;
}

#closeModalBtn:hover {
  background-color: #294bb9;
}