/* General Styles */
body {
    font-family: helvetica, arial;
    background: black;
    color: white;
    background-image: url("bg.gif");
    background-position: center center;
    background-repeat: repeat;
    color: white;
}

.text-box {
    background: black;
    color: white;
}

red { color: red; }
green { color: green; }
salmon { color: salmon; }

h1,h2,h3,h4,h5,h6 {
    color: white;
}

.no-underline a { text-decoration: none; }
.no-underline red a { color: red; }
.no-underline green a { color: green; }
.no-underline salmon a { color: salmon; }
.main {
    max-width: 1000px;
    margin: auto;
    border: 1px solid grey;
    padding: 10px;
    border-radius: 10px;
    background: black;
}

img {
    max-width: 99%;
}

.titlecard {
    margin: 0;
    border-radius: 10px;
}

.image-container {
    position: relative;
    width: 800px;
    height: 200px;
    margin: 0 auto;
}

.overlay-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 10px;
    color: white;
    text-align: center;
    font-family: Impact, sans-serif;
    font-size: 32px;
    text-shadow: -2px -2px 0 #000,
                  2px -2px 0 #000,
                 -2px  2px 0 #000,
                  2px  2px 0 #000;
    display: none;
}

.image-container:hover .overlay-text {
    display: block;
}

/* CRT Text Styles */
.crt-text {
    color: #c38cc0;
    text-shadow:
        0 0 2px #c38cc0,
        0 0 5px #c38cc0,
        -1px 0 1px rgba(255, 0, 0, 0.7),
        1px 0 1px rgba(0, 0, 255, 0.7);
}

.crt-text-white {
    color: #e2c6e0;
    text-shadow:
        0 0 2px #e2c6e0,
        0 0 5px #e2c6e0,
        -1px 0 1px rgba(255, 0, 0, 0.7),
        1px 0 1px rgba(0, 0, 255, 0.7);
}

.crt-text-white a {
    color: white;
    text-decoration: none;
}

.crt-text a {
    text-decoration: none;
}

/* Flicker Animation */
@keyframes flicker {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.9; }
}

/* Gallery Styles */
.gallery {
    display: flex;
    flex-wrap: wrap;
}

.gallery-item {
    margin: 10px;
    text-align: center;
}

.gallery-item img {
    max-width: auto;
    height: auto;
    border: 1px solid grey;
}

.gallery-item-preview {
    border: 1px solid grey;
    border-radius: 10px;
    padding: 6px;
    margin: 6px;
    text-align: center;
}

.gallery-item-preview img {
    max-width: 200px;
    height: auto;
}

.gallery-item-preview a {
    text-decoration: none;
    color: white;
}

/* User Status Styles */
.user-status {
    margin: 20px 0;
}

.user-status ul {
    list-style-type: none;
    padding: 0;
}

.user-status li {
    margin: 5px 0;
}

.online {
    color: green;
}

.offline {
    color: red;
}

/* Responsive Styles */
@media only screen and (max-width: 768px) {
    .phone-width {
        text-align: center;
    }
}

/* Blockquote Styles */
blockquote {
    background-color: rgb(61, 40, 0);
    border: 1px solid grey;
    border-radius: 8px;
    padding: 10px;
    width: fit-content;
}

/* Game Container Styles */
.game-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    background: white;
    color: black;
    border: 2px solid #ddd;
    border-radius: 10px;
}

.game-container * {
    color: black;
}

/* Game Status Styles */
.game-status {
    margin: 20px 0;
    padding: 15px;
    background: #e9f5e9;
    border-radius: 8px;
    border: 1px solid #4CAF50;
    color: black;
}

.round-info {
    font-size: 1.2em;
    margin: 10px 0;
    padding: 10px;
    background: #f0f0f0;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    border: 1px solid #ddd;
}

/* Player Styles */
.players {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.player {
    border: 2px solid #ddd;
    padding: 15px;
    border-radius: 8px;
    min-width: 200px;
    background: #f5f5f5;
    position: relative;
}

.player-name {
    margin-right: 20px;
    word-break: break-word;
}

.remove-player {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #ff4444;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    cursor: pointer;
    padding: 0;
    font-size: 14px;
}

.remove-player:hover {
    background: #ff0000;
}

/* Card Styles */
.card {
    width: 100px;
    height: 140px;
    border: 2px solid #333;
    border-radius: 10px;
    margin: 10px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    background: white;
    position: relative;
    box-shadow: 3px 3px 7px rgba(0,0,0,0.2);
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.card.flipped {
    transform: rotateY(180deg);
}

.card-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    border: 2px solid #333;
}

.float-right {
    float:right;
}

.card-back {
    background: white;
    transform: rotateY(0deg);
    background-image: url('assets/card-back.png');
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 2;
}

.card-front {
    background: white;
    transform: rotateY(180deg);
    z-index: 1;
}

.card.hearts .card-symbol,
.card.diamonds .card-symbol {
    color: red;
}

.card.clubs .card-symbol,
.card.spades .card-symbol {
    color: black;
}

.card-symbol {
    font-size: 40px;
}

/* Animation for Dealing Cards */
@keyframes dealCard {
    0% {
        transform: translateX(-1000px);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

.card-dealing {
    animation: dealCard 0.5s ease-out;
}

/* Controls Styles */
.controls {
    margin: 20px 0;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.setup-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

input[type="text"],
input[type="number"] {
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
}

button {
    padding: 10px 20px;
    margin: 5px;
    font-size: 16px;
    cursor: pointer;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
}

button:disabled {
    background: #cccccc;
    cursor: not-allowed;
}

/* Rules Section Styles */
.rules {
    margin-top: 20px;
    padding: 15px;
    background: #f8f8f8;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.rules h3 {
    margin-top: 0;
}

/* Responsive Styles */
@media only screen and (max-width: 768px) {
    .setup-controls {
        flex-direction: column;
    }

    .round-info {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}

/* Rainbow Text Effect */
.rainbow-text {
    background: linear-gradient(to right, red, orange, yellow, green, blue, indigo, violet);
    background-size: 400%;
    animation: rainbowAnimation 5s linear infinite;
    -webkit-background-clip: text;
    color: transparent;
    font-weight: bold;
}

@keyframes rainbowAnimation {
    0% { background-position: 0%; }
    100% { background-position: 100%; }
}

/* Clear Table Animation */
.card.clearing {
    animation: clearAnimation 1s forwards;
}

@keyframes clearAnimation {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(100px);
    }
}

.soul-food {
    height: 70px;
    width: 100%;
}
