@import url(/global.css);

img {
    pointer-events: none;
    user-select: none;
}

body {
    color: var(--text);
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-color: var(--base);
    min-height: 100vh;
    overflow-x: hidden;
}

.languages {
    margin-bottom: 20px;
}

strong {
    font-weight: 900;
    color: var(--text);
}

.info {
    margin-top: 50px;
    max-width: 600px;
    width: 100%;
}

#profile-picture {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 3px solid var(--lavender);
}

.name {
    font-size: 24px;
    margin-top: 10px;
}

.time,
.weather {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--subtext1);
}

.age {
    font-size: 18px;
    margin-top: 5px;
    color: var(--subtext1);
}

.hobbies {
    margin-top: 10px;
    font-size: 16px;
    color: var(--subtext1);
	display: block;
}

.cards {
    margin-top: 30px !important;
    background-color: var(--surface0);
    border: 2px solid var(--surface1);
    padding: 20px;
    border-radius: 10px;
    width: 600px !important;
    text-align: left;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.1s;
}

.cards:hover {
    border: 2px solid var(--surface2);
    box-shadow: 0 4px 10px rgba(12, 12, 12, 0.3);
}

footer {
    margin-bottom: 50px !important;
}

#status {
    font-weight: bold;
    margin: 10px 0 15px 10px;
    color: var(--subtext1);
}

.activity {
    display: flex;
    justify-content: left;
    text-align: left;
	backdrop-filter: brightness(0.9);
	border-radius: 5px;
	padding: 10px;
	flex-direction: column;
    gap: 0.5rem;
    border: 2px solid var(--surface1);
    transition: backdrop-filter 0.1s, border-color 0.1s;
}

.activity:hover {
    backdrop-filter: brightness(0.950);
    border-color: var(--surface2);
}

#activity-name {
    flex-grow: 1;
    text-align: left;
    color: var(--subtext1);
}

#activity-image {
    display: block;
    height: 36px;
    width: 36px;
}

.languages,
.contact,
.software {
    margin-top: 30px;
    width: 100%;
}

.language-item {
    display: block;
    background-color: var(--surface0);
    padding: 10px 15px;
    border-radius: 8px;
    transition: background-color 0.3s, transform 0.2s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    margin: 10px;
}

.language-item:hover {
    background-color: var(--surface1);
    transform: translateY(-5px);
}

.language-item:hover span,
.language-item:hover .language-name {
    color: var(--rosewater);
}

.name-percent-container {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

div[class="name-percent-container"] > img.image {
    width: 30px;
    height: 20px;
    border-radius: 2px;
}

.language-item .language-name {
    cursor: default;
    font-size: 18px;
    color: var(--subtext0);
    display: inline-block;
    margin-right: 10px;
}

.language-item .percent {
    font-size: 16px;
    color: var(--subtext0);
    font-weight: bold;
}

.percentage-bar {
    display: block;
    width: 100%;
    height: 8px;
    background-color: var(--surface2);
    margin-top: 10px;
    border-radius: 5px;
    position: relative;
}

.percentage-bar .bar-after {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 5px;
    background: linear-gradient(to right, var(--lavender) 0%, var(--mauve) 50%, var(--lavender) 100%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite ease-in;
}

.language-item:hover .percentage-bar .bar-after {
    background: linear-gradient(to right, var(--text) 0%, var(--lavender) 50%, var(--text) 100%);
    animation: shimmer 2s infinite ease-in;
    background-size: 200% 100%;
}

.tooltip {
    display: flex;
    justify-content: center;
    position: relative;
}

.tooltip::after,
a[class="skill-item tooltip"]::after,
a[class^="software-item tooltip"]::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 125%;
    background-color: var(--base);
    border: 1px solid var(--overlay0);
    color: var(--text);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    cursor: default;
}

a[class="skill-item tooltip"]::after {
    bottom: 110%;
}

a[class^="software-item tooltip"]::after {
    bottom: 100%;
    font-size: 16px;
}

.tooltip:hover::after {
    opacity: 1;
    visibility: visible;
}

.tooltip.slide-left::after {
    transform: translateX(-100%);
}

.tooltip.slide-right::after {
    transform: translateX(0%);
}

@keyframes shimmer {
    0% {
        background-position: 100% 0;
    }
    100% {
        background-position: -100% 0;
    }
}

#skills-div:not(#skills-div > h2) {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
    margin: 20px auto 0 auto;
    max-width: 600px;
}

.software:not(.software > h2) {
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-content: center;
    width: 100%;
    max-width: 600px;
}

.skill-item,
.contact-item,
.software-item {
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--surface0);
    padding: 15px;
    border-radius: 8px;
    transition: background-color 0.3s, transform 0.2s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    text-align: center;
    margin: 10px;
    box-sizing: border-box;
}

.skill-item {
    flex-direction: column;
    margin: 10px 20px;
}

.skill-item:hover,
.software-item:hover {
    background-color: var(--surface1);
    transform: translateY(-5px);
    filter: brightness(1);
}

.skill-item:hover .skill-name {
    color: var(--white);
}

.skill-item > .image,
.software-item > .image {
    margin-bottom: 10px;
    filter: brightness(0.75);
}

.skill-item:hover > .image,
.software-item:hover > .image {
    filter: brightness(1);
}

.image {
    height: 50px;
    border-radius: 5px;
    transition: 0.1s;
}

.software-item > .image {
    height: 50px !important;
    border-radius: 0px;
}

.skill-name {
    font-size: 16px;
    color: var(--subtext0);
    transition: 0.1s;
}

.contact-name,
.software-name {
    font-size: 16px;
    color: var(--subtext1);
    margin-left: 10px;
    transition: 0.1s;
}

.contact-item > .image,
.software-item > .image {
    margin-top: 5px;
}

.card-header {
    color: var(--text);
    text-align: left;
    width: 100%;
    grid-column: span 2;
}

.github-contact {
    background-color: var(--crust);
}

.github-contact:hover {
    background-color: var(--base);
}

.gitlab-contact {
    background-color: var(--yellow);
}

.gitlab-contact > span {
    color: var(--base);
}

.gitlab-contact:hover {
    background-color: var(--peach);
}

.instagram-contact {
    background-color: var(--lavender);
}

.instagram-contact > span,
.twitter-contact > span,
.youtube-contact > span,
.soundcloud-contact > span {
	filter: invert(1);	
}

.instagram-contact:hover {
    background-color: var(--mauve);
}

.twitter-contact {
    background-color: var(--blue);
}

.twitter-contact:hover {
    background-color: var(--lavender);
}

.youtube-contact {
    background-color: #f38ba8;
}

.youtube-contact:hover {
    background-color: #eba0ac;
}

.soundcloud-contact {
    background-color: var(--peach);
}

.soundcloud-contact:hover {
    background-color: var(--yellow);
}

@media (max-width: 768px) {
	.popup {
		width: 10%;
		padding: 15px;
	}
    .cards {
        width: 100% !important;
        max-width: 80% !important;
        padding: 15px;
        margin: 15px;
    }
    .language-item {
        margin: 10px;
    }
    .language-item img.image {
        width: 25px;
        height: 17px;
    }
    .language-item .language-name {
        font-size: 16px;
    }
    .language-item .percent {
        font-size: 14px;
    }
    a > img {
        height: 25px;
    }
    #song-cover {
        width: 60px;
        margin-right: 10px;
    }
    .top button,
    #song-url,
    #refresh {
        max-width: 28px;
        max-height: 28px;
    }
	.skill-item {
		gap: 5px;
		margin: 5px;
	}
}

@media (max-width: 600px) {
	.popup {
		width: 90%;
		padding: 15px;
		display: flex;
		flex-direction: column;
	}

	.song {
		display: flex;
		flex-direction: column;
		gap: 10px;
	}

	.song > div {
		display: flex;
		align-items: center;
		gap: 10px;
	}

	.song img {
		width: 48px;
		height: 48px;
	}

	.top {
		flex-direction: column;
		gap: 10px;
	}

	.top h3, .top button {
		width: 100%;
		text-align: center;
	}
    .cards {
        width: 100% !important;
        max-width: 80% !important;
        padding: 15px;
        margin: 15px;
    }
    .name {
        font-size: 20px;
    }
    .time,
    .age,
    .hobbies {
        font-size: 16px;
    }
    #profile-picture {
        width: 120px;
        height: 120px;
    }
    .stat-img {
        width: 100%;
    }
    a > img {
        height: 25px;
    }
    .song {
        flex-direction: column;
        align-items: flex-start;
    }
    .song > div:nth-of-type(2) {
        width: 100%;
        justify-content: flex-end;
        margin-top: 8px;
    }
    #song-cover {
        width: 56px;
        margin-right: 10px;
    }
    .top {
        flex-direction: column;
        align-items: flex-start;
    }
    .top button {
        margin-top: 8px;
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 400px) {
    .name {
        font-size: 18px;
    }
    .time,
    .age,
    .hobbies {
        font-size: 14px;
    }
    #profile-picture {
        width: 100px;
        height: 100px;
    }
    .cards {
        width: 100% !important;
        max-width: 80% !important;
        padding: 10px;
    }
    a > img {
        transform: scale(0.75);
    }
    .software-name {
        font-size: 10px;
    }
    .song {
        flex-direction: column;
        align-items: flex-start;
    }
    .song > div:nth-of-type(2) {
        width: 100%;
        justify-content: flex-end;
        margin-top: 10px;
    }
    #song-cover {
        width: 50px;
        margin-right: 8px;
    }
    .top {
        flex-direction: column;
        align-items: flex-start;
    }
    .top button {
        margin-top: 10px;
    }
}

div[class="stats cards"] {
    text-align: center;
}

div[class="stats cards"] > h2 {
    text-align: left;
}

div[class="stats cards"] > p {
    text-align: left;
    color: var(--subtext0);
}

div[class="cards sitemap shadow"] > h3,
div[class="cards sitemap shadow"] > h4 {
    font-weight: normal;
}

#overlay {
    z-index: 99999999999999;
    background-color: rgba(16, 16, 16, 0.733);
    width: 100%;
    height: 100%;
    position: fixed;
    left: 0;
    top: 0;
    backdrop-filter: blur(20px);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}

summary {
    font-size: large;
    user-select: none;
    cursor: pointer;
}

details > summary {
    list-style: none;
}

details > summary::-webkit-details-marker {
    display: none;
}

details > summary::before {
    content: "▶";
    display: inline-block;
    margin-right: 6px;
    transition: transform 0.2s ease;
}
  
details[open] > summary::before {
    transform: rotate(90deg);
}

br {
    margin: 4px 0;
}

.twitter-contact > img {
	color: var(--white);
}

#github-full {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.gitnamepfp {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

#github-full a {
	text-decoration: none;
	font-weight: 400 !important;
	color: var(--text) !important;
}

#github-full a:hover {
	text-decoration: underline;
	color: var(--white) !important;
}

.review:hover {
	background: var(--surface1);
}

#review-person {
	text-decoration: none;
}

#review-person:hover {
	text-decoration: underline;
}

#badges {
	display: inline-flex;
	padding: 3px;
	background-color: var(--surface0);
	border: 2px solid var(--surface1);
	align-items: center;
	justify-content: center;
	gap: 3px;
	border-radius: 8px;
	margin-bottom: 10px;
    max-width: 600px;
}

#badges > img {
	border-radius: 50%;
}

#show-deco {
	position: absolute;
	top: 20px;
	right: 20px;
	background-color: var(--surface0);
	color: var(--text);
	border: 2px solid var(--surface1);
	border-radius: 4px;
	cursor: pointer;
	z-index: 10000;
}

#deco {
	width: 100%;
	height: 100%;
    z-index: 998;
}

.lfmmain {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-evenly;
	gap: 20px;
}

.lfmmain > h4 {
	margin: 0 !important;
}

.lfmmain a {
	margin-top: 5px;
	text-decoration: none;
}

.lfmmain a:hover {
	text-decoration: underline;
}

.lfmmain img {
	border-radius: 12px;
	height: 128px;
}

.center {
	text-align: center;
}

#song {
	font-weight: bold;
	text-overflow: ellipsis;
}

.right {
	max-height: 180px;
	overflow-y: auto;
}

#lyrics {
	padding: 5px;
	border-radius: 4px;
	backdrop-filter: brightness(0.9)
}

#songinfo {
	margin: 15px 0;
	width: 100%;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	grid-template-rows: auto;
	gap: 1rem;
}

#songinfo > div {
	backdrop-filter: brightness(0.9);
	padding: 5px 10px;
	border-radius: 10px;
}

#songinfo > div > :not(div) {
	font-weight: bold;
	color: var(--sapphire);
}

#recentsmain {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: none;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px) brightness(0.5) grayscale(0.3);
    flex-direction: column;
    z-index: 1000;
}

#recents {
    width: 100%;
    max-width: 600px;
    max-height: 400px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    text-align: left;
    align-items: center;
    gap: 20px;
    border: 2px solid var(--overlay0);
    border-top: 1px solid var(--overlay2);
    padding: 2rem;
    backdrop-filter: blur(10px) brightness(0.5);
    scrollbar-width: thin;
    border-bottom-right-radius: 8px;
    border-radius: 8px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.top {
    max-width: 600px;
    width: 100%;
    backdrop-filter: blur(10px) brightness(0.5);
    border: 2px solid var(--overlay0);
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    border-bottom: 0;
    display: flex;
    justify-content: space-between;
    text-align: left;
    align-items: center;
    padding: 0 2rem;
}

#close-recents {
    background: transparent;
    text-align: center;
    display: flex;
    align-items: center;
    border: none;
    color: var(--white);
    cursor: pointer;
    z-index: 999;
}

#close-recents svg:hover {
    color: var(--red) !important;
}

#recents > a {
    border: 2px solid var(--overlay1); 
    border-radius: 8px; 
    max-width: 90%; 
    width: 100%; 
    padding: 15px; 
    display: flex; 
    flex-direction: row; 
    justify-content: left; 
    align-items: center; 
    gap: 10px; 
    text-decoration: none;
    color: var(--white) !important;
}

#recents > a:hover {
    backdrop-filter: brightness(1.5);
    border: 2px solid var(--overlay2); 
}

#recent-plays {
    border-radius: 8px;
    color: var(--white);
    background: linear-gradient(270deg, var(--mauve), var(--sapphire), var(--mauve));
    background-size: 200% 200%;
    cursor: pointer;
    padding: 6px 10px;
    margin: 5px;
    user-select: none;
    animation: bg 6s ease-in-out infinite;
    transition: 0.04s ease-in;
}

#recent-plays:hover {
    transform: scale(1.04);
}

@keyframes bg {
    0%   { background-position: 0% 50% }
    50%  { background-position: 100% 50% }
    100% { background-position: 0% 50% }
}

#scrobbles {
    margin: 4px;
}

.top-lfm {
    width: 100%;
    border-bottom: 2px solid var(--surface1);
    margin: 12px 0;
    padding-bottom: 12px;
}

.right-recent{
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column
}

.track-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
    width: 100%
}

.player {
    max-width: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.audio-player {
    display: flex;
    max-width: 60%;
    width: 100%;
    align-items: center;
    justify-content: center;
    background-color: var(--surface1);
    border: 2px solid var(--surface2);
    border-radius: 8px;
    padding: 8px;
    box-sizing: border-box;
    flex-direction: column;
    gap: 8px;
}

#preview-cover {
    width: 64px;
    height: 64px;
    background-color: var(--white);
    border-radius: 50%;
    margin-right: 12px;
}

.player-controls {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.song-info {
    margin-bottom: 4px;
    text-align: center;
}

#preview-artist {
    margin: 5px 0;
}

#preview-title {
    font-size: 16px;
    color: var(--white);
    margin: 8px 0;
    font-weight: bold;
}

#preview-artist {
    font-size: 14px;
    color: var(--text);
}

.progress-bar {
    width: 100%;
    height: 4px;
    background-color: var(--surface0);
    border-radius: 2px;
    overflow: hidden;
}

.progress {
    width: 50%;
    height: 100%;
    background-color: var(--mauve);
    transform-origin: left;
    animation: progress-animation 10s linear infinite;
}

.buttons {
    display: flex;
}

button {
    background: none;
    border: none;
    cursor: pointer;
    outline: none;
}

#playpause {
    font-size: 16px;
    color: var(--white);
    margin-right: 8px;
    transition: transform 0.2s ease-in-out;
}

#playpause:hover {
    transform: scale(1.2);
}

td, th {
    padding: 6px;
    transition: 0.2s;
    color: var(--white);
    border-radius: 4px !important;
}

td.tooltip {
    border-radius: 4px;
}

tr:hover, th:hover {
    backdrop-filter: brightness(1.1);
}

.table-header {
    font-weight: bold;
}

tr td:first-child {
    font-weight: bold
}

tr a:hover {
    color: var(--text);
}

#music-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
}

.contact-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

#projects-main {
    display: grid;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 8px;
    grid-template-columns: 2fr 2fr;
}

#projects-main > * {
    color: var(--white) !important;
    text-decoration: none !important;
}

#projects-main > a {
    transition: 0.2s;
}

#projects-main > a:hover {
    transform: scale(1.03);
}

thead > tr > th{
    border-radius: 0 !important;
}