@import url('https://fonts.googleapis.com/css2?family=Raleway:ital,wght@0,100..900;1,100..900&display=swap');
*{
    box-sizing: border-box;
}
body{
    min-height: 100vh;
    font-family: "Raleway", serif;
    font-size: 14px;
    margin: 0;
    background-color: hsl(229, 57%, 11%);
    background-image: url(./images/bg-desktop.png);
    background-repeat: no-repeat;
    background-size: 100% 350px;
    background-position: bottom;
    display: flex;
    justify-content: center;
    align-items: center;
}
@media (max-width:767px){
    body{
        background-image: url(./images/bg-mobile.png);
        background-size: cover;
    }
}
.storage{
    max-width: calc(100% - 40px);
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 30px;
}
.storage .logo{
    width: 280px;
    background-color: hsl(228, 56%, 26%);
    padding:40px 30px ;
    border-radius: 5px 70px 5px 5px;
}
.storage .logo > div:last-child img{
    width: 40px;
    height: 40px;
    background-color: hsl(229, 57%, 11%);
    padding: 10px;
    border-radius: 5px;
    margin-right: 10px;
    margin-top: 25px;
}
.storage .details{
    width: 420px;
    height: fit-content;
    padding: 20px;
    border-radius: 5px;
    background-color:hsl(228, 56%, 26%) ;
    color:hsl(229, 7%, 55%);
    position: relative;
}
@media(max-width:767px){
    .storage .logo,
    .storage .details{
        flex: 1 1 100%;
    }
}
.storage .details > p:first-child{
    width: fit-content;
    padding: 10px ;
    background-color: white;
    border-radius: 10px;
    border-bottom-right-radius: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    position: absolute;
    right: 25px;
    top:-50px ;
}
.storage .details > p:first-child::before{
    content: "";
    border: 20px solid;
    border-color: transparent white transparent transparent ;
    position: absolute;
    bottom: -20px;
    right: 0;
}
@media (max-width:767px){
    .storage .details > p:first-child{
        right: 50%;
        top:calc(100% - 40px);
        transform: translateX(50%);
    }
    .storage .details > p:first-child::before{
        display: none;
    }
}
.storage .details p:first-child span:first-child{
    color: hsl(229, 57%, 11%);
    font-size: 40px;
    font-weight: bold;
}
.storage .details p:first-child span:last-child{
    color: hsl(229, 7%, 55%);
    text-transform: uppercase;
    margin-top: 8px;
}
.storage .details > p:nth-child(2){
    color: hsl(229, 7%, 55%);
}
.storage .details p:nth-child(2) span{
    color: hsl(243, 100%, 93%);
    font-weight: bold;
}
.storage .details .range .parent{
    height: 18px;
    background-color:  hsl(229, 57%, 11%);
    border-radius: 40px;
    margin: 25px 0 0;
}
.storage .details .range .parent .child{
    height: 14px;
    width: 81.5%;
    background-image: linear-gradient(to right,hsl(6, 100%, 80%), hsl(335, 100%, 65%));
    border-radius:40px ;
    position: relative;
    left: 2px;
    top: 2px;
}
.storage .details .range .parent .child::before{
    content: "";
    width: 10px;
    height: 10px;
    background-color: white;
    border-radius: 50%;
    position: absolute;
    right: 2px;
    top: 2px;
}
.storage .details .range div:last-child{
    margin: 0;
    display: flex;
    justify-content: space-between;
    color: hsl(243, 100%, 93%);
    font-weight: bold;
}