*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

@font-face {
  font-family: 'Roboto';
  src: url('../font/Roboto/Roboto-Regular.ttf') format('truetype');
}

@font-face {
  font-family: 'RobotoB';
  src: url('../font/Roboto/Roboto-Medium.ttf') format('truetype');
}

@font-face {
  font-family: 'RobotoBB';
  src: url('../font/Roboto/Roboto-Bold.ttf') format('truetype');
}

@font-face {
  font-family: 'RobotoI';
  src: url('../font/Roboto/Roboto-Italic.ttf') format('truetype');
}

body {
  font:
    16px 'Roboto',
    sans-serif;
  background-color: #1c1917;
  color: #fff;
}

main {
  min-height: 100vh;
  overflow: hidden;
  position: relative;
  /* padding: 20px; */
}

.hide-element {
  display: none !important;
}

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

footer {
  width: 100%;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

footer > .footer-links-container {
  padding: 80px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

footer .footer-links,
.footer-social {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-social img {
  width: 20px;
  height: 20px;
}

header {
  position: absolute;
  z-index: 11;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 170px;
  padding: 20px;
  align-items: center;
}

.lng-btn {
  background: none;
  text-transform: uppercase;
  border: none;
  padding: 10px;
  cursor: pointer;
  color: #fff;
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.lng-btn > img {
  width: 25px;
}

/* <TOGGLE SWITCH> */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 34px;
  height: 20px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-switch > span {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #5c5c5c;
  -webkit-transition: 0.4s;
  transition: 0.4s;
  border-radius: 34px;
}

.toggle-switch > span:before {
  position: absolute;
  content: '';
  height: 12px;
  width: 12px;
  left: 5px;
  bottom: 4px;
  background-color: rgb(0, 0, 0);
  -webkit-transition: 0.4s;
  transition: 0.4s;
  border-radius: 50%;
}

input:checked + span {
  background-color: #fa4149;
}

input:focus + span {
  box-shadow: 0 0 1px #fa4149;
}

input:checked + span:before {
  -webkit-transform: translateX(12px);
  -ms-transform: translateX(12px);
  transform: translateX(12px);
}

/* </TOGGLE SWITCH> */

.page-cover {
  width: 100%;
  height: 100vh;
  position: fixed;
  background-color: #252525;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  top: 0;
  left: 0;
  z-index: 2000;
  opacity: 1;
}

.page-cover.hide-cover {
  animation-name: fade-out-cover;
  animation-duration: 0.3s;
  animation-fill-mode: forwards;
}

.red-button-fill {
  background-color: #fa4149;
  border-radius: 3px;
  border: none;
  outline-color: #ee1e28;
  padding: 10px 30px;
  color: #fff;
  cursor: pointer;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s;
}

.red-button-fill.small {
  padding: 8px 15px;
  font-size: 16px;
}

.red-button-fill.small-xs {
  padding: 3px 10px;
  font-size: 15px;
}

.red-button-fill:hover {
  background-color: #f52f39;
}

.red-button-outline:hover {
  background-color: #fff;
}

.red-button-outline {
  background: none;
  border-radius: 3px;
  border: 2px solid #fa4149;
  outline-color: #ee1e28;
  padding: 10px 30px;
  color: #fa4149;
  cursor: pointer;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s;
}

.red-button-fill:disabled {
  background-color: #fa5e66 !important;
  cursor: default;
}

.icon-input-dark {
  border-radius: 5px;
  background-color: #252525;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 10px;
}

.textarea-dark {
  background-color: #252525;
  padding: 10px;
  width: 100%;
  font-size: 17px;
  color: #cacaca;
  border: none;
  border-radius: 5px;
  outline: none;
}

.textarea-dark:focus-visible {
  border: 2px solid #555555;
}

.dropdown-input-dark {
  position: relative;
  border-radius: 5px;
  background-color: #252525;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.dropdown-input-dark > input {
  padding: 10px;
  width: 100%;
  font-size: 17px;
  background: none;
  border: none;
  color: #cacaca;
}

.dropdown-input-dark > input:-webkit-autofill,
.dropdown-input-dark > input:-webkit-autofill:hover,
.dropdown-input-dark > input:-webkit-autofill:focus,
.dropdown-input-dark > input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 30px #252525 inset !important;
}

.dropdown-input-dark > input:-webkit-autofill {
  -webkit-text-fill-color: rgb(255, 255, 255) !important;
}

.dropdown-input-dark > .dropdown-list {
  position: absolute;
  z-index: 30;
  top: 43px;
  display: flex;
  flex-direction: column;
  width: 100%;
  border-radius: 5px;
  background-color: #333333;
  overflow-y: scroll;
  height: 200px;
}

/* width */
.dropdown-input-dark > .dropdown-list::-webkit-scrollbar {
  width: 10px;
}

/* Track */
.dropdown-input-dark > .dropdown-list::-webkit-scrollbar-track {
  background: #252525;
}

/* Handle */
.dropdown-input-dark > .dropdown-list::-webkit-scrollbar-thumb {
  background: #fa4149;
}

/* Handle on hover */
.dropdown-input-dark > .dropdown-list::-webkit-scrollbar-thumb:hover {
  background: #ff656c;
}

.dropdown-input-dark > .dropdown-list > div {
  padding: 0 10px;
  display: flex;
  cursor: pointer;
}

.dropdown-input-dark > .dropdown-list > div:hover {
  background-color: #515151;
}

.dropdown-input-dark > .dropdown-list > div:not(:last-child) {
  border-bottom: 1px solid #555555;
}

.dropdown-input-dark > .dropdown-list > div > input {
  opacity: 0;
}

.dropdown-input-dark > .dropdown-list > div > label {
  width: 100%;
  padding: 10px 0;
}

.dropdown-input-dark > .dropdown-list > div > input:focus + label {
  text-decoration: underline;
}

.icon-input-dark > img {
  width: 25px;
}

.icon-input-dark > button {
  background: none;
  border: none;
  cursor: pointer;
}

.icon-input-dark > input:-webkit-autofill,
.icon-input-dark > input:-webkit-autofill:hover,
.icon-input-dark > input:-webkit-autofill:focus,
.icon-input-dark > input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 30px #252525 inset !important;
}

.icon-input-dark > input:-webkit-autofill {
  -webkit-text-fill-color: rgb(255, 255, 255) !important;
}

.icon-input-dark > input {
  padding: 10px;
  width: 100%;
  font-size: 17px;
  background: none;
  border: none;
  color: #cacaca;
}

input:focus {
  outline: none;
}

.icon-input-dark:has(> input:focus) {
  border-bottom: 1px solid #ff0000;
}

.red-line-fluid {
  width: 100%;
  height: 2px;
  background: rgb(28, 25, 23);
  background: linear-gradient(
    90deg,
    rgba(28, 25, 23, 1) 0%,
    rgba(245, 64, 72, 1) 50%,
    rgba(28, 25, 23, 1) 100%
  );
}

header > .header-links {
  display: flex;
  gap: 20px;
}

header > .header-btns {
  position: relative;
  z-index: 16;
  display: flex;
  gap: 10px;
  align-items: center;
}

.header-nav-mobile {
  padding: 20px;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 15;
  width: 100%;
  height: 100vh;
  background-color: #1c1917;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 80px;
}

.header-btns > .mobile-menu-open-btn {
  background: none;
  border: none;
  padding: 10px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
}

.header-nav-mobile > button {
  font-size: 18px;
}

.header-nav-mobile-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  font-size: 20px;
}

.mobile-menu-open-btn > img {
  width: 25px;
}

.account-nav-container {
  width: 100%;
  margin-top: 100px;
}

.account-nav-container > div > h2 {
  margin-bottom: 20px;
}

.account-nav-container button.logout-btn {
  background: none;
  border: none;
  padding: 8px;
}

.account-nav-container button.logout-btn > img {
  width: 20px;
}

.account-nav-container > nav {
  display: flex;
  gap: 20px;
  justify-content: start;
  flex-wrap: wrap;
  align-items: center;
}

.account-nav-container > nav > a {
  text-decoration: none;
  color: #949494;
}

.account-nav-container > nav > a.selected {
  color: #fff;
}

#alert {
  position: fixed;
  z-index: 100;
  top: 0;
  right: 50%;
  transform: translate(50%);
  background-color: #dc3545;
  padding: 10px;
  display: flex;
  gap: 15px;
  border-radius: 0 0 5px 5px;
  min-width: 200px;
  align-items: center;
  justify-content: space-between;
  color: #fff;
}

.settings-heading {
  padding: 18px 0;
  margin-bottom: 30px;
  display: flex;
  gap: 20px;
  align-items: center;
  width: 100%;
  border-bottom: 2px solid #777777;
  flex-wrap: wrap;
}

.settings-heading > p {
  margin: 0;
}

#successAlert {
  position: fixed;
  z-index: 100;
  top: 0;
  right: 50%;
  transform: translate(50%);
  background-color: #0e7300;
  padding: 10px;
  display: flex;
  gap: 15px;
  border-radius: 0 0 5px 5px;
  min-width: 200px;
  align-items: center;
  justify-content: space-between;
  color: #fff;
}

#alert > img {
  width: 25px;
}

@media (max-width: 1100px) {
  header {
    gap: 50px;
  }
}

@media (max-width: 400px) {
  header {
    gap: 20px;
  }
}

@media (max-width: 770px) {
  .header-btns > .mobile-menu-open-btn {
    display: flex;
  }
  header > .header-links {
    display: none;
  }
  header > a > .red-button-fill {
    display: none;
  }
}

@keyframes fade-out-cover {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@keyframes move-in-left {
  0% {
    transform: translate(-100%);
  }
  100% {
    transform: translate(0);
  }
}

@keyframes move-in-right {
  0% {
    transform: translate(100%);
  }
  100% {
    transform: translate(0);
  }
}

.slide-right {
  animation-name: move-in-right;
  animation-duration: 0.5s;
  animation-fill-mode: forwards;
}

.slide-left {
  animation-name: move-in-left;
  animation-duration: 0.5s;
  animation-fill-mode: forwards;
}

.animation-delay-1 {
  animation-delay: 0.5s;
}

.animation-delay-2 {
  animation-delay: 1s;
}
.animation-delay-3 {
  animation-delay: 1.5s;
}
.animation-delay-4 {
  animation-delay: 2s;
}

/* === Notification button === */
.notif-btn {
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background-color 0.2s;
}
.notif-btn:hover {
  background-color: rgba(255, 255, 255, 0.08);
}
.notif-btn img {
  width: 22px;
  filter: invert(1);
}
#notifBadgeText {
  display: none;
  align-items: center;
  justify-content: center;
  background-color: #fa4149;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  border-radius: 4px;
  min-width: 26px;
  height: 26px;
  padding: 0 5px;
  line-height: 1;
}

/* === Notification modal === */
.notif-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 99;
}
.notif-modal {
  position: fixed;
  top: 68px;
  right: 20px;
  background: #1c1917;
  border: 1px solid #383838;
  border-radius: 8px;
  z-index: 100;
  width: 360px;
  max-height: 500px;
  overflow-y: auto;
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.7);
}
.notif-modal::-webkit-scrollbar {
  width: 6px;
}
.notif-modal::-webkit-scrollbar-track {
  background: #1c1917;
}
.notif-modal::-webkit-scrollbar-thumb {
  background: #fa4149;
  border-radius: 3px;
}
.notif-modal-section {
  padding: 14px 16px;
}
.notif-modal-section + .notif-modal-section {
  border-top: 1px solid #2e2e2e;
}
.notif-modal-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  gap: 10px;
}
.notif-modal-section-header h3 {
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  margin: 0;
  flex: 1;
}
.notif-item {
  padding: 7px 0;
  border-bottom: 1px solid #262626;
  color: #b0b0b0;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.notif-item:last-child {
  border-bottom: none;
}
.notif-item-content {
  flex: 1;
  min-width: 0;
}
.notif-item-content.notif-item-unread {
  color: #e8e8e8;
  font-weight: 700;
}
.notif-item-time {
  color: #777;
  font-size: 11px;
  margin-bottom: 2px;
}
.notif-item-msg {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.notif-row-action-btn {
  width: 24px;
  height: 24px;
  min-width: 24px;
  border: 1px solid #4d4d4d;
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.35;
}
.notif-row-action-btn.unread {
  opacity: 1;
  border-color: #fa4149;
}
.notif-row-action-btn img {
  width: 14px;
  height: 14px;
}
.notif-empty {
  color: #555;
  font-size: 13px;
  text-align: center;
  padding: 8px 0;
}
@media (max-width: 480px) {
  .notif-modal {
    right: 8px;
    left: 8px;
    width: auto;
  }
}
