h1 {
  text-align: center;
}
h2 {
  text-align: center;
}

body {
  width: 100vw;
  height: 100vh;
  margin: 0;
  background: rgb(20,20,20);
  color: white;
  font-family: 'Montserrat', sans-serif;
  line-height: 125%;
}

.app {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  padding: 20px 0;
}

.main {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.section {
  max-width: 100%;
  border-radius: 25px;
  padding: 20px;
  background: rgba(34, 34, 34, 0.7);
  --webkit-backdrop-fitters: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 0 0 0.5px #424242;
}

.app img {
  width: 100%;
  height: auto;
}

.photo {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(40%, 1fr));
  grid-gap: 5px;
}

.photo-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.sidebar {
  position: fixed;
  left: calc(50% - 400px - 290px);
  max-width: 340px;
  border-radius: 25px;
  padding: 10px 0;
  background: rgba(34, 34, 34, 0.7);
  --webkit-backdrop-fitters: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 0 0 0.5px #424242;
}

.sidebar ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.sidebar a {
  color: white;
  font-style: normal;
  text-decoration: none;
  border: 1px;
  display: flex;
  gap: 5px;
  align-items: center;
  font-size: 14px;
  height: 40px;
  padding: 0 10px;
}

.sidebar a:hover  {
  background: rgba(40,40,40,1);
}

.sidebar li {
  display: block;
}

.icon {
  position: relative;
  max-width: 20px;
  min-width: 20px;
  width: 20px;
  max-height: 20px;
  min-height: 20px;
  height: 20px;
}

.icon img {
  width: 100%;
  height: 100%;
}

.title1 {
  max-width: 100%;
  background-color: #A4A4BF;
  border: 2px solid #16235A;
  border-radius: 25px;
  padding: 20px;
  text-align: center;
}
.photo3{
  display: flex;
  flex-wrap: wrap;
  width: 800px;
}
.p1{
  word-spacing: 300px;
  padding-left: 200px;
}
.photo4{
  display: flex;
  flex-wrap: wrap;
  width: 800px;
}
.p2{
  word-spacing: 300px;
  padding-left: 200px;
}

.section:last-child {
  display: none;
}

.app-test .section:not(:last-child) {
  display: none;
}

.app-test .section:last-child {
  display: block;
}

.app-test .sidebar {
  display: none;
}


@media (max-width: 1450px) {
  .sidebar {
    display: none;
  }
}

.section .button {
  width: 100%;
  height: 40px;
  border-radius: 8px;
  font-size: 18px;
  border: 1px solid #71aaeb;
  position: relative;
  overflow: hidden;
  background: transparent;
}

.section .button-text1 {
  color: white;
}

.section .button:hover .button-text2 {
  left: 0;
}

.section .button-text2 {
  transition: 300ms;
  position: absolute;
  left: -100%;
  top: 0;
  height: 100%;
  width: 100%;
  background: #71aaeb;
  color: white;
  overflow: hidden;
}

.section .button:hover .button-inner {
  left: 50%;
}

.section .button-inner {
  transition: 300ms;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  left: 150%;
}


.img-popup {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(255, 255, 255, .5);
  display: flex;
  justify-content: center;
  align-items: center;
  display: none;
}

.img-popup img {
  max-width: 900px;
  width: 100%;
  opacity: 0;
  transform: translateY(-100px);
  -webkit-transform: translateY(-100px);
  -moz-transform: translateY(-100px);
  -ms-transform: translateY(-100px);
  -o-transform: translateY(-100px);
}

.close-btn {
  width: 35px;
  height: 30px;
  display: flex;
  justify-content: center;
  flex-direction: column;
  position: absolute;
  top: 20px;
  right: 20px;
  cursor: pointer;
}

.close-btn .bar {
  height: 4px;
  background: #333;
}

.close-btn .bar:nth-child(1) {
  transform: rotate(45deg);
}

.close-btn .bar:nth-child(2) {
  transform: translateY(-4px) rotate(-45deg);
}

.opened {
  display: flex;
}

.opened img {
  animation: animatepopup 1s ease-in-out .8s;
  -webkit-animation: animatepopup .3s ease-in-out forwards;
}

@keyframes animatepopup {

  to {
    opacity: 1;
    transform: translateY(0);
    -webkit-transform: translateY(0);
    -moz-transform: translateY(0);
    -ms-transform: translateY(0);
    -o-transform: translateY(0);
  }

}
