/*------------------------------------------------------------------
Project:    jokean
Author:     jokean
URL:        http://www.jokean.com/
Version:    1.0.0
Created:        23/09/2025
Last change:    23/09/2025
-------------------------------------------------------------------*/
#gameContainer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /*min-height: 100vh;*/ /* full page height */
    transition: all 0.3s ease;
    position: relative;
}

#gameResults {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin: 20px auto;
    gap: 10px;
    /*min-height: 100px;*/
}

/* Fly-in for new section */
.fly-in {
    opacity: 0;
    transform: translateY(50px);
}

.fly-in.show {
    opacity: 1;
    transform: translateY(0);
}

/* For clone during animation */
.flying {
    position: absolute;
    z-index: 999;
    pointer-events: none;
}

section {
    background: #fff;
    margin: 10px;
    border-radius: 8px;
    text-align: center;
    min-width: 200px;
    max-width: 23rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.occupations-text {
    text-align: center;
    text-wrap: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;         /* Maximum 2 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;              /* Hide extra text beyond 2 lines */
    text-overflow: ellipsis;       /* Add ... for overflow */
    white-space: normal;           /* Allow wrapping */
    word-break: break-word;        /* Break long words if needed */
    line-height: 1em;            /* Adjust spacing */
    min-height: calc(1em * 2);   /* Minimum space for 2 lines */
    max-height: calc(1em * 2);   /* Prevent more than 2 lines */
    max-width: 250px;
    margin: 0 auto;
    font-size: smaller;
}

.icon-tick, .icon-cross {
    margin-right: 6px;
    vertical-align: middle;
}

/* Taller-Shorter*/
.hlbtn-container {
    text-align: center;
}
.hlbtn {
    display: inline-block;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 5px 20px;
    margin: 5px;
    font-size: 18px;
    font-weight: bold;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    color: white;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hlbtn-taller {
    background: #10B981; /* Green */
}
.hlbtn-shorter {
    background: #EF4444; /* Red */
}
.hlbtn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.hlbtn svg {
    width: 20px;
    height: 20px;
    fill: white;
    transition: transform 0.3s ease;
}
.hlbtn-taller:hover svg {
    transform: translateY(-3px);
}
.hlbtn-shorter:hover svg {
    transform: translateY(3px);
}
#message {
    margin-top: 20px;
    font-weight: bold;
    font-size: 20px;
    color: #111827;
    min-height: 24px;
    transition: color 0.3s;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.person_info {
    width: 100%;
    max-width: 300px;      /* scales responsively */
    margin: 20px auto;
    text-align: center;
}

/* Tick emoji container */
.emoji-text {
    display: inline-flex;      /* side by side */
    align-items: center;       /* vertically centered */
    justify-content: center;   /* horizontally centered */
    gap: 0.5em;                /* spacing between tick & text */
    font-size: clamp(1rem, 4vw, 1.2rem); /* responsive size */
}

/* Text below */
.emoji-text span {
    margin: 0;
    padding: 10px 0;
    font-weight: bold;
    font-size: 1rem;
}

.testimonial-card .game-up {
    width: 340px;
    height: 120px;
!important overflow: hidden;
    border-top-left-radius: .25rem;
    border-top-right-radius: .25rem;
}

.img-game {
    min-width: 110px;
    min-height: 110px;
    max-height:90%;
    padding-top:6px;
    border-radius: 15px;
}

.game-gradient {
    background: linear-gradient(to bottom, #6c7c30, #788f2d, #82a329, #8cb823, #95cd19); !important;
}

.lose-gradient {
    background-image: linear-gradient(to top, #e73a9c, #e44aa6, #e058b0, #dd64b8, #d96fc0, #cc6bb8, #bf68af, #b364a7, #9b528f, #844177, #6d3061, #57204b);
}

.win-gradient {
    background-image: linear-gradient(to top, #3ae7ba, #4de4b1, #5be0a9, #67dda1, #71d999, #70cd8f, #6ec285, #6bb67b, #5da06c, #508b5d, #43764e, #376240);
}