body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-wrapper {
    display: flex;
    flex: 1;
    justify-content: center;
    align-items: stretch;
    position: relative;
    overflow: hidden;
}

/* ===================== */
/* Frosted Glass Divider */
/* ===================== */
.diagonal-divider {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 100px;
    transform: translateX(-30%) skewY(0deg);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-left: 2px solid rgba(255, 255, 255, 0.3);
    border-right: 2px solid rgba(255, 255, 255, 0.3);
    overflow: hidden;
    z-index: 2;
    animation: diagonalGlow 4s infinite alternate ease-in-out;
    pointer-events: none;
}

/* Light beam animation */
.diagonal-divider::before {
    content: "";
    position: absolute;
    top: 0;
    left: -150%;
    width: 150%;
    height: 100%;
    background: linear-gradient(
        120deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.5) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewY(-10deg);
    animation: beamSweep 3s infinite;
}

@keyframes beamSweep {
    0% { left: -150%; }
    50% { left: 50%; }
    100% { left: 150%; }
}

@keyframes diagonalGlow {
    0% {
        box-shadow: 0 0 10px rgba(71, 197, 255, 0.4),
                    0 0 20px rgba(71, 197, 255, 0.3);
        opacity: 0.7;
    }
    100% {
        box-shadow: 0 0 20px rgba(71, 197, 255, 0.6),
                    0 0 40px rgba(71, 197, 255, 0.5);
        opacity: 1;
    }
}

/* ===================== */
/* Left Column Styles    */
/* ===================== */
.left-column {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background: url('https://thechamberscup.com/images/AdobeStock_637552586.jpeg') no-repeat right center;
    background-size: cover;
    position: relative;
    animation: backgroundPan 20s ease-in-out infinite alternate;
    overflow: hidden;
    z-index: 1;
}

/* Wave-like reflection */
.left-column::before {
    content: "";
    position: absolute;
    top: 0;
    left: -50%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        120deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.25) 40%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-20deg);
    animation: reflectionSweep 12s linear infinite, waveMotion 6s ease-in-out infinite;
    pointer-events: none;
    z-index: 2;
    filter: blur(12px);
}

/* Floating particles */
.left-column::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(2px 2px at 20% 30%, rgba(255,255,255,0.7), transparent 70%),
        radial-gradient(2px 2px at 40% 80%, rgba(255,255,255,0.5), transparent 70%),
        radial-gradient(2px 2px at 60% 20%, rgba(255,255,255,0.6), transparent 70%),
        radial-gradient(2px 2px at 80% 50%, rgba(255,255,255,0.4), transparent 70%),
        radial-gradient(2px 2px at 10% 70%, rgba(255,255,255,0.5), transparent 70%);
    background-repeat: no-repeat;
    animation: particleFloat 30s linear infinite;
    z-index: 1;
    pointer-events: none;
}

@keyframes particleFloat {
    0%   { background-position: 0 0; }
    50%  { background-position: 15px -25px; }
    100% { background-position: 0 0; }
}

@keyframes reflectionSweep {
    0%   { left: -50%; }
    100% { left: 150%; }
}

@keyframes waveMotion {
    0%   { transform: skewX(-20deg) scaleX(1) translateY(0); }
    25%  { transform: skewX(-20deg) scaleX(1.05) translateY(-5px); }
    50%  { transform: skewX(-20deg) scaleX(1) translateY(0); }
    75%  { transform: skewX(-20deg) scaleX(0.95) translateY(5px); }
    100% { transform: skewX(-20deg) scaleX(1) translateY(0); }
}

@keyframes backgroundPan {
    0%   { background-position: right center; }
    100% { background-position: left center; }
}

/* ===================== */
/* Content Containers    */
/* ===================== */
.container {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    z-index: 3;
}

.trophyImage {
    max-height: 100%;
    max-width: 100%;
    opacity: 0;
    visibility: hidden;
    position: absolute;
    transition: opacity 1s ease-in-out, visibility 0s linear 1s; /* slower fade */
}

.trophyImage.visible {
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
}

.right-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: #f5f5f5;
    padding: 20px;
    position: relative;
    z-index: 3;
}

.logo {
    width: 80%;
    margin-bottom: 15px;
}
.title {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 20px;
}
.table-container {
    width: 100%;
    max-width: 500px;
    margin-bottom: 20px;
}
table {
    border-collapse: collapse;
    width: 100%;
}
th, td {
    border: 1px solid #444;
    padding: 8px;
}
thead th {
    background-color: #47c5ff;
    color: #fff;
}
tbody tr:nth-child(even) {
    background-color: #f2f2f2;
}
/* Alternate row background colors */
tbody tr:nth-child(odd) {
    background-color: #ffffff; /* White rows */
}
tbody tr:nth-child(even) {
    background-color: #f7f7f7; /* Light gray rows */
}

/* Last column (Dollars) background */
tbody td:last-child {
    background-color: #e6e6e6; /* Light gray for last column */
    font-weight: bold; /* Optional: emphasize the Dollars column */
}

.output {
  font-size: 60px;
  font-weight: bold;
  margin-top: 20px;
  width: 50%;
  padding: 25px;
  color: rgb(0, 0, 0);
  background: rgba(71, 197, 255, 0.2); /* Transparent blue tint */
  border: 1px solid rgba(255, 255, 255, 0.3); /* Soft white border */
  border-radius: 12px; /* Smooth edges */
  backdrop-filter: blur(12px); /* Glass blur effect */
  -webkit-backdrop-filter: blur(12px); /* Safari support */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2); /* Depth shadow */
  text-align: center;
}
.footer {
    background-color: #2b3256;
    color: white;
    text-align: center;
    padding: 15px;
    font-size: 14px;
}

/* ===================== */
/* Tooltip Styles        */
/* ===================== */
.tooltip-box {
    opacity: 0;
    position: absolute;
    background: rgba(0,0,0,0.9);
    color: #fff;
    padding: 10px;
    border-radius: 6px;
    z-index: 99999;
    font-size: 14px;
    max-width: 250px;
    white-space: pre-line;
    line-height: 1.5;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.tooltip-box.visible {
    opacity: 1;
    pointer-events: auto;
}

/* ===================== */
/* Responsive Styles     */
/* ===================== */
@media (max-width: 900px) {
    .main-wrapper {
        flex-direction: column;
        align-items: center;
    }
    .container {
        height: auto;
        min-height: 250px;
    }
    .trophyImage {
        display: none !important;
        position: relative;
    }

    .trophyImage.visible[data-active="true"] {
        display: block !important;
        width: 100%;
        height: auto;
    }

    .diagonal-divider {
        display: none;
    }
}

@media (max-width: 900px) {
    .container .trophyImage.visible {
        display: none;
    }

    .container .trophyImage.visible:last-of-type {
        display: block;
    }

    .output {
        font-size: 40px;
    }
}

/* ===================== */
/* Loading Spinner       */
/* ===================== */
#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}
.spinner {
    border: 6px solid #f3f3f3;
    border-top: 6px solid #47c5ff;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
