body {
    background-image: url("../images/background.gif");
    background-repeat: no-repeat;
    background-position: center center;
    background-attachment: fixed;
    background-size: cover;
}

.h1,
.h2,
.h3,
.h4,
.h5,
.h6,
h1,
h2,
h3,
h4,
h5,
h6 {
    margin-bottom: .5rem;
    font-weight: 500;
    line-height: 1.2;
}

.h1,
h1 {
    font-size: 2.5rem;
}

.h2,
h2 {
    font-size: 2rem;
}

.h3,
h3 {
    font-size: 1.75rem;
}

.h4,
h4 {
    font-size: 1.5rem;
}

.h5,
h5 {
    font-size: 1.25rem;
}

.h6,
h6 {
    font-size: 1rem;
}

.lead {
    font-size: 1.25rem;
    font-weight: 300;
}

a {
    color: #007bff;
    text-decoration: none;
    background-color: transparent;
}

.col,
.col-1,
.col-10,
.col-11,
.col-12,
.col-2,
.col-3,
.col-4,
.col-5,
.col-6,
.col-7,
.col-8,
.col-9,
.col-auto,
.col-lg,
.col-lg-1,
.col-lg-10,
.col-lg-11,
.col-lg-12,
.col-lg-2,
.col-lg-3,
.col-lg-4,
.col-lg-5,
.col-lg-6,
.col-lg-7,
.col-lg-8,
.col-lg-9,
.col-lg-auto,
.col-md,
.col-md-1,
.col-md-10,
.col-md-11,
.col-md-12,
.col-md-2,
.col-md-3,
.col-md-4,
.col-md-5,
.col-md-6,
.col-md-7,
.col-md-8,
.col-md-9,
.col-md-auto,
.col-sm,
.col-sm-1,
.col-sm-10,
.col-sm-11,
.col-sm-12,
.col-sm-2,
.col-sm-3,
.col-sm-4,
.col-sm-5,
.col-sm-6,
.col-sm-7,
.col-sm-8,
.col-sm-9,
.col-sm-auto,
.col-xl,
.col-xl-1,
.col-xl-10,
.col-xl-11,
.col-xl-12,
.col-xl-2,
.col-xl-3,
.col-xl-4,
.col-xl-5,
.col-xl-6,
.col-xl-7,
.col-xl-8,
.col-xl-9,
.col-xl-auto {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
}

.col {
    -ms-flex-preferred-size: 0;
    flex-basis: 0;
    -ms-flex-positive: 1;
    flex-grow: 1;
    max-width: 100%;
}

.row-cols-1>* {
    -ms-flex: 0 0 100%;
    flex: 0 0 100%;
    max-width: 100%;
}

.row-cols-2>* {
    -ms-flex: 0 0 50%;
    flex: 0 0 50%;
    max-width: 50%;
}

.row-cols-3>* {
    -ms-flex: 0 0 33.333333%;
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
}

.row-cols-4>* {
    -ms-flex: 0 0 25%;
    flex: 0 0 25%;
    max-width: 25%;
}

.row-cols-5>* {
    -ms-flex: 0 0 20%;
    flex: 0 0 20%;
    max-width: 20%;
}

.row-cols-6>* {
    -ms-flex: 0 0 16.666667%;
    flex: 0 0 16.666667%;
    max-width: 16.666667%;
}

.col-auto {
    -ms-flex: 0 0 auto;
    flex: 0 0 auto;
    width: auto;
    max-width: 100%;
}

.col-1 {
    -ms-flex: 0 0 8.333333%;
    flex: 0 0 8.333333%;
    max-width: 8.333333%;
}

.col-2 {
    -ms-flex: 0 0 16.666667%;
    flex: 0 0 16.666667%;
    max-width: 16.666667%;
}

.col-3 {
    -ms-flex: 0 0 25%;
    flex: 0 0 25%;
    max-width: 25%;
}

.col-4 {
    -ms-flex: 0 0 33.333333%;
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
}

.col-5 {
    -ms-flex: 0 0 41.666667%;
    flex: 0 0 41.666667%;
    max-width: 41.666667%;
}

.col-6 {
    -ms-flex: 0 0 50%;
    flex: 0 0 50%;
    max-width: 50%;
}

.col-7 {
    -ms-flex: 0 0 58.333333%;
    flex: 0 0 58.333333%;
    max-width: 58.333333%;
}

.col-8 {
    -ms-flex: 0 0 66.666667%;
    flex: 0 0 66.666667%;
    max-width: 66.666667%;
}

.col-9 {
    -ms-flex: 0 0 75%;
    flex: 0 0 75%;
    max-width: 75%;
}

.col-10 {
    -ms-flex: 0 0 83.333333%;
    flex: 0 0 83.333333%;
    max-width: 83.333333%;
}

.col-11 {
    -ms-flex: 0 0 91.666667%;
    flex: 0 0 91.666667%;
    max-width: 91.666667%;
}

.col-12 {
    -ms-flex: 0 0 100%;
    flex: 0 0 100%;
    max-width: 100%;
}

.row {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

dl,
ol,
ul {
    margin-top: 0;
    margin-bottom: 1rem;
}

*,
::after,
::before {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    text-align: left;
    background-color: #fff;
}

:root {
    --blue: #007bff;
    --indigo: #6610f2;
    --purple: #6f42c1;
    --pink: #e83e8c;
    --red: #dc3545;
    --orange: #fd7e14;
    --yellow: #ffc107;
    --green: #28a745;
    --teal: #20c997;
    --cyan: #17a2b8;
    --white: #fff;
    --gray: #6c757d;
    --gray-dark: #343a40;
    --primary: #007bff;
    --secondary: #6c757d;
    --success: #28a745;
    --info: #17a2b8;
    --warning: #ffc107;
    --danger: #dc3545;
    --light: #f8f9fa;
    --dark: #343a40;
    --breakpoint-xs: 0;
    --breakpoint-sm: 576px;
    --breakpoint-md: 768px;
    --breakpoint-lg: 992px;
    --breakpoint-xl: 1200px;
    --font-family-sans-serif: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --font-family-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

html {
    font-family: sans-serif;
    line-height: 1.15;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

*,
::after,
::before {
    box-sizing: border-box;
}

.mylist li.col-3 img {
    display: block;
    width: 45px;
    height: 45px;
    padding: 8px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    margin: 0 auto;
}

svg.icon {
    width: 14px;
    height: 14px;
    margin: 0 5px 0 8px;
    vertical-align: -0.15em;
    fill: currentColor;
    overflow: hidden;
}

.mylist {
    list-style: none;
    padding: 10px 20px;
    position: relative;
    z-index: 1000;
    max-width: 95%;
    margin: 20px auto;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.mylist li.col-3 {
    width: 100px;
    transition: 0.3s all linear;
    font-size: 14px;
    overflow: hidden;
    padding: 5px 0;
    border-radius: 5px;
}

.mylist li.col-3 svg {
    display: block;
    width: 45px;
    height: 45px;
    padding: 8px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    margin: 0 auto;
}

.mylist li.col-3:hover {
    background: #eee;
}

.mylist li.col-3 span {
    width: 100%;
    height: 26px;
    line-height: 26px;
    text-align: center;
    font-size: 13px;
    word-break: break-all;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mylist li a {
    color: #555;
    display: block;
}

.mylist li.title {
    width: 100%;
    min-width: auto;
    margin: 0;
    height: auto;
    font-size: 18px;
    font-weight: bold;
    line-height: 1.2;
    padding: 0 10px 10px 10px;
    border-bottom: 2px solid #007bff;
    margin-bottom: 15px;
    text-align: left;
}

.mylist li.title span {
    display: inline-flex;
    align-items: center;
    height: auto;
}

.mylist li.col-3 {
    margin: 5px 0 5px;
}

.mylist li.col-3 svg {
    width: 30px;
    height: 30px;
    padding: 5px;
    border-radius: 5px;
}

.mylist li.col-3 span {
    font-size: 12px;
}

.mylist li.col-3 img {
    display: block;
    width: 36px;
    height: 36px;
    padding: 1px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 6px;
    margin: 0 auto;
}

.floating-lottery-container,
.floating-service-container {
    position: fixed;
    right: 20px;
    z-index: 9999;
}

.floating-service-container {
    bottom: 100px;
}

.floating-lottery-container {
    bottom: 20px;
}

.floating-lottery-btn,
.floating-service-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
}

.floating-lottery-btn {
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
    animation: pulse-lottery 2s infinite;
}

.floating-service-btn {
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
    animation: pulse 2s infinite;
}

.floating-lottery-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(255, 107, 107, 0.4);
}

.floating-service-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 123, 255, 0.4);
}

.floating-lottery-btn img,
.floating-service-btn img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.lottery-close-btn,
.service-close-btn {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    cursor: pointer;
    font-weight: bold;
    z-index: 10;
}

.lottery-close-btn:hover,
.service-close-btn:hover {
    background: #c82333;
}

@keyframes pulse-lottery {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(255, 107, 107, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 107, 107, 0);
    }
}

.service-popup {
    position: fixed;
    bottom: 170px;
    right: 20px;
    width: 300px;
    max-height: 400px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    transform: translateY(100%);
    opacity: 0;
    transition: all 0.3s ease;
    overflow: hidden;
    display: none;
}

.service-popup.active {
    transform: translateY(0);
    opacity: 1;
    display: block;
}

.service-popup-header {
    background: #007bff;
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.service-popup-header h3 {
    margin: 0;
    font-size: 16px;
}

.close-service {
    font-size: 20px;
    cursor: pointer;
    font-weight: bold;
}

.service-popup-content {
    max-height: 300px;
    overflow-y: auto;
    padding: 10px;
}

.service-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    border-bottom: 1px solid #eee;
    transition: background 0.2s ease;
}

.service-item:hover {
    background: #f8f9fa;
}

.service-item:last-child {
    border-bottom: none;
}

.service-info {
    display: flex;
    align-items: center;
    flex: 1;
}

.service-info img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}

.service-text {
    flex: 1;
}

.service-title {
    font-weight: bold;
    margin-bottom: 2px;
    font-size: 14px;
}

.service-desc {
    color: #666;
    font-size: 12px;
}

.service-add-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s ease;
}

.service-add-btn:hover {
    background: #218838;
}

.copy-btn {
    background: #17a2b8;
}

.copy-btn:hover {
    background: #138496;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(0, 123, 255, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 123, 255, 0);
    }
}

.help-card {
    max-width: 95%;
    margin: 20px auto;
    padding: 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.help-card-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 2px solid #007bff;
    display: flex;
    align-items: center;
}

.help-card-title::before {
    content: "💡";
    margin-right: 8px;
    font-size: 20px;
}

.help-card-content {
    color: #555;
    line-height: 1.8;
    font-size: 14px;
    white-space: pre-wrap;
    word-wrap: break-word;
}

@media (max-width: 768px) {
    .help-card {
        margin: 15px 10px;
        padding: 15px;
    }

    .help-card-title {
        font-size: 16px;
    }

    .help-card-content {
        font-size: 13px;
    }

    .mylist {
        margin: 15px 10px;
        padding: 15px;
    }

    .mylist li.title {
        font-size: 16px;
    }
}
