:root {
    --v2blue: #a0b9e4;
    --v2purple: #8a2be2;
    --v2yellow: #f2e0ad;
    --v2black: #212329;
    --v2white: #f2f2f2;

    --v2yellowashi: url("/images/assets/abulov2/yellow-washitape.png");

    --filter-yellow-to-blue: hue-rotate(165deg) saturate(80%) brightness(100%);
    --filter-yellow-to-purple: hue-rotate(210deg) saturate(200%) brightness(85%);
}
    
body {
  background-image: url("/images/assets/abulov2/u11-bg-polkadot.gif");
  background-repeat: repeat;
  font-family: rainyhearts, mintsoda, sans-serif;
  font-size: 18px;
  color: var(--v2black);
}

@font-face {
    font-family: "rainyhearts";
    src: url("/fonts/rainyhearts.ttf");
}

@font-face {
    font-family: "mintsoda";
    src: url("/fonts/MintsodaLimeGreen.ttf");
}

@font-face {
  font-family: "spirit";
  src: url("https://cinni.net/directory/Spirit.ttf");
}

a {
  text-decoration: none;
  color: var(--v2blue);
}

a:hover {
  font-weight: 900;
  color: var(--v2white);
  text-shadow: 1px 0px var(--v2black), -1px 0px var(--v2black), 0px 1px var(--v2black), 0px -1px var(--v2black), 0 0;
  transition: 0.4s;
}


h1 {
  font-family: mintsoda, sans-serif;
}

#keychain {
  position: absolute;
  /*left: 100px;*/
  left: calc(50% - 670px);
  width: 250px;
  height: auto;
  z-index: 10;
  animation: float 3s ease-in-out infinite;
  image-rendering: pixelated;
}

#keychain:hover {
  animation: shake 0.5s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes shake {
  0% { transform: rotate(0deg); }
  20% { transform: rotate(5deg); }
  40% { transform: rotate(-5deg); }
  60% { transform: rotate(5deg); }
  80% { transform: rotate(-5deg); }
  100% { transform: rotate(0deg); }
}

.outer-container {
  border: 20px solid var(--v2black);
  border-radius: 15px;

  width: fit-content;
  margin: auto;
}

.main-container {
  width: 1000px;

  border: 15px ridge var(--v2blue);

  background-color: var(--v2white);
  position: relative;
  padding: 10px;
  z-index: 4;
}

.top {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr 1fr 1.5fr;
  grid-template-rows: auto auto 375px auto 200px 200px;
  gap: 10px 10px;
  grid-auto-flow: row;
  grid-template-areas:
    "banner banner banner banner banner"
    "version version version version version"
    "navigation welcome welcome welcome musicplayer"
    "navigation stamps stamps stamps stamps"
    "navigation latestart randomoc randomstory chatbox"
    "navigation currently currently currently chatbox";
}

.bottom {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 200px 200px;
  gap: 10px 10px;
  grid-auto-flow: row;
  grid-template-areas:
    "neighbors statuscafe updates"
    "todolist todolist updates";
}

.spacer1 {
  height: 25px;
}

footer {
  font-family: mintsoda, sans-serif;
  text-align: center;
  background-color: var(--v2black);
  color: var(--v2blue);
  margin: auto;
  width: 1000px;
  padding-left: 10px;
  padding-right: 10px;
  z-index: 4;

  border-left: 35px solid var(--v2black);
  border-right: 35px solid var(--v2black);
  border-top: 5px solid var(--v2black);
  border-bottom: 5px solid var(--v2black);
  border-radius: 15px;
}

.version {
  grid-area: version;
  font-family: mintsoda, sans-serif;
  text-align: center;
  color: var(--v2blue);
  width: 100%;
  height: fit-content;
  padding: 0px;
  margin: 0;
  z-index: 4;
  padding-bottom: 10px;
}

header {
  grid-area: banner;

  background-image: url("/images/assets/abulov2/len_banner.webp");
  background-size: cover;
  background-position: center 55%;
  border: 3px solid transparent;
  border-color: #3456aa;
  position: relative;
  height: 200px; 
  overflow: hidden;
  display: block;
}

header h1 {
  position: absolute;
  z-index: 1;
  bottom: 10%;
  right: 10%;
  font-size: 80px;
  color: var(--v2black);
  text-shadow:
    2px 2px 0 var(--v2blue),
    -2px 2px 0 var(--v2blue),
    2px -2px 0 var(--v2blue),
    -2px -2px 0 var(--v2blue),
    3px 3px 0 var(--v2blue),
    -3px 3px 0 var(--v2blue),
    3px -3px 0 var(--v2blue),
    -3px -3px 0 var(--v2blue),
    5px 5px 0 var(--v2yellow),
    -5px 5px 0 var(--v2yellow),
    5px -5px 0 var(--v2yellow),
    -5px -5px 0 var(--v2yellow),
    5px 0px 0 var(--v2yellow),
    -5px 0px 0 var(--v2yellow),
    0px 5px 0 var(--v2yellow),
    0px -5px 0 var(--v2yellow),
    6px 0px 0 var(--v2black),
    -6px 0px 0 var(--v2black),
    0px 6px 0 var(--v2black),
    0px -6px 0 var(--v2black),
    6px 6px 0 var(--v2black),
    -6px 6px 0 var(--v2black),
    6px -6px 0 var(--v2black),
    -6px -6px 0 var(--v2black);
  margin: 0;
  padding: 0;

  filter: drop-shadow(0 0 5px var(--v2yellow));
}

section {
  border: 3px solid var(--v2black);
  border-radius: 8px;
  overflow: visible;
  display: flex;
  flex-direction: column;

  margin: 0;

  box-shadow: 0 0 3px 0px var(--v2black);
}

section h3 {
  margin: 0;
  padding: 0;

  height: 40px;
  width: 160px;
  display: flex;
  justify-content: center;
  align-items: center;

  color: var(--v2black);
  font-size: 20px;

  font-weight: 900;

  text-shadow: 
    1px 0px 0 var(--v2blue),
    -1px 0px 0 var(--v2blue),
    0px 1px 0 var(--v2blue),
    0px -1px 0 var(--v2blue),
    1.5px 0px 0 var(--v2blue),
    -1.5px 0px 0 var(--v2blue),
    0px 1.5px 0 var(--v2blue),
    0px -1.5px 0 var(--v2blue);

  flex-shrink: 0;

  z-index: 5;
  position: relative;
  top: -10px;
}

section h3::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  
  background-image: var(--v2yellowashi);
  background-repeat: no-repeat;
  background-size: 100% 100%;

  filter: drop-shadow(0 0 3px grey);
  
  z-index: -1;
}

.section-text {
  padding: 10px;
  overflow-y: auto;
  flex-grow: 1;
}

nav {
  grid-area: navigation;
  background-clip: padding-box;

  background-color: var(--v2black);
  padding: 2px;
  overflow: auto;
  text-align: left;
  z-index: 2;
  white-space: normal;
  overflow-x: hidden;

  color: var(--v2yellow);
  border: 3px solid var(--v2black);
  border-radius: 8px;

  margin: 0;
}

nav ul {
  list-style-type: none;
  padding-left: 0px;
}

nav li {
  display: flex;
  align-items: center;
  gap: 8px;
}

nav span:hover {
  color: var(--v2black);
  transition: 0.4s;
}

nav li:hover {
  background-color: var(--v2blue);
  transition: 0.4s;
}


nav li:hover::before {
  content: "";
  width: 14px;
  height: 20px;
  background-image: url("/images/assets/abulov2/blue-note.gif");
  background-size: contain;
  background-repeat: no-repeat;
  margin-right: -5px;
  margin-left: 5px;
  transition: 0.4s;
}

#welcome {
  grid-area: welcome;
  background-clip: padding-box;
  z-index: 3;

  background-image: url("/images/assets/abulov2/plaid_blue_dark.jpg");
  /*background-repeat: no-repeat;
  background-size: 200%;*/

}

#welcome h3 {
  left: -10px;
  transform: rotate(-5deg);
}

#welcome .section-text {
  margin-top: -20px;
}

#welcome .section-text p {
  background-color: rgba(255, 255, 255, 0.55);
  padding: 10px;
  border-radius: 5px;

  text-shadow: 
    1px 0px 0 var(--v2blue),
    -1px 0px 0 var(--v2blue),
    0px 1px 0 var(--v2blue),
    0px -1px 0 var(--v2blue);
}

#welcome .section-text a {
  font-family: spirit, sans-serif;
  text-decoration: underline;
  color: var(--v2black);

  text-shadow: 
    1px 0px 0 var(--v2yellow),
    -1px 0px 0 var(--v2yellow),
    0px 1px 0 var(--v2yellow),
    0px -1px 0 var(--v2yellow);
}

#welcome .section-text a:hover {
  font-weight: 900;
  color: var(--v2white);
  text-shadow: 1px 0px var(--v2black), -1px 0px var(--v2black), 0px 1px var(--v2black), 0px -1px var(--v2black), 0 0;
  transition: 0.4s;
}

.stamps {
  grid-area: stamps;
  overflow: hidden;

  text-align: left;
}

#latestart {
  grid-area: latestart;
  background-clip: padding-box;
  z-index: 2;
}

#latestart h3 {
  left: calc(50% - 80px);
  text-shadow: 
    1px 0px 0 var(--v2yellow),
    -1px 0px 0 var(--v2yellow),
    0px 1px 0 var(--v2yellow),
    0px -1px 0 var(--v2yellow),
    1.5px 0px 0 var(--v2yellow),
    -1.5px 0px 0 var(--v2yellow),
    0px 1.5px 0 var(--v2yellow),
    0px -1.5px 0 var(--v2yellow);
}

#latestart h3::before {
  filter: var(--filter-yellow-to-blue) drop-shadow(0 0 3px grey);
}

#randomoc {
  grid-area: randomoc;
  background-clip: padding-box;
  z-index: 2;
}

#randomoc h3 {
  left: calc(50% - 80px);
}

#randomstory {
  grid-area: randomstory;
  background-clip: padding-box;
  z-index: 2;
}

#randomstory h3 {
  width: 180px;

  left: calc(50% - 90px);

  text-shadow: 
    1px 0px 0 var(--v2yellow),
    -1px 0px 0 var(--v2yellow),
    0px 1px 0 var(--v2yellow),
    0px -1px 0 var(--v2yellow),
    1.5px 0px 0 var(--v2yellow),
    -1.5px 0px 0 var(--v2yellow),
    0px 1.5px 0 var(--v2yellow),
    0px -1.5px 0 var(--v2yellow);
}

#randomstory h3::before {
  filter: var(--filter-yellow-to-blue) drop-shadow(0 0 3px grey);
}

#currently {
  grid-area: currently;
  background-clip: padding-box;
  z-index: 2;

  background-image: url("/images/assets/abulov2/yellow_stripes.jpg");
  background-repeat: no-repeat;
  background-position: bottom;
}

#currently h3 {
  left: calc(100% - 150px);
  transform: rotate(5deg);
}

#chatbox {
  grid-area: chatbox;
  background-clip: padding-box;
  z-index: 2;

  overflow: hidden;
  align-items: center;
}

#neighbors {
  grid-area: neighbors;
  background-clip: padding-box;
  text-align: left;
  z-index: 2;

  background-color: white;
}

#statuscafe {
  grid-area: statuscafe;
  background-clip: padding-box;
  text-align: left;
  z-index: 2;

  background-color: white;
}

#statuscafe h3 {
  width: 190px;
  left: 140px;
  transform: rotate(5deg);

  text-shadow: 
    1px 0px 0 var(--v2yellow),
    -1px 0px 0 var(--v2yellow),
    0px 1px 0 var(--v2yellow),
    0px -1px 0 var(--v2yellow),
    1.5px 0px 0 var(--v2yellow),
    -1.5px 0px 0 var(--v2yellow),
    0px 1.5px 0 var(--v2yellow),
    0px -1.5px 0 var(--v2yellow);
}

#statuscafe h3::before {
  filter: var(--filter-yellow-to-blue) drop-shadow(0 0 3px grey);
}

#updates {
  grid-area: updates;
  background-clip: padding-box;
  text-align: left;
  z-index: 2;

  background-color: white;
}

#updates h3 {
  left: calc(50% - 10px);
}

#todolist {
  grid-area: todolist;
  background-clip: padding-box;
  z-index: 3;
  /*padding-bottom: 15px;*/

  background-color: white;
}

#todolist h3 {
  position: absolute;
  top: 400px;
  
  text-shadow: 
    1px 0px 0 var(--v2yellow),
    -1px 0px 0 var(--v2yellow),
    0px 1px 0 var(--v2yellow),
    0px -1px 0 var(--v2yellow),
    1.5px 0px 0 var(--v2yellow),
    -1.5px 0px 0 var(--v2yellow),
    0px 1.5px 0 var(--v2yellow),
    0px -1.5px 0 var(--v2yellow);
}

#todolist h3::before {
  filter: var(--filter-yellow-to-blue) drop-shadow(0 0 3px grey);
}

#todolist .section-text ul {
  margin-top: 0;
}

.buttons {
  grid-area: buttons;
  text-align: center;
  z-index: 2;
}

.idkyet {
  grid-area: idkyet;

  border: 20px solid transparent;
  border-image: url("/images/whitelace.png") 34 round;
  background-clip: padding-box;
  text-align: left;
  z-index: 2;
}

#proshit {
color: #000000;
background-color: #FFFFFF;
display: inline-block;
height: 140px;
max-height: 140px;
overflow:hidden;
text-align: center;
text-transform: uppercase;
}

#proshitouter {
text-align: center;
background-color: #FFFFFF;
border: 2px solid #000000;
border-radius: 8px;
max-height:140px;
overflow: hidden;
/*display: inline-block;*/
margin: 0 auto; /* centers the widget */

display: flex;
align-items: center;
justify-content: center;
}

#musicplayer {
  grid-area: musicplayer;
  background-color: var(--v2black);
  border: 3px solid var(--v2black);
  border-radius: 8px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  font-family: mintsoda, sans-serif;
  color: var(--v2white);
}

.mp-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--v2blue); 
  font-size: 16px;
  margin-bottom: 8px;
}

.mp-header-text {
  letter-spacing: 1px;
}

#playlist-toggle {
  background: none;
  border: none;
  color: var(--v2blue);
  cursor: pointer;
  font-size: 18px;
}

.mp-art {
  background-color: #2a2c36; 
  border-radius: 5px;
  height: 110px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 8px;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.3);
}

.mp-art img {
  width: 95px;
  height: 95px;
  border-radius: 50%;
  border: 2px solid #000;
  animation: spin 8s linear infinite; 
}

@keyframes spin { 
  100% { transform: rotate(360deg); } 
}

#track-details {
  display: block;
  font-size: 16px;
  text-align: left;
  margin-bottom: 8px;
  padding-left: 0;
  animation: none;
  transform: none;
  color: #f2f2f2;
  white-space: normal;
  line-height: 1.4;
}

.mp-visualizer {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 25px;
  margin-bottom: 10px;
  width: 100%;
  justify-content: space-between;
}

.mp-visualizer .bar {
  background-color: var(--v2blue);
  flex-grow: 1;
  border-radius: 2px 2px 0 0;
}

.mp-time {
  font-size: 14px;
  color: var(--v2blue);
  text-align: left;
  margin-bottom: 4px;
}

.progress-container {
  background-color: #444;
  height: 4px;
  border-radius: 2px;
  cursor: pointer;
  margin-bottom: 10px;
  width: 100%;
}

.progress {
  background-color: var(--v2blue);
  height: 100%;
  width: 0%;
  border-radius: 2px;
  transition: width 0.1s linear;
}

.mp-controls {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
}

.mp-controls button {
  background: none;
  border: none;
  color: var(--v2white);
  font-size: 18px;
  cursor: pointer;
  transition: transform 0.1s;
}

.mp-controls button:hover {
  transform: scale(1.1);
}

.mp-controls #play {
  background-color: var(--v2blue);
  color: var(--v2black);
  padding: 4px 16px;
  border-radius: 6px;
  font-size: 20px;
}

#musicplayer .playlist {
  position: absolute;
  top: 35px;
  right: 10px;
  background-color: var(--v2black);
  border: 1px solid var(--v2blue);
  border-radius: 5px;
  padding: 0;
  list-style: none;
  display: none;
  z-index: 10;
  max-height: 150px;
  overflow-y: auto;
}

#musicplayer .playlist.show {
  display: block;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

#musicplayer .playlist li {
  font-size: 12px;
  padding: 10px 15px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  cursor: pointer;
  transition: background 0.2s;
  color: var(--v2yellow);
}

#musicplayer .playlist li:hover {
  background-color: rgba(255,255,255,0.1);
}

#musicplayer .playlist li.active {
  color: var(--v2blue);
  font-weight: bold;
  border-left: 3px solid var(--v2blue);
}