body {
    font-family: "Montserrat", sans-serif;
    text-align: center;
    position: relative;
}

h1 {
    padding: 25px 10px;
}

.previewImage {
    display: flex; /* Используем flex для центрирования */
    justify-content: center; /* Центрируем по горизонтали */
    padding: 10px;
}
#resizedImageContainer {
    border: 1px solid #000;
    border-radius: 5px;
}

#fileInput {
    font-family: "Montserrat", sans-serif;
    font-size: medium;
    padding: 10px;
}

:root {
    --color1: #00bfff;
    --color2: #808080;
    --color3: #b5faff;
    --color4: #ffcba4;
    --color5: white;
}

.container {
    max-width: 800px;
    max-height: 1100px;
    min-height: 700px;
    margin: 35px auto;
    border-radius: 5px;
    background: linear-gradient(300deg, var(--color1), var(--color2), var(--color3), var(--color4), var(--color5));
    background-size: 150% 150%;
    animation: gradient-animation 18s ease infinite;
}

@keyframes gradient-animation {
  0% {
    background-position: 0% 30%;
  }
  30% {
    background-position: 60% 30%;
  }
  60% {
    background-position: 100% 60%;
  }
  100% {
    background-position: 0% 30%;
  }
}

#colorPalette {
    margin-top: 20px;
    display: flex; /* Используем flex для центрирования */
    justify-content: center; /* Центрируем по горизонтали */
    align-items: center; /* Центрируем по вертикали */
}

.colorPalette {
    display: flex;
    flex-wrap: wrap;
}

.box {
    width: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    /*margin: 5px;*/
}

.colorBox {
    width: 100px;
    height: 70px;
    display: inline-block;
    margin: 10px;
    border: 1px solid #000;
    border-radius: 5px;
}

.hexSpan {
    margin: 5px;
}

.infoContainer {
    width: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: white;
    border-radius: 5px;
    margin-bottom: 20px;
}

.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-left-color: #333;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -20px;
    margin-left: -20px;
    display: none; /* Спрячем спиннер по умолчанию */
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

footer {
  width: 100%;
  position: fixed;
  bottom: 10px;
  text-align: center;
}
