:root {
    --width: 910px;
    --height: 180px;
    --alpha: rgba(0, 0, 0, 0.5);
    --black: #252525;
    --grey: #858585;
    --white: #f5f5f5;
}

@font-face {
    font-family: "Kalameh ExtraBold";
    src: url("./assets/Kalameh ExtraBold.ttf") format("truetype")
}

@font-face {
    font-family: "IRANSansX DemiBold";
    src: url("./assets/IRANSansX DemiBold.ttf") format("truetype")
}

body {
    margin: 0;
}

.widget {
    position: absolute;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10em;
    width: var(--width);
    height: var(--height);
    background: red;
    transition: all 0.5s ease-in-out;
}

.details {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    direction: rtl;
    flex-direction: column;
    row-gap: 10px;
    top: -15px;
    right: -100px;
    width: var(--width);
    height: 100%;
    color: var(--white);
    transition: all 0.5s ease-in-out;
}

.liquid .details {
    color: var(--grey);
}

.maintext {
    font-size: 4em;
    font-family: "Kalameh ExtraBold";
}

.sidetext {
    font-size: 2.75em;
    font-family: "IRANSansX DemiBold";
}

.liquid {
    position: absolute;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 0;
    height: 100%;
    right: 0;
    background: red;
    transition: all 0.5s ease-in-out;
}

wave {
    position: absolute;
    right: 0;
    height: 100%;
    transition: all 0.5s ease-in-out;
    animation: waveAnimate 100s linear infinite;
}

.behind {
    background: url("./assets/grey-wave.png") repeat-y;
    width: 99%;
    animation-direction: reverse;
}

.front {
    background: url("./assets/white-wave.png") repeat-y;
    width: 100%;
}

.widget.alert {
    animation: widgetAnimate 1s linear infinite;
}

.widget.alert .liquid .details {
    animation: pdetailsAnimate 1s linear infinite;
}

.widget.alert .details {
    animation: detailsAnimate 1s linear infinite;
}

@keyframes waveAnimate {
    0% {
        background-position: 0 5000%; 
    }
    100% {
        background-position: 0 0;
    }
}

/* Designed by DouMeem */
