@font-face {
  font-family: 'MyFont';
  src: url('front/Montserrat-VariableFont_wght.ttf'), format('truetype');
  font-weight: normal;
  font-style: normal;
}

@keyframes helicopter {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.train {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  border: 1px solid #ccc;
}

.train-content {
  display: inline-block;
  animation: helicopter 20s linear infinite;
}

.train-content span {
  display: inline-block;
  margin-right: 2em;
}

.generalbody {
  position: relative;
  background-image: url("front/tsvety-minimalizm-65.webp");
  font-family: 'MyFont', sans-serif;
  font-size: 16px;
  line-height: 1.4;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-width: 320px;
  overflow-x: hidden;
  height: auto;
}

.mebody {
  position: relative;
  background-image: url("front/shadow-leaf-isolated-white-background-with-space-writing-text.jpg");
  font-family: 'MyFont', sans-serif;
  font-size: 16px;
  line-height: 1.4;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-width: 320px;
  overflow-x: hidden;
  height: auto;
}

.sem1body {
  position: relative;
  background-image: url("front/floral-background-with-branch.jpg");
  font-family: 'MyFont', sans-serif;
  font-size: 16px;
  line-height: 1.4;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-width: 320px;
  overflow-x: hidden;
  height: auto;
}

.navbar {
  width: 100%;
  height: 70px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .1);
}

.navbar .container{
  height: inherit;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-left: 20px;
  padding-right: 20px;
}

.navbar-menu {
  list-style-type: none;
  padding: 0;
  margin: 0;
  display: flex;
}

.navbar-menu li {
  position: relative;
}

.navbar-menu li a {
  display: inline-block;
  color: black;
  text-decoration: none;
  opacity: 0.6;
  padding: 10px 10px 10px 0;
  transition: .07s ease-in-out;
  line-height: 1.4;
}

.navbar-menu li a:hover {
  opacity: 1;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #fff;
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
  list-style: none;
  padding: 0;
  margin: 0;
  min-width: 160px;
  z-index: 1000;
  border-radius: 4px;
  overflow: hidden;
}

.dropdown-menu li a {
  padding: 10px 15px;
  white-space: nowrap;
}

.dropdown:hover .dropdown-menu {
  display: block;
  opacity: 1;
}

.dropdown-toggle::after {
  content: " ▼";
  font-size: 0.7em;
  vertical-align: middle;
}

.navbar-wrap {
  display: flex;
  flex-flow: row nowrap;
}

.navbar-brand {
  padding: 10px 0;
  line-height: 1.4;
  font-weight: 700;
  font-size: 26px;
  text-decoration: none;
  color: black;
}

.navbar-brand:hover {
  color: #0095B6;
  transition: .07s ease-in-out;
}

#headline {
  color: Black;
  text-align: center;
  font-size: 60px;
  margin-top: 100px;
}
.name {
  color: black;
  text-align: center;
  font-size: 35px;
}
.photo1 {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
}

.photo2 {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 20px;
  width: 100%;
}

.photo1 img {
  width: 53.6%;
  height: auto;
  display: block;
  border-radius: 16px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);

}
.content {
  margin: 0 auto;
  padding: 25px 30px;
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(4px);
  font-size: 18px;
  line-height: 1.6;
  color: #2c3e50;     
  font-weight: 400;      
  text-align: justify;
  word-break: break-word;
  box-sizing: border-box;
  width: 53.6%;
}

.content a {
  text-decoration: none;
  opacity: 0.8;
}

.content a:hover {
  opacity: 1;
  color: rgb(69, 154, 175);
}

.sem {
  display: block;
  margin-bottom: 60px;
  padding: 40px 30px;
  background-color: rgb(209, 207, 207);
  text-align: center;
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(4px);
  text-decoration: none;
  color: black;
  font-size: 22px;
}

.sem:hover {
  background-color: yellowgreen;
  transition: .09s ease-in-out;
  color: yellow;
}

.imcat {
  text-align: center;
  font-size: 100px;
  color: rgb(193, 62, 83);
}

.sems-container {
  max-width: 800px;
  margin: 50px auto;
  padding: 0 20px;
}

#disclaimer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  margin: 0;
  padding: 10px;
  z-index: 1000;
  text-align: center;
  font-size: 12px;
  color: #8B3A3A;
  line-height: 3;
}

.work {
  margin-top: 50px;
  margin-left: 250px;
  margin-right: 250px;
  font-size: 20px;
}

@media (max-width: 768px) {
  .work {
    margin-left: 20px;
    margin-right: 20px;
    font-size: 18px;
  }

  .generalbody, .mebody, .sem1body  {
    background-size: auto;
  }

  h1.name {
    font-size: 32px !important;
    margin-left: 10px !important;
    margin-right: 10px !important;
  }
  h2.name {
    font-size: 24px !important;
  }

  .photo1 img,
  .photo2 img,
  .content {
    width: 95%;
    max-width: 95%;
    margin-left: auto;
    margin-right: auto;
  }

  .photo1, .photo2 {
    padding: 0 10px;
  }

  .navbar {
    height: auto;
    min-height: 60px;
  }
  .navbar .container {
    flex-wrap: wrap;
    padding-right: 15px;
  }
  .navbar-menu li a {
    padding: 8px 5px;
    font-size: 14px;
  }
  .navbar-brand {
    font-size: 20px;
  }

  a {
    word-break: break-word;
    overflow-wrap: break-word;
  }

  #disclaimer {
    font-size: 10px;
    padding: 5px;
  }
}

@media (max-width: 480px) {
  .work {
    margin-left: 10px;
    margin-right: 10px;
    font-size: 16px;
  }
  .navbar-menu {
    flex-wrap: wrap;
    justify-content: center;
  }
  .navbar-menu li a {
    padding: 6px 4px;
    font-size: 13px;
  }
  .navbar-brand {
    font-size: 18px;
  }
  .sem {
    padding: 20px 15px;
    font-size: 18px;
    margin-bottom: 30px;
  }
}

.like-btn {
  background: none;
  border: 1px solid #ccc;
  cursor: pointer;
  font-size: 1.2rem;
  padding: 4px 8px;
  border-radius: 4px;
}
.like-btn.liked {
  background: #ff6b6b;
  color: white;
  border-color: #ff6b6b;
}
.like-count {
  margin-left: 5px;
  font-weight: bold;
}
