body {
    background-color: #f9f9f9;
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-family: Arial, sans-serif;
}

.container {
/*    max-width: 480px;*/
    margin: 0 auto;
    padding-top: 80px; /* Adjusted to account for fixed navbar height */
    padding-bottom: 60px;
}

nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #ff8a80;
    padding: 10px;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

nav .btn-back {
    color: white;
    font-size: 20px;
    padding: 5px 10px;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.3s ease;
}

nav .btn-back:hover {
    color: #ffd5d0; /* Warna hover */
}

nav img.logo {
    height: 40px;
    margin-right: 10px;
}

h6 {
    margin-bottom: 15px;
    font-size: 20px;
    color: #333;
    font-weight: bold;
}

/*HOME*/
.info-section {
    margin-top: 20px;
    background-color: #f9f9f9;
    text-align: center;
}

.info-section h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #ff6f61;
}

.info-box {
    padding: 20px;
    background-color: #ff8a80;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    height: 100%;
}

.info-box h4 {
    font-size: 18px;
    color: #ffffff;
    margin-bottom: 10px;
}

.info-box p, .score-conversion {
    font-size: 16px;
    color: #ffffff;
    text-align: left;
}

.highlight {
    color: #ffff99;
    font-weight: bold;
}

.score-conversion {
    list-style-type: none;
    padding-left: 0;
}

.score-conversion li {
    margin-bottom: 5px;
    color: #f0f0f0;
    font-size: 14px;
}

/*TEMPLATE*/
.bottom-menu {
    position: fixed;
    bottom: 0;
    width: 100%;
    max-width: 480px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #ffffff;
    border-top: 1px solid #ddd;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    z-index: 1;
}

.bottom-menu a {
    color: #ff6f61;
    text-decoration: none;
    text-align: center;
    font-size: 14px;
    transition: color 0.3s ease;
}

.bottom-menu a:hover {
    color: #ff8a80; /* Warna hover */
}

.bottom-menu a i {
    font-size: 20px;
    display: block;
}

.game-item {
    margin-bottom: 20px;
}

.game-item img {
    width: 100%;
    border-radius: 15px;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.game-item img:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.game-item h5 {
    margin-top: 10px;
    font-size: 18px;
    color: #333;
}

.game-item a {
    text-decoration: none;
    color: inherit;
}

.user-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 10px;
    background-color: #ff8a80;
    color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-bottom: 3px solid #ff6f61;
}

.user-info h1 {
    font-size: 24px;
    margin: 0;
    font-weight: bold;
}

.point-ribbon {
    background-color: #ff6f61;
    color: white;
    padding: 5px 15px;
    border-radius: 30px;
    font-size: 16px;
    display: flex;
    align-items: center;
}

.point-ribbon i {
    margin-right: 8px;
    font-size: 20px;
}

.form-container {
    margin-top: 30px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.form-container input[type="text"] {
    border-radius: 20px;
    padding: 10px 15px;
    font-size: 16px;
    border: 1px solid #ddd;
    transition: border-color 0.3s ease;
}

.form-container input[type="text"]:focus {
    border-color: #ff6f61;
    outline: none;
}

.form-container button {
    border-radius: 20px;
    background-color: #ff6f61;
    color: white;
    padding: 10px 20px;
    font-size: 16px;
    margin-top: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.form-container button:hover {
    background-color: #ff8a80;
}

.alert-warning {
    background-color: #ffeb3b;
    color: #333;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.alert-warning i {
    margin-right: 10px;
    font-size: 24px;
}

.row.text-center {
    margin-top: 20px;
}

.chat-room-list {
    margin-top: 30px;
}

.chat-room-item {
    padding: 15px;
    background-color: #ff6f61;
    border-radius: 10px;
    color: white;
    text-align: center;
    margin-bottom: 20px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.chat-room-item:hover {
    background-color: #ff8a80;
    transform: translateY(-5px);
    text-decoration: none;
}

.chat-room-item h5 {
    margin: 0;
    font-size: 20px;
    font-weight: bold;
}

.chat-room-item p {
    margin: 5px 0 0 0;
    font-size: 14px;
    color: #f9f9f9;
}

.create-room-link {
    display: inline-block;
    margin-bottom: 15px;
    font-size: 16px;
    text-decoration: none;
    color: #ff6f61;
    font-weight: bold;
}

.create-room-link:hover {
    color: #ff8a80;
}

.chat-room-link {
    text-decoration: none; 
    color: inherit;
    display: block;
}

.chat-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    margin-bottom: 30px;
    max-height: 74vh;
}

.chat-header {
    text-align: center;
    margin-bottom: 20px;
}

.chat-header h2 {
    margin: 0;
    font-size: 24px;
    color: #333;
    font-weight: bold;
}

.chat-bubble {
    padding: 10px 15px;
    border-radius: 20px;
    margin-bottom: 10px;
    max-width: 70%;
    position: relative;
}

.chat-bubble p {
    margin: 0;
    font-size: 16px;
}

.chat-bubble .chat-name {
    font-style: italic;
    font-size: 10px;
    margin-top: 5px;
    text-align: right;
}

.chat-bubble.left {
    background-color: #e0e0e0;
    color: #333;
    align-self: flex-start;
}

.chat-bubble.right {
    background-color: #ff6f61;
    color: white;
    align-self: flex-end;
}

.chat-bubble.right .chat-name {
    text-align: right;
}

.chat-input {
    display: flex;
    margin-top: 20px;
    margin-bottom: 20px;
}

.chat-input input[type="text"] {
    flex: 1;
    padding: 10px;
    border-radius: 20px;
    border: 1px solid #ddd;
    margin-right: 10px;
    font-size: 16px;
}

.chat-input button {
    padding: 10px 20px;
    background-color: #ff6f61;
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 16px;
    cursor: pointer;
}

.chat-input button:hover {
    background-color: #ff8a80;
}

/*HISTORY COIN*/

.history-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #ff6f61;
    color: white;
    border-radius: 10px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
}

.history-button:hover {
    background-color: #ff8a80;
}

.coin-history-item {
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 10px;
}

.coin-history-item:last-child {
    border-bottom: none;
}

.card {
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.card-body {
    padding: 20px;
}

.badge {
    padding: 10px;
    font-size: 14px;
    border-radius: 20px;
}

/*GIFT*/.ticket-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: space-around;
}

.ticket-link {
    text-decoration: none;
}

.ticket {
    background: linear-gradient(135deg, #ff8a80, #ff6f61);
    color: white;
    width: 300px;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease-in-out;
}

.ticket:hover {
    transform: scale(1.05);
}

.ticket:before, .ticket:after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
}

.ticket:before {
    left: -10px;
}

.ticket:after {
    right: -10px;
}

.ticket-content {
    z-index: 1;
    position: relative;
}

.ticket-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
}

.ticket-info {
    font-size: 14px;
    line-height: 1.2em;
}

.blink-text {
    color: #ff6f61;
    animation: blink-animation 1s steps(5, start) infinite;
}

@keyframes blink-animation {
    to {
        visibility: hidden;
    }
}