*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

body{
  height:auto;
  overflow-x:hidden;
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  color: #eee;

  background-image: url('https://t.alcy.cc/moez');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-color: #1a1a2e;
  line-height: 1.6;
}

.hero-section {
  height: 200vh;
  position: relative;
  z-index: 10;
}

.wrapper{
  position:sticky;
  top:0;
  height:100vh;
  display:flex;
  justify-content:center;
  align-items:center;
  pointer-events: none;
}

.wrapper .container {
  pointer-events: auto;
}

.container{
  position:relative;
  width:50vw;
  height:85vh;
  display:flex;
  border-radius:40px;
  overflow:hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  transition: width 0.8s ease;
}

.merge .container {
  width: 25vw;
}

.img{
  width:50%;
  height:100%;
  transition:all 0.8s ease;
  display:flex;
  align-items:center;
  justify-content:center;
  background-color: #333;
}

.img img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position: center center;
}

.left{
  transform:translateX(0);
}

.right{
  transform:translateX(0);
}

.merge .left{
  transform:translateX(50%);
}

.merge .right{
  transform:translateX(-50%);
}

.content-section {
  padding: 80px 20px;
  background-color: rgba(0, 0, 0, 0.7);
  text-align: center;
  position: relative;
  z-index: 5;
}

.content-section h2 {
  font-size: 2.5em;
  margin-bottom: 40px;
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
  letter-spacing: 1px;
}

.btn-group {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 35px;
  color: white;
  text-decoration: none;
  border-radius: 12px;
  font-size: 1.15em;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.1);
  min-width: 220px;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.5px;
}

.btn.h5 {
  background: linear-gradient(135deg, #29323c 0%, #485563 100%);
}
.btn.h5:hover {
  background: linear-gradient(135deg, #303a45 0%, #505d6b 100%);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.4);
}

.btn.android {
  background: linear-gradient(135deg, #0f2027 0%, #203a43 100%);
}
.btn.android:hover {
  background: linear-gradient(135deg, #15252e 0%, #28424b 100%);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.4);
}

.btn.history-toggle-btn {
  background: linear-gradient(135deg, #3a3a3a 0%, #5a5a5a 100%);
}
.btn.history-toggle-btn:hover {
  background: linear-gradient(135deg, #424242 0%, #626262 100%);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.4);
}

.btn::before {
  content: '';
  display: inline-block;
  width: 22px;
  height: 22px;
  margin-right: 12px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  filter: invert(1) brightness(1.2);
}

.btn.h5::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-1 17.93c-3.95-.49-7-3.66-7-7.43 0-.64.08-1.26.21-1.85L11 14v1c0 1.1.9 2 2 2h2c.74 0 1.4-.29 1.86-.77l.45.45c-1.39 1.04-3.1 1.62-4.91 1.62-1.28 0-2.4-.33-3.32-.88zM19.79 11c-.14.6-.22 1.23-.22 1.88 0 3.73-2.93 6.84-6.7 7.37V16h-1V4.07c3.95.49 7 3.66 7 7.43 0 .64-.08 1.26-.21 1.85zM4.21 13c.14-.6.22-1.23.22-1.88 0-3.73 2.93-6.84 6.7-7.37V8h-1V4.07c-3.95-.49-7 3.66-7 7.43 0 .64.08 1.26-.21 1.85zM12 4.07V8h-1V4.07zm1 0V8h-1V4.07z'/%3E%3C/svg%3E");
}

.btn.android::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M7 2v2h10V2H7zm0 18h10v2H7zm5-16c-3.31 0-6 2.69-6 6h12c0-3.31-2.69-6-6-6zm-4 4c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1zm8 0c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1z'/%3E%3C/svg%3E");
}

.history-section {
  padding-bottom: 100px;
}

.history-list {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.7s ease-out, padding 0.7s ease-out;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 0 20px;
  margin: 40px auto 0 auto;
  width: 80%;
  max-width: 700px;
  box-shadow: inset 0 0 15px rgba(0,0,0,0.3);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.history-list.expanded {
  max-height: 500px;
  padding: 30px 20px;
}

.history-list ul {
  list-style: none;
  text-align: left;
}

.history-list li {
  margin-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 15px;
  font-size: 1.1em;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.history-list li:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.history-list a {
  color: #8cceff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease, background-color 0.3s ease;
  padding: 5px 10px;
  border-radius: 5px;
  background-color: rgba(255,255,255,0.05);
}

.history-list a:hover {
  color: #fff;
  background-color: rgba(255,255,255,0.1);
  text-decoration: none;
}

@media (max-width: 768px) {
  .container {
    width: 90vw;
    height: 70vh;
  }
  .merge .container {
    width: 45vw;
  }
  .content-section h2 {
    font-size: 2em;
  }
  .btn-group {
    flex-direction: column;
    gap: 20px;
  }
  .btn {
    width: 80%;
    max-width: 300px;
    margin: 0 auto;
  }
  .btn::before {
    margin-right: 8px;
    width: 20px;
    height: 20px;
  }
  .history-list {
    width: 95%;
  }
  .history-list li {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
  .history-list li a {
    align-self: flex-end;
  }
}