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

html, body{
    height: 100%;
    width: 100%;
}

html{
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

body{
    background-color: black;
    color: whitesmoke;
    display: flex;
    justify-content: center;
    align-items: center;
}

@property --rotate{
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

@keyframes borderAnimate{
    from{
        --rotate: 0deg;
    }
    to{
        --rotate: 360deg;
    }
}


.box{
    max-width: 300px;
    padding-inline: 10px;
    padding-bottom: 10px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: 0 0 0px #C02218;
    border-radius: 20px;
    background: linear-gradient(black) padding-box,
    conic-gradient(from var(--rotate),black,#C02218,black) border-box;
    border: 0px solid #c0231800;
    animation: borderAnimate 5s;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
    animation-play-state: paused;
    transition: all 0.2s linear;
    text-shadow: 0 0 0px #C02218;
    color: whitesmoke;
}

.box:hover{
    animation-play-state: running;
    border-width: 5px;
    box-shadow: 0 0 50px #C02218;
    color: #C02218;
    text-shadow: 0 0 10px #C02218;
}

.box img{
    max-width: 100%;
}