/* Twisted Candyland Theme */

/* General Styles */
body {
    background: url('/static/themes/CANDY/sweets.png') repeat, #a10000;
    color: #f5e0f0;
    font-family: 'Comic Sans MS', 'Curlz MT', cursive;
    margin: 0;
    padding: 0;
    position: relative;
    overflow-x: hidden;
}

/* Dark Drippings Overlay */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('dark_drippings.png') repeat-x bottom;
    pointer-events: none;
    opacity: 0.8;
}

/* Scroll Animation */
@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0); }
}

/* Links */
a, a:visited {
    color: #ff69b4;
    text-decoration: none;
}

a:hover {
    color: #ff1493;
    text-decoration: underline wavy #ff69b4;
}

/* Header and Navigation */
header, nav, footer {
    background-color: rgba(255, 228, 225, 0.8);
    border-bottom: 2px dashed #ff7f50;
    padding: 10px;
}

.boardlist {
    text-align: center;
    margin-bottom: 10px;
}

.boardlist a {
    color: #db7093;
    margin: 0 5px;
}

.boardlist a:hover {
    color: #ff1493;
}

/* Threads and Replies */
.thread, .reply {
    background-color: rgba(255, 240, 245, 0.9);
    border: 3px dotted #ffb6c1;
    border-radius: 15px;
    margin: 15px;
    padding: 15px;
    position: relative;
    box-shadow: 0 0 10px rgba(255, 105, 180, 0.5);
}

.thread::before, .reply::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 10px;
    width: 50px;
    height: 50px;
    background: url('candy_icon.png') no-repeat center center;
    background-size: contain;
    animation: float 5s ease-in-out infinite;
}

div.post.reply {
    color: #ffdab9;
    font-size: 12px;
    margin-bottom: 5px;
    font-family: 'Curlz MT', cursive; 
    border: 14px solid transparent;
  padding: 2px;
background:     url('/static/themes/CANDY/charface1.png') no-repeat bottom right /50px 50px,
#ff8ab9;
    font-family: 'Comic Sans MS', cursive;
}

div.post.reply:hover {
    color: #ffdab9;
    font-size: 12px;
    margin-bottom: 5px;
    font-family: 'Curlz MT', cursive; 
    border: 12px solid transparent;
  border-image: url('/static/themes/CANDY/border.png')  6 round; 
background:     url('/static/themes/CANDY/charface2.png') no-repeat bottom right /60px 60px,
#ff8ab9;
padding: 2;
    line-height: 1.6;
    font-family: 'Comic Sans MS', cursive;
}

div.post.reply.highlighted {
    position: relative;
    color: #DEDEDE;
    border: 12px solid transparent;
    padding: 2px;
background:  url('/static/themes/CANDY/charface3.png') no-repeat center /240px 240px,
url('/static/themes/CANDY/block.png') center/ 360px 180px;
#ff8ab9;
    border-radius: 8px;
}




/* Blockquotes */
blockquote {
    background-color: rgba(255, 228, 225, 0.8);
    border-left: 5px solid #ff69b4;
    padding: 10px;
    margin: 10px 0;
    color: #db7093;
}

.quote {
    color: #ff1493;
}

/* Forms and Inputs */
input, textarea, select, button {
    background-color: #fff0f5;
    color: #db7093;
    border: 2px solid #ff69b4;
    padding: 5px;
    border-radius: 10px;
    font-family: 'Comic Sans MS', cursive;
}

input:focus, textarea:focus, select:focus {
    border-color: #ff1493;
    outline: none;
    box-shadow: 0 0 5px #ff69b4;
}

/* Miscellaneous */
hr {
    border: none;
    border-top: 3px dashed #ffb6c1;
    margin: 20px 0;
}

img {
    border: 5px solid #ff69b4;
    border-radius: 15px;
    box-shadow: 0 0 15px rgba(255, 105, 180, 0.7);
}

.catalog {
    background-color: rgba(255, 240, 245, 0.9);
    padding: 20px;
}

.catalog-item {
    background-color: rgba(255, 228, 225, 0.9);
    border: 3px dotted #ffb6c1;
    margin: 10px;
    padding: 10px;
    border-radius: 15px;
    box-shadow: 0 0 10px rgba(255, 105, 180, 0.5);
}

.catalog-item:hover {
    background-color: rgba(255, 182, 193, 0.9);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #ffe4e1;
}

::-webkit-scrollbar-thumb {
    background: #ff69b4;
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: #ff1493;
}

/* Floating Sweets */
@keyframes sweetsFloat {
    0% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(360deg); }
    100% { transform: translateY(0) rotate(720deg); }
}

.sweet {
    position: absolute;
    width: 50px;
    height: 50px;
    background-size: contain;
    background-repeat: no-repeat;
    animation: sweetsFloat 10s infinite ease-in-out;
    pointer-events: none;
    opacity: 0.7;
}

.sweet1 {
    background-image: url('lollipop.png');
    top: 30%;
    left: 10%;
    animation-delay: 0s;
}

.sweet2 {
    background-image: url('candy_wrapper.png');
    top: 60%;
    left: 80%;
    animation-delay: 2s;
}

.sweet3 {
    background-image: url('cupcake.png');
    top: 50%;
    left: 40%;
    animation-delay: 4s;
}

/* Footer */
footer {
    background: url('dark_drippings.png') repeat-x top;
    background-size: contain;
    padding: 20px;
    border-top: 2px dashed #ff7f50;
}

/* Hover Effects */
.thread:hover, .reply:hover {
    background-color: rgba(255, 182, 193, 0.9);
    box-shadow: 0 0 15px rgba(255, 20, 147, 0.7);
}

/* Responsive Design */
@media (max-width: 768px) {
    .thread, .reply {
        margin: 10px;
        padding: 10px;
    }

    .sweet {
        width: 30px;
        height: 30px;
    }
}