:root {
    --gradient-start: #fff8b8;
    --gradient-end: #ffd87a;
}

/* Reset everything */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Set both html and body to full height and prevent overflow issues */
html, body {
    height: auto;
    min-height: auto;
    width: 100%;
    overflow-x: hidden;
    min-height: auto;
    margin: 0;
    padding: 0;
}

/* Set the gradient on html */
html {
    background: #fff;
}

/* Keep body transparent */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    padding-top: 0;
    background: transparent;
    min-height: auto;
    box-sizing: border-box;
}

/* Ensure all wrappers are full height */
#root,
.container,
main {
    min-height: auto;
}

header {
    width: 100%;
    background: linear-gradient(to bottom, var(--gradient-start), var(--gradient-end));
    position: sticky;
    top: 0;
    z-index: 10;
}

nav {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    box-sizing: border-box;
    border-radius: 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #000000;
}

.logo a {
    color: #000000;
}

.nav-links a {
    color: #000;
    text-decoration: none;
    font-weight: bold;
    margin: 0 1rem;
}

.nav-links input[type="search"] {
    border: none;
    background: rgba(255, 255, 255, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

.winner-card {
    display: flex;
    align-items: center;
    gap: 2rem;
    max-width: 1200px;
    width: 90%;
    padding: 2rem;
    background-color: #000000;
    transform: skew(-2deg); /* Slight angle like the leaderboard */
    margin-bottom: .5rem;
    height: 50vh;
}

.winner-image-container {
    flex-shrink: 0;
    max-height: 40vh;
}

.winner-image {
    max-width: 300px;
    width: 100%;
    height: auto;
    border: 2px solid #FFFFFF;
    max-height: 40vh;
}

.winner-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    transform: skew(2deg); /* Counter the parent skew */
}

.winner-info h3 {
    color: #FFFFFF;
    font-weight: bold;
    font-size: 2rem;
    text-transform: uppercase;
    margin: 0 0 1rem 0;
}

.winner-info p {
    color: #FFFFFF;
    font-family: monospace;
    font-size: 1.2rem;
    margin: 0 0 1rem 0;
}

.winner-info h2 {
    color: #FFFFFF;
    font-weight: bold;
    font-size: 3.5rem;
    text-transform: uppercase;
    margin: 0 0 1rem 0;
    letter-spacing: 2px;
}

.winner-info .eyebrow {
    color: #FFA500;  /* Orange color - feel free to adjust */
    text-transform: uppercase;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
    display: block;
}

.vote-count {
    color: #FFFFFF;
    font-weight: bold;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.vote-count::before {
    content: '⏱️';
    font-size: 1rem;
}

/* Orange accent for hover state */
.winner-card:hover {
    box-shadow: 0 0 0 2px #FFA500;
}

/* Responsive layout for mobile */
@media (max-width: 768px) {
    .winner-card {
        flex-direction: column;
        text-align: center;
    }
    
    .winner-info {
        align-items: center;
    }
}

h2, h3 {
    color: #000;
    font-weight: bold;
}

.votes .number {
    font-size: 1.5rem;
    font-weight: bold;
}

.winner-hero {
    width: 100%;
    min-height: 100vh;  /* Make it full height of viewport */
    background: linear-gradient(to bottom, var(--gradient-start), var(--gradient-end));
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
}

.hero-title {
    font-family: 'Jaro', sans-serif;
    font-size: 8vw;
    margin-bottom: 2rem;
    text-align: center;
    text-transform: uppercase;
    color: #FFD700;
    text-shadow: 
        4px 4px 0 #000,
        -4px -4px 0 #000,
        4px -4px 0 #000,
        -4px 4px 0 #000;
}

/* Add a media query to prevent the text from getting too large on wide screens */
@

.winner-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    text-align: center;
}

.winner-image {
    max-width: 300px;
    width: 100%;
    height: auto;
    margin-bottom: 1.5rem;
}

.coin-boxes {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.coin-box {
    background-color: #000000;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 0;
}

.coin-box p {
    color: #FFFFFF;
    margin: 0;
    font-family: monospace;
    font-size: 1rem;
    word-break: break-all;
}

.vote-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0 !important;
    margin: 0;
}

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

.vote-item h3 {
    margin: 0;
    margin-bottom: 0.5rem;  /* Space between title and address */
}

.vote-item p {
    margin: 0;
}

.votes .number {
    font-size: 1.5rem;  /* Adjust size as needed */
    font-weight: bold;
}

.vote-item.coin-box {
    /* ... existing coin-box styles ... */
    color: #FFFFFF;
}

.vote-item h3 {
    color: #FFFFFF;
    margin: 0;
    margin-bottom: 0.5rem;
}

.vote-item p {
    color: #FFFFFF;
    margin: 0;
}

.votes .number {
    color: #FFFFFF;
    font-size: 1.5rem;
    font-weight: bold;
}

.vote-item-image {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    overflow: hidden;
    border: 2px solid #FFFFFF;
    border-radius: 0 !important;
}

.vote-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0 !important;
}

.explainer-section {
    padding: 4rem 0 0 0;
    background: #f8f9fa;
    margin-bottom: 2rem;
    min-height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    padding: 0;
    min-height: auto;
}

.tweet-container {
    max-width: 550px;
    margin: 2rem auto 2rem;
    display: flex;
    justify-content: center;
    padding: 0;
}

.voting-list {
    width: 100%;
    margin-top: 1rem;
    background: #000000;
    border-radius: 8px;
    overflow: hidden;
    padding: 2rem;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.social-link {
    display: flex;
    align-items: center;
    color: #000;
    transition: opacity 0.2s ease;
}

.social-link:hover {
    opacity: 0.7;
}

.social-link svg {
    fill: currentColor;
    width: 24px;
    height: 24px;
}

a {
    text-decoration: none;
}

.social-link {
    text-decoration: none;
}

.coin-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.coin-info h3 {
    margin: 0;
    white-space: nowrap;
}

.coin-info .address {
    font-size: 0.9em;
    color: #666;
    overflow: hidden;
    text-overflow: ellipsis;
}

.votes {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.vote-button {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 4px;
    transition: color 0.2s ease, transform 0.2s ease;
}

.vote-button:hover {
    color: #ff6b6b;
    transform: translateY(-2px);
}

.vote-button:active {
    transform: translateY(0);
}

/* Optional: Add this if you want to show when a vote is active */
.vote-button.active {
    color: #ff6b6b;
}

.twitter-tweet-rendered {
    margin: 0 !important;
}

/* Override inline styles */
.twitter-tweet-rendered[style] {
    margin: 10px 0 0 0 !important;
}

/* Target the iframe directly */
.twitter-tweet-rendered iframe {
    margin: 0 !important;
}

/* Additional fixes for potential spacing issues */
.explainer-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
}

body > *:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Reset voting list styles */
.voting-list {
    width: 100%;
    margin-top: 1rem;
    background: #000000;
    border-radius: 8px;
    overflow: hidden;
    padding: 2rem;
}

/* Reset vote item styles */
.vote-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin: 0;
    background: #000000;
}

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

/* Reset image container styles */
.vote-item-image {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    overflow: hidden;
    border: 2px solid #FFFFFF;
    border-radius: 0 !important;
}

.vote-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0 !important;
}

/* Reset coin box styles */
.coin-box {
    border-radius: 0 !important;
    margin: 0;
    padding: 0;
}

/* Content and coin info styles */
.content {
    flex: 1;
}

.coin-info {
    display: flex;
    align-items: center;
    width: 100%;
}

.coin-info h3 {
    margin: 0;
    white-space: nowrap;
    margin-right: 12px;
}

.coin-info .address {
    font-size: 0.9em;
    color: #666;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.votes {
    display: flex;
    align-items: center;
}

/* Ensure the container has proper spacing */
.winner-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
    width: 90%;
    max-width: 1200px;
}
  