@import url('./header.css');
@import url('./button.css');
@import url('./footer.css');
@import url('./rating.css');
@import url('./tips.css');


/* Отключаем полосу прокрутки */
::-webkit-scrollbar {
  display: none;
}

:root {
  --main-green: #419152;
}

* {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
}

html {
  height: 100%;
}

body {
  width: 80%;
  min-height: 100%;
  padding: 25px 0;
  margin: 0 auto;

  display: flex;
  flex-direction: column;
  justify-content: space-between;

  overscroll-behavior: none;
  box-sizing: border-box;
}

ul {
  padding: revert;
  margin: revert;
}

p {
  margin: revert;
}

a {
  color: var(--main-green);
  text-decoration: none;
}

h2 {
  font-size: 1.3em;
}

.main-color {
  color: var(--main-green);
}

/* Окно подсказки */
.tooltip {
  position: absolute;
  padding: 8px 12px;
  z-index: 10;

  border-radius: 4px;
  background-color: #ccc;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  color: black;
  white-space: nowrap;
  font-size: 14px;
}

.main {
  width: 100%;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  margin: 25px auto;
}

.main>h1 {
  font-size: 28px;
  text-align: center;
}

.main--how {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
}

.main--how>p {
  margin-top: 8px;
}

.main--how>ol {
  padding-left: 30px;
}

.main__title {
  text-align: center;
}

.main__content {
  width: 100%;

  margin-top: 10vh;
  display: flex;
  justify-content: center;
}

.main__left {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.main__right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-left: 50px;
}

.main--how .main__right {
  justify-content: flex-start;
}

.main__right>p {
  margin-left: 2%;
}

.result__buttons {
  display: flex;
  gap: 20px;
}


.label_sample_img {
  height: clamp(200px, 35vh, 300px);
  width: auto;
}

.main__form {
  margin-top: 6px;
  margin-bottom: 60px;
  display: flex;
  position: relative;
}

.main__uin_count {
  position: absolute;
  width: 100%;
  text-align: center;
  top: 110%;
  opacity: 0.5;
  font-size: small;
}

.input-file-text {
  display: block;
  box-sizing: border-box;
  padding: 2px 5px;
  line-height: 36px;
  font-size: 15px;
  font-weight: bold;
  text-align: center;
  height: 40px;
  width: 300px;
  border: 1px solid #ddd;
  overflow: hidden;
}


.input-file-btn {
  border-radius: 4px 0 0 4px;
}

.upload-file-btn {
  border-radius: 0 4px 4px 0;
}

/* Hover/active */

.main__form input[type=file] {
  position: absolute;
  z-index: -1;
  opacity: 0;
  display: block;
  width: 0;
  height: 0;
}

/* Focus */
.main__form input[type=file]:focus+.input-file-btn {
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, .25);
}

/* Disabled */
form input[type=file]:disabled+.input-file-btn {
  background-color: #eee;
}

.width100 {
  width: 100%;
}

.instruction {
  margin-top: 20px;
}

.hide {
  display: none;
  !important;
}

.show {
  display: flex;
  animation: showBlock 1s linear forwards;
}

@keyframes showBlock {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

textarea#message_text {
  height: 300px;
  width: 100%;

  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 16px;
  resize: vertical;
  box-sizing: border-box;
}

label {
  padding: 12px 12px 12px 0;
  display: inline-block;
}

.form__container {
  max-width: 100%;
  border-radius: 5px;
  background-color: #f2f2f2;
  padding: 20px;
  margin: 0 auto;
}

.copied {
  font-size: 14px;
  background-color: #eeeeeecc;
  padding: 10px;
  position: fixed;
  bottom: 20px;
  left: 45%;
  z-index: 1;
  border-radius: 3px;

  animation: showBlock 1s forwards;
}



.expand {
  width: 100%;
  margin: 10px 0;
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
  background-color: #fff;
}

.expand[open] {
  transition: all 0.3s ease;
}

.expand__header {
  width: 100%;
  height: auto;
  cursor: pointer;
  transition: background-color 0.2s;
  text-align: left;
}

.expand__content {
  padding: 0 25px 25px;
  line-height: 1.5;
  /* Плавное появление */
  animation: fadeContent 0.3s ease forwards;
}

@keyframes fadeContent {
  from {
    opacity: 0;
    max-height: 0;
  }

  to {
    opacity: 1;
    max-height: 1500px;
  }
}

.donate {
  width: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 auto 40px auto;
}

.donate-image {
  max-width: 300px;
}

.donate-btn {
  width: auto;
}