* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e1e1e1;
}

header h1 {
    color: #ff6b6b;
}

/* Auction carousel */
.auction-carousel {
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
    min-height: 400px; /* Ensure minimum height for the carousel */
}

.auction-items {
    display: flex;
    width: 100%;
    position: relative; /* Added for proper positioning */
}

.auction-item {
    display: flex;
    flex-wrap: wrap;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    flex: 0 0 100%;
    width: 100%; /* Ensure full width */
    position: absolute; /* Position absolutely so items can stack */
    left: 0;
    top: 0;
    opacity: 0;
    transform: translateX(100%);
    transition: transform 0.8s ease-in-out, opacity 0.5s ease;
    z-index: 1; /* Ensure proper stacking */
}

.auction-item.current {
    opacity: 1;
    transform: translateX(0);
    z-index: 2; /* Higher z-index for current item */
    position: relative; /* Allow it to take up space in the flow */
}

.auction-item.previous {
    transform: translateX(-100%);
    opacity: 0;
    z-index: 1;
}

.item-image {
    flex: 1;
    min-width: 300px;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-details {
    flex: 2;
    padding: 20px;
    min-width: 300px;
}

.item-details h2 {
    color: #2d3436;
    margin-bottom: 10px;
}

.description {
    color: #636e72;
    margin-bottom: 20px;
}

.auction-info {
    background-color: #f1f2f6;
    padding: 15px;
    border-radius: 6px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.auction-info .label {
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
    color: #636e72;
}

.auction-info .value {
    font-size: 1.2rem;
    color: #2d3436;
}

.time-remaining .value {
    color: #e17055;
    font-weight: bold;
}

.time-remaining .value.ending-soon {
    color: #e74c3c;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.bidding-area {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 30px;
}

.ending-soon-alert {
    background-color: #ffe3e3;
    color: #d63031;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 15px;
    font-weight: bold;
    text-align: center;
    display: none;
}

.ending-soon-alert.show {
    display: block;
    animation: flash 1.5s infinite;
}

@keyframes flash {
    0% { background-color: #ffe3e3; }
    50% { background-color: #ff9e9e; }
    100% { background-color: #ffe3e3; }
}

.progress-bar {
    background-color: #fff;
    height: 8px;
    border-radius: 4px;
    margin-top: 8px;
    overflow: hidden;
}

.progress {
    background-color: #d63031;
    height: 100%;
    width: 0%;
    transition: width 1s linear;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

button {
    background-color: #ff6b6b;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #ee5253;
}

.bid-history {
    margin-top: 30px;
}

.bid-history h3 {
    margin-bottom: 15px;
    border-bottom: 1px solid #e1e1e1;
    padding-bottom: 10px;
}

.bid-history-list {
    list-style: none;
}

.bid-history-item {
    padding: 10px;
    border-bottom: 1px solid #f1f1f1;
    display: flex;
    justify-content: space-between;
}

.bid-history-item:nth-child(odd) {
    background-color: #f9f9f9;
}

.bidder {
    font-weight: bold;
    flex: 1;
}

.amount {
    flex: 1;
    text-align: center;
}

.time {
    flex: 1;
    text-align: right;
    color: #636e72;
    font-size: 0.9rem;
}

footer {
    text-align: center;
    padding: 20px;
    margin-top: 30px;
    border-top: 1px solid #e1e1e1;
    color: #636e72;
}

.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #55efc4;
    color: #2d3436;
    padding: 15px 25px;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transform: translateY(150%);
    transition: transform 0.3s ease-in-out;
    z-index: 100;
}

.notification.show {
    transform: translateY(0);
}

.notification.error {
    background-color: #ff7675;
    color: white;
}

@media (max-width: 768px) {
    .auction-item {
        flex-direction: column;
    }
    
    .item-image, .item-details {
        width: 100%;
    }
    
    .bid-history-item {
        flex-direction: column;
    }
    
    .bidder, .amount, .time {
        text-align: left;
        margin-bottom: 5px;
    }
}

.debug-controls {
    margin-top: 10px;
    opacity: 0.7;
}

.debug-controls button {
    background-color: #2c3e50;
    font-size: 12px;
    padding: 5px 10px;
}

.debug-controls button:hover {
    background-color: #34495e;
} 