@import url('https://fonts.googleapis.com/css2?family=Raleway:ital,wght@0,100..900;1,100..900&display=swap');




* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Raleway", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
}

body {
  background: hsl(229,57%,11%);
}

body .background {
  width: 100vw;
  position: fixed;
  z-index: -1;
}

body .background:nth-of-type(1) {
  height: 100vh;
}

body .background:nth-of-type(2) {
  display: none;
  height: 50vh;
  bottom: 0;
}

@media(min-width:760px){
  body .background:nth-of-type(2) {
    display: block;
  }
  
  body .background:nth-of-type(1) {
    display: none;
  }
}



main {
  height: 100vh;
  align-content: center;
}

main > div{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 15px;
  padding: 0 20px;
  max-width: 900px;
  margin: auto;
}

main .hero-card, main .storage-details {
  width: 100%;
  background: hsl(228,56%,26%);
}

.hero-card {
  padding: 36px;
  border-radius: 12px 90px 12px 12px;
}


.hero-card > img {
  margin-bottom: 30px;
}

.hero-card .icons {
  display: flex;
  gap: 15px;
}

.hero-card .icons .icon {
  background: hsl(229,57%,11%);
  display: flex;
  justify-content: center;
  align-items: center;
  width: 45px;
  height: 45px;
  border-radius: 8px;
}

.hero-card .icons .icon:nth-of-type(1) img {
  width: 45%;
}

.hero-card .icons .icon:nth-of-type(2) img {
  width: 48%;
}

.hero-card .icons .icon:nth-of-type(3) img {
  width: 50%;
}

.storage-details {
  padding: 28px;
  padding-bottom: 43px;
  text-align: center;
  border-radius: 12px;
  position: relative;
}

.storage-details > p {
  color: hsl(243,100%,93%);
  font-size: 0.8rem;
}

.storage-details > p span {
  color: hsl(243,100%,93%);
  font-weight: 700;
}

.storage-details .total-storage {
  width: 100%;
  height: 18px;
  padding: 2px;
  margin: 20px 4px 10px;
  border-radius: 9px;
  background: hsl(229,57%,11%);
}

.storage-details .total-storage .storage-used {
  width: calc(81.5%);;
  height: 100%;
  background-image: linear-gradient(to right,hsl(6,100%,80%),hsl(335,100%,65%));
  border-radius: 8px;
  position: relative;
  animation: slide 1.5s ease-out forwards;
}

@keyframes slide {
  from { width: 0;}
  to { width: calc(81.5%);}
}



.storage-details .storage-used span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: hsl(0,0%,100%);
  position: absolute;
  right: 2px;
  top: 2px;
  opacity: 0;
  animation: dot .5s ease-out forwards;
}

@keyframes dot {
  from { opacity: 0;}
  to { opacity: 1;}
}

.storage-details .storage-amount {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: hsl(243,100%,93%);
  font-size: 0.7rem;
  font-weight: 400;
}


.storage-details .storage-left {
  position: absolute;
  align-content: center;
  background: hsl(0,0%,100%);
  right: 26%;
  top: 80%;
  padding: 12px 20px;
  border-radius: 8px;
}

.storage-details .storage-left p {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.storage-details .storage-left p span:nth-of-type(1) {
  font-size: 1.9rem;
  font-weight: 700;
}

.storage-details .storage-left p span:nth-of-type(2) {
  font-size: 0.7rem;
  font-weight: 600;
  color: hsl(229,7%,55%);
  letter-spacing: 1px;
}





@media(min-width: 760px){
  main > div {
    flex-direction: row;
    align-items: flex-end;
    gap: 30px;
  }
  
  .hero-card {
    padding: 40px;
    border-radius: 12px 100px 12px 12px;
    flex-basis: 70%;
  }
  
  
  .hero-card .icons {
    display: flex;
    gap: 18px;
  }

  .hero-card .icons .icon {
    width: 50px;
    height: 50px;
  }
  
  .storage-details {
    text-align: left;
    padding: 45px;
  }
  
  
  .storage-details .storage-left {
    right: 45px;
    top: -25%;
    padding: 12px 20px;
    border-radius: 8px 8px 0 8px;
  }
  
  .storage-details .storage-left::after {
    content: "";
    position: absolute;
    bottom: -16px;
    right: -18px;
    transform: rotateZ(-135deg);
    border-width: 18px;
    border-style: solid;
    border-color: white transparent transparent transparent;
  }
}