@font-face {
  font-family: 'porky';
  src: url('font/PORKYS_.TTF') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'star7';
  src: url('font/STAR7.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@keyframes scrolling {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 0 100%;
  }
}

body {
  background-image: url('images/pastel-purple-checkerboard-tartan-gingham-plaid-checkered-pattern-background-vector.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  background-attachment: fixed;
  margin: 0;
  padding: 0;
  color: #000000;
  cursor: url('images/pearl.png'), auto; /* Custom leaf cursor for the entire page */
  animation: scrolling 20s linear infinite; /* Add scrolling animation */
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none; /* Ensures the overlay doesn't block interactions */
  background: linear-gradient(to top, #5f34a4, #5f34a4, #9241fc, #9241fc); /* Updated colors */
  background-size: 100% 4px; /* Increased height for thicker lines */
  background-repeat: repeat-y; /* Ensures the pattern repeats vertically */
  opacity: 0.2; /* Increased opacity for more visibility */
  z-index: 1000; /* Ensure it overlays all content */
}

/* Profile styles */
.mainside {
  display: flex; /* Use flexbox for layout */
  flex-direction: column; /* Stack children vertically */
  align-items: center; /* Center children horizontally */
  justify-content: center; /* Center children vertically */
  text-align: center; /* Center text */
  margin: 20px; /* Optional: Add some margin */
}

.profile {
  margin-bottom: 20px; /* Space between profile image and text */
}

.profileimg {
  width: 150px; /* Set a fixed width for the profile image */
  height: auto; /* Maintain aspect ratio */
  border-radius: 50%; /* Optional: Make the image circular */
  cursor: pointer; /* Change cursor to pointer on hover */
}

.profiletext {
  font-family: 'porky', sans-serif; /* Ensure consistent font */
  color: #333; /* Text color */
  text-align: center; /* Center the text */
}

.profiletext .star7 {
  font-family: 'star7', cursive !important;
}

/* Scrollbar styles */
::-webkit-scrollbar {
  width: 20px;
}

::-webkit-scrollbar-track {
  background: linear-gradient(to right, #756AB6, #AC87C5, #E0AED0);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: #d9bff7;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: #756AB6;
}

.media-player {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px; /* Space above the media player */
    background-color: rgba(255, 255, 255, 0.8); /* White background with low opacity */
    border-radius: 10px; /* Rounded corners */
    padding: 10px; /* Padding around the content */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Shadow for depth */
    position: absolute; /* Position it absolutely for dragging */
    top: 20px; /* Initial position */
    left: 20px; /* Initial position */
    cursor: move; /* Change cursor to indicate draggable */
}

.player-controls {
    display: flex;
    gap: 10px; /* Space between buttons */
}

button {
    padding: 10px 15px;
    font-size: 16px;
    cursor: pointer;
    border: none;
    border-radius: 5px;
    background-color: #756AB6; /* Button background color */
    color: white; /* Button text color */
}

button:hover {
    background-color: #AC87C5; /* Button hover color */
}

.track-info {
    margin-top: 10px; /* Space above track info */
    font-family: 'porky', sans-serif; /* Consistent font */
    color: #333; /* Text color */
}

.album-cover {
    display: flex;
    justify-content: center;
    
    margin-bottom: 20px; /* Space between album cover and text */
}

.album-cover-img {
    width: 200px; /* Adjust size as needed */
    height: 200px; /* Adjust size as needed */
    border-radius: 10%; /* Rounded corners */
    transition: transform 0.1s ease; /* Smooth transition for scaling */
}

.player {
    position: fixed;
    top: 50%;
    left: 30px;
    transform: translateY(-50%);
    width: 250px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    z-index: 999; /* Set below the scanline overlay */
    font-family: 'porky', sans-serif; /* Change font to porky */
}

.track-art {
    width: 200px; /* Set the width of the container */
    height: 200px; /* Set the height of the container */
    border-radius: 50%; /* Make the container circular */
    overflow: hidden; /* Hide any overflow to maintain the circular shape */
    margin: 0 auto 20px; /* Center the container horizontally and add space below */
    display: flex; /* Use flexbox to center the image */
    justify-content: center; /* Center the image horizontally */
    align-items: center; /* Center the image vertically */
    background-color: #f0f0f0; /* Optional: Add a background color for better visibility */
}

.track-art-img {
    width: 100%; /* Make the image fill the container */
    height: 100%; /* Make the image fill the container */
    object-fit: cover; /* Ensure the image covers the container without distortion */
    transition: transform 0.1s ease; /* Smooth transition for scaling */
}

.buttons {
    display: flex;
    justify-content: space-between; /* Space between buttons */
}

.top-buttons {
    display: flex;
    gap: 10px; /* Space between buttons */
}

.prev-track, .playpause-track, .next-track {
    cursor: pointer; /* Ensure the cursor changes to pointer on hover */
}

.slider_container {
    display: flex;
    align-items: center; /* Center items vertically */
    margin-bottom: 10px; /* Space between slider containers */
}

input[type="range"] {
    -webkit-appearance: none; /* Remove default styling */
    width: 100%; /* Full width */
    height: 5px; /* Height of the slider */
    background: #ddd; /* Background color of the slider */
    border-radius: 5px; /* Rounded edges */
    outline: none; /* Remove outline */
    margin: 0 10px; /* Space around the slider */
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none; /* Remove default styling */
    appearance: none; /* Remove default styling */
    width: 15px; /* Width of the thumb */
    height: 15px; /* Height of the thumb */
    border-radius: 50%; /* Make it circular */
    background: #756AB6; /* Color of the thumb */
    cursor: pointer; /* Change cursor on hover */
}

input[type="range"]::-moz-range-thumb {
    width: 15px; /* Width of the thumb */
    height: 15px; /* Height of the thumb */
    border-radius: 50%; /* Make it circular */
    background: #756AB6; /* Color of the thumb */
    cursor: pointer; /* Change cursor on hover */
}

.current-time, .total-duration {
    font-size: 14px; /* Font size for time labels */
    color: #000; /* Color for time labels */
}

/* Profile Info Boxes */
.about-me-title {
    position: fixed;
    top: 20px;
    right: 40px;
    font-family: 'star7', cursive;
    font-size: 50px;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    z-index: 2;
    margin: 0;
}

.interests-box,
.favorites-box {
    position: fixed;
    right: 20px;
    border-radius: 20px;
    z-index: 1;
    background-color: rgba(117, 106, 182, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 20px;
    box-sizing: border-box;
    color: #fff;
    overflow: hidden;
    width: 90vw;
    max-width: 450px;
    min-width: 300px;
    height: 350px; /* Increased height */
}

.interests-content,
.favorites-content {
    width: 100%;
    height: 100%;
}

.interests-box {
    top: 100px; /* Positioned below title */
}

.favorites-box {
    top: 470px; /* 100px (interests top) + 350px (interests height) + 20px (gap) */
    overflow-y: auto; /* Enable vertical scrolling */
}

/* Custom scrollbar for favorites box (same as main1) */
.favorites-box::-webkit-scrollbar {
    width: 20px;
}

.favorites-box::-webkit-scrollbar-track {
    background: linear-gradient(to right, #756AB6, #AC87C5, #E0AED0);
    border-radius: 10px;
}

.favorites-box::-webkit-scrollbar-thumb {
    background: #d9bff7; 
    border-radius: 10px;
}

.favorites-box::-webkit-scrollbar-thumb:hover {
    background: #756AB6; 
}

.star7 {
  font-family: 'star7', cursive;
}

.porky-font {
  font-family: 'porky', cursive;
}

@media (max-width: 700px) {
    .about-me, .favorites-box {
        width: 90vw;
        max-width: 100vw;
        min-width: 200px;
    }
    .interests-box {
        width: 90vw;
        max-width: 100vw;
        min-width: 150px;
        top: 320px;
    }
    .favorites-box {
        top: 540px;
    }
}

.category-box {
    background-color: rgba(255, 255, 255, 0.9);
    color: #000;
    padding: 8px 12px;
    margin: 8px 0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.category-box p {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
}

/* Styling for capitalized category names with colors */
.anime-category p::before {
    content: "ANIME - ";
    color: #FF6B6B;
    font-weight: bold;
}

.music-category p::before {
    content: "MUSIC - ";
    color: #4ECDC4;
    font-weight: bold;
}

.books-category p::before {
    content: "BOOKS - ";
    color: #45B7D1;
    font-weight: bold;
}

.movies-category p::before {
    content: "MOVIES - ";
    color: #96CEB4;
    font-weight: bold;
}

.games-category p::before {
    content: "GAMES - ";
    color: #FFEAA7;
    font-weight: bold;
}

.characters-category p::before {
    content: "CHARACTERS - ";
    color: #DDA0DD;
    font-weight: bold;
}

.colors-category p::before {
    content: "COLORS - ";
    color: #98D8C8;
    font-weight: bold;
}

.food-category p::before {
    content: "FOOD - ";
    color: #F7DC6F;
    font-weight: bold;
}

.music-artists-category p::before {
    content: "MUSIC ARTISTS - ";
    color: #BB8FCE;
    font-weight: bold;
}

.visual-artists-category p::before {
    content: "VISUAL ARTISTS - ";
    color: #85C1E9;
    font-weight: bold;
}

.youtubers-category p::before {
    content: "YOUTUBERS - ";
    color: #F8C471;
    font-weight: bold;
}

.animals-category p::before {
    content: "ANIMALS - ";
    color: #82E0AA;
    font-weight: bold;
}

.hobbies-category p::before {
    content: "HOBBIES - ";
    color: #F1948A;
    font-weight: bold;
}

.something-title {
    position: fixed;
    top: 35px; /* Increased from 20px to move it down slightly */
    right: 490px; /* Same as something-box positioning */
    font-family: 'star7', cursive;
    font-size: 35px; /* Back to 35px */
    line-height: 1.2; /* Makes text taller without increasing width */
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    z-index: 2;
    margin: 0;
    animation: floatText 3s ease-in-out infinite;
}

@keyframes floatText {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
    100% {
        transform: translateY(0);
    }
}

.something-box {
    position: fixed;
    top: 100px; /* Same as interests box start */
    right: 490px; /* 20px (favorites right) + 450px (favorites max-width) + 20px (gap) */
    width: auto; /* Variable width to fit content */
    max-width: 400px; /* Maximum width */
    min-width: 250px; /* Minimum width */
    height: 720px; /* 470px (favorites top) + 350px (favorites height) - 100px (interests top) = 720px */
    border-radius: 20px;
    z-index: 1;
    background-color: rgba(117, 106, 182, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 20px;
    box-sizing: border-box;
    overflow: hidden;
}

.something-content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.something-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
}

.moi-box {
    position: fixed;
    top: 150px; /* Same as something-box */
    left: 470px; /* Moved more to the right from 40px */
    width: 400px; /* Increased from 300px */
    max-width: 450px; /* Increased max-width */
    min-width: 300px; /* Increased min-width */
    height: 720px; /* Same height as something-box */
    border-radius: 20px;
    z-index: 1;
    padding: 20px;
    box-sizing: border-box;
    overflow: hidden;
}

.moi-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 100%;
}

.moi-image {
    width: 100%;
    height: 680px; /* Increased from 650px to make image bigger */
    object-fit: contain; /* Changed back to contain so image isn't cropped */
    border-radius: 10px;
}

.moi-text {
    color: #fff;
    font-family: 'porky', cursive;
    font-size: 40px;
    margin: 0;
    text-align: center;
}
