/* Additional styles specific to puzzle page */
.puzzle-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 30px;
    background-color: rgba(15, 15, 15, 0.8);
    border-radius: 10px;
    overflow: hidden;
}

/* Equal width columns for range values */
.range-column {
    width: 10%; /* Equal width for range columns */
    min-width: 240px; /* Ensures space for 64 characters */
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: monospace;
}

.range-column:hover {
    overflow: visible;
    white-space: normal;
}

.range-column:hover .range-text {
    overflow: visible;
    white-space: normal;
    z-index: 1;
    position: relative;
    background-color: rgba(0, 0, 0, 0.8);
    box-shadow: 0 0 5px rgba(0, 255, 170, 0.3);
    border-radius: 3px;
    transition: all 0.3s ease;
    display: inline-block;
}

.hexkey-column {
    width: 10%; /* Equal width for range columns */
    min-width: 240px; /* Ensures space for 64 characters */
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: monospace;
}

/* Customizable font size class for range columns */
.range-text {
    font-size: 14px; /* Default font size, can be overridden */
    word-break: break-all;
}

.puzzle-table th, .puzzle-table td {
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.puzzle-table th {
    background-color: rgba(0, 0, 0, 0.5);
    color: var(--accent-color);
    font-family: 'Orbitron', sans-serif;
    font-weight: 500;
    text-transform: uppercase;
}

.puzzle-table tr:hover {
    background-color: rgba(0, 0, 0, 0.3);
}

.puzzle-status {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 15px;
    font-weight: bold;
    text-transform: uppercase;
}
.status-solved {
    background-color: var(--accent-color);
    color: #000;
}
.puzzles-container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
  }
.status-unsolved {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.reward-amount {
    color: var(--accent-color);
    font-weight: bold;
    font-size: 18px !important; /* 보상 금액에 대해서만 특별한 폰트 크기 적용 */
}

.wallet-address {
    font-family: monospace;
    font-size: 12px;
    word-break: break-all;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hexkey-address {
    font-family: monospace;
    font-size: 14px;
    word-break: break-all;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hexkey-address:hover {
    overflow: visible;
    white-space: normal;
    z-index: 1;
    position: relative;
    box-shadow: 0 0 5px rgba(0, 255, 170, 0.3);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.wallet-address:hover {
    overflow: visible;
    white-space: normal;
    z-index: 1;
    position: relative;
    box-shadow: 0 0 5px rgba(0, 255, 170, 0.3);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.puzzle-filters {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
}

.filter-group label {
    margin-right: 10px;
    font-family: 'Orbitron', sans-serif;
    font-size: 14px;
}

.filter-group select, .filter-group input {
    background-color: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 8px 12px;
    border-radius: 5px;
    font-family: 'Roboto', sans-serif;
}

/* Mobile-specific styles for puzzles */
.puzzle-mobile-view {
    display: block; /* Always shown instead of desktop table */
}

.puzzle-card {
    background-color: rgba(15, 15, 15, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    margin-bottom: 15px;
    padding: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.puzzle-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.puzzle-card-id {
    font-family: 'Orbitron', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--accent-color);
}

.puzzle-card-status {
    margin: 0;
}

.puzzle-card-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.puzzle-card-item {
    display: flex;
    flex-direction: column;
}

.puzzle-card-label {
    font-size: 14px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 4px;
}

.puzzle-card-value {
    font-size: 17px;
    word-break: break-all;
    font-family: monospace;
}

.puzzle-card-address {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.puzzle-card-address-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.puzzle-card-address-label {
    font-size: 14px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
}

.wallet-link {
    display: flex;
    align-items: center;
    color: var(--accent-color);
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.wallet-link:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.wallet-link-text {
    margin-right: 5px;
    font-size: 14px;
}

.wallet-link .fas {
    font-size: 12px;
}

.puzzle-card-hexkey-value {
    font-family: monospace;
    font-size: 17px;
    padding: 0px;
    border-radius: 5px;
    word-break: break-all;
}
.puzzle-card-privatekey-value {
    font-family: monospace;
    font-size: 17px;
    padding: 0px;
    border-radius: 5px;
    word-break: break-all;
}

.puzzle-card-address-value {
    font-family: monospace;
    font-size: 17px;
    padding: 0px;
    border-radius: 5px;
    word-break: break-all;
}

/* Always hide the desktop table view */
.puzzle-table {
    display: none; /* Hide the table on all screen sizes */
}

/* Media query for smaller screens to adjust styling (not visibility) */
@media screen and (max-width: 1366px) {
    
    .puzzle-filters {
        flex-direction: column;
        gap: 10px;
    }
    
    .filter-group {
        width: 100%;
        margin-bottom: 8px;
    }
    
    .filter-group label {
        width: 70px;
        font-size: 13px;
    }
    
    .filter-group select, 
    .filter-group input {
        flex: 1;
    }
    
    .section-header h2 {
        font-size: 24px;
    }
    
    .puzzle-card-body {
        grid-template-columns: 1fr;
    }
    
}
