.adventure_container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 10px; /* Add padding for very small screens */
    box-sizing: border-box;
}

.adventure_header {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    margin-bottom: 20px;
}

.adventure_header_content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.adventure_header h1 {
    color: #1e3a8a;
    font-size: 2em;
}

.adventure_button_group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap; /* Allow buttons to wrap on small screens */
}

.adventure_button {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.adventure_button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.adventure_btn_reset {
    background: #ef4444;
    color: white;
}

.adventure_btn_reset:hover {
    background: #dc2626;
}

.adventure_btn_export {
    background: #10b981;
    color: white;
}

.adventure_btn_export:hover {
    background: #059669;
}

.adventure_map_container {
    position: relative;
    width: 100%;
    max-width: 100%; /* Ensure it doesn't overflow */
    padding-bottom: 58.33%;
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    border-radius: 10px;
    overflow: hidden;
    border: 4px solid #3b82f6;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    /* background-image: url('../img/adventure/backgrounds/WinterAdventure2025.png'); */
    background-size: cover;
    background-position: center;
    box-sizing: border-box;
}

.adventure_map_content {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.adventure_map_content svg {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.adventure_milestone {
    position: absolute;
    transform: translate(-50%, -50%);
    transition: all 0.3s;
    z-index: 10;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
    .adventure_header h1 {
        font-size: 1.5em;
    }
    
    .adventure_button {
        padding: 10px 18px;
        font-size: 13px;
    }
    
    .adventure_header {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .adventure_header h1 {
        font-size: 1.2em;
    }
    
    .adventure_button {
        padding: 8px 16px;
        font-size: 12px;
    }
}

.adventure_milestone.adventure_clickable {
    cursor: pointer;
}

.adventure_milestone.adventure_clickable:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

.adventure_milestone.adventure_pulse {
    animation: adventure_pulse 2s infinite;
}

@keyframes adventure_pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
    }
}

.adventure_milestone_circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    border: 3px solid;
    position: relative;
}

.adventure_milestone_circle.adventure_unlocked {
    background: #fbbf24;
    border-color: #d97706;
}

.adventure_milestone_circle.adventure_available {
    background: #60a5fa;
    border-color: #2563eb;
}

.adventure_milestone_circle.adventure_locked {
    background: #9ca3af;
    border-color: #4b5563;
}

.adventure_milestone_circle.adventure_claimed {
    background: #10b981;
    border-color: #059669;
}

.adventure_milestone_circle.adventure_locked_premium {
    background: #ca9519;
    border-color: #ae7d08;
}

.adventure_milestone_icon {
    font-size: 24px;
}

.adventure_milestone_reward_img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* border-radius: 50%; */
}

.adventure_skin_reward {
    border-radius: 50%;
}

.adventure_premium_gate {
    position: absolute;
    transform: translate(-50%, -50%);
    transition: all 0.3s;
    z-index: 10;
}

.adventure_premium_gate.adventure_clickable {
    cursor: pointer;
}

.adventure_premium_gate.adventure_clickable:hover {
    transform: translate(-50%, -50%) scale(1.05);
}

.adventure_premium_gate.adventure_pulse {
    animation: adventure_pulse 2s infinite;
}

.adventure_premium_gate_image {
    width: 140px;
    height: 140px;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.3));
}

.adventure_premium_gate.adventure_locked .adventure_premium_gate_image {
    filter: grayscale(100%) drop-shadow(0 4px 10px rgba(0,0,0,0.3));
    opacity: 0.7;
}

.adventure_milestone_label {
    position: absolute;
    top: 70px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.adventure_milestone_cost {
    position: absolute;
    top: 56px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(139, 69, 19, 0.9);
    color: #ffd700;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 3px;
}

.adventure_milestone_cost img {
    width: 15px;
    height: 16px;
    object-fit: contain;
}

.adventure_premium_gate_label {
    position: absolute;
    top: 85px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(139, 69, 19, 0.9);
    color: #ffd700;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.adventure_milestone:hover .adventure_milestone_label,
.adventure_milestone.adventure_selected .adventure_milestone_label,
.adventure_premium_gate:hover .adventure_premium_gate_label,
.adventure_premium_gate.adventure_selected .adventure_premium_gate_label {
    opacity: 1;
}

/* Modal Styles */
.adventure_modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.adventure_modal_css {
  opacity: 0;
  position: absolute;
  left: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 201;
  display: flex;
  justify-content: center;
  align-items: center;
}

.adventure_modal.adventure_show {
    display: flex;
}

.adventure_modal_content {
    background: #2A2C41;
    border-radius: 20px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    text-align: center;
    animation: adventure_modal_appear 0.3s ease-out;
    max-height: 90vh;
    overflow-y: auto;
    border: 3px solid #494b65;
}

@keyframes adventure_modal_appear {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.adventure_modal_icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
}

.adventure_modal_icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.adventure_modal h2 {
    color: #93afff;
    margin-bottom: 10px;
    font-size: 24px;
}

.adventure_modal_description {
    color: #bcd2ff;
    margin-bottom: 20px;
    font-size: 16px;
}

.adventure_modal_buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.adventure_modal_button {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.adventure_modal_button.adventure_confirm {
    background: #10b981;
    color: white;
}

.adventure_modal_button.adventure_confirm:hover {
    background: #059669;
    transform: translateY(-2px);
}

.adventure_modal_button.adventure_cancel {
    background: #6b7280;
    color: white;
}

.adventure_modal_button.adventure_cancel:hover {
    background: #4b5563;
}

.adventure_modal_button.adventure_close {
    background: #3b82f6;
    color: white;
}

.adventure_modal_button.adventure_close:hover {
    background: #2563eb;
}

/* Reward display in success modal */
.adventure_reward_display {
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    border: 3px solid #10b981;
}

.adventure_reward_items {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 15px;
}

.adventure_reward_item {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-radius: 10px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.adventure_reward_item_icon {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
}

.adventure_reward_item_icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.adventure_reward_item_text {
    flex: 1;
    text-align: left;
}

.adventure_reward_item_name {
    font-weight: bold;
    color: #1e3a8a;
    font-size: 16px;
    margin-bottom: 4px;
}

.adventure_reward_item_desc {
    color: #6b7280;
    font-size: 14px;
}

.adventure_info_panel {
    background: #eff6ff;
    padding: 0px 20px 0px 20px;
    border-radius: 8px;
    margin-top: 5px;
    display: none;
    position: absolute;
    top: 0;
    border: 2px solid #b7b7ff;
}

.adventure_info_panel.adventure_show {
    display: block;
}

.adventure_info_panel h3 {
    color: #1e3a8a;
    margin-top: 10px;
    text-align: center;
}

.adventure_info_panel p {
    color: #374151;
    margin: 5px 0;
}

.adventure_status {
    font-weight: bold;
}

.adventure_status.adventure_unlocked {
    color: #059669;
}

.adventure_status.adventure_available {
    color: #2563eb;
}

.adventure_status.adventure_locked {
    color: #6b7280;
}

.adventure_status.adventure_premium {
    color: #d97706;
}

.adventure_status.adventure_claimed {
    color: #10b981;
}

.adventure_config_display {
    background: #1f2937;
    color: #10b981;
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    max-height: 300px;
    overflow: auto;
}

.adventure_config_display pre {
    margin: 0;
}

.adventure_lock_badge {
    position: absolute;
    top: 0px;
    right: 0px;
}

.adventure_grayed_out {
    filter: grayscale(100%);
}

.adventure_modal_error {
    background: #fee2e2;
    border: 2px solid #ef4444;
}

.adventure_modal_error h2 {
    color: #dc2626;
}

.adventure_modal_success {
    background: linear-gradient(135deg, #2A2C41, #3A3C4D);
    border: 3px solid #262947;
}

.adventureTokenHolder {
    position: absolute;
    width: auto;
    font-size: 18px;
    /* background-color: white; */
    right: 0;
    /* border-radius: 6px; */
    /* border: 2px solid rgb(64, 0, 255); */
    margin: 10px;
    margin-right: 30px;
    border: black;
}

.adventure_login_overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(30, 58, 138, 0.95);
    padding: 40px 60px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    text-align: center;
    z-index: 100;
    border: 4px solid #3b82f6;
    animation: adventure_modal_appear 0.5s ease-out;
}

.adventure_login_overlay h2 {
    color: white;
    font-size: 32px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.adventure_login_overlay p {
    color: #bfdbfe;
    font-size: 18px;
    margin-bottom: 10px;
}

.adventure_login_icon {
    font-size: 64px;
    margin-bottom: 20px;
    animation: adventure_pulse 2s infinite;
    margin-left: 210px;
}

.adventure_close_button {
    position: absolute;
    top: 0;
    right: -10px;
    z-index: 600;
    background-color: #c30000;
    margin-top: -10px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-align: center;
    font-size: 20px;
    font-family: ubuntu;
    padding-top: 5px;
    color: white;
    border: 2px solid #810000;
    cursor: pointer;
}

.adventure_tokens_container {
    margin-left: 5px;
    width: 100px;
    text-align: left;
    border: 2px solid #3B82F6;
    border-radius: 5px;
    padding-left: 22px;
    background-color: #5b688d;
    font-family: 'Ubuntu';
    height: 30px;
    font-size: 18px;
}

.adventure_coin_img {
    height: 20px;
    width: 20px;
    position: absolute;
    margin-left: -70px;
}

.adventure_tokens_count {
    font-family: 'Ubuntu';
    font-weight: bolder;
}