html {
    background: #020617;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Preloader Styles */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #020617;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-content {
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    margin-top: 80px; /* Account for topnav height */
}

.main-content.fade-in {
    opacity: 1;
}

.preloader main {
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #020617;
}

.dank-ass-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.dank-ass-loader .row {
    display: flex;
}

.arrow {
    width: 0; 
    height: 0;
    margin: 0 -6px;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-bottom: 21.6px solid #b69040;
    animation: blink 2s infinite;
    filter: drop-shadow(0 0 18px #b69040);
}

.arrow.down {
    transform: rotate(180deg);
}

.arrow.outer-1 { animation-delay: -0.111s; }
.arrow.outer-2 { animation-delay: -0.222s; }
.arrow.outer-3 { animation-delay: -0.333s; }
.arrow.outer-4 { animation-delay: -0.444s; }
.arrow.outer-5 { animation-delay: -0.556s; }
.arrow.outer-6 { animation-delay: -0.667s; }
.arrow.outer-7 { animation-delay: -0.778s; }
.arrow.outer-8 { animation-delay: -0.889s; }
.arrow.outer-9 { animation-delay: -1s; }
.arrow.outer-10 { animation-delay: -1.111s; }
.arrow.outer-11 { animation-delay: -1.222s; }
.arrow.outer-12 { animation-delay: -1.333s; }
.arrow.outer-13 { animation-delay: -1.444s; }
.arrow.outer-14 { animation-delay: -1.556s; }
.arrow.outer-15 { animation-delay: -1.667s; }
.arrow.outer-16 { animation-delay: -1.778s; }
.arrow.outer-17 { animation-delay: -1.889s; }
.arrow.outer-18 { animation-delay: -2s; }

.arrow.inner-1 { animation-delay: -0.333s; }
.arrow.inner-2 { animation-delay: -0.667s; }
.arrow.inner-3 { animation-delay: -1s; }
.arrow.inner-4 { animation-delay: -1.333s; }
.arrow.inner-5 { animation-delay: -1.667s; }
.arrow.inner-6 { animation-delay: -2s; }

@keyframes blink {
    0% { opacity: 0.1; }
    30% { opacity: 1; }
    100% { opacity: 0.1; }
}
.container {
	display:flex;
	align-items: center;
	justify-content: center;
}
#redblocks > * {
    transform: translate3d(160px, -93px, 0);
    animation: moveblocks 4s 1s ease infinite;
}

@keyframes moveblocks {
    0% {
        transform: translate3d(160px, -93px, 0);
    }
    50%,
    100% {
        transform: translate(0);
    }
}

#firstBlock {
    transform: translate3d(160px, -93px, 0);
    animation: firstBlock 4s 1s ease infinite;
}
#blockdis {
    animation: blockdis 4s 1s ease infinite;
}
@keyframes blockdis {
    30% {
        opacity: 1;
    }
    40%, 100% {
        opacity: 0;
        transform: translate3d(-160px, 93px, 0);
    }
}
@keyframes firstBlock {
    0%,
    15% {
        opacity: 0;
    }
    40%,
    100% {
        opacity: 1;
    }
}

@for $i from 1 to 5 {
    #redblocksparticles g:nth-child(#{$i}) polygon {
        opacity: 0.35;
        animation: glow 4s 1s ease infinite;
    }
}
@for $i from 1 to 20 {
    #redblocksparticles g:nth-child(1) g circle:nth-child(#{$i}){
        animation: dots 4s #{1000+$i*50}ms ease infinite;
    }
    #redblocksparticles g:nth-child(2) g circle:nth-child(#{$i}){
        animation: dots 4s #{1000+$i*50}ms ease infinite;
    }
    #redblocksparticles g:nth-child(3) g circle:nth-child(#{$i}){
        animation: dots 4s #{1000+$i*50}ms ease infinite;
    }
    #redblocksparticles g:nth-child(4) g circle:nth-child(#{$i}){
        animation: dots 4s #{1000+$i*50}ms ease infinite;
    }
}
@keyframes glow {
    0%,
    45% {
        opacity: 0;
    }
    60%, 100% {
        opacity: 0.35;
    }
}

@keyframes dots {
    0%,
    35% {
        transform: translate(0);
        opacity: 0;
    }
    60%, 80% {
        transform: translate(55px, -35px);
        opacity: 1;
    }
    100% {
        transform: translate(55px, -35px);
        opacity: 0;
    }
}

@for $i from 1 to 22 {
    #purplebg > :nth-child(#{$i}) {
        animation: up 2s #{$i* 500}ms ease infinite alternate;
    }
}

@keyframes up {
    to {
        transform: translate(0, -25px);
    }
}

@for $i from 1 to 13 {
    #bottomparticles > :nth-child(#{$i}){
        animation: particles 4s #{$i*300}ms ease infinite alternate, p 2s ease infinite alternate;
    }
    #bottomparticles2 > :nth-child(#{$i}){
        animation: particles 4s #{$i*300}ms ease infinite alternate, p 2s ease infinite alternate;
    }
    #redglowparticles > :nth-child(#{$i}){
        animation: particles 4s #{$i*300}ms ease infinite alternate, p 2s ease infinite alternate;
    }

}
@keyframes p {
    85%,
     100% {
        opacity: 0;
    }
}

@keyframes particles {
    0%, 100% {
        transform: translate(0);
    }
    50% {
        transform: translate(10px, 15px);
    }
}

.particlespoly {
    animation: p 2s ease infinite alternate;
}

@for $i from 1 to 4 {
    #d-app g:nth-child(#{$i}){
        animation: updown 2s #{$i*200}ms ease-in-out infinite alternate;
    }
}
@for $i from 1 to 4 {
    #d-apps2 g:nth-child(#{$i}){
        animation: updown 2s #{$i*200}ms ease-in-out infinite alternate;
    }
}
@for $i from 1 to 20 {
    #d-apps2wrapper g:nth-child(3) g > circle:nth-child(#{$i}){
        animation: updown 2s #{$i*50}ms ease infinite alternate;
    }
}
@for $i from 1 to 20 {
    #d-appswrapper g:nth-child(2) g > circle:nth-child(#{$i}){
        animation: updown 2s #{$i*50}ms ease infinite alternate;
    }
}


@keyframes updown {
    100% {
        transform: translate(0, -20px);
    }
}

#Layer_1 > g:nth-child(2) > g:nth-child(18) > g:nth-child(12) {
    animation: arrows 1s ease-in-out infinite alternate, p 2s ease infinite alternate;
}
@keyframes arrows {
    to {
        transform: translate(25px, 25px);
    }
}

#Layer_1 > g:nth-child(2) > g:nth-child(17) > g:nth-child(13) {
    animation: arrows2 1s ease-in-out infinite alternate, p 2s ease infinite alternate;
}
@keyframes arrows2 {
    to {
        transform: translate(-25px, -25px);
    }
}

#Layer_1 > g:nth-child(2) > g:nth-child(17) > g:nth-child(12) {
    animation: arrows 1s ease-in-out infinite alternate, p 2s ease infinite alternate;
}

/* Gold cube hover effects and numbers */
.gold-cube {
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
}

.gold-cube:hover {
    filter: brightness(1.2) drop-shadow(0 0 10px rgba(182, 144, 64, 0.6));
}

/* Make sure all cube faces are clickable */
.gold-cube-face {
    cursor: pointer;
    pointer-events: auto;
    transition: all 0.3s ease;
}

.gold-cube-face:hover {
    filter: brightness(1.2) drop-shadow(0 0 10px rgba(182, 144, 64, 0.6));
}

/* Ensure highlight effects don't block clicks */
.gold-cube-highlight {
    pointer-events: none;
}

/* Invisible clickable overlay for better click detection */
.gold-cube-overlay {
    fill: transparent;
    cursor: pointer;
    pointer-events: auto;
    transition: all 0.3s ease;
}

.gold-cube-overlay:hover {
    fill: rgba(182, 144, 64, 0.1);
}

.gold-cube-number {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 600;
    fill: #b69040;
    text-anchor: middle;
    pointer-events: none;
    opacity: 0.8;
}

/* Top Navigation Bar */
.topnav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: #020617;
    border-bottom: 1px solid #333;
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.nav-left {
    display: flex;
    flex-direction: column;
}

.nav-title {
    color: #ffffff;
    font-size: 24px;
    font-weight: 700;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    margin: 0;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

.nav-subtitle {
    color: #888;
    font-size: 14px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    font-weight: 400;
    margin: 0;
    margin-top: 2px;
    letter-spacing: 0.01em;
}

.nav-right {
    display: flex;
    gap: 12px;
    align-items: center;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background-color: #1a1a2e;
    border: 1px solid #333;
    border-radius: 20px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.nav-item:hover {
    background-color: #2a2a3e;
    border-color: #444;
}

.nav-item.active {
    background-color: #1e4d2b;
    border-color: #2d5a3a;
}

.nav-link {
    text-decoration: none;
    color: inherit;
}

.nav-link:hover {
    text-decoration: none;
    color: inherit;
}

.nav-icon {
    width: 16px;
    height: 16px;
    color: #ffffff;
}

.nav-icon.gold {
    color: #b69040;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #4ade80;
}

.status-dot.green {
    background-color: #4ade80;
}

/* Sidenav styles - Blockchain Explorer Theme */
.sidenav {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 1000;
    top: 0;
    right: 0;
    background-color: #020617;
    overflow-x: hidden;
    transition: 0.5s;
    border-left: 1px solid #333;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.sidenav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px 15px 25px;
    border-bottom: 1px solid #333;
}

.sidenav-title {
    color: #ffffff;
    font-size: 18px;
    font-weight: 500;
    margin: 0;
}

.sidenav .closebtn {
    color: #888;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
}

.sidenav .closebtn:hover {
    color: #ffffff;
}

.sidenav-content {
    padding: 25px;
    color: #ffffff;
}

.block-title {
    color: #b69040;
    font-size: 28px;
    font-weight: bold;
    margin: 0 0 25px 0;
    text-align: center;
}

.detail-section {
    margin-bottom: 30px;
}

.section-title {
    color: #b69040;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #222;
}

.detail-icon {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    color: #888;
    display: flex;
    align-items: center;
    justify-content: center;
}

.detail-label {
    color: #888;
    font-size: 14px;
    font-weight: 500;
    min-width: 100px;
}

.detail-value {
    color: #ffffff;
    font-size: 14px;
    font-weight: 400;
    word-break: break-all;
}

.detail-value.green {
    color: #4ade80;
}

.detail-value.gold {
    color: #b69040;
}

.action-buttons {
    display: flex;
    gap: 12px;
    margin-top: 25px;
}

.btn {
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-primary {
    background-color: #b69040;
    color: #000000;
}

.btn-primary:hover {
    background-color: #c4a045;
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: #1e293b;
    color: #ffffff;
    border: 1px solid #374151;
}

.btn-secondary:hover {
    background-color: #374151;
    transform: translateY(-1px);
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 15px;
}

.stat-item {
    background-color: #111;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #333;
}

.stat-label {
    color: #888;
    font-size: 12px;
    margin-bottom: 4px;
}

.stat-value {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
}

/* Animation for sidenav */
@keyframes slideIn {
    from {width: 0;}
    to {width: 400px;}
}

@keyframes slideOut {
    from {width: 400px;}
    to {width: 0;}
}

.sidenav.open {
    width: 400px;
    animation: slideIn 0.5s ease;
}

.sidenav.close {
    width: 0;
    animation: slideOut 0.5s ease;
}

/* Overlay for sidenav */
.sidenav-overlay {
    display: none;
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

/* Live Blockchain Data Panel */
.blockchain-panel {
    position: fixed;
    top: 100px;
    right: 20px;
    width: 350px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border: 1px solid #334155;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    z-index: 1000;
    backdrop-filter: blur(10px);
    animation: slideInFromRight 0.3s ease;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #334155;
}

.panel-header h3 {
    color: #b69040;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
}

.panel-close {
    background: none;
    border: none;
    color: #888;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.panel-close:hover {
    color: #ffffff;
}

.panel-content {
    padding: 20px;
}

.data-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.data-item {
    background: rgba(15, 23, 42, 0.8);
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #334155;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.data-label {
    color: #888;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.data-value {
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Courier New', monospace;
}

.recent-blocks h4 {
    color: #b69040;
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.blocks-list {
    max-height: 200px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 8px;
}

/* Custom scrollbar for blocks list */
.blocks-list::-webkit-scrollbar {
    width: 6px;
}

.blocks-list::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.5);
    border-radius: 3px;
}

.blocks-list::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #b69040 0%, #d4af37 100%);
    border-radius: 3px;
    transition: background 0.3s ease;
}

.blocks-list::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
}

/* For Firefox */
.blocks-list {
    scrollbar-width: thin;
    scrollbar-color: #b69040 rgba(15, 23, 42, 0.5);
}

.block-item {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid #334155;
    border-radius: 6px;
    padding: 10px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    word-wrap: break-word;
}

.block-item:hover {
    background: rgba(15, 23, 42, 0.9);
    border-color: #b69040;
    transform: translateX(2px);
}

.block-item:last-child {
    margin-bottom: 0;
}

.block-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.block-height {
    color: #b69040;
    font-weight: 600;
    font-size: 13px;
}

.block-time {
    color: #888;
    font-size: 11px;
}

.block-hash {
    color: #ffffff;
    font-size: 11px;
    font-family: 'Courier New', monospace;
    word-break: break-all;
    word-wrap: break-word;
    overflow-wrap: break-word;
    margin-bottom: 4px;
    max-width: 100%;
    overflow: hidden;
}

.block-txs {
    color: #4ade80;
    font-size: 11px;
    font-weight: 500;
}

/* Data Panel Toggle Button */
.data-panel-toggle {
    position: fixed;
    top: 150px;
    right: 20px;
    background: linear-gradient(135deg, #b69040 0%, #d4af37 100%);
    color: #000000;
    border: none;
    border-radius: 25px;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(182, 144, 64, 0.3);
    transition: all 0.3s ease;
    z-index: 999;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
}

.data-panel-toggle:hover {
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(182, 144, 64, 0.4);
}

@keyframes slideInFromRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutToRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.blockchain-panel.closing {
    animation: slideOutToRight 0.3s ease forwards;
}

