/* BitFlower Card Styles - v1 Original Style */
/* 黑色背景风格，保持原始v1版本外观 */

body {
    background-color: #ecf1f9;
    color: #11181C;
    margin: 0;
    padding: 0;
    min-height: 100%;
    position: relative;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 0.875rem;
    line-height: 1.5;
    font-family: Courier, -apple-system, BlinkMacSystemFont, 'Segoe UI','Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans','Helvetica Neue', sans-serif;
}

img {
    max-width: 100%;
}

.flex {
    display: flex;
}

.justify-center {
    justify-content: center;
}

.content-center {
    align-content: center;
}

.items-center {
    align-items: center;
}

.text-center {
    text-align: center;
}

.bg-black {
    background-color: rgb(0 0 0 / 1);
}

.text-white {
    color: rgb(255 255 255 / 1);
}

.max-w-xl {
    max-width: 448px;
}

.pt-5 {
    padding-top: 1.25rem;
}

.p-5 {
    padding: 1.25rem;
}

.rounded-xl {
    border-radius: 0.75rem;
}

.border-4 {
    border-width: 4px;
}

.border-white {
    border-color: rgb(255 255 255 / 1);
}

.w-\[50\%\] {
    width: 50%;
}

.effect-iframe {
    border: 1px solid #ffffff;
    margin: 0;
    padding: 0;
    overflow: hidden;
    max-height: 150px;
    height: 150px;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.px-2 {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.mt-6 {
    margin-top: 1rem;
}

/* 紧凑间距版本 */
.mt-3 {
    margin-top: 0.75rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.border {
    border-width: 1px;
}

.border-solid {
    border-style: solid;
}

.rounded {
    border-radius: 0.25rem;
}

.cursor-pointer {
    cursor: pointer;
}

.hover\:bg-gray-700:hover {
    background-color: rgb(55 65 81 / 1);
}

.transition {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.duration-200 {
    transition-duration: 200ms;
}

/* 自定义样式 */
.custom-text-space-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 卡片容器居中 - 适应预览框显示 */
#card-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100%;
    padding: 5px;
    box-sizing: border-box;
}

/* 卡片内容优化 - 移除高度限制以适应预览框 */
.card-content {
    width: 100%;
    max-width: 380px;
    box-sizing: border-box;
    padding: 15px;
}

/* 密文区域样式 */
.secret-section {
    margin-top: 1.5rem;
}

.secret-input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ffffff;
    background: transparent;
    color: #ffffff;
    border-radius: 0.25rem;
}

.secret-input::placeholder {
    color: #cccccc;
}

.decrypt-button {
    width: 100%;
    padding: 0.5rem 1rem;
    margin-top: 0.5rem;
    background: transparent;
    color: #ffffff;
    border: 1px solid #ffffff;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: all 0.2s;
}

.decrypt-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.decrypted-message {
    margin-top: 1rem;
    padding: 0.75rem;
    border: 1px solid #ffffff;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0.25rem;
    word-wrap: break-word;
}

/* iframe自适应缩放样式 */
.effect-iframe {
    transform-origin: top left;
    transition: transform 0.3s ease;
}

/* 响应式设计 */
@media (max-width: 480px) {
    .card-content {
        padding: 1rem;
    }
    
    .max-w-xl {
        max-width: 95vw;
    }
}