body {
  margin: 0;
}

.email-entry {
  width: calc(25% - 45px);
}

.email-entry img {
  object-fit: cover;
  object-position: top;
  filter: drop-shadow(0px 0px 30px rgba(255, 96, 0, 0.25));
  border-radius: 20px;
  border: 1px solid #FF6000;
  width: 100%;
  height: auto;
  max-height: calc(345px* 164 / 69);
  cursor: pointer;
}

.email-entry img:hover {
  height: auto;
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

body,
button,
input {
  font-family: "Inter", sans-serif;
}

p {
  font-family: "Inter", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  font-variation-settings: "slnt" 0;
  margin: 0px;
}

p.emailsendername {
  font-size: 12px;
  font-weight: bold;
  line-height: 100%;
  margin-bottom: 5px;
}

p.emailsenderemail {
  font-size: 12px;
  font-weight: normal;
  line-height: 100%;
  margin-bottom: 5px;
}

p.emaildate {
  color: #505050;
  font-size: 12px;
  font-weight: normal;
  margin-bottom: 20px;
}

p.emailsubject {
  font-weight: bold;
  font-size: 16px;
  line-height: 125%;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  min-height: 2.6em;
  margin-bottom: 30px;
}

p.emailsubject:hover {
  display: block;
}

#emails-container {
  display: flex;
  flex-wrap: wrap;
  gap: 60px;
  margin: 70px;
}

#sender-filter {
  display: flex;
  overflow-x: auto;
  gap: 25px;
  padding: 2% 4%;
  white-space: nowrap;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
}

.sender-btn {
  background-color: transparent;
  border: none;
  font-family: "Inter", sans-serif;
  font-size: 20px;
  cursor: pointer;
  padding: 25px 12px 25px 25px;
  border-radius: 25px;
  transition: background-color 0.3s ease;
  color: inherit;
  display: inline-block;
  text-decoration: none;
}

.sender-btn.active {
  color: white;
}

.sender-link-group {
  display: inline-flex;
  align-items: center;
  gap: 0;
  border-radius: 25px;
  box-shadow: 0px 0px 25px rgba(255, 96, 0, 0.25);
  transition: background-color 0.3s ease, color 0.3s ease;
}

.sender-link-group.active {
  background-color: #FF6000;
  color: white;
}

.sender-link-group.active .sender-copy-btn {
  color: #fff;
}

.copy-current-sender-link {
  border: 1px solid #FF6000;
  background: #fff;
  color: #FF6000;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
}

.sender-copy-btn {
  width: 24px;
  height: 24px;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  padding: 0;
  margin-right: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.sender-copy-btn svg {
  display: block;
  width: 22px;
  height: 22px;
}

.copy-current-sender-link {
  padding: 14px 20px;
  font-size: 16px;
}

.forbtn {
  text-align: center;
  margin-bottom: 10%;
}

button#load-more-btn {
  font-weight: bold;
  font-size: 20px;
  border: none;
  color: #ffffff;
  background-color: #FF6000;
  padding: 20px 35px;
  border-radius: 20px;
  cursor: pointer;
}

.menu {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 2% 4%;
}

.logo {
  width: 17.8%;
}

.numbers {
  display: flex;
  justify-content: flex-end;
  gap: 70px;
}

.containerforarrow {
  display: flex;
  align-items: center;
  justify-content: center;
  position: sticky;
  left: 0;
  z-index: 1;
  gap: 5px;
  background: #fff;
  padding: 0 20px 0 0;
  height: 100%;
  box-shadow: -67px 0px 0px 67px #FFFFFF;
}

.arrow {
  background: #ff6000;
  width: 16%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: -webkit-sticky;
  /* Поддержка для Safari */
  position: sticky;
  left: 0;
  z-index: 1;
  /* Чтобы стрелка была поверх кнопок */
  padding: 30px;
  box-shadow: 0 0 25px rgba(255, 96, 0, 0.25);
  border-radius: 25px;
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

@font-face {
  font-family: 'Le Murmure';
  src: url('Le Murmure.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

.headerfornumber, .info-message, .loading {
  font-family: 'Le Murmure', sans-serif;
  font-size: 90px;
  color: #FF6000;
}

#sender-filter::-webkit-scrollbar {
  display: none;
  /* Скрываем стандартный скроллбар WebKit (Chrome, Safari) */
}

.fullscreen-container::-webkit-scrollbar {
  display: none;
  /* Скрываем стандартный скроллбар WebKit (Chrome, Safari) */
}

.descriptionfornumbers {
  font-size: 32px;
  color: #FF6000;
}

.fullscreen-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  overflow-y: auto;
  /* Добавляем вертикальную прокрутку */
}

.fullscreen-active {
  display: flex;
}

.fullscreen-image {
  max-width: 100%;
  width: auto;
  height: auto;
  margin: auto;
  display: block;
  transition: transform 0.3s ease;
}

.desktop-fullscreen .fullscreen-image {
  width: auto;
}

.close-preview-btn {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 20px;
  font-size: 16px;
  background-color: #FF6000;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

input#sender-search {
  border-bottom: 1px solid #7F7F7F;
  border-top: 0px;
  border-right: 0px;
  border-left: 0px;
  padding: 8px;
  font-size: inherit;
  min-width: 420px;
  color: #7f7f7f;
  outline: none;
}

.filtersforletters {
  margin: 0% 4%;
  display: flex;
  justify-content: space-between;
}

.sort-buttons {
  display: flex;
  gap: 10px;
}

.sort-btn {
  padding: 8px 16px;
  font-size: 14px;
  cursor: pointer;
  border: 1px solid #FF6000;
  background-color: white;
  color: #FF6000;
  border-radius: 20px;
}

.sort-btn.active {
  background-color: #FF6000;
  color: white;
}

#sender-buttons-container {
  display: flex;
  gap: 25px;
  padding: 0% 4% 0% 0%;
  white-space: nowrap;
  overflow-y: visible;
}

.sender-page-hero {
  margin: 2% 4%;
  border: 1px solid #FF6000;
  border-radius: 25px;
  padding: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.sender-page-hero h1 {
  margin: 6px 0 0;
  color: #FF6000;
  font-size: 44px;
  line-height: 1.1;
}

.sender-page-label {
  color: #7f7f7f;
  font-size: 14px;
}

.sender-page-back {
  color: #FF6000;
  font-weight: 700;
  text-decoration: none;
}

#statsaboutemails {
  margin: 2% 4%;
  background: rgba(255, 194, 158, 0.25);
  border: 1px solid #FF6000;
  border-radius: 25px;
  padding: 40px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 60px;
}

.containernumbersstats,
.containerfornubmersstats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

#statsaboutemails .headerfornumber,
.info-message,
.loading {
  leading-trim: both;
  text-edge: cap;
  font-feature-settings: 'pnum' on, 'lnum' on;
  display: flex;
  align-items: center;
  text-transform: uppercase;
  font-weight: normal;
  font-size: 64px;
  line-height: 100%;
}

#statsaboutemails .descriptionfornumbers {
  font-size: 20px;
  width: 235px;
}

@media only screen and (max-width: 1000px) {
  .email-entry {
    width: calc(50% - 23px);
  }
  .numbers {
    display: none;
  }
  #emails-container {
    display: flex;
    flex-wrap: wrap;
    gap: 45px;
    margin: 30px;
  }
  .menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 10% 4%;
    flex-direction: column;
    gap: 10px;
  }
  .arrow {
    width: 14%;
    padding: 16px;
    border-radius: 15px;
  }
  .sender-btn {
    font-size: 14px;
    padding: 10px 6px 10px 10px;
    border-radius: 25px;
  }

  .sender-link-group {
    gap: 0;
  }

  .sender-copy-btn {
    width: 18px;
    height: 18px;
    margin-right: 8px;
  }

  .sender-copy-btn svg {
    width: 17px;
    height: 17px;
  }

  .sender-page-hero {
    margin: 4%;
    padding: 20px;
    align-items: flex-start;
    flex-direction: column;
  }

  .sender-page-hero h1 {
    font-size: 30px;
  }

  .containernumbersstats,
  .containerfornubmersstats {
    flex-direction: column;
    text-align: center;
  }
  
  .filtersforletters {
    margin: 4% 4%;
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }

  input#sender-search {
    width: 100%;
    min-width: auto !important;
  }
  
  #sender-filter {
    gap: 0px;
  }
  
  .menu div img {
    width: 100%;
}

#statsaboutemails .descriptionfornumbers {
    width: 100%;
    font-size: 15px;
}

#statsaboutemails {
    padding: 20px;
    gap: 30px;
}

#statsaboutemails .headerfornumber,
.info-message,
.loading {
    font-size: 30px;
}
}
