html {
  cursor: url(cursor.png), auto;
}

body {
  background-image: url("fon.png");
  background-repeat: repeat;
}

title {
  text-align: center;
  color: brown;
  font-size: 60px;
  font-family: 'Times New Roman', serif;
}

h1 {
  text-align: center;
  color: brown;
  font-size: 48px;
  font-family: 'Times New Roman', serif;
}

p {
  text-align: center;
  color: brown;
  font-family: 'Times New Roman', serif;
  font-size: 25px;
}

a {
  text-decoration: none;
  color: brown;
  font-family: 'Times New Roman', serif;
  font-size: 20px;
  margin: 10px;
}

#center {
  width: 340px;
  height: 250px;
  border-width: 1px;
  border-style: solid;
  border-color: black;
  background-color: white;
  z-index: 3;
  margin-left: 175px;
  margin-top: 9px;
  overflow-y: scroll;
  overflow-x;
  hidden;
  padding: 0px;
  border-radius: 9px;
}


aside {
  width: 300px;
  height: 400px;
  background-color: lightgray;
  /*use image later please*/
  background-size: 300px;
  position: absolute;
}


.button {
  background-color: #4CAF50;
  border: solid 1px black;
  border-radius: 15px;
  background-color: rgb(242, 178, 100);
  color: brown;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 15px;
  font-weight: 700;
  line-height: 20px;
  cursor: pointer;
  width: 190px;
  height: 20px;
  margin-top: 3px;
  margin-bottom: 3px;
}

.button-2 {
  border: solid 1px black;
  border-radius: 15px;
  background-color: rgb(242, 178, 100);
  border: 4px double brown;
  color: brown;
  font-family: 'Times New Roman', serif;
  font-weight: 700;
  font-size: 30px;
  width: 240px;
  height: 100px;
  display: inline-block;
  list-style: none;
  margin: 0;
  padding-top: 3px;
  text-align: center;
  transition: all 200ms;
  vertical-align: baseline;
  white-space: nowrap;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  margin-bottom: 5px;
  margin-top: 5px;
  cursor: url(pointer.png), pointer;
}

.button-2:hover {
  background-color: #f1cb9c;
  transform: translateY(-11px);
  z-index: 1;
}


.me {
  float: left;
  margin: 10px 15px 10px 0;
  border-radius: 10px;
  /* закруглённые края, необязательно */
  width: 200px;
}

.me:hover {
  content: url("bebebe.png")
}

.container {
  display: grid;
  grid-template-areas:
    "header header ."
    "article article article"
    "menu content ."
    ". half box"
    "footer footer .";
  grid-template-columns: 1fr 3fr;
  gap: 3px;
  padding: 5px;
}

.container div {
  padding: 10px;
  background-color: rgb(242, 178, 100);
  border: 4px double brown;
  color: brown;
  text-align: center;
}

.container div.header {
  grid-area: header;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  width: 80%;
  height: auto;
  margin: 0 auto;
}

.container div.menu {
  grid-area: menu;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  width: 73.29%;
  height: auto;
  padding: 2px;
  margin-left: 36.5%;
  margin-top: 11px;
}

.container div.content {
  grid-area: content;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  width: 80%;
  height: auto;
  margin-top: 11px;
  margin-left: 60px;
}

.container div.half {
  grid-area: half;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  width: 20%;
  height: auto;
  margin-top: 11px;
  margin-left: 60px;
}

.container div.box {
  grid-area: half;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  width: 56.7%;
  height: auto;
  margin-top: 11px;
  margin-left: 320px;
  /*я не нашла как сделать так чтобы сдвиг блока был от half а не от начала, поэтому будет так */
}

.container div.article {
  grid-area: article;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  width: 80%;
  height: auto;
  margin-top: 11px;
  margin-left: auto;
  margin-right: auto;
}


.scroll-box {
  max-height: 150px;
  overflow-y: auto;
  padding-right: 10px;
}

.scroll-box::-webkit-scrollbar {
  width: 8px;
}

.scroll-box::-webkit-scrollbar-track {
  background: rgb(120, 37, 37);
  border-radius: 10px;
}

.scroll-box::-webkit-scrollbar-thumb {
  background: rgb(255, 200, 133);
  border-radius: 10px;
}

.scroll-box::-webkit-scrollbar-thumb:hover {
  background: #aaa;
}

.container div.footer {
  grid-area: footer;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  width: 20%;
  height: auto;
  margin-top: 11px;
  margin-left: auto;
  margin-right: auto;
}

/* Гарантируем правильную основу */
.img-con {
  position: relative;
  /* чтобы overlay позиционировался внутри */
  display: inline-block;
  overflow: hidden;
  border-radius: 10px;
  background: transparent !important;
  /* убираем любой фон раз и навсегда */
  box-shadow: none !important;
  z-index: 0;
  /* базовый уровень */
}

/* Картинка — поверх фона, но под overlay */
.img-con img {
  display: block;
  width: 100%;
  height: auto;
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease;
}

/* Слой затемнения — точно над картинкой */
.img-con .overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  /* обязательно больше, чем у img */
  background: rgba(0, 0, 0, 0.65);
  /* тёмное реальное затемнение */
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  border-radius: 10px;
  pointer-events: none;
  /* чтобы клик шёл на картинку, если нужно */
}

/* Hover */
.img-con:hover .overlay {
  opacity: 1;
  transform: translateY(0);
}

/* Текст внутри overlay */
.img-con .overlay span {
  padding: 8px 12px;
  transform: translateY(10px);
  transition: transform 0.25s ease;
  font-weight: 600;
}

/* При hover — текст «всплывает» */
.img-con:hover .overlay span {
  transform: translateY(0);
}

.flex-container {
  padding: 0 0% 0px;
  display: -moz-flex;
  display: -webkit-flex;
  display: flex;
  height: 2160px;
  -moz-flex-flow: column wrap;
  -webkit-flex-flow: column wrap;
  flex-flow: column wrap;
  -moz-justify-content: flex-start;
  -webkit-justify-content: flex-start;
  justify-content: flex-start;
  -moz-align-items: flex-start;
  -webkit-align-items: flex-star;
  align-items: flex-start;
  -moz-align-content: flex-start;
  -webkit-align-content: flex-start;
  align-content: flex-start;
}

.flex-item {
  font-size: 1.3em;
  border-radius: 4px;
  padding: 5px 5px;
  margin: 4px;
  background: #9fe2e3;
  -moz-flex: 0 0 auto;
  -webkit-flex: 0 0 auto;
  flex: 0 0 auto;
}