/* Koilani Personalities Custom Styles (Hangman Theme) */
body {
    background-color: antiquewhite; /* Match Hangman */
    color: #333; /* Darkened for readability on light background */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
}

.kp-container {
    max-width: 600px;
    margin: 70px auto;
    text-align: center;
    background-color: rgb(205, 230, 213); /* Light green container */
    border: 1px solid rgba(133, 105, 67, 0.3); /* Subtle earthy border */
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1); /* Softened shadow */
}

.kp-input {
    width: 80%;
    padding: 12px;
    margin: 15px 0;
    border-radius: 25px;
    border: 1px solid #aaa;
    background: #fff;
    color: #333;
    text-align: center;
    font-size: 1.1em;
}

.kp-btn {
    background-color: rgb(255, 219, 0);
    color: #000;
    border: 4px solid transparent; /* Invisible border prevents layout jumps */
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s ease; /* Smooth animation for the scale and border */
    width: 60%; /* Shortened by ~1/5 from the original 80% */
    margin: 0 auto 10px auto;
    display: inline-block;
    font-weight: bold;
}

    .kp-btn:hover {
        background-color: rgb(255, 219, 0); /* Keeps the bright yellow */
        border: 2px solid rgb(133, 105, 67); /* Adds the darkcyan border */
        transform: scale(1.05); /* Makes it slightly larger / animated */
    }


.kp-btn-answer {
    background-color: rgb(255, 219, 0); /* Lightened for new theme */
    color: #333;
    border: 2px solid rgb(133, 105, 67);
    padding: 15px 20px;
    border-radius: 25px;
    font-size: 1.1em;
    font-weight: normal;
    cursor: pointer;
    transition: 0.2s;
    width: 100%;
    margin: 8px 0;
    display: block;
    user-select: none;
    -webkit-user-select: none;
    outline: none;
}

    .kp-btn-answer:hover {
        background-color: rgb(255, 219, 0);
        border: 4px solid darkcyan;
        font-weight: bold;
    }

.kp-img-1x1 {
    width: 100%;
    max-width: 300px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 15px;
    margin: 0 auto 20px auto;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
    transition: transform 0.3s ease;
}
    .kp-img-1x1:hover {
        transform: scale(1.05);
    }


.kp-question-text {
    font-size: 1.4em;
    margin-bottom: 25px;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Facebook Button updated to match the geometry of the new kp-btn */
.kp-btn-facebook {
    background-color: #1877F2;
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    border: 4px solid transparent; /* Match the border height of kp-btn */
    text-decoration: none;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    width: 60%;
}

    .kp-btn-facebook:hover {
        background-color: #1877F2;
        border: 2px solid #fff;
        transform: scale(1.05);
        color: white;
        text-decoration: none;
    }
/* The Hangman Logo Trick */
.logo-hanger {
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    width: 120px;
    margin: 0 auto;
    top: 100%;
    transform: translateY(-50%);
    z-index: 10001;
    /* CHANGED: Removed pointer-events: none; so we can actually click it! */
    /* ADDED: A beautiful, soft shadow that traces the PNG transparency */
    filter: drop-shadow(0px 4px 6px rgba(0,0,0,0.3));
}
/* --- Λεύκωμα (Hall of Fame) Table Styles --- */
.kp-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

    /* 1. Header Row */
    .kp-table th {
        background-color: rgb(56, 176, 166);
        color: white;
        padding: 15px;
        font-weight: bold;
    }

    /* 2. Rest of rows text color */
    .kp-table td {
        padding: 15px;
        color: black;
        font-weight: normal;
        transition: all 0.2s ease; /* Smooth transition for the hover effect */
    }

    /* 3. Odd Rows */
    .kp-table tbody tr:nth-child(odd) {
        background-color: lightblue;
    }

    /* 4. Even Rows */
    .kp-table tbody tr:nth-child(even) {
        background-color: white;
    }

    /* 5. Row Hover Effects */
    .kp-table tbody tr:hover {
        background-color: rgb(0, 123, 164);
    }

        .kp-table tbody tr:hover td {
            color: white; /* Turns all normal text white on hover */
        }

            /* The magic trick: Target only the personality cell on row hover */
            .kp-table tbody tr:hover td.table-personality-title {
                color: yellow;
            }
/* --- Responsive Header Styles --- */
.kp-header-title {
    margin: 0;
    font-size: 1.1em; /* Desktop size */
    letter-spacing: 1px;
    z-index: 1;
}

.kp-header-link {
    color: #444;
    font-size: 1.1em; /* Desktop size */
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s;
}

/* 📱 Mobile Adjustments (Screens smaller than 600px) */
@media (max-width: 600px) {
    .kp-header-title {
        font-size: 3vw; /* Much smaller and cleaner for mobile */
        line-height: 1.2; /* Keeps the two lines nicely stacked */
    }

    /* This forces the second word onto a new line ONLY on mobile */
    .title-wrap {
        display: block;
    }

    .kp-header-link {
        font-size: 4vw;
    }

    .logo-hanger {
        width: 90px;
    }

    .hide-on-mobile {
        display: none !important; /* Forces the column to vanish */
    }

    .kp-table {
        table-layout: fixed; /* Forces the table to respect boundaries */
    }

        .kp-table th, .kp-table td {
            padding: 10px; /* Slightly smaller padding for mobile */
            word-wrap: break-word; /* Forces long names/titles to wrap to a new line */
            overflow-wrap: break-word;
            white-space: normal;
        }
}
}