:root {
  --main-background: hsl(229, 57%, 11%);
  --secondary-background: hsl(228, 56%, 26%);
  --inset-padding: 3rem;
  --main-border-radius: 1rem;
}
body,
html {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  width: 100%; /* Ensure it takes full width */
  height: 100%; /* Ensure it takes full height */
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}
main {
  width: 375px;
  height: 667px;
  padding: 127px 24px 164px 24px;
  background-color: var(--main-background);
  background-image: url(images/bg-mobile.png);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: bottom left;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.actions-card {
  width: 326px;
  height: 201px;
  flex-shrink: 0;
  border-radius: 10px 100px 10px 10px;
  background: #1e2d69;
  box-shadow: 0px 75px 100px -30px rgba(0, 0, 0, 0.25);
  padding: 38px 105px 40px 40px;
  display: flex;
  flex-direction: column;
  gap: 33px;
}
.company-logo {
  width: 135.415px;
  height: 40px;
  flex-shrink: 0;
}
.actions {
  display: flex;
  gap: 14px;
}
.icon {
  width: 52px;
  height: 48px;
  border: 13px solid black;
  background-color: black;
  border-radius: 10px;
}

.storage-info {
  width: 326px;
  height: 160px;
  flex-shrink: 0;
  border-radius: 10px;
  background: #1e2d69;
  box-shadow: 0px 75px 100px -30px rgba(0, 0, 0, 0.25);
  padding: 32px 32px 52px 32px;
}
p {
  color: #dbd9ff;
  font-family: Raleway;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  margin-bottom: 16px;
  text-align: center;
}
span {
  color: #dbd9ff;
  font-family: Raleway;
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
}
.progress-labels {
  display: flex;
  justify-content: space-between;
}
.progress-labels span {
  color: #dbd9ff;
  text-align: right;
  font-family: Raleway;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
}

.progress-bar {
  position: relative;
  width: 100%;
  height: 20px;
  border-radius: 10px;
  opacity: 0.4979;
  background: #0c122c;
  overflow: hidden;
  margin-bottom: 10px;
}
.storage-info {
  position: relative;
}
.progress-fill {
  position: absolute;
  height: 14px;
  background: linear-gradient(to right, #ffa197, #ff4a95);
  transition: width 0.3s ease;
  opacity: 1;
  border-radius: 10px;
  width: 193px; /* Example width */
  top: 66px;
  left: 38px;
}

.progress-knob {
  position: absolute;
  top: 67px;
  right: 98px;
  width: 12px;
  height: 12px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
}
.remaining-storage {
  width: 179px;
  height: 72px;
  flex-shrink: 0;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0px 75px 100px -30px rgba(0, 0, 0, 0.25);
  padding: 16px 24px;
  display: flex;
  gap: 9px;
  align-items: center;
  position: absolute;
  right: 73px;
  bottom: -36px;
}
h1 {
  color: #0c122c;
  text-align: right;
  font-family: Raleway;
  font-size: 40px;
  font-style: normal;
  font-weight: 700;
  line-height: 40px; /* 100% */
}
.remaining-storage span {
  color: #0c122c;
  text-align: right;
  font-family: Raleway;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  letter-spacing: 1px;
  opacity: 0.5;
}
/*
main {
    width: 375px;
height: 667px;
    background-image: url('images/bg-mobile.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }*/

@media (min-width: 1024px) {
  main {
    width: 1440px;
    height: 800px;
    background-image: url(images/bg-desktop.png);
    background-size: 100% 50%;
    padding: 289px 260px 311px 260px;
    flex-direction: row;
    gap: 30px;
    align-items: end;
  }
  .actions-card {
    width: 350px;
    height: 201px;
    flex-shrink: 0;
  }
  .storage-info {
    width: 540px;
    height: 154px;
    flex-shrink: 0;
  }
  p {
    text-align: left;
  }
  .progress-fill {
    width: 339px;
    height: 14px;
    top: 66px;
    left: 38px;
  }
  .progress-knob {
    position: absolute;
    top: 67px;
    right: 166px;
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
  }
  .remaining-storage {
    position: absolute; /* Ensures pseudo-element is positioned relative to this element */
    top: -47px;
    border-radius: 10px 10px 0px 10px;
    right:40px;
  }
  .remaining-storage::after {
    content: "";
    position: absolute;
    bottom: -22px; /* Position the triangle just below the box */
    right: 0; /* Align the triangle's right edge with the box's right edge */
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 22px 22px 0 0; /* Create a right-angled triangle */
    border-color: #fff transparent transparent transparent; /* Make the hypotenuse white */
    transform: rotate(90deg); /* Rotate to align the hypotenuse correctly */
  }
}
