/* onionring.js !!! yay!!! */

/* START OF DYNAMIC ELEMENTS */

/* Note from Medoh: This CSS is taken from the webring's source with a few changes from myself.*/

#ckwr {
    --ckimg: url('https://file.garden/aY3-aW1Z-ycOjqRt/awakened_pv_lobby.png');
    --ckbg: #8FA59C;
    --ckborder: #331610;
}

#ckwr .webring-title {
    width: 50%;
    text-align: right;
    position: absolute;
    left:5px;
    top:0;
    filter:grayscale(1);
    opacity:50%;
}

#ckwr .webring-image {
    position: absolute;
    bottom:8px;
    left:16px;
}

#ckwr .webring-next, #ckwr .webring-prev{
    position: absolute;
    filter:grayscale(0.75);
}

#ckwr .webring-next {
    right:0;
    bottom:0;
}

#ckwr .webring-prev {
    right:44px;
    bottom:24px;
}

#ckwr .arrow-image{
    width:40px;
}

/* END OF DYNAMIC ELEMENTS */

#ckwr {
    color: black;
}

#ckwr>img{
    margin:0;
    padding: 0;
    max-width: 100% !important;
}

#ckwr .webring-wrapper{
    margin: auto;
    width:180px;
    height:120px;
    box-sizing: border-box;
    background: var(--ckimg) var(--ckbg);
    background-size: cover;
    background-position-y: 15%;
    border: 4px solid var(--ckborder);
    border-radius: 10px;
    display: inline-flex;
    position: relative;
    letter-spacing: normal !important;
    flex-direction: column;
    justify-content: center!important;
}

#ckwr .webring-flex{
    height: 100%;
    display:flex;
    justify-content: center!important;
    position: relative;
}

#ckwr .webring-title img{
    margin:0;
    margin-top: 1px;
    text-align: center;
    width: 100%;
}

#ckwr .webring-image{
    display:block;
    height:64px;
    width:64px;
    margin-top:4px;
}

#ckwr a {
    color: black;
    text-decoration: none;
}

#ckwr .webring-footer {
    text-align: center;
}

#ckwr .webring-next, #ckwr .webring-prev{
    display:flex;
    flex-direction: column;
    justify-content: center!important;
}

#ckwr .webring-next img {
    transform: scaleX(-1);
}
