@source '../../vendor/laravel/framework/src/Illuminate/Pagination/resources/views/*.blade.php';
@source '../../storage/framework/views/*.php';
@source '../**/*.blade.php';
@source '../**/*.js';

@theme {
    --font-sans: 'Instrument Sans', ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji',
        'Segoe UI Symbol', 'Noto Color Emoji';
}


html {
    overflow-x: hidden;
}
body {
    background-position: cover;
    background-size: 150%;
    background-repeat: no-repeat;
    background-color: rgba(248, 247, 216, 0.7);
    background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('/storage/images/library.jpeg');
    background-color: #000;
    background-attachment: fixed;
} 
/* body {background: none;} */
h1, h2, h3, h4 {
    font-family: 'Broken Console', sans-serif;
}
p, li {
    font-family: 'Courier Prime', monospace;
        font-size: 18px;
}
a {
    color: #bb1919;
}
* {
  scroll-behavior: smooth;
}
a.books img {
    width: 76px;
    top: 27px;
    left: 27px;
    position: absolute;
}
ul.quick-links {
    width: 500px;
    margin-left: -40px;
}
ul.quick-links li {
    width: 50%;
    display: inline-block;
}
.tabs img {
    width: 100px;
    margin-bottom: 30px;
}
.tabs {
    width: 100px;
    position: absolute;
    right: 0;
    top: 180px;
    z-index: 9999999999999;
}
.tabs img:hover {
    opacity: .95;
    transform: scale(1.1);
    margin-left: -5px;
    transition: all .2s ease-in-out;
}
.logo img:hover, .books img:hover {
    transform: scale(1.1);
    transition: all .2s ease-in-out;
}
 .page-farmers, .page-land, .page-sheep, .page-wolves, .home-book  {
    background: #ece4db;
    margin-top: 100px;
    background: #ece4dc;
    background-position: top 0px right 84px;
    padding-top: 50px;
    background: #ece4dc;
    border-top: 18px solid #580200;
    border-right: 24px solid #7c0101;
    border-left: 24px solid #7c0101;
    padding: 60px;
    box-shadow: 
    inset 5px 0 0 0 #dbcab9, 
    inset 10px 0 0 0 #ece4dc, 
    inset 15px 0 0 0 #dbcab9, 
    inset 20px 0 0 0 #ece4dc,
    inset -5px 0 0 0 #dbcab9, 
    inset -10px 0 0 0 #ece4dc, 
    inset -15px 0 0 0 #dbcab9, 
    inset -20px 0 0 0 #ece4dc,
    inset 25px 0 0 0 #dbcab9, 
    inset 30px 0 0 0 #ece4dc, 
    inset 35px 0 0 0 #dbcab9, 
    inset 40px 0 0 0 #ece4dc,
    inset -25px 0 0 0 #dbcab9, 
    inset -30px 0 0 0 #ece4dc, 
    inset -35px 0 0 0 #dbcab9, 
    inset -40px 0 0 0 #ece4dc;
} 
.home-book {
    margin-top: 193px !important;
}
.frame {
    box-shadow: 0 0 0 7px #bf5841, 0 0 4px 13px #fbc946, 0 0 0 16px #bf5629, 0 0 0 20px #fde68b;
}
.gallery-wrapper {
    background: #dbcaba;
  }

.book {
        width: 100%;
    max-width: 850px;
    margin: 0 auto;
    display: block;
    margin-top: 100px;
}

.top-header {
    display: block;
    color: #fff;
    background: #564133;
    text-align: center;
    margin: 0 auto;
    padding: 30;
    border-image: url('/storage/images/border.svg') 20 18 / 1 / 20px repeat;
    border-width: 40px;
    background-image: url('/storage/images/wood-mask.svg');
    background-repeat: repeat;
    background-size: 400px 268px;
    opacity: .1;
}

.volume1 img {
    width: 300px;
    margin-top: 100px;
    margin-right: 30px;
}
.volume1 img:hover {
    transform: scale(1.05);
    transition: all .2s ease-in-out;
}

.button {
    border: none;
    position: absolute;
top: 56px;
    left: 49px;
    transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
    -moz-transform: translate(-50%, -50%);
    background: transparent;
    z-index: 999;
}
.showhide{
    margin-left:0px ;
}
a.cta {
    background: #d5b5a0;
    border: 4px solid #b28f7a;
    display: inline-block;
    padding: 4px 12px;
    color: #222;
    margin-bottom: 40px;
}
a.cta:hover {
    text-decoration: none;
    opacity: .8;
    transition: all .2s ease-in-out;
}

button#open-layers-panel {
  display: none;
}

ul.canvas_menu.styled-menu {
  margin: 10px;
}

a.logo {
    width: 50px;
    right: 20px;
    display: block;
    background: url(/storage/images/barn1.png);
    background-size: cover;
    height: 60px;
    z-index: 9999;
    float: right;
    margin-top: 5px;
}
.home.container {
    padding-right: 142px;
}
.head {
    text-align: center;
    padding: 20px;
    background: url(/storage/images/wood-patter.png);
    background-size: 350px;
    border-bottom: 5px solid #3f2a1c;
}

.tips {
    display: block;
    position: fixed;
    background: #fff;
    width: 269px;
    right: 0;
    bottom: 0;
    padding: 13px;
    text-align: center;
}
.tips p {
    font-size: 12.5px;
    padding-bottom: 0px;
    margin-bottom: 0px;
}
.tips b {
    margin-top: 3px;
    display: block;
}
.lightbox {
    position: fixed;
    z-index: 9999;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: none;
  }
  
  .lightbox-content {
    background: #fff;
    margin: 5% auto;
    padding: 20px;
    width: 80%;
    max-width: 600px;
    border-radius: 8px;
    overflow-y: auto;
  }
  
  .lightbox-close {
    float: right;
    font-size: 24px;
    cursor: pointer;
  }
  
    .popup {
        transform: translateX(-50%, -20px);
        opacity: 0;
        pointer-events: none;
        height: 25px;
    }
    .popup h4 {
        margin-left: 100px; font-size: 14px; margin-top:-15px;
    }
    .popup.active{
        animation:popup 1s ease-in-out forwards;
    }
    .link1 a,.link2 a,.link3 a,.link4 a {
        cursor: pointer;
        font-size: 15px;
        font-weight: 700;
    }
    @keyframes popup{
        0%{
            opacity: 0;
            pointer-events: none;
            transform: translate (-50%, -20px);
        }
        40%{
            opacity: 1;
            pointer-events: auto;
            transform: translate (-50%, 0px);
        }
        80%{
            opacity: 1;
            pointer-events: auto;
            transform: translate (-50%, 0px);
        }
        100%{
            opacity: 0;
            pointer-events: auto;
            transform: translate (-50%, -20px);
        }
    }
   textarea {
    opacity: 0;
} 
.mobile-zoom-buttons {
  display: none;
}
span.success {
    font-family: 'Courier Prime', monospace;
    position: absolute;
    margin-left: 89px;
    margin-top: -27px;
    visibility: hidden;
    opacity: 0;
  transition: opacity 250ms ease-in, visibility 0ms ease-in 250ms;
}
span.success.active {
    display: block;
    visibility: visible;
    opacity: 1;
    transition-delay: 0ms;
}


.link span, button.quick {
    background: #dbcaba;
    font-family: 'Courier Prime', monospace;
    color: #7c0101;
    padding: 4px 4px;
    border-radius: 10px;
    padding-left: 22px;
    cursor: pointer;
    font-size: 10px;
    font-weight: 700;
    padding-right: 6px;
    text-decoration: none;
    margin-bottom: 7px;
    display: inline-block;
    border: none;
}
.link span:before, button.quick:before{
    display: inline-block;
    width: 21px;
    height: 21px;
    background-image: url('/storage/images/link.png');
    background-repeat: no-repeat;
    content: " ";
    background-position: left top 1px;
    background-size: 13px;
    position: absolute;
    margin-left: -17px;
    margin-top: -2px;
}
h1.valley-header {
    text-align: center;
    font-size: 54px;
    border-top: 9px solid;
    border-bottom: 3px solid;
    padding: 40px 0px 20px 0px;
}
h1.valley-header:after {
    content: " ";
    height: 3px;
    background: #333;
    width: 100%;
    display: block;
    margin-bottom: -19px;
    margin-top: 16px;
}
.home-buttons img {
    max-height: 80px;
    margin: 0 20px;
}
.home-buttons img:hover {
    opacity: .95;
    transform: scale(1.05);
    transition: all .2s ease-in-out;
}
.home-buttons {
    text-align: center;
    margin-top: 60px;
}
.left-tab-nav img {
  width: 100px;
  position: relative;
  float: left;
  margin-left: -26px;
  margin-top: 1px;
}

.gallery-bottom {
    background-image: url(/storage/images/gallery-bottom.png);
    background-size: 400px;
    height: 167px;
    background-repeat: repeat-x;
    position: fixed;
    bottom: -50px;
    width: 100%;
    left: 0;
}
.display img {
    max-width: 300px;
}
.display {
    text-align: center;
    margin-top: 50px;
}
.details p {
    font-size: 13px;
    line-height: 120%;
}
.details h5 {
    font-family: 'Broken Console', sans-serif;
    color: #bf5629;
}
.details {
    background: #fde68b;
    max-width: 300px;
    padding: 10px;
    text-align: left;
    margin-top: 50px;
    box-shadow: 0 0 2px 4px #fbc946, 0 0 0 6px #bf5629, 0 0 0 7px #fde68b;
    margin-left: 25px;
    margin-right: 25px;
}
.details a {
    text-decoration: none;
    color: #ffffff;
}
.details .btn {
    background: #bf5629;
    border-radius: 0px;
    line-height: 100%;
}
.md-right {text-align: right;}
span.owner {
    font-weight: 700;
    color: #bf5629;
}
.data-right-tabs img {
    position: absolute;
    width: 100px;
    right: 0;
    top: 180px;
}
.data-right-tabs img {
    opacity: .95;
    transform: scale(1.1);
    transition: all .2s ease-in-out;
}

.data-tabs img {
    height: 67px;
    margin-bottom: -46px;
}
.data-tabs {
    margin-left: -17px;
    margin-top: 20px;
}
tr th {
    padding: 2px 10px;
    text-align: center;
    font-family: 'Courier Prime', monospace;
}
  .pixel-border {
    outline: 69px solid #999;
    outline-offset: -75px;
    background: #ccc;
    text-align: center;
}
.pixel-border {
    outline: 69px solid #999;
    outline-offset: -75px;
    background: #ccc;
    text-align: center;
    padding: 93px;
    margin-top: 46px;
}
.computer-screen {
    background: #161616;
    color: #13c413;
}
.computer-screen h2 {
    color: #13c413; text-align: center; margin-bottom: 33px; margin-top: 0px;
}
.computer-screen h2::after {
    content: "|";             /* The blinking bar */
    margin-left: 4px;         /* Small space from text */
    animation: blink 1s infinite;
  }
.computer-screen img {
    max-width: 50px;
    float: left;
    margin-top: 0px;
    margin-left: 20px;
    margin-right: -20px;
}

img.frame {
    margin-bottom: 80px;
}
body.canvas .container {
    width: 100%;
    max-width: none;
    padding: 0;
}

.canvas main.container {
    background: #3f2a1c;
}

ul#layer-list li input {
    max-width: 160px;
}
.layers_menu.disabled {
    opacity: 0.4;
    pointer-events: none;
    user-select: none;
  }
  
  .layers-panel ul li {
    background: #eee;
    padding: 5px 10px;
    margin: 5px 0;
    cursor: grab;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .layers-panel input.rename-input {
    border: none;
    background: transparent;
    width: 100%;
  }
  
  .layers-panel li.dragging {
    opacity: 0.5;
  }
  
  #layer-list button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
  }

  #layer-list input.rename-input {
    padding: 2px 6px;
    font-size: 14px;
  }

  #layer-list li {
    border-bottom: 1px solid #ddd;
  }

  #layer-list li.dragging {
    opacity: 0.5;
  }

  #layer-list li.placeholder {
    border: 2px dashed #ccc;
    height: 32px;
  }

  ul#layer-list li {
    background: white;
    padding: 10px 4px !important;
    margin-bottom: 4px;
    border-radius: 4px;
    border: 2px solid #3f2a1c;
    transition: all 0.2s ease;
}

/* Drag and drop visual effects */
ul#layer-list li.dragging {
    opacity: 1 !important;
    transform: scale(1.02);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    z-index: 1000;
}

ul#layer-list li.darkened {
    opacity: 0.6;
    filter: brightness(0.8);
}

ul#layer-list li.darkened:hover {
    opacity: 0.7;
    filter: brightness(0.9);
}
body.listings-page .tabs {
  display: none;
}
div#listingsTabContent {
    background: #dbcaba;
}
.table-striped>tbody>tr:nth-of-type(odd) {
  background-color: transparent !important;
}
.table-hover>tbody>tr:hover {
    background-color: transparent !important;
}
div#listingsTabContent {
  text-align: center;
}
div#listingsTabContent td {
    vertical-align: middle !important;
}
#listingsTabContent a.btn.btn-sm.btn-outline-primary {
    background: #fff;
    border: 2px solid #b28f7a;
    color: #222;
}
button#filterButton {
  float: right;
  background-color: #fff;
  border: 2px solid #b28f7a;
  color: #222;
}
button.active-filter-btn {
    float: right;
    margin-right: 20px;
    margin-top: 5px;
    background: #999;
}
.active-filter-btn:hover {
  background-color: #555 !important;
}
.listings-page .head h1 {
    margin-bottom: 20px;
    margin-top: 20px;
}
.listings-page h1 {
  text-align: center;
  font-size: 25px;
  color: #fff;
  margin-top: 40px;
  margin-bottom: 40px;
}
.listings-page .modal-dialog.modal-lg {
  max-width: 600px;
}
.nav-tabs>li>a {
  color: #fff;
  cursor: default;
  background-color: #a49b93;
  border: 2px solid #b28f7a;
  border-bottom-color: transparent;
  border-radius: 0px !important;
}
.nav-tabs>li.active>a, .nav-tabs>li.active>a:focus, .nav-tabs>li.active>a:hover, .nav-tabs>li>a:hover {
  color: #555;
  cursor: default;
  background-color: #dbcaba;
  border: 2px solid #b28f7a;
  border-bottom-color: transparent;
}
div#listingsTabContent {
    border: 2px solid #b28f7a;
}

.nav-tabs {
  border-bottom: none;
  margin-bottom: -1px;
}
/* Drop indicator styles */
.drop-indicator {
    position: absolute;
    height: 3px;
    background: linear-gradient(90deg, #007bff, #0056b3);
    width: 100%;
    pointer-events: none;
    z-index: 1000;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
    transition: all 0.2s ease;
}
ul#layer-list li span {
    border-left: 5px dotted #999;
    padding-left: 12px;
    margin-left: 4px;
}
ul#layer-list li button {
    margin-left: -4px !important;
}


button#setBackgroundBtn {
    background: #dbcaba;
    font-family: 'Courier Prime', monospace;
    color: #7c0101;
    padding: 6px 10px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    margin-bottom: 7px;
    display: inline-block;
    border: 2px solid;
}
canvas {
    border: 1px solid #ccc;
    display: block;
    max-width: 100%;
  }
  .canvas-container, div#nft-gallery {
    background: #dbcaba;
}  
#layer-list button.active-layer {
    border: 4px solid #13ee1a; /* Green border */
  }
  #layer-list li.active-layer {
    border: 4px solid #13ee1a;
    border-radius: 4px;
  }
  #canvas-container {
  position: relative;
  width: 100%;
  height: 100%;
  min-width: 0;
  flex: 1;
}
  .layers_menu button {
    font-size: 12px;
    padding: 4px;
    border: none;
    background: #eee;
    cursor: pointer;
  }
  
  #connectWalletBtn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid #ccc;
    background: #f9f9f9;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
  }
  p.q {
    margin-top: 25px;
    margin-bottom: -8px;
}
.page-valley-report .cob {
  background: #fff;
  padding: 10px 20px;
  border: 1px solid;
}
.cob h5{
  font-weight: 700;
}
  ul.canvas_menu.styled-menu li button {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid #ccc;
    background: #f9f9f9;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
}
  #connectWalletBtn:hover {
    background-color: #ececec;
  }
  ul.canvas_menu.styled-menu li {
    display: inline-block !important;
}
  ul.canvas_menu.styled-menu, button#openBackgroundPicker {
    padding: 0px;
    border-radius: 0px;
    width: auto;
    display: inline-block;
  }

  
  button#openBackgroundPicker {
    position: absolute;
    top: 10px;
    left: 10px;
    background: none;
    border: none;
}
  ul.canvas_menu.styled-menu li {
    display: inline;
    list-style: none;
}
ul#layer-controls li {
    list-style: none;
}
div#nft-gallery {
    text-align: center;
}
.lightbox-content {
    max-width: 800px;
    padding: 40px;
}
div#nft-gallery img {
    width: 60% !important;
    display: block;
    margin: 0 auto !important;
}

#nft-search {
    width: 100%;
    padding: 6px 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    margin-bottom: 10px;
    outline: none;
    transition: border-color 0.2s ease;
  }
  
  #nft-search:focus {
    border-color: #007bff;
  }
  
.layers_menu  {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #ccc;
    padding: 6px 10px;
    border-radius: 6px;
    z-index: 10;
    display: flex;
    gap: 6px;
}    
#uploaded-backgrounds img.background-thumb {
    border: 2px solid transparent;
  }
  #uploaded-backgrounds img.background-thumb:hover {
    border: 2px solid #333;
  }

#connectWalletBtn svg {
    width: 18px;
    height: 18px;
    margin-right: 6px;
    position: absolute;
    vertical-align: middle;
    transform: translateY(1px);
    margin-left: -28px;
    margin-top: -2px;
}
.d-none {
    display: none !important;
  }
  .lightbox-close {
    color: #000;
    font-weight: bold;
    z-index: 10001;
  }
  .lightbox-close:hover {
    color: #ccc;
  }
  
  @keyframes blink {
    0%, 50% {
      opacity: 1;
    }
    51%, 100% {
      opacity: 0;
    }
  }

@media (max-width: 1350px) {
.page-farmers, .page-land, .page-sheep, .page-wolves {

}

} 

@media (max-width: 1150px) {

img.featured-img {
    width: 186px !important;
    margin-right: 0px !important;
}
img.old-man {
    margin-right: -77px !important;
}
.volume1 img {
    width: 207px;
    margin-top: 100px;
    margin-right: 20px;
}
img.sheep-pic {
    margin-right: 0px !important;
    width: 200px !important;
}
}

@media (max-width: 1035px) {
    .page-farmers, .page-land, .page-sheep, .page-wolves {

}
.container {
    width: 100%;
    margin-left: 0;
    padding-right: 216px;
}
img.old-man {
    width: 150px !important;
    margin-right: -24px !important;
    margin-top: 0px !important;
}
.piddy img {
    width: 240px;
}
.cloud {
    left: 228px;
}
}

@media (max-width: 930px) {
.page-farmers, .page-land, .page-sheep, .page-wolves {

}
img.featured-img {
    width: 150px !important;
    margin-right: 0px !important;
}
.piddy {
    position: absolute;
    bottom: 0;
    left: 6px;
}
.piddy img {
    width: 200px;
}
.cloud {
    left: 156px;
    bottom: 94px;
}
.volume1 img {
    width: 168px;
}
img.sheep-pic {
    display: block;
    float: none !important;
    margin-top: 0px !important;
    margin-bottom: 20px !important;
}
}

@media (max-width: 900px) {
img.featured-img {
    float: none !important;
    display: block !important;
    margin: 0 !important;
    padding-left: 0px !important;
    padding-bottom: 25px;
}
img.old-man {
    width: 145px !important;
    margin-right: -72px !important;
    margin-top: 0px !important;
}
}

@media (max-width: 770px) {
    h1 {
    font-size: 24px;
}
.h3, h3 {
    font-size: 18px;
}
.h2, h2 {
    font-size: 20px;
}
p, li {
    font-size: 14px;
}
.page-farmers, .page-land, .page-sheep, .page-wolves {

}
.container {
    width: 100%;
    margin-left: 0;
    padding-right: 236px;
}
img.old-man {
    margin-right: 0px !important;
}
.tips {display: none;}
}


@media (max-width: 700px) {
 .piddy img {
    width: 100px;
}   
.piddy {
    left:20px;
}
 .tabs img {
    width: 70px;
    margin-bottom: 20px;
}   
.tabs {
    width: 70px;
}
.sm-center {text-align: center;}

.page-farmers, .page-land, .page-sheep, .page-wolves {

}
.container {
    padding-right: 180px;
}
.onboarding {
    max-width: 100% !important;
    width: 100% !important;
}
.cloud {
    left: 85px;
    bottom: 39px;
}
.volume1 img {
    width: 207px;
    margin-top: 20px;
    margin-right: 20px;
}
.cloud {
    width: 249px;
    background-size: 237px;
}
.cloud div {
    overflow: scroll;
    height: 145px;
    margin-top: 38px;
}
.details {
    margin: 0 auto;
    margin-top: -20px;
    margin-bottom: 60px;
}
.gallery-bottom {
    background-size: 191px;
    height: 128px;
}
img.frame {
    max-width: 230px;
}
.left-tab-nav img {
    max-width: 55px;
    top: 30px;
}
.head h1 {
    font-size: 16px;
    margin-left: 35px;
}
a.logo {
    width: 35px;
    background-size: 35px;
    height: 49px;
    background-repeat: no-repeat;
}

}










/* Canvas Page Specific Styles */



/* Prevent horizontal overflow on the page */
body.canvas {
  overflow-x: hidden;
}



/* Wallet Input Container */
.wallet-input-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

#walletAddressInput {
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: 'Courier Prime', monospace;
  font-size: 14px;
  min-width: 300px;
}

#loadWalletBtn {
  padding: 8px 16px;
  background: #28a745;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-family: 'Courier Prime', monospace;
  font-weight: bold;
}

#clearWalletBtn {
  padding: 8px 16px;
  background: #dc3545;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-family: 'Courier Prime', monospace;
  font-weight: bold;
  display: none;
}

#clearWalletBtn i {
  margin-right: 6px;
}

#exportImageBtn {
  padding: 8px 16px;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-family: 'Courier Prime', monospace;
  font-weight: bold;
  margin-left: 8px;
}

#exportImageBtn:hover {
  background: #0056b3;
}

/* Export Modal Styles */
#export-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

#export-modal .lightbox-content {
  background-color: #fefefe;
  margin: 5% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  max-width: 600px;
  border-radius: 8px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.export-options {
  margin-top: 20px;
}

.export-section {
  margin-bottom: 25px;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  background-color: #f9f9f9;
}

.export-section h5 {
  margin: 0 0 15px 0;
  color: #333;
  font-size: 16px;
}

.setting-row {
  display: flex;
  gap: 10px;
}

.setting-group.half {
  flex: 1;
}

.setting-group {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.setting-group label {
  min-width: 80px;
  font-weight: bold;
  color: #555;
}

.setting-group input[type="number"],
.setting-group select {
  padding: 5px 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: 'Courier Prime', monospace;
}

.setting-group input[type="range"] {
  flex: 1;
  margin: 0 10px;
}

.setting-group input[type="checkbox"] {
  margin-right: 8px;
}

#quality-value {
  min-width: 40px;
  text-align: right;
  font-weight: bold;
}

.export-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #ddd;
}

.btn-primary {
  padding: 10px 20px;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
}

.btn-primary:hover {
  background: #0056b3;
}

.btn-secondary {
  padding: 10px 20px;
  background: #6c757d;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
}

.btn-secondary:hover {
  background: #545b62;
}

/* Export Preview Styles */
.export-preview {
  margin-top: 20px;
  border-top: 1px solid #ddd;
  padding-top: 15px;
}

.export-preview h5 {
  margin: 0 0 10px 0;
  color: #333;
  font-size: 14px;
  font-weight: bold;
}

#export-preview-container {
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 10px;
  background: #f8f9fa;
  text-align: center;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#export-preview-canvas {
  max-width: 100%;
  max-height: 300px;
  border: 1px solid #ccc;
  background: white;
  display: block;
}

/* Resizable Layout Styles */
.resizable-layout {
  display: flex;
  width: 100%;
  height: calc(100vh - 300px);
  min-height: 500px;
  overflow: hidden;
  max-width: 100%;
  align-items: stretch;
}

.resizable-column {
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}

#nft-column {
  width: 18%;
  min-width: 180px;
  height: 100%;
}

#canvas-column {
  width: 62%;
  min-width: 400px;
  flex: 1;
  display: flex;
  height: 100%;
}

#layers-column {
  width: 20%;
  min-width: 200px;
  height: 100%;
}

.resize-handle {
  width: 12px;
  background: #e1e4e8;
  cursor: col-resize;
  position: relative;
  flex-shrink: 0;
  transition: background-color 0.2s ease;
  margin: 0 -4px;
}

.resize-handle:hover,
.resize-handle.resizing {
  background: #0366d6;
}

.resize-handle::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 3px;
  height: 30px;
  background: #d1d5da;
  border-radius: 2px;
}

.resize-handle:hover::after,
.resize-handle.resizing::after {
  background: #0366d6;
}

/* Prevent text selection during resize */
.resizing {
  user-select: none;
}

.resizing * {
  user-select: none;
}

/* Gallery Wrapper */
.gallery-wrapper {
  width: 100%;
  overflow-y: auto;
  border-right: 1px solid #ccc;
  padding-right: 10px;
  background: #dbcaba;
  padding-top: 7px;
  padding-left: 10px;
  height: 100% !important;
}

#nft-search {
  width: 100%;
  margin-bottom: 10px;
}

#nft-filter {
  width: 100%;
  margin-bottom: 10px;
  padding: 5px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

/* Canvas Container */
#canvas-container {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 400px;
}

/* Layers Panel */
#layers-panel {
  height: 100%;
  overflow-y: auto;
  padding: 8px;
  background: #dbcaba;
  border-left: 1px solid #e1e4e8;
}

.layers-header {
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e1e4e8;
}

#layer-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: calc(100vh - 400px);
  overflow-y: auto;
  position: relative;
  min-height: 50px;
}

/* Layer Menu */
.layers_menu.disabled {
  opacity: 0.4;
  pointer-events: none;
}

.layers_menu button {
  font-weight: 700;
  padding: 4px;
}

/* Add Color Layer Button */
.add-color-layer-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 8px;
  background: transparent;
  color: #28a745;
  border: 2px solid #28a745;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  font-weight: bold;
  font-family: 'Courier Prime', monospace;
  transition: all 0.2s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
  margin-bottom: 2px;
}

.add-color-layer-btn:hover {
  background: #28a745;
  color: white;
}

.add-color-layer-btn svg {
  flex-shrink: 0;
  color: #28a745;
}

.add-color-layer-btn:hover svg {
  color: white;
}

/* Add Text Layer Button */
.add-text-layer-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 8px;
  background: transparent;
  color: #007bff;
  border: 2px solid #007bff;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  font-weight: bold;
  font-family: 'Courier Prime', monospace;
  transition: all 0.2s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
  margin-bottom: 2px;
}

.add-text-layer-btn:hover {
  background: #007bff;
  color: white;
}

.add-text-layer-btn svg {
  flex-shrink: 0;
  color: #007bff;
}

.add-text-layer-btn:hover svg {
  color: white;
}

/* Opacity Slider */
#opacity-slider-container {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  padding: 20px;
  border: 2px solid #ccc;
  border-radius: 8px;
  z-index: 1000;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

#close-opacity-slider {
  position: absolute;
  top: 5px;
  right: 10px;
  cursor: pointer;
  font-size: 18px;
  font-weight: bold;
}

#opacity-slider {
  width: 200px;
  margin-top: 10px;
}

/* Background Picker Button */
#openBackgroundPicker img {
  width: 45px;
}

/* Background Modal */
#background-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.7);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

#background-modal .lightbox-content {
  background: white;
  padding: 30px;
  border-radius: 8px;
  max-width: 800px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
}

#closeBackgroundModal {
  position: relative;
  top: -20px;
  right: -10px;
  font-size: 28px;
  cursor: pointer;
}

#background-modal h4 {
  margin-bottom: 10px;
}

#background-modal h5 {
  margin-bottom: 10px;
}

#background-modal h5 span {
  font-size: 12px;
  color: #666;
  font-weight: normal;
}

#default-backgrounds {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

#uploaded-backgrounds {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

#background-upload-section {
  display: block !important;
}

#background-upload-section h5 {
  margin-bottom: 10px;
}

.background-upload-area {
  border: 2px dashed #aaa;
  padding: 30px;
  text-align: center;
  background-color: #fdf9f5;
  display: block !important;
}

.background-upload-area p {
  margin-bottom: 10px;
}

#background-file-input {
  display: none;
}

#upload-background-btn {
  margin-top: 10px;
}

.background-upload-info {
  margin-top: 15px;
  font-size: 12px;
  color: #666;
}

.background-upload-info p {
  margin: 5px 0;
}

/* Color Layer Modal */
#color-layer-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.7);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

#color-layer-modal .lightbox-content {
  background: white;
  padding: 30px;
  border-radius: 8px;
  max-width: 500px;
  width: 90%;
}

#closeColorLayerModal {
  position: relative;
  top: -20px;
  right: -10px;
  font-size: 28px;
  cursor: pointer;
}

#color-layer-modal h4 {
  margin-bottom: 20px;
}

.color-picker-section label {
  display: block;
  margin-bottom: 10px;
  font-weight: bold;
}

.color-picker-section > div {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

#color-picker {
  width: 60px;
  height: 40px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

#hex-input {
  flex: 1;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: monospace;
}

.color-preview label {
  display: block;
  margin-bottom: 10px;
  font-weight: bold;
}

#color-preview-box {
  width: 100px;
  height: 100px;
  border: 2px solid #ccc;
  border-radius: 4px;
  background-color: #ff0000;
}

.modal-buttons {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

#cancel-color-layer {
  padding: 10px 20px;
  border: 1px solid #ccc;
  background: #f8f9fa;
  border-radius: 4px;
  cursor: pointer;
  font-family: 'Courier Prime', monospace;
}

#create-color-layer {
  padding: 10px 20px;
  background: #28a745;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  font-family: 'Courier Prime', monospace;
}

/* Text Layer Modal */
#text-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.7);
  z-index: 10000;
  justify-content: center;
  align-items: center;
}

#text-modal .modal-content {
  background: white;
  padding: 30px;
  border-radius: 8px;
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
}

#text-modal .modal-content > div:first-child {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

#text-modal h3 {
  margin: 0;
  font-family: 'Broken Console', sans-serif;
}

#closeTextModal {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #666;
}

#text-layer-form > div {
  margin-bottom: 20px;
}

#text-layer-form > div:nth-child(2) {
  display: flex;
  gap: 20px;
}

#text-layer-form > div:nth-child(3) {
  margin-bottom: 30px;
  display: flex;
  gap: 20px;
}

#text-layer-form > div:last-child {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

#text-layer-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
}

#text-input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: inherit;
  font-size: 14px;
  color: #333;
  background-color: #fff;
}

#text-input::placeholder {
  color: #999 !important;
  opacity: 1 !important;
  font-style: italic;
}

#text-input:-ms-input-placeholder {
  color: #999 !important;
  font-style: italic;
}

#text-input::-ms-input-placeholder {
  color: #999 !important;
  font-style: italic;
}

#font-family {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

#font-family option {
  font-family: inherit;
}

#font-family option[value="Press Start 2P"] {
  font-family: 'Press Start 2P', cursive;
}

#font-family option[value="Courier Prime"] {
  font-family: 'Courier Prime', monospace;
}

#text-preview-container {
  width: 100%;
  min-height: 40px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: #f8f9fa;
  display: flex;
  align-items: center;
}

#text-preview {
  font-family: 'Press Start 2P', cursive;
  font-size: 16px;
  color: #b11d18;
}

#text-color {
  width: 100%;
  height: 40px;
  border: 1px solid #ccc;
  border-radius: 4px;
  cursor: pointer;
}

#font-size {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

#create-text-layer {
  padding: 12px 24px;
  background: #28a745;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
}



/* NFT Gallery Grid Layout */
#nft-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(var(--grid-min-size, 80px), 1fr));
  gap: 8px;
  padding: 10px;
  max-height: calc(100% - 120px);
  overflow-y: auto;
  --grid-min-size: 80px;
}

/* NFT Thumbnail Container for Checkmark */
.nft-thumb-container {
  position: relative;
  display: inline-block;
}

.nft-thumb-container img {
  width: 100% !important;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
  border: 2px solid #ccc;
  cursor: pointer;
  transition: all 0.2s ease;
}

.nft-thumb-container img:hover {
  border-color: #007bff;
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* Green Checkmark Overlay */
.nft-checkmark {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 20px;
  height: 20px;
  background: #28a745;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 12px;
  font-weight: bold;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.nft-checkmark.visible {
  opacity: 1;
}

.nft-checkmark::before {
  content: '✓';
}

/* Responsive grid adjustments */
.resizable-column[id="nft-column"][style*="width: 25%"] #nft-gallery {
  --grid-min-size: 70px;
}

.resizable-column[id="nft-column"][style*="width: 30%"] #nft-gallery {
  --grid-min-size: 90px;
}

.resizable-column[id="nft-column"][style*="width: 35%"] #nft-gallery {
  --grid-min-size: 100px;
}

.resizable-column[id="nft-column"][style*="width: 40%"] #nft-gallery {
  --grid-min-size: 110px;
}

/* Mobile breakpoint for general site */
@media (max-width: 600px) {
  button#open-layers-panel {
    display: block;
  }
  button#filterButton {
    float: none;
    background-color: #fff;
    border: 2px solid #b28f7a;
    color: #222;
    margin-bottom: 20px !important;
    text-align: center;
    display: block;
    width: 100px;
    margin: 0 auto;
}
  .page-farmers, .page-land, .page-sheep, .page-wolves, .home-book {
    box-shadow: inset -5px 0 0 0 #dbcab9, inset -10px 0 0 0 #ece4dc, inset -15px 0 0 0 #dbcab9, inset -20px 0 0 0 #ece4dc, inset -25px 0 0 0 #dbcab9, inset -30px 0 0 0 #ece4dc, inset -35px 0 0 0 #dbcab9, inset -40px 0 0 0 #ece4dc;
    padding-left: 15px;
    margin-top: 40px;
    border-left: none;
    margin-left: -15px;
    margin-right: 0px;
  }
  
  h1.valley-header {
    padding: 30px;
    font-size: 24px;
  }
  
  h4.valley-date {
    font-size: 16px;
    text-align: center !important;
  }
  
  .sidemenu {
    width: 300px;
    margin-left: -300px;
  }
  
  .showhide {
    margin-left: 0px !important;
  }
  
  ul.quick-links {
    width: 100% !important;
  }
  
  h1.leader {
    max-width: 130px;
    margin: 0 auto;
    margin-top: -17px;
    font-size: 18px;
    margin-bottom: -30px;
  }
  
  img.old-man {
    float: none !important;
    width: 100px !important;
    margin-right: 0px !important;
    margin-top: 0px !important;
    margin-bottom: 22px;
  }

  .volume1 img {
    width: 195px;
    margin-top: 40px;
    margin-right: -20px;
  }
  
  .piddy {
    right:10px;
    left: auto;
  }
  
  .piddy img {
    -webkit-transform: scaleX(-1);
    transform: scaleX(-1);
  }
  
  .cloud div {
    overflow: scroll;
    height: 145px;
    margin-top: -6px;
  }
  
  .cloud {
    left: auto;
    right: 100px;
    min-height: 206px;
    bottom: 36px !important;
  }

  img.sheep-pic {
    width: 117px !important;
  }
  
  .home-buttons img {
    max-width: 165px;
    display: inline-block;
    margin-bottom: 15px !important;
    margin-left: 5px;
    margin-right: 5px;
  }
  
  .home-buttons {
    text-align: center;
    margin-top: 25px;
  }
  
  .computer-screen {
    padding: 95px;
  }
  
  .pixel-border {
    outline: 21px solid #999;
    outline-offset: -24px;
    background: #ccc;
    text-align: center;
    padding: 30px;
    margin-top: 46px;
  }
  
  .home-book img {
    max-width: 120px;
    float: left;
    margin-right: 10px;
    margin-bottom: 10px;
  }
  
  .home-book {
    padding-left: 30px;
    margin-top: 50px !important;
  }
  .head {
    padding: 3px;
}
}

/* Very small screens */
@media (max-width: 500px) {
  .page-farmers, .page-land, .page-sheep, .page-wolves {
    /* Empty but preserved for structure */
  }
  
  .container {
    padding-right: 0px !important;
  }
  
  .body {
    overflow: hidden;
    background-position: cover;
    background-attachment: fixed;
    background-image: none !important;
  }
  
  ul.quick-links {
    width: 100%;
    margin-left: -40px;
  }
  
  ul.quick-links li {
    width: 100%;
    display: block;
  }
  
  p {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  
  html, body {
    margin: 0;
    height: 100%;
  }
  
  .fixed-bg {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('/storage/images/library.jpeg') center center / cover no-repeat;
    z-index: -1;
  }
  
  .content {
    position: relative;
    z-index: 1;
  }
}

/* Extra small screens */
@media (max-width: 450px) {
  .page-farmers, .page-land, .page-sheep, .page-wolves {
    /* Empty but preserved for structure */
  }
}

/* Canvas Page Mobile Layout Styles */

div#listingsTabContent {
  padding: 10px;
}
.card-header {
  padding-top: 3px;
}
.card {
  background-color: rgba(255, 255, 255, .3);
  margin-top: 10px;
  margin-bottom: 10px;
  font-family: 'Courier Prime', monospace;
}
button#usdButton, button#ethButton {
  background: #a49b93;
}
button#usdButton.active, button#ethButton.active {
background: #fff;
color: #333;
}
.card .table>thead>tr>th {
  vertical-align: bottom;
  border-bottom: 1px solid #999;
}
.card h5 {
  font-family: 'Broken Console', sans-serif;
}

.container {
  width: 100% !important;
}
/* Mobile breakpoint for canvas page */
@media (max-width: 768px) {

.nav>li>a {
  position: relative;
  display: block;
  padding: 4px 6px !important;
  letter-spacing: 0px;
  font-size: 11px;
}
  .left-tab-nav img {
    width: 100px;
    position: relative;
    float: left;
    margin-left: -4px;
    margin-top: -23px;
}
  /* Reset the resizable layout for mobile */
  .resizable-layout {
    display: block !important;
    width: 100% !important;
    height: 100vh !important;
    min-height: 100vh !important;
    overflow: visible !important;
    flex-direction: column !important;
  }

  /* Hide resize handles on mobile */
  .resize-handle {
    display: none !important;
  }

  /* NFT Gallery Column - Hidden on mobile, replaced by mobile panel */
  #nft-column,
  .resizable-column#nft-column {
    display: none !important;
    width: 0 !important;
    min-width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
  }
  
  /* Also hide the gallery wrapper and contents */
  .resizable-column#nft-column .gallery-wrapper,
  .resizable-column#nft-column #nft-gallery,
  .resizable-column#nft-column #nft-search,
  .resizable-column#nft-column #nft-filter {
    display: none !important;
  }



  /* Canvas Column - Full Width */
  .resizable-column#canvas-column {
    width: 100% !important;
    min-width: auto !important;
    height: 100vh !important;
    order: 2;
    margin-top: 0px !important;
  }

  #canvas-container {
    width: 100% !important;
    height: 100vh !important;
    min-height: 100vh !important;
    position: relative !important;
  }

  #main-canvas {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
  }

  /* Reposition zoom slider for mobile */
  #zoom-slider-container {
    position: absolute !important;
    right: 10px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 1000 !important;
  }

  .zoom-slider-wrapper {
    flex-direction: column !important;
    gap: 6px !important;
  }

  .zoom-slider-track {
    width: 30px !important;
    height: 135px !important;
  }

  #zoom-slider {
    width: 135px !important;
    height: 6px !important;
    transform: rotate(-90deg) !important;
    transform-origin: center !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    margin-top: -3px !important;
    margin-left: -67.5px !important;
  }

  /* Layer controls - reposition for mobile */
  .layers_menu {
    position: absolute !important;
    top: 10px !important;
    width: 75% !important;
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid #ccc !important;
    border-right: none !important;
    padding: 10px !important;
    border-radius: 8px !important;
    z-index: 1000 !important;
    display: flex !important;
    gap: 5px !important;
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
  }

  .layers_menu button {
    font-size: 10px !important;
    padding: 3px 6px !important;
    white-space: nowrap !important;
    background: transparent !important;
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    color: #333 !important;
  }

  .layers_menu button:hover {
    background: #f0f0f0 !important;
  }

  /* Background picker button */
  #openBackgroundPicker {
    position: absolute !important;
    top: 10px !important;
    left: 10px !important;
    z-index: 1000 !important;
  }

  #openBackgroundPicker img {
    width: 35px !important;
  }

  /* Layers Column - Hidden by default, slide-out panel */
  .resizable-column#layers-column {
    position: fixed !important;
    top: 0 !important;
    left: -75% !important;
    width: 75% !important;
    height: 100vh !important;
    z-index: 10000 !important;
    background: #dbcaba !important;
    transition: left 0.3s ease !important;
    box-shadow: 2px 0 10px rgba(0,0,0,0.3) !important;
    order: 3;
  }

  .resizable-column#layers-column.layers-panel-open {
    left: 0 !important;
  }

  #layers-panel {
    height: 100% !important;
    overflow-y: auto !important;
    padding: 15px !important;
  }

  /* Layers tab button */
  .layers-tab-button {
    position: absolute !important;
    left: 0 !important;
    top: 25% !important;
    transform: translateY(-50%) !important;
    background: #dbcaba !important;
    border: 2px solid #7c0101 !important;
    border-left: none !important;
    border-radius: 0 8px 8px 0 !important;
    padding: 15px 10px !important;
    writing-mode: vertical-rl !important;
    text-orientation: mixed !important;
    font-family: 'Courier Prime', monospace !important;
    font-weight: bold !important;
    color: #7c0101 !important;
    cursor: pointer !important;
    z-index: 9999 !important;
    box-shadow: 2px 0 5px rgba(0,0,0,0.2) !important;
    transition: all 0.3s ease !important;
  }

  .layers-tab-button:hover {
    background: #7c0101 !important;
    color: #dbcaba !important;
  }

  .layers-tab-button.layers-panel-open {
    left: 75% !important;
  }

  /* NFT tab button */
  .nft-tab-button {
    position: absolute !important;
    left: 0 !important;
    top: 40% !important;
    transform: translateY(-50%) !important;
    background: #dbcaba !important;
    border: 2px solid #7c0101 !important;
    border-left: none !important;
    border-radius: 0 8px 8px 0 !important;
    padding: 15px 10px !important;
    writing-mode: vertical-rl !important;
    text-orientation: mixed !important;
    font-family: 'Courier Prime', monospace !important;
    font-weight: bold !important;
    color: #7c0101 !important;
    cursor: pointer !important;
    z-index: 9999 !important;
    box-shadow: 2px 0 5px rgba(0,0,0,0.2) !important;
    transition: all 0.3s ease !important;
  }

  .nft-tab-button:hover {
    background: #7c0101 !important;
    color: #dbcaba !important;
  }

  .nft-tab-button.nft-panel-open {
    left: 75% !important;
  }

  /* Close button for layers panel */
  .layers-close-button {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    background: #dc3545 !important;
    color: white !important;
    border: none !important;
    border-radius: 50% !important;
    width: 30px !important;
    height: 30px !important;
    font-size: 18px !important;
    cursor: pointer !important;
    z-index: 10001 !important;
  }

  /* NFT Panel Column - Hidden by default, slide-out panel */
  .resizable-column#nft-panel-column {
    position: fixed !important;
    top: 0 !important;
    left: -75% !important;
    width: 75% !important;
    height: 100vh !important;
    z-index: 10000 !important;
    background: #dbcaba !important;
    transition: left 0.3s ease !important;
    box-shadow: 2px 0 10px rgba(0,0,0,0.3) !important;
    order: 4;
  }

  .resizable-column#nft-panel-column.nft-panel-open {
    left: 0 !important;
  }

  #nft-panel {
    height: 100% !important;
    overflow-y: auto !important;
    padding: 15px !important;
  }

  .nft-panel-header {
    margin-bottom: 15px !important;
    border-bottom: 2px solid #7c0101 !important;
    padding-bottom: 10px !important;
  }

  .nft-panel-header h4 {
    margin: 0 !important;
    color: #7c0101 !important;
    font-family: 'Broken Console', sans-serif !important;
  }

  .nft-panel-content {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
  }

  #mobile-nft-search, #mobile-nft-filter {
    width: 100% !important;
    padding: 8px !important;
    border: 1px solid #ccc !important;
    border-radius: 4px !important;
    font-size: 14px !important;
  }

  #mobile-nft-gallery {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr)) !important;
    gap: 8px !important;
    max-height: calc(100vh - 200px) !important;
    overflow-y: auto !important;
  }

  #mobile-nft-gallery .nft-thumb-container {
    width: 60px !important;
    height: 60px !important;
  }

  #mobile-nft-gallery .nft-thumb-container img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 4px !important;
    border: 2px solid #ccc !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
  }

  #mobile-nft-gallery .nft-thumb-container img:hover {
    border-color: #007bff !important;
    transform: scale(1.05) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2) !important;
  }

  /* Close button for NFT panel */
  .nft-close-button {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    background: #dc3545 !important;
    color: white !important;
    border: none !important;
    border-radius: 50% !important;
    width: 30px !important;
    height: 30px !important;
    font-size: 18px !important;
    cursor: pointer !important;
    z-index: 10001 !important;
  }





  /* Extras Section - Full Width Below Canvas */
  #extras-section {
    width: 100% !important;
    order: 4;
    margin-top: 10px !important;
    background: rgba(255, 255, 255, 0.95) !important;
    border-top: 2px solid #ddd !important;
    padding: 15px !important;
  }

  .extras-header {
    flex-direction: column !important;
    gap: 10px !important;
    align-items: stretch !important;
  }

  .extras-controls {
    width: 100% !important;
  }

  #extras-search {
    width: 100% !important;
  }

  .extras-gallery {
    justify-content: center !important;
  }

  .extra-thumbnail {
    width: 70px !important;
    height: 70px !important;
  }

  /* Wallet input container - mobile optimized */
  .wallet-input-container {
    flex-direction: row !important;
    gap: 10px !important;
    padding: 10px !important;
    background: rgba(255, 255, 255, 0.95) !important;
    border-radius: 0px !important;
    margin-bottom: 0px !important;
    align-items: center !important;
    flex-wrap: wrap !important;
  }

  #walletAddressInput {
    flex: 1 !important;
    min-width: 200px !important;
    font-size: 14px !important;
  }

  .wallet-input-container button {
    flex-shrink: 0 !important;
    padding: 8px 12px !important;
    font-size: 14px !important;
    white-space: nowrap !important;
  }

  /* Modal adjustments for mobile */
  .lightbox-content {
    width: 95% !important;
    max-width: none !important;
    margin: 10% auto !important;
    padding: 20px !important;
    max-height: 80vh !important;
  }

  /* Opacity slider container */
  #opacity-slider-container {
    width: 90% !important;
    max-width: 300px !important;
  }

  /* Layer list mobile optimization */
  #layer-list {
    max-height: calc(100vh - 200px) !important;
  }

  #layer-list li {
    padding: 8px 6px !important;
    font-size: 12px !important;
  }

  #layer-list button {
    font-size: 12px !important;
    padding: 3px 6px !important;
  }

  /* Add layer buttons */
  .add-color-layer-btn, .add-text-layer-btn {
    font-size: 12px !important;
    padding: 8px 6px !important;
    margin-bottom: 5px !important;
  }

  /* Prevent horizontal scrolling on body */
  body.canvas {
    overflow-x: hidden !important;
  }

  /* Canvas resize handle - hide on mobile */
  .canvas-resize-handle {
    display: none !important;
  }

  /* Hide zoom out button on mobile */
  button#zoom-out-btn {
    display: none;
  }

  /* Additional mobile-specific styles */
  ul.canvas_menu.styled-menu {
    display: block;
    width: 100% !important;
    background: #fff;
    margin: 0px;
  }

  input#walletAddressInput {
    max-width: 200px;
  }

  .layers-header {
    margin-top: 40px;
  }

  /* Mobile Extra Elements Sticky Button */
  .mobile-extras-sticky-btn {
    display: block !important;
    position: fixed !important;
    bottom: -5px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    background: #dbcaba !important;
    border: 2px solid #7c0101 !important;
    border-radius: 8px 8px 0px 0px !important;
    padding: 12px 24px !important;
    font-family: 'Courier Prime', monospace !important;
    font-weight: bold !important;
    color: #7c0101 !important;
    cursor: pointer !important;
    z-index: 9999 !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2) !important;
    transition: all 0.3s ease !important;
  }

  .mobile-extras-sticky-btn:hover {
    background: #7c0101 !important;
    color: #dbcaba !important;
  }

  /* Mobile Extra Elements Slide-up Panel */
  .mobile-extras-panel {
    display: block !important;
    position: fixed !important;
    bottom: -100vh !important;
    left: 0 !important;
    width: 100% !important;
    height: 80vh !important;
    background: #dbcaba !important;
    z-index: 10000 !important;
    transition: bottom 0.3s ease !important;
    border-radius: 20px 20px 0 0 !important;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.3) !important;
  }

  .mobile-extras-panel.open {
    bottom: 0 !important;
  }

  .mobile-extras-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 20px !important;
    border-bottom: 2px solid #7c0101 !important;
  }

  .mobile-extras-header h4 {
    margin: 0 !important;
    color: #7c0101 !important;
    font-family: 'Broken Console', sans-serif !important;
  }

  .mobile-extras-close {
    background: #dc3545 !important;
    color: white !important;
    border: none !important;
    border-radius: 50% !important;
    width: 30px !important;
    height: 30px !important;
    font-size: 18px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .mobile-extras-gallery {
    padding: 20px !important;
    height: calc(80vh - 80px) !important;
    overflow-y: auto !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    justify-content: center !important;
  }

  /* Hide desktop extras section on mobile */
  #extras-section {
    display: none !important;
  }
}

/* Desktop-only rules */
@media (min-width: 769px) {
  button#close-layers-panel {
    display: none !important;
  }
  
  /* Hide mobile NFT panel on desktop */
  .nft-tab-button,
  .resizable-column#nft-panel-column,
  .nft-close-button {
    display: none !important;
  }
  
  /* Hide mobile extra elements on desktop */
  .mobile-extras-sticky-btn,
  .mobile-extras-panel {
    display: none !important;
  }

}

/* Additional mobile optimizations for very small screens */
@media (max-width: 480px) {
  #canvas-container {
    height: 350px !important;
    min-height: 350px !important;
  }

  .layers_menu button {
    font-size: 9px !important;
    padding: 2px 4px !important;
  }

  #nft-gallery .nft-thumb-container {
    width: 70px !important;
    height: 70px !important;
  }

  .extra-thumbnail {
    width: 60px !important;
    height: 60px !important;
  }

  .layers-tab-button {
    padding: 12px 8px !important;
    font-size: 12px !important;
  }
}