/* Основной контейнер */
html, body {
    font-family: 'Roboto', sans-serif;
    background-color: #f9f9f9;
    height: 100%;
    margin: 0;
    padding: 10px;
}

/* Обертка для контента */
#app {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

/* Основной контент */
main {
    flex: 1;
}

/* Подвал */
footer {
    flex-shrink: 0;

}



  .converter {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 10px;
    background-color: #fff;
  }

  .color-preview {
    width: 100%;
    height: 100px;
    border: 2px solid #ccc;
    border-radius: 10px;
    margin-bottom: 20px;
    background-color: #7D227D;
  }

  .input-group {
    margin-bottom: 15px;
  }

  .label-conv {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
    font-weight: bold;
    gap: 10px;
  }

  .input-group-conv input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
  }

  .sub-inputs {
    display: flex;
    gap: 10px;
  }

  input[type="number"] {
    width: calc(33.33% - 7px); /* Для RGB, HSL, HSV */
  }

  input[type="number"][id^="cmyk"] {
    width: calc(25% - 7.5px); /* Для CMYK */
  }

  .output {
    font-family: monospace;
    color: #555;
    flex-grow: 1;
  }

  .copy-button {
    background: none;
    border: none;
    cursor: pointer;
    color: #007bff;
    font-size: 18px;
    padding: 5px;
  }

  .copy-button:hover {
    color: #0056b3;
  }

  .copy-notification {
    display: none;
    color: green;
    font-size: 12px;
    margin-left: 5px;
  }

  .color-models {
    max-width: 1000px;
    margin: 20px auto;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 10px;
    background-color: #fff;
  }
  .color-models p {
    text-align:justify;
  }

  .description {
    font-size: 14px;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.5;
  }

  .description i {
    color: #007bff;
  }
  .color-card {
    transition: transform 0.2s ease;
}
.color-card:hover {
    transform: scale(1.05);
}
/* Стили для всплывающего уведомления */
.copy-notification-color {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #28a745;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    animation: fadeInOut 2s ease-in-out;
}

@keyframes fadeInOut {
    0% { opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { opacity: 0; }
}
.card-image-container {
    width: 100%;
    height: 300px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}
#home-slider {
    background: url(../images/home/slider-bg.png) 0 100% repeat-x;
    position: relative;
    align-items: center; /* Вертикальное выравнивание по центру */
    justify-content: center; /* Горизонтальное выравнивание по центру */
    height: 100%; /* Высота слайдера равна высоте экрана */
  }

  #home-slider .main-slider {
    position: relative;
    height: 450px;
  }

  #home-slider .slide-text{
    position: absolute;
    top: 50px;
    left: 0;
    width: 450px;
  }

  .animate-in .slide-text {
    -webkit-animation: fadeInLeftBig 700ms cubic-bezier(0.190,1.000,0.220,1.000) 200ms both;
    animation: fadeInLeftBig 700ms cubic-bezier(0.190,1.000,0.220,1.000) 200ms both;
  }

  #home-slider .slider-hill {
    position: absolute;
    right: 0;
    bottom: 0;
  }

  .animate-in .slider-hill {
    -webkit-animation: bounceInDown 1000ms ease-in-out 200ms both;
    animation: bounceInDown 1000ms ease-in-out 200ms both;
  }

  #home-slider .slider-house {
    position: absolute;
    right: 110px;
    bottom: -30px;
  }

  .animate-in .slider-house {
    -webkit-animation: bounceInDown 500ms ease-in-out 800ms both;
    animation: bounceInDown 500ms ease-in-out 800ms both;
  }

  #home-slider .slider-sun {
    position: absolute;
    right: 365px;
    bottom: 100px;
  }

  .animate-in .slider-sun {
    -webkit-animation: scaleIn 500ms ease-in-out 1200ms both;
    animation: scaleIn 500ms ease-in-out 1200ms both;
  }

  #home-slider .slider-birds1 {
    position: absolute;
    right: 470px;
    bottom: 75px;
  }

  .animate-in .slider-birds1 {
    -webkit-animation: fadeInLeft 500ms ease-in-out 1200ms both;
    animation: fadeInLeft 500ms ease-in-out 1200ms both;
  }

  #home-slider .slider-birds2 {
    position: absolute;
    right: 40px;
    bottom: 150px;
  }

  .animate-in .slider-birds2 {
    -webkit-animation: fadeInRight 500ms ease-in-out 1200ms both;
    animation: fadeInRight 500ms ease-in-out 1200ms both;
  }


  #home-slider h1{
    margin-top: 100px;
    margin-bottom: 25px;
  }

  #home-slider .btn-common {
    margin-top: 20px;
  }

  #home-slider .preloader {
    position: absolute;
    left: 0;
    top: 0;
    bottom: -30px;
    right: 0;
    background: #fafafa;
    text-align: center;
  }

  #home-slider .preloader > i {
    font-size: 48px;
    height: 48px;
    line-height: 48px;
    color: #00aeef;
    position: absolute;
    left: 50%;
    margin-left: -24px;
    top: 50%;
    margin-top: -24px;
  }

@media (max-width: 768px) {
    .card-image-container {
        height: 150px;
    }
    .navbar-nav {
        margin-top: 10px;
    }

    .navbar-collapse {
        background-color: #f8f9fa; /* Фон для мобильного меню */
        padding: 10px;
        border-radius: 5px;
    }

    .d-flex {
        margin-top: 10px;
    }
}
/* Стили для модального окна */
.modal-content {
    background-color: transparent;
    border: none;
}

.modal-body {
    padding: 0;
}

.modal-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}
.color-preview {
    transition: transform 0.2s ease;
}

.color-preview:hover {
    transform: scale(1.02);
}

.copy-btn {
    cursor: pointer;
}

.copy-notification-color {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #28a745;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    z-index: 9999;
    animation: fadeOut 2s ease forwards;
}

@keyframes fadeOut {
    0% { opacity: 1; }
    70% { opacity: 1; }
    100% { opacity: 0; visibility: hidden; }
}
/* ===== СТИЛИ ДЛЯ БЛОКА 1 (Готовые комбинации) ===== */
.ready-combinations-section .hover-zoom {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ready-combinations-section .hover-zoom:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

.ready-combinations-section .color-preview {
    transition: transform 0.2s ease;
}

/* ===== СТИЛИ ДЛЯ БЛОКА 2 (Гармоничные сочетания) ===== */
.harmony-section .card-body {
    padding: 0 !important;
    line-height: 0;
}

.harmony-section .card-body > div {
    line-height: normal;
}

.harmony-section .card-body .d-flex.align-items-center.justify-content-center {
    transition: all 0.2s ease;
}

.harmony-section .card-body .d-flex.align-items-center.justify-content-center:hover {
    filter: brightness(0.95);
    cursor: pointer;
}

/* Скругления для карточек блока 2 */
.harmony-section .card {
    border-radius: 12px !important;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.harmony-section .card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12) !important;
}

.harmony-section .card-header {
    border-top-left-radius: 12px !important;
    border-top-right-radius: 12px !important;
}

/* Убираем все скругления у цветовых блоков внутри карточек */
.harmony-section .card-body .d-flex.align-items-center.justify-content-center,
.harmony-section .card-body .row.g-0 > div > a > div,
.harmony-section .card-body .row.g-0 > div > div > a > div {
    border-radius: 0 !important;
}

/* Убираем отступы у row внутри карточек */
.harmony-section .row.g-0 {
    margin-left: 0;
    margin-right: 0;
}

/* Убираем возможные промежутки между блоками */
.harmony-section .card-body > div:first-child {
    margin-bottom: 0;
}

.harmony-section .card-body .row {
    margin-top: 0;
}

/* Стили для блока гармоничности */
.harmony-section .bg-light {
    background-color: #f8f9fa !important;
}

/* ===== ОБЩИЕ СТИЛИ ===== */
/* Для мобильных устройств */
@media (max-width: 768px) {
    .harmony-section .card-body .d-flex.align-items-center.justify-content-center {
        min-height: 80px !important;
    }

    .harmony-section .card-header h5 {
        font-size: 13px;
    }

    .harmony-section .card-header small {
        font-size: 10px;
    }

    .harmony-section .card {
        border-radius: 8px !important;
    }

    .ready-combinations-section .card-body {
        padding: 1rem !important;
    }
}

/* Обёртка с тёмным фоном на всю ширину */
.color-theme-wrap {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    transition: background-color 0.3s ease;
}

/* Контент внутри обёртки */
.color-theme-wrap .container {
    margin: 0 auto;
    padding: 15px;
}

/* Тёмная тема для обёртки */
.color-theme-wrap.dark {
    background-color: #1a1a2e;
}

.color-theme-wrap.dark .card,
.color-theme-wrap.dark .list-group-item {
    background-color: #16213e !important;
    border-color: #0f3460 !important;
    color: #eeeeee !important;
}

.color-theme-wrap.dark .text-muted {
    color: #aaaaaa !important;
}

.color-theme-wrap.dark a:not(.btn) {
    color: #66b0ff !important;
}

.color-theme-wrap.dark h1,
.color-theme-wrap.dark h2,
.color-theme-wrap.dark h3,
.color-theme-wrap.dark h4 {
    color: #ffffff !important;
}
