﻿/* onionring.js is made up of four files - onionring-widget.js, onionring-index.js, onionring-variables.js and onionring.css (this one!)
// it's licensed under the cooperative non-violent license (CNPL) v4+ (https://thufie.lain.haus/NPL.html)
// it was originally made by joey + mord of allium (蒜) house, last updated 2020-10-24 */

/* === ONIONRING.CSS === */
/* this file affects the style of the widget. remember to replace all instances of #tankring with whatever value you have for ringID in the onionring-widget.js file. make sure it still has the # at the front, though! probably easiest to use find+replace to do it */

#websitebuddyring {
    margin: 0 auto !important;
    width: 344px;
    height: 473px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    font-family: MS Gothic;
}

#websitebuddyring .wbudimage {
    position: absolute;
    width: 150px;
    bottom: 0;
    right: 0;
    cursor: pointer;
}

#websitebuddyring .talk-bubble {
    width: 264px;
    height: 399px;
    background-color: rgba(26, 15, 26, 0.95);
    color: #f8be87;
    border-radius: 20px;
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    border: 2px solid #59898c;
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}

#websitebuddyring .talk-bubble.hidden {
    opacity: 0;
    pointer-events: none;
}

#websitebuddyring #text-message {
    width: 100%;
}

#websitebuddyring .links {
    display: flex;
    flex-direction: column;
    padding: 5px;
}

#websitebuddyring .links .option {
    font-size: 15px;
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
    color: #ff5757;
    margin: 4px 0;
    transition: color 0.2s;
}

#websitebuddyring .links .option:hover {
    color: #fff;
    text-decoration: underline;
}

#websitebuddyring .links a {
    all: unset;
}

#websitebuddyring #text-message .words {
    margin-bottom: 15px;
    padding: 5px;
    max-height: 120px;
    overflow-y: auto;
    word-wrap: break-word;
    font-size: 16px;
    line-height: 1.45;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
    animation: wbudbobbing 1s ease-in-out infinite;
    animation-direction: alternate;
}

#websitebuddyring #text-message .words::-webkit-scrollbar {
    display: none;
}

#websitebuddyring #text-message #tab-b .words {
    margin-bottom: 5px;
    padding: 5px;
    max-height: 100px;
    overflow-y: auto;
    word-wrap: break-word;
    height: auto;
    line-height: 1.45;
}

#websitebuddyring #tab-d .words {
    margin-bottom: 5px;
    padding: 5px;
    overflow-y: auto;
    word-wrap: break-word;
    height: auto;
    max-height: 150px;
    line-height: 1.45;
}

#websitebuddyring .tab {
    display: none;
}

#websitebuddyring .tab.active {
    display: block;
}

@keyframes wbudjump {
    0% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0); }
}

.wbudimage.wbudjumping {
    animation: wbudjump 0.5s ease;
}

@keyframes wbudbobbing {
    0% {
        transform: translateY(2px);
    }
    100% {
        transform: translateY(-2px);
    }
}