@import url('https://fonts.googleapis.com/css2?family=Dela+Gothic+One&display=swap');
html, body {
    font-size: 18px;
    transition: transform 0.2s ease-in-out;
    font-family: "Open Sans", serif;
    margin: 0;
    scroll-behavior: smooth;
    display: grid;
}

.container {
  margin: 0px 166px;
}

.header {
  background-image: url(bg.png);
  height: 100vh;
  background-repeat: no-repeat;
  background-size: cover;
}
.header-logo img{
  height: 100px;
  width: 100px; 
}
.header-line {
  padding-top: 50px;
  display: flex;
  align-items: center;
  justify-content: space-around;
}

.nav-item {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  margin-right: 25px;
  transition: color 0.3s linear;
}

.nav-item:hover {
  color: #943112;
}

.cart {
  position: relative;
  border-right: #FFFFFF 1px solid;
  padding-right: 10px;
}

.cart-img {
  position: absolute;
  top: 19px;
  right: 3px;
}

.num {
  color: #FFFFFF;
  text-decoration: none;
  font-weight: 700;
  transition: color 0.3s linear;
}

.num:hover {
  color: #943112;
}

.phone-text {
  color: #ffffff;
  font-size: 14px;
  font-weight: 400;
}

.phone-holder {
  display: flex;
  align-items: center;
}

.button {
  background-color: #943112;
  color: #fff;
  text-decoration: none;
  padding: 14px 18px;
  font-weight: 700;
  transition: color 0.5s linear;
}

.button:hover {
  background-color: #a07017;
}

.header-down {
  position: relative;
  text-align: center; /* Центрирование содержимого */
}

.header-title {
  color: #bd1b1c;
  font-family: "dela gothic one", sans-serif;
  font-size: 80px;
  font-weight: 400;
  text-align: center;
  position: absolute;
  width: 100%; /* Чтобы заголовок не уползал */
  left: 20%;
  transform: translateX(-50%); /* Центрирование */
  margin-top: 222px;
  margin-bottom: 12px;
}

.header-subtitle {
  color: #bd1b1c;
  font-family: "dela gothic one", sans-serif;
  font-size: 20px;
  font-weight: 400;
  display: block;
  margin-top: 10px;
}

.header-suptitle {
  color: #ffffff;
  font-family: "dela gothic one", sans-serif;
  font-size: 15px;
  font-weight: 400;
  text-align: center;
  margin-top: 20px;
}

.header-suptitle::before {
  position: absolute;
  content: "";
  height: 2px;
  width: 61px;
  background-color: #fff;
  top: 127px;
  left: 56px;
}

.header-suptitle::after {
  position: absolute;
  content: "";
  height: 2px;
  width: 61px;
  background-color: #fff;
  top: 127px;
  left: 308px;
}

.header-btn {
  text-align: center;
}

.header-button {
  border-color: #FF7400;
  padding: 14px 28px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  font-family: "Open Sans", sans-serif;
  text-decoration: none;
  transition: background-color 0.3s linear;
}

.header-button:hover {
  background-color: #8d450b;
}

.cards-holder {
  display: flex;
  justify-content: center;
}

.card {
  width: 349px;
  box-shadow: 10px 10px 40px 20px #0000001A;
  margin-right: 31px;
  background-color: #fff;
  margin-top: -110px;
  padding: 10px 10px;
}

.card-image {
  display: flex;
  justify-content: center;
  padding-top: 31px;

}

.card-title {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
  font-family: "Tinos", serif;
  font-size: 26px;
  font-weight: 400;
}

.card-title span {
  color: #cc441b;
}

.card-desc {
  text-align: center;
  font-family: "Tinos", serif;
  font-size: 26px;
  font-weight: 400;
  color: #656363;
}

.history {
  margin-top: 166px;
  padding-bottom: 200px;
}

.history-title {
  font-family: "Tinos", serif;
  font-size: 54px;
  font-weight: 400;
  width: 444px;
  text-align: center;
  margin-top: 21px;
}

.history-title span {
  color: #cc441b;
}

.history-desc {
  font-size: 16px;
  color: #656363;
  font-family: "Open Sans", sans-serif;
  width: 444px;
  text-align: center;
}

.history-number {
  display: flex;
  width: 444px;
  justify-content: center;
  margin-top: 40px;
  margin-left: 30px;
}

.number-item {
   margin-right: 60px;
   text-align: center;
   font-size: 40px;
   color: #cc441b;
}

.number-item span {
  display: block;
  color: #000;
}

.history-images {
  position: relative;
}

.history-holder {
  display: flex;
}

.images-1 {
  position: absolute;
  z-index: 0;
  top: 54px;
  left: 70px;
  width: 480px;
  height: 350px;
}

.images-2 {
  position: absolute;
  z-index: 999;
  top: -80px;
  left: 430px;
  width: 480px;
  height: 350px;
}

.images-3 {
  position: absolute;
  z-index: 999;
  top: 170px;
  left: 486px;
  width: 420px;
  height: 350px;
}

.black-block {
  background-color: #000;
  padding: 50px 0;
  background-repeat: no-repeat;
  background-size: cover;
}

.left-title {
  font-family: "Tinos", serif;
  font-size: 52px;
  font-weight: 400;
  color: #cc441b;
  margin-top: 21px;

  margin-bottom: 20px;
}

.left-text {
  font-size: 24px;
  color: #FFFFFF;
  font-family: "Open Sans", sans-serif;
  margin-top: 20px;
  font-weight: 400;
}

.right-btn {
  background-color: #FFA500;
  color: #fff;
  text-decoration: none;
  padding: 14px 18px;
  font-weight: 700;
  transition: color 0.2s linear;
}

.block-holder {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dishes-title {
  font-family: "Tinos", serif;
  font-size: 54px;
  font-weight: 400;
  text-align: center;
  padding-top: 132px;
  margin-bottom: 139px;   
}

.dishes-title span {
  color: #cc441b;
}

.burgers {
  display: flex;
  justify-content: center;
}


.burger-item {
  display: flex;
  align-items: center;
  margin-bottom: 29px;
}


.burgers-image {
  margin-right: 20px;
}

.burger-text {
  font-family: "Tinos", serif;
  font-size: 26px;
  margin-left: 20px;
}

.menu {
  background-color: #000;
  background-repeat: no-repeat;
  background-size: cover;
  padding-bottom: 100px;
}

.menu-title {
  font-family: "Tinos", serif;
  font-size: 54px;
  font-weight: 400;
  text-align: center;
  padding-top: 50px; 
  color: #FFFFFF;
  padding-bottom: 50px;
}

.img-aes {
  justify-content: space-between;
  height: 300px;
  width: 300px;
  padding-top: 90px;
  border-radius: 20px;
}

.slider-container {
  text-align: center;
  color: white;
  font-family: Arial, sans-serif;
}


.slider {
  position: relative;
  width: 700px;
  height: 700px;
  overflow: hidden;
  margin: auto;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  transform: scale(0.95);
}

.slide.active {
  opacity: 1;
  transform: scale(1);
}

.slider-img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  transition: transform 0.5s ease-in-out;
}

.slider-img:hover {
  transform: scale(1.05);
}

.quote {
  margin-top: 20px;
  background: rgba(0, 0, 0, 0.7);
  padding: 15px;
  border-radius: 10px;
  max-width: 80%;
  font-size: 18px;
  display: inline-block;
  transition: background 0.3s ease-in-out;
}

.quote:hover {
  background: rgba(0, 0, 0, 0.9);
}

.controlls {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  cursor: pointer;
  font-size: 24px;
  padding: 10px;
  transition: background 0.3s ease-in-out, transform 0.2s ease;
}

.controlls:hover {
  background: rgba(0, 0, 0, 0.7);
  transform: scale(1.1);
}

.prev {
  left: 10px;
}

.next {
  right: 10px;
}


.menu-item {
  background-color: #fff;
  text-align: center;
  width: 33%;
  padding-top: 80px;
  padding-bottom: 30px;

  margin-right: 20px;
}

.menu-text {
  font-family: "Tinos", serif;
  font-size: 26px;
  padding-top: 16px;
  padding-bottom: 17px;
}

.menu-subtext {
  font-family: "Open Sans", sans-serif;
  font-size: 16px;
}

.menu-btn {
  background-color: #cc441b;
  text-decoration: none;
  padding: 14px 67px;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  box-shadow: 5px 5px 10px 0px #00000040;
}

.menu-button {
  margin-top: 30px;
}

.menu-items {
  display: flex;
  justify-content: center;
}


.comment {
  background-color: #FAF0E6;
  padding-top: 40px;
  padding-bottom: 40px;
}

.comment-text {
  text-align: center;
  font-style: italic;
  font-size: 20px;
  margin-bottom: 20px;
}

.comment-img {
  border-radius: 70px;
  height: 120x;
  width: 150px;
}

.comment-image {
  text-align: center;
}

.comment-type {
  font-weight: 600;
  font-size: 20px;
  text-align: center;
}

.comment-name {
  padding-top: 9px;
  font-size: 20px;
  font-weight: 400;
  text-align: center;
}

.galery-title {
  font-family:  "Tinos", serif;
  font-size: 54px;
  text-align: center;
  padding-top: 100px;
  margin-bottom: 60px;
}

.galery-title span {
  color: #cc441b;
}

.galery-content {
  display: flex;
  justify-content: center;
}

.left {
  margin-right: 20px;
}

.galery-down,
.galery-up
 {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

.cook-title {
  font-family: "Tinos", serif;
  font-size: 54px;
  text-align: center;
  margin-bottom: 100px;
  margin-top: 100px;
}

.cook {
  padding-bottom: 50px;
}

.cook-title span {
  color: #cc441b;
}

.cook-content {
  display: flex;
  justify-content: space-around;
}

.footer {
  background-color: #000000;
  padding: 42px 60px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
}

.footer-content div span {
  display: flex;
  align-items: center;
  margin-bottom: 19px;
}

.footer-content div span h1 {
  font-size: 21px;
  color: #fff;
}

.footer-content div span img {
  margin-right: 13px;
}

.footer-content div p {
  font-size: 16px;
  color: #fff;
  font-weight: lighter;
}

.footer-content div h2 {
  font-size: 16px;
  color: #fff;
  font-weight: bolder;
}

.footer-content div a {
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  font-weight: lighter;
  display: block;
}

.footer-content img {
  width: 70px;
  height: 70px;
}

.search-container {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

#searchInput {
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.button {
  background-color: #a5851a;
  color: white;
  padding: 8px 15px;
  border-radius: 5px;
  text-decoration: none;
  cursor: pointer;
}

.button:hover {
  background-color: #0056b3;
}



#chessCanvas:hover{
  cursor: pointer;
}

#chessCanvas {
  border: 8px solid #681a0d;
  margin: 20px auto;
  display: block;
}


.debut {
  width: 80%; /* Ограничиваем ширину */
  max-width: 400px; /* Максимальная ширина */
  text-align: center;
  border: 1px solid #ddd;
  padding: 15px;
  border-radius: 8px;
  background-color: #f9f9f9;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.debut a {
  text-decoration: none;
  color: inherit;
}


.debut img {
  height: 250px;
  width: 250px;
  text-decoration: none;
}


.debut img:hover {
  transform: scale(1.1);
  transition: transform 0.7s ease-in-out;
}

.cook-content img {
  height: 450px;
  width: 400px;
  transition: transform 0.3s ease-in-out;
  cursor: pointer;
}

.cook-content img:hover {
  transform: scaLe(1.2);
}

.slide-text {
  coLor: #ffffff;
  text-align: center;
  font-size: 10;
  margin-top: 20px;
}

.title {
  font-size: 24px;
  margin-bottom: 20px;
}


.navigation {
  margin-bottom: 20px;
}

.navigation button {
  background: #007bff;
  color: white;
  border: none;
  padding: 10px 15px;
  margin: 5px;
  cursor: pointer;
  border-radius: 5px;
  font-size: 16px;
  transition: 0.3s;
}

.navigation button:hover {
  background: #0056b3;
}


.title {
  font-size: 24px;
  margin-bottom: 20px;
}


.timeline-container {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  max-width: 90%;
  margin: 0 auto;
}

.nav-button {
  background: #007bff;
  color: white;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  font-size: 24px;
  border-radius: 50%;
  transition: 0.3s;
}

.nav-button:hover {
  background: #0056b3;
}

.left {
  margin-right: 10px;
}

.right {
  margin-left: 10px;
}


.title {
  font-size: 28px;
  margin-bottom: 20px;
}


.timeline-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  width: 100%;
  height: 80vh;
}


.nav-button {
  background: #007bff;
  color: white;
  border: none;
  padding: 15px;
  cursor: pointer;
  font-size: 24px;
  border-radius: 50%;
  transition: 0.3s;
}

.nav-button:hover {
  background: #0056b3;
}

.left {
  margin-right: 10px;
}

.right {
  margin-left: 10px;
}

.newsFormat-inner {
  display: flex;
  justify-content: space-around;
  align-items: center;

  margin-bottom: 161px;
}

.newsFormat-inner div {
  margin-right: 134px;
}

.newsFormat-inner div h2 {
  font-size: 24px;
  font-weight: bolder;
  margin-bottom: 30px;
  color : white
}

.newsFormat-inner div p {
  font-size: 18px;
  font-weight: 444;
  color: #000;
  font-family: "Open Sans", sans-serif;
  line-height: 140%;
  text-align: center;
  margin-top: 60px;
}

.newsFormat-inner img {
  border-radius: 10px;
  height: 500px;
  width: 500px;
}

.nav-itemr {
  display: none; 
}

.mark {
  background-color: rgb(184, 53, 53);
  color: white;
  font-weight: bold;
}
.search-box {
  margin: 10px 0;
}

#difficultySelect {
  position: relative !important;
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  z-index: 9999 !important;
  background-color: white;
  border: 1px solid black;
  width: 150px;
  height: 30px;
}

#openChat {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #b14141, #e68142);
    color: white;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0,0,0,0.4);
    transition: 0.2s;
}

#openChat:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(190, 87, 87, 0.5);
}

#chatPanel {
    position: fixed;
    top: 0;
    right: -380px;
    width: 350px;
    height: 100%;
    background: #121212;
    box-shadow: -5px 0 30px rgba(0,0,0,0.7);
    display: flex;
    flex-direction: column;
    transition: 0.3s;
    z-index: 9999;
    backdrop-filter: blur(10px);
}

.chat-header {
    padding: 15px;
    background: linear-gradient(135deg, #af4949, #965730);
    color: white;
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.chat-header button {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: 0.2s;
}

.chat-header button:hover {
    transform: scale(1.2);
}

#chatMessages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background: #0f0f0f;
}

.chat-input {
    display: flex;
    padding: 10px;
    background: #1E1E1E;
    border-top: 1px solid #333;
}

.chat-input input {
    flex: 1;
    padding: 10px;
    border-radius: 10px;
    border: none;
    outline: none;
    background: #2A2A2A;
    color: white;
}

.chat-input input::placeholder {
    color: #888;
}

.chat-input button {
    margin-left: 10px;
    padding: 10px 15px;
    border: none;
    border-radius: 10px;
    background: #FF8C42;
    color: white;
    cursor: pointer;
    transition: 0.2s;
}

.chat-input button:hover {
    background: #FFA559;
}

.message {
    padding: 10px 15px;
    margin: 8px 0;
    border-radius: 15px;
    max-width: 80%;
    animation: fadeIn 0.2s ease;
    font-size: 14px;
}

/* 👤 пользователь */
.user {
    background: #FF5C5C;
    color: white;
    margin-left: auto;
    box-shadow: 0 3px 10px rgba(255, 80, 80, 0.3);
}

/* 🤖 ИИ */
.ai {
    background: #2A2A2A;
    color: #EAEAEA;
    box-shadow: 0 3px 10px rgba(0,0,0,0.4);
}

@keyframes fadeIn {
    from {opacity: 0; transform: translateY(10px);}
    to {opacity: 1; transform: translateY(0);}
}