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

body {
  background: white;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 100;
  display: flex;
  justify-content: center;
}

.schermo {
  height: 100%;
  width: 100%;
  background-size: cover;
  background-position: center;
  z-index: 1;
  display: flex;
  flex-direction: column;
}

.unlocktop {
  color: white;
  height: 150px;
  width: 100%;
  background: linear-gradient(to bottom, rgba(192, 192, 192, 0.7) 0%, rgba(59, 59, 59, 0.7) 49.9%, rgba(30, 30, 30, 0.7) 50.1%, rgba(0, 0, 0, 0.7) 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.unlockbottom {
  height: 140px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(to bottom, rgba(192, 192, 192, 0.7) 0%, rgba(31, 31, 31, 0.7) 49.9%, rgba(21, 21, 21, 0.7) 50.1%, rgba(15, 15, 15, 0.7) 100%);
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.slider-track {
  position: relative;
  width: 90%;
  height: 58px;
  background: linear-gradient(to bottom, rgba(100,100,100,0.6), rgba(40,40,40,0.6));
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.3);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.arrowslider {
  width: 48px;
  height: 38px;
}

.slider-thumb {
  border-radius: 10px;
  width: 79px;
  height: 58px;
  background: linear-gradient(to bottom, rgb(255, 255, 255) 0%, rgb(255, 255, 255) 50%, rgb(124, 124, 124) 100%);
  position: absolute;
  touch-action: none;
  cursor: grab;
  display: flex;
  justify-content: center;
  align-items: center;
}

.slide-text {
  position: absolute;
  width: 100%;
  text-align: center;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 20px;
  font-weight: 300;
  letter-spacing: 2px;
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0.3) 0%,
    rgba(255,255,255,1) 40%,
    rgba(255,255,255,0.3) 60%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 2.5s linear infinite;
  pointer-events: none;
}

@keyframes shimmer {
  0% { background-position: 100% center; }
  100% { background-position: -100% center; }
}

.iphone {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 634px;
  height: 951px;
  overflow: hidden;
  background-image: url('../img/foto.jpeg');
  background-size: cover;
  background-position: center;
}

.top {
  position: relative;
  background: #000;
  height: 40px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-right: 15px;
  padding-left: 15px;
}

.spazio {
  height: 621px;
  width: 100%;
  transition: opacity 0.4s ease;
}

.lock {
  height: 26px;
  width: 26px;
}

.batteria {
  color: white;
  display: flex;
  align-items: center;
  gap: 4px;
}

.service {
  color: white;
  display: flex;
  align-items: center;
  gap: 4px;
}

.orario {
  font-size: 96px;
}

.data {
  font-size: 18px;
  font-weight: 300;
  color: #575a51;
}

.homescreen {
  position: absolute;
  top: 40px;
  left: 0;
  height: calc(100% - 40px);
  width: 100%;
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  z-index: 100;
}

.dock {
  width: 100%;
  margin: 0 auto;
  height: 150px;
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  padding: 10px 10px 0 10px;
  background-color: rgb(181, 181, 181);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4'%3E%3Crect width='2' height='2' fill='rgb(0,0,0)'/%3E%3Crect x='2' y='2' width='2' height='2' fill='rgb(0,0,0)'/%3E%3C/svg%3E");
  background-size: 4px 4px;
}

.dock::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 25px;
  background: rgb(124, 124, 124);
  pointer-events: none;
}

.dock-icon img {
  width: 120px;
  height: 120px;
  border-radius: 14px;
}

.top-center {
  color: white;
  display: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 14px;
  font-weight: 400;
}

.dock-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  z-index: 1;
}


.dock-icon span {
  color: white;
  font-size: 15px;
  font-weight: 400;
  text-shadow: 0px 1px 2px rgba(0,0,0,0.8);
}

.dock .dock-icon img {
  transform: translateY(-10px);
}

.app {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: max-content;
  gap: 20px;
  padding: 20px 10px;
}

.dock-icon a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.gallery {
  position: absolute;
  top: 40px;
  left: 0;
  width: 100%;
  height: calc(100% - 40px);
  background: #000;
  z-index: 200;
  display: flex;
  flex-direction: column;
}

.gallery-top {
  height: 40px;
  background: #1a1a1a;
  display: flex;
  align-items: center;
  padding: 0 15px;
  border-bottom: 1px solid #333;
}

.gallery-back {
  color: #5b9bd5;
  font-size: 18px;
  font-weight: 400;
  cursor: pointer;
}

.liveleak-back {
  color: #5b9bd5;
  font-size: 18px;
  font-weight: 400;
  padding-left: 15px;
  cursor: pointer;
}

.hotline-back {
  color: #5b9bd5;
  font-size: 18px;
  font-weight: 400;
  padding-left: 15px;
  cursor: pointer;
}

.gallery-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: min-content;
  gap: 2px;
  background: #000;
  overflow-y: auto;
  padding: 2px;
  align-content: start;
}
.gallery-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  cursor: pointer;
}

#foto {
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

#liveleak {
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

#phone {
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.liveleak {
  position: absolute;
  top: 40px;
  left: 0;
  width: 100%;
  height: calc(100% - 40px);
  z-index: 200;
  display: flex;
  flex-direction: column;
  background-image: url("../img/liveleakbackground.jpeg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hotline {
  position: absolute;
  top: 40px;
  left: 0;
  width: 100%;
  height: calc(100% - 40px);
  z-index: 200;
  display: flex;
  flex-direction: column;
  background-image: url("../img/hotline.jpeg");
  background-position: top center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

@media (max-width: 700px) {
  .iphone {
    width: 100vw;
    height: 100dvh;
  }

  .dock-icon img {
      width: 18vw !important;
      height: 18vw !important;
  }

  .dock .dock-icon img {
    transform: translateY(-4px);
  }

}
