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

body {
    background-color: black;
    font-family: 'VT323', monospace;
    color: #FFB000;
    height: 100vh;
    overflow: hidden;
}

.container {
    position: relative;
    height: 100vh;
    width: 100%;
    background: url('./images/block_background.webp') no-repeat top center;
    background-size: cover;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, 
        rgba(0,0,0,0) 0%,
        rgba(0,0,0,0.4) 50%,
        rgba(0,0,0,1) 100%
    );
}

.content {
    position: relative;
    text-align: center;
    padding-top: 5vh;
    z-index: 1;
}

h1.crt-text {
    font-size: 4.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 5px #FFB000;
    animation: textShadow 1.6s infinite;
}

h2.crt-text {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-shadow: 0 0 3px #FFB000;
    animation: textShadow 1.6s infinite;
}

.table-container {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    padding: 0 2rem;
    max-height: calc(100vh - 250px);
    overflow-y: auto;
}

table.crt-text {
    border-collapse: separate;
    border-spacing: 1rem;
    font-family: 'VT323', monospace;
    font-size: 1.5rem;
    text-align: left;
    animation: textShadow 1.6s infinite;
}

.image-cell {
    width: 150px;
    height: 150px;
    border: 2px solid #FFB000;
    text-align: center;
    vertical-align: middle;
    background: rgba(0, 0, 0, 0.5);
}

.image-cell img {
    width: 150px;
    height: 150px;
    object-fit: cover;
}

.text-cell {
    padding: 1rem;
    min-width: 300px;
    border: 2px solid #FFB000;
    background: rgba(0, 0, 0, 0.5);
}

/* Custom scrollbar for the table container */
.table-container::-webkit-scrollbar {
    width: 8px;
}

.table-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}

.table-container::-webkit-scrollbar-thumb {
    background: #FFB000;
    border-radius: 4px;
}

/* CRT flicker effect */
@keyframes textShadow {
    0% {
        text-shadow: 0.4389924193300864px 0 1px rgba(255,176,0,0.5), -0.4389924193300864px 0 1px rgba(255,100,0,0.3), 0 0 3px;
    }
    5% {
        text-shadow: 2.7928974010788217px 0 1px rgba(255,176,0,0.5), -2.7928974010788217px 0 1px rgba(255,100,0,0.3), 0 0 3px;
    }
    10% {
        text-shadow: 0.02956275843481219px 0 1px rgba(255,176,0,0.5), -0.02956275843481219px 0 1px rgba(255,100,0,0.3), 0 0 3px;
    }
    15% {
        text-shadow: 0.40218538552878136px 0 1px rgba(255,176,0,0.5), -0.40218538552878136px 0 1px rgba(255,100,0,0.3), 0 0 3px;
    }
    20% {
        text-shadow: 3.4794037899852017px 0 1px rgba(255,176,0,0.5), -3.4794037899852017px 0 1px rgba(255,100,0,0.3), 0 0 3px;
    }
    25% {
        text-shadow: 1.6125630401149584px 0 1px rgba(255,176,0,0.5), -1.6125630401149584px 0 1px rgba(255,100,0,0.3), 0 0 3px;
    }
    30% {
        text-shadow: 0.7015590085143956px 0 1px rgba(255,176,0,0.5), -0.7015590085143956px 0 1px rgba(255,100,0,0.3), 0 0 3px;
    }
    35% {
        text-shadow: 3.896914047650351px 0 1px rgba(255,176,0,0.5), -3.896914047650351px 0 1px rgba(255,100,0,0.3), 0 0 3px;
    }
    40% {
        text-shadow: 3.870905614848819px 0 1px rgba(255,176,0,0.5), -3.870905614848819px 0 1px rgba(255,100,0,0.3), 0 0 3px;
    }
    45% {
        text-shadow: 2.231056963361899px 0 1px rgba(255,176,0,0.5), -2.231056963361899px 0 1px rgba(255,100,0,0.3), 0 0 3px;
    }
    50% {
        text-shadow: 0.08084290417898504px 0 1px rgba(255,176,0,0.5), -0.08084290417898504px 0 1px rgba(255,100,0,0.3), 0 0 3px;
    }
    55% {
        text-shadow: 2.3758461067427543px 0 1px rgba(255,176,0,0.5), -2.3758461067427543px 0 1px rgba(255,100,0,0.3), 0 0 3px;
    }
    60% {
        text-shadow: 2.202193051050636px 0 1px rgba(255,176,0,0.5), -2.202193051050636px 0 1px rgba(255,100,0,0.3), 0 0 3px;
    }
    65% {
        text-shadow: 2.8638780614874975px 0 1px rgba(255,176,0,0.5), -2.8638780614874975px 0 1px rgba(255,100,0,0.3), 0 0 3px;
    }
    70% {
        text-shadow: 0.48874025155497314px 0 1px rgba(255,176,0,0.5), -0.48874025155497314px 0 1px rgba(255,100,0,0.3), 0 0 3px;
    }
    75% {
        text-shadow: 1.8948491305757957px 0 1px rgba(255,176,0,0.5), -1.8948491305757957px 0 1px rgba(255,100,0,0.3), 0 0 3px;
    }
    80% {
        text-shadow: 0.0833037308038857px 0 1px rgba(255,176,0,0.5), -0.0833037308038857px 0 1px rgba(255,100,0,0.3), 0 0 3px;
    }
    85% {
        text-shadow: 0.09769827255241735px 0 1px rgba(255,176,0,0.5), -0.09769827255241735px 0 1px rgba(255,100,0,0.3), 0 0 3px;
    }
    90% {
        text-shadow: 3.443339761481782px 0 1px rgba(255,176,0,0.5), -3.443339761481782px 0 1px rgba(255,100,0,0.3), 0 0 3px;
    }
    95% {
        text-shadow: 2.1841838852799786px 0 1px rgba(255,176,0,0.5), -2.1841838852799786px 0 1px rgba(255,100,0,0.3), 0 0 3px;
    }
    100% {
        text-shadow: 2.6208764473832513px 0 1px rgba(255,176,0,0.5), -2.6208764473832513px 0 1px rgba(255,100,0,0.3), 0 0 3px;
    }
}
