html, body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    overflow: visible !important;
    background: transparent !important;
    min-width: 500px;
    min-height: 250px;
}

#ticker-box {
    position: relative;
    margin: 10px;
    background: linear-gradient(145deg, #90340a 0%, #7a2d09 100%);
    border: 3px solid #cd5922;
    border-radius: 15px;
    padding: 20px;
    width: auto;
    min-width: 450px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: flex-start;
    gap: 15px;
    color: white;
    overflow: visible;
}

.ticker-icon {
    width: 85px;
    height: auto;
    margin-right: 5px;
    object-fit: contain;
}

.content {
    flex: 1;
    padding-right: 15px;
    color: white;
}

.header {
    font-size: 24px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin: 0 0 15px 0;
    color: white;
}

.instruction {
    font-style: italic;
    font-family: 'Georgia', serif;
    color: #fefae0;
    margin: 10px 0 20px 0;
    line-height: 1.4;
    font-size: 16px;
    transition: opacity 0.2s ease-in-out;
}

.feedback-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 15px;
}

.icon-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.icon-button:hover {
    transform: scale(1.2);
}

.feedback-icon {
    width: 30px;
    height: 30px;
    object-fit: contain;
    filter: brightness(1.1);
    transition: filter 0.2s, transform 0.2s;
}

.icon-button:hover .feedback-icon {
    filter: brightness(1.3);
}

.mode-selector {
    position: relative;
    cursor: pointer;
    z-index: 9999;
    margin-left: auto;
}

.mode-tag {
    border: 2px solid #cd5922;
    border-radius: 25px;
    padding: 8px 15px;
    background: rgba(205, 89, 34, 0.3);
    color: white;
    font-weight: bold;
    display: inline-block;
    transition: background-color 0.2s;
}

.mode-tag:hover {
    background: rgba(205, 89, 34, 0.5);
}

.mode-tag::after {
    content: '▲';
    margin-left: 8px;
    font-size: 0.8em;
    display: inline-block;
    transform: rotate(180deg);
    transition: transform 0.2s ease;
}

.mode-tag.open::after {
    transform: rotate(0deg);
}

.dropdown-content {
    display: none;
    position: absolute;
    bottom: calc(100% + 5px);
    left: 0;
    background: #90340a;
    border: 2px solid #cd5922;
    border-radius: 12px;
    width: max-content;
    z-index: 9999;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.dropdown-content.show {
    display: block;
}

.dropdown-item {
    padding: 10px 20px;
    color: white;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    white-space: nowrap;
}

.dropdown-item:hover {
    background: #cd5922;
    transform: translateX(3px);
}

.dropdown-item:first-child {
    border-radius: 10px 10px 0 0;
}

.dropdown-item:last-child {
    border-radius: 0 0 10px 10px;
}

.actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.action-icon {
    background: none;
    border: 2px solid #cd5922;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    color: white;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s, transform 0.2s;
}

.action-icon:hover {
    background: rgba(205, 89, 34, 0.3);
    transform: scale(1.1);
}

.close-button {
    background: #cd5922;
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 18px;
    cursor: pointer;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s, transform 0.2s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.close-button:hover {
    background: #a02d1a;
    transform: scale(1.1);
} 