
@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@300;600;900&display=swap');


*,*::before,*::after{box-sizing:border-box;}

body{
    margin:0;
    font-family:'Raleway',Arial,sans-serif;
    background:#7da9ff;
    color:#fff;
    overflow-x:hidden;
}

header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:10px 20px;
    background:#7da9ff;
    box-shadow:0 4px 10px rgba(0,0,0,.2);
    border-radius:4px;
    text-shadow:-3px 3px 0 rgba(0,0,0,1);
    height:100px;
    position:relative;
}
.logo-container{
    display:flex;
    align-items:center;
    gap:15px;
    position:absolute;
    top:50%;
    left:20px;
    transform:translateY(-50%);
}
.logo-container img{height:110px;}
.logo-container h1{
    margin:0;
    font-size:45px;
    font-weight:900;
    text-shadow:-3px 3px 0 rgba(0,0,0,1);
}

nav{flex:1;}
nav ul{
    display:flex;
    gap:200px;
    margin-left:600px;
    padding:0;
    list-style:none;
}

nav ul li a {
  color: #fff;
  font-size: 30px;
  font-weight: 700;
  text-decoration: none;
  padding: 10px 15px;
  transition: all 0.7s ease;
}

nav ul li a.active {
  color: #f8f9fa;
  font-size: 34px;
  font-weight: 900;
  text-shadow: 
      -3px 3px 0 rgba(0, 0, 0, 1), 
      0 0 30px rgba(255, 255, 255, 0.9);
  transform: scale(1.15);
  transition: all 0.7s ease; 
}

nav ul li a:not(.active) {
  color: #dcdcdc; 
  transform: scale(1);
  opacity: 0.8;
}

nav ul li a:hover {
  color: #ffffff; 
  opacity: 1; 
  transform: scale(1.1); 
}

.highlight-container{
    display:flex;
    justify-content:center;
    align-items:flex-start;
    gap:30px;
    margin-top:40px;
    padding:0 20px;
}

#token-details {
    width: 580px;
    min-height: 320px;
  
    background: #7ca9df;
    border: 3px solid #000;
    border-radius: 25px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.25);
  
    padding: 25px;
  
    color: #ffffff;
    text-shadow: -2px 2px 0 rgba(0, 0, 0, 1);
  }
  
 
  #token-details .card {
    display: flex;
    gap: 25px;
    align-items: flex-start;
  }
  
  #token-details .avatar {
    width: 150px;
    height: 150px;
  
    object-fit: cover;
    border-radius: 20px;
    border: 3px solid #333;
  }
  
  #token-details .kvpair,
  #token-details .kvblock .labels,
  #token-details .kvblock .values {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: center;
  }
  
  #token-details .kvpair .label,
  #token-details .kvblock .labels span {
    font-size: 26px;
    font-weight: 700;
    opacity: 1;
  }
  
  #token-details .kvpair .value,
  #token-details .kvblock .values span {
    font-size: 26px;
    font-weight: 700;
  }
  
  #token-details .left {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  
  #token-details .stats {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-left: 10px;
  }
  
  #token-details h2 {
    margin: 0;
    font-size: 34px;
    font-weight: 900;
  }
  
#token-details .token-title{
    display:flex;        
    align-items:center;
    gap:8px;             
  }

  #token-details .verify-icon {
    width: 25px;
    height: 25px;
  }
  
  #token-details .copy-icon{
    width:20px;       
    height:20px;
    cursor:pointer;       
    filter:invert(1);    
    opacity:1;
    transition:opacity .5s;
  }
  #token-details .copy-icon:hover{
    opacity: 0.5;;            
  }

  
  #token-details .price-vol .labels span,
  #token-details .price-vol .values span {
    flex: 1;
  }

  #token-details .price-vol .labels {
    flex-direction: row;
    justify-content: space-between;
    text-align: center;

    margin-bottom: 10px; 
  }

  #token-details .price-vol .values {
    flex-direction: row;
    justify-content: space-between;
    text-align: center;
  }

  #token-details .changes {
    margin-top: 10px;
    padding: 10px 0;
    display: flex;
    flex-direction: column;
    row-gap: 10px;  
  }

  #token-details .changes .labels,
  #token-details .changes .values {
    display: flex;
    justify-content: space-between;
    margin: 0;
  }

  #token-details .changes span {
    flex: 1;
    font-size: 22px;     
    font-weight: 650;
    text-align: center;
  }


  #token-details .changes .values span {
    font-size: 17px;      
    font-weight: 550;
  }
  
  .arrow {
    width: 14px;
    height: 14px;
    margin-right: 4px;
    vertical-align: -2px;
  }
.dexscreener-icon {
  position: absolute;
  bottom: 15px;
  right: 15px;
  width: 24px;
  height: 24px;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.3s ease, transform 0.2s ease;
}

.dexscreener-icon:hover {
  opacity: 1;
  transform: scale(1.1);
}

.dexscreener-icon svg {
  width: 100%;
  height: 100%;
  fill: white;
}

#token-details {
  position: relative;
}

#treemap{
    width:1280px;
    height:780px;
    background:#ffe0b1;
    border:3px solid #000;
    border-radius:35px;
    box-shadow:0 8px 15px rgba(0,0,0,.2);
    display:flex;
    justify-content:center;
    align-items:center;
}

.token text{
    pointer-events:none;
    fill:#fff;
    font-weight:600;
    line-height:1.1;
    text-shadow:0 0 2px rgba(0,0,0,.65);
}
.token:hover{
    transform-box:fill-box;
    transform-origin:50% 50%;
    transform:scale(.95);
    transition:transform .2s ease-in-out;
}

/* nft */

nav ul li a.active {
  color: #fff;
  text-decoration: none;
  font-size: 34px; 
  font-weight: 900; 
  transform: scale(1.1); 
  text-shadow: 
    -3px 3px 0 rgba(0,0,0,1),
    0 0 30px rgba(255,255,255,0.9); 
  transition: all 0.4s ease;
}

#nft-details {
  width: 580px;
  min-height: 320px;
  background: #7ca9df;
  border: 3px solid #000;
  border-radius: 25px;
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.25);
  padding: 25px;
  color: #ffffff;
  text-shadow: -2px 2px 0 rgba(0, 0, 0, 1);
}

#nft-details .card {
  display: flex;
  gap: 25px;
  align-items: flex-start;
}

#nft-details .avatar {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 20px;
  border: 3px solid #333;
}

#nft-details .kvpair,
#nft-details .kvblock .labels,
#nft-details .kvblock .values {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: center;
}

#nft-details .kvpair .label,
#nft-details .kvblock .labels span {
  font-size: 26px;
  font-weight: 700;
  opacity: 1;
}

#nft-details .kvpair .value,
#nft-details .kvblock .values span {
  font-size: 26px;
  font-weight: 700;
}

#nft-details .left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

#nft-details .stats {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-left: 10px;
}

#nft-details h2 {
  margin: 0;
  font-size: 34px;
  font-weight: 900;
}

#nft-details .token-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

#nft-details .copy-icon {
  width: 20px;
  height: 20px;
  cursor: pointer;
  filter: invert(1);
  opacity: 1;
  transition: opacity .5s;
}

#nft-details .copy-icon:hover {
  opacity: 0.5;
}

#nft-details .price-vol .labels span,
#nft-details .price-vol .values span {
  flex: 1;
}

#nft-details .price-vol .labels {
  flex-direction: row;
  justify-content: space-between;
  text-align: center;
  margin-bottom: 10px;
}

#nft-details .price-vol .values {
  flex-direction: row;
  justify-content: space-between;
  text-align: center;
}

#nft-details .changes {
  margin-top: 10px;
  padding: 10px 0;
  display: flex;
  flex-direction: column;
  row-gap: 10px;
}

#nft-details .changes .labels,
#nft-details .changes .values {
  display: flex;
  justify-content: space-between;
  margin: 0;
}

#nft-details .kvblock.supply-row {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  gap: 10px;
  font-size: 24px;
  font-weight: 700;
  margin-top: 10px;
}

#nft-details .kvblock.supply-row .label {
  color: #ffffff;
}

#nft-details .kvblock.supply-row .value {
  color: #ffffff;
}

#nft-details .changes span {
  flex: 1;
  font-size: 22px;
  font-weight: 650;
  text-align: center;
}

#nft-details .changes .values span {
  font-size: 17px;
  font-weight: 550;
}

body.nft-mode #treemap {
  background: #e6e6fa;

}

body.nft-mode #nft-details {
  background: #dda0dd;

}

body.nft-mode #nft-details {
  border-color: black;
}

body.nft-mode #nft-details .avatar {
  border-color: black;
}

.opensea-icon {
  position: absolute;
  bottom: -20px; 
  right: -15px; 
  width: 40px;
  height: 40px; 
  cursor: pointer;
  opacity: 0.9;
  transition: transform 0.2s ease, opacity 0.3s ease;
}

.opensea-icon:hover {
  opacity: 1;
  transform: scale(1.2);
}

.opensea-icon svg {
  width: 100%;
  height: 100%;
  fill: white;
}

#nft-details {
  position: relative;
}


.burger-menu {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 25px;
  background: transparent;
  border: none;
  cursor: pointer;
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  z-index: 1000;
}

.burger-menu span {
  width: 100%;
  height: 3px;
  background: white;
  transition: 0.3s;
}

.burger-menu.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.burger-menu.active span:nth-child(2) {
  opacity: 0;
}

.burger-menu.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}


.social-icons {
  display: flex;
  align-items: center;
  gap: 15px;
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-icon:hover {
  background: rgba(255,255,255,0.1);
  transform: scale(1.1);
}

.social-icon img {
  width: 22px;
  height: 22px;
  filter: brightness(0) invert(1);
  transition: filter 0.3s ease;
}

.social-icon svg {
  width: 25px;
  height: 25px;
  fill: white;
  transition: fill 0.3s ease;
}

.social-icon:hover img {
  filter: brightness(0) invert(0.8);
}

.social-icon:hover svg {
  fill: #f0f0f0;
}

.mobile-social-icons {
  display: none;
}


@media (max-width: 768px) {

  .burger-menu {
      display: flex;
  }
  

  .social-icons {
      display: none;
  }
  

  header {
      height: 70px;
      padding: 10px 20px;
  }
  
  .logo-container {
      left: 20px;
  }
  
  .logo-container img {
      height: 50px;
  }
  
  .logo-container h1 {
      font-size: 24px;
  }
  

  nav {
      display: none;
      position: fixed;
      top: 0;
      right: -300px;
      width: 300px;
      height: 100vh;
      background: #7da9ff;
      box-shadow: -4px 0 10px rgba(0,0,0,0.3);
      z-index: 999;
      transition: right 0.3s ease;
      padding: 80px 0 20px 0;
      flex-direction: column;
      justify-content: space-between;
  }
  
  nav.active {
      right: 0;
      display: flex;
  }
  
  nav ul {
      flex-direction: column;
      gap: 0;
      margin: 0;
      padding: 0 20px;
      flex: 1;
  }
  
  nav ul li {
      margin: 15px 0;
      text-align: center;
  }
  
  nav ul li a {
      font-size: 24px;
      padding: 15px 20px;
      display: block;
      border-radius: 8px;
      transition: background 0.3s;
  }
  
  nav ul li a:hover {
      background: rgba(255,255,255,0.1);
  }
  

  .mobile-social-icons {
      display: flex;
      justify-content: center;
      gap: 20px;
      padding: 20px;
      border-top: 1px solid rgba(255,255,255,0.2);
  }
  
  .mobile-social-icons .social-icon {
      width: 40px;
      height: 40px;
      background: rgba(255,255,255,0.1);
      border-radius: 50%;
  }
  

  .highlight-container {
    flex-direction: column;
    gap: 15px;
    margin-top: 15px;
    padding: 0 15px; 
  }
  
  #treemap {
    width: 100% !important;
    height: 500px !important;
    order: 1;
    overflow: visible;
    padding: 10px;
    box-sizing: border-box; 
  }

  #treemap svg {
      width: 100% !important;
      height: 480px !important;
      max-width: none !important; 
  }

  #treemap rect {
    rx: 10px !important;
    ry: 10px !important;
  }


  #token-details,
  #nft-details {
      width: 100% !important;
      min-height: 180px;
      order: 2;
  }
  

  .menu-overlay {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0,0,0,0.5);
      z-index: 998;
  }
  
  .menu-overlay.active {
      display: block;
  }
}

@media (max-width: 480px) {
  .logo-container h1 {
      font-size: 20px;
  }
  
  .logo-container img {
      height: 40px;
  }
  
  nav {
      width: 280px;
  }
  
  nav ul li a {
      font-size: 20px;
      padding: 12px 15px;
  }
  
  #treemap {
      height: 300px;
  }
  
  .mobile-social-icons {
      gap: 15px;
  }
  
  .mobile-social-icons .social-icon {
      width: 35px;
      height: 35px;
  }
}

@media (max-width: 768px) {

  #token-details, #nft-details {
    overflow: hidden;
    box-sizing: border-box;
  }

  #token-details .card, #nft-details .card {
    overflow: hidden;
    box-sizing: border-box;
  }

  #token-details .card {
    display: flex;
    gap: 3px;
    align-items: flex-start;
  }

  #token-details .avatar {
    width: 130px;
    height: 130px;
    object-fit: cover;
    border-radius: 20px;
    border: 3px solid #333;
  }

  #token-details .kvpair,
  #token-details .kvblock .labels,
  #token-details .kvblock .values {
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: center;
  }

  #token-details .kvpair .label,
  #token-details .kvblock .labels span {
    font-size: 16px;
    font-weight: 700;
    opacity: 1;
    max-width: 100%;
    overflow: visible;
  }

  #token-details .kvpair .value,
  #token-details .kvblock .values span {
    font-size: 16px;
    font-weight: 700;
    max-width: 100%;
    overflow: hidden;
  }

  #token-details .left {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    min-width: 130px;
    max-width: 130px;
  }

  #token-details .stats {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-left: 10px;
    min-width: 0;
    overflow: hidden;
  }

  #token-details h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 900;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 2.2em;
    max-width: 100%;
    line-height: 1.1;
  }

  #token-details .token-title{
    display:flex;        
    align-items:center;
    gap:8px;             
  }

  #token-details .verify-icon {
    width: 25px;
    height: 25px;
  }

  #token-details .copy-icon{
    width:20px;       
    height:20px;
    cursor:pointer;       
    filter:invert(1);    
    opacity:1;
    transition:opacity .5s;
  }

  #token-details .copy-icon:hover{
    opacity: 0.5;
  }

  #token-details .price-vol .labels span,
  #token-details .price-vol .values span {
    flex: 1;
  }

  #token-details .price-vol .labels {
    flex-direction: row;
    justify-content: space-between;
    text-align: center;
    margin-bottom: 10px; 
  }

  #token-details .price-vol .values {
    flex-direction: row;
    justify-content: space-between;
    text-align: center;
  }

  #token-details .kvblock .values span {
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    max-width: 100%;
  }

  #token-details .changes {
    margin-top: -14px;
    margin-bottom: 5px;
    padding: 10px 0;
    display: flex;
    flex-direction: column;
    row-gap: 10px;  
  }

  #token-details .changes .labels,
  #token-details .changes .values {
    display: flex;
    justify-content: space-between;
    margin: 0;
  }

  #token-details .changes span {
    flex: 1;
    font-size: 16px;     
    font-weight: 650;
    text-align: center;
  }

  #token-details .changes .values span {
    font-size: 15px;      
    font-weight: 550;
  }

  #token-details .kvpair.mkcap {
    max-width: 130px;
    overflow: hidden;
  }

  #token-details .kvpair.mkcap .label,
  #token-details .kvpair.mkcap .value {
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
  }

  .dexscreener-icon {
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.3s ease, transform 0.2s ease;
  }

  .dexscreener-icon:hover {
    opacity: 1;
    transform: scale(1.1);
  }

  .dexscreener-icon svg {
    width: 100%;
    height: 100%;
    fill: white;
  }

  #token-details {
    position: relative;
  }

  #nft-details .card {
    display: flex;
    gap: 7px;
    align-items: flex-start;
  }

  #nft-details .avatar {
    width: 130px;
    height: 130px;
    object-fit: cover;
    border-radius: 20px;
    border: 3px solid #333;
  }

  #nft-details .kvpair,
  #nft-details .kvblock .labels,
  #nft-details .kvblock .values {
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: center;
  }

  #nft-details .kvpair .label,
  #nft-details .kvblock .labels span {
    font-size: 18px;
    font-weight: 700;
    opacity: 1;
    max-width: 100%;
    overflow: visible;
  }

  #nft-details .kvpair .value,
  #nft-details .kvblock .values span {
    font-size: 18px;
    font-weight: 700;
    max-width: 100%;
    overflow: hidden;
  }

  #nft-details .left {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    min-width: 130px;
    max-width: 130px;
  }

  #nft-details .stats {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-left: 10px;
    min-width: 0;
    overflow: hidden;
    padding-bottom: 20px;
  }

  #nft-details h2 {
    margin: 0;
    font-size: 28px;
    font-weight: 900;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 2.2em;
    max-width: 100%;
    line-height: 1.1;
  }

  #nft-details .token-title {
    display: flex;
    align-items: center;
    gap: 4px;
  }

  #nft-details .copy-icon {
    width: 20px;
    height: 20px;
    cursor: pointer;
    filter: invert(1);
    opacity: 1;
    transition: opacity .5s;
  }

  #nft-details .copy-icon:hover {
    opacity: 0.5;
  }

  #nft-details .price-vol .labels span,
  #nft-details .price-vol .values span {
    flex: 1;
  }

  #nft-details .price-vol .labels {
    flex-direction: row;
    justify-content: space-between;
    text-align: center;
    margin-bottom: 8px;
  }

  #nft-details .price-vol .values {
    flex-direction: row;
    justify-content: space-between;
    text-align: center;
  }

  #nft-details .kvblock .values span {
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    max-width: 100%;
  }

  #nft-details .changes {
    margin-top: 8px;
    margin-bottom: 5px;
    padding: 10px 0;
    display: flex;
    flex-direction: column;
    row-gap: 10px;
  }

  #nft-details .changes .labels,
  #nft-details .changes .values {
    display: flex;
    justify-content: space-around;
    margin: 0;
  }

  #nft-details .changes span {
    flex: 1;
    font-size: 18px;
    font-weight: 650;
    text-align: center;
    min-width: 60px;
  }

  #nft-details .changes .values span {
    font-size: 17px;
    font-weight: 550;
  }

  #nft-details .kvblock.supply-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    font-size: 18px;
    font-weight: 700;
    margin-top: 6px;
    text-align: center;
    max-width: 130px;
    overflow: hidden;
  }

  #nft-details .kvblock.supply-row .label {
    color: #ffffff;
    font-size: 18px;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
  }

  #nft-details .kvblock.supply-row .value {
    color: #ffffff;
    font-size: 18px;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
  }

  #nft-details .kvpair.mkcap {
    max-width: 130px;
    overflow: hidden;
  }

  #nft-details .kvpair.mkcap .label,
  #nft-details .kvpair.mkcap .value {
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
  }

  .opensea-icon {
    position: absolute;
    bottom: -5px;
    right: -5px;
    width: 30px;
    height: 30px;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.3s ease, transform 0.2s ease;
  }

  .opensea-icon:hover {
    opacity: 1;
    transform: scale(1.1);
  }

  .opensea-icon svg {
    width: 100%;
    height: 100%;
    fill: white;
  }

  #nft-details {
    position: relative;
  }

}

