* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: 'Quicksand', sans-serif;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

canvas#particles {
    position: absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    z-index:-2;
}

.background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(35deg, rgba(48, 71, 64, 0.726), rgba(45, 54, 44, 0.685));
    filter: blur(4px);
    z-index: -1;
}

.logo {
    max-width: 500px;
    margin-bottom: 20px;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: -1;
    transition: background-color 0.5s ease;
}

.button {
	display: flex;
	align-items: center;
	gap: 25px;
	padding: 1rem 1.2rem;
	text-decoration: none;
	color: white;
	background: rgba(255, 255, 255, 0.1);
	backdrop-filter: blur(2px);
	-webkit-backdrop-filter: blur(2px);
	will-change: backdrop-filter;
	border-radius: 64px;
	border: 1px solid rgba(255, 255, 255, 0.2);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
	transition: transform 0.2s, background 0.2s;
	margin: 10px;
    cursor: pointer;
    font-weight: bold;
}
.button:hover {
	background: rgba(255, 255, 255, 0.2);
	transform: scale(1.03);
}
.button:active {
    transform: scale(0.98);
    transition: transform 0.1s;
}
.button_icon {
	width: 36px;
	height: auto;
    border-radius: 64px;
}

.little_margin {
	margin-top: 2rem;
}

h1 {
    font-size: 2.8em;
    margin-bottom: 15px;
}

h2 {
    font-size: 2em;
    margin-top: 0;
}

p {
    font-size: 1.5em;
}

#p2 {
    font-size: 1.2em;
}

.status {
    border-radius: 16px;
}

#close_button, #logout_button {
    cursor: pointer;
}

#user_info {
    background: linear-gradient(135deg, rgba(100, 67, 221, 0.3), rgba(253, 3, 86, 0.3));
}

#user-name {
    font-size: 1.5em;
    font-weight: bold;
}

#profile_modal {
    background-color: rgba(0, 0, 0, 0.2);
}

.profil_icon {
    border-radius: 20px;
}

#modal_overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 99;
    display: none;
    animation: fadeIn 0.3s ease forwards;
}

.modal {
    position: fixed;
    display: none;
    z-index: 100;
    align-items: center;
	gap: 25px;
	padding: 1rem 1.2rem;
	text-decoration: none;
	color: white;
	background: linear-gradient(135deg, rgba(100, 67, 221, 0.3), rgba(253, 3, 86, 0.3));
	backdrop-filter: blur(2px);
	-webkit-backdrop-filter: blur(2px);
	will-change: backdrop-filter;
	border-radius: 20px;
	border: 1px solid rgba(255, 255, 255, 0.2);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
	transition: transform 0.2s, background 0.2s;
	margin: 10px;
    animation: slideUp 0.3s ease forwards;
}
.model_content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

#modal_avatar {
    width: 96px;
    height: auto;
    border-radius: 20px;
    transition: transform 0.2s, background 0.2s;
}
#modal_avatar:hover {
    transform: scale(1.05);
}

.horizontal_buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.footer_span {
    font-size: 0.9em;
    font-weight: bold;
}

#profil_content {
    align-items: center;
    text-align: center;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
}

#bot_music, #player_modal {
    background: linear-gradient(135deg, rgba(67, 100, 221, 0.3), rgba(132, 140, 191, 0.3));
}

footer {
    position: fixed;
    bottom: 0;
    width: fit-content;
    padding: 10px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

progress {
    border: 0;
    height: 10px;
    border-radius: 20px;
}
.progress_bold {
    height: 20px;
}
progress::-webkit-progress-bar {
    border: 0;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
}
progress::-webkit-progress-value {
    border: 0;
    background: linear-gradient(135deg, #fc2b2b, #e6ff01);
    border-radius: 20px;
}
progress::-moz-progress-bar {
    border: 0;
    background: linear-gradient(135deg, #fc2b2b, #e6ff01);
    border-radius: 20px;
}

.content {
    padding: 15px;
    width: 100%;
    height: 100%;
    text-align: center;
    background: linear-gradient(35deg, rgba(221,67,119,0.3), rgba(131, 206, 120, 0.3));
    border-radius: 20px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    will-change: backdrop-filter;
}

#main_inner {
    flex: 1;
    margin: 20px 20px 0 20px;
    overflow: hidden;
    height: calc(100% - 20px);
}

.sub_menu {
    flex: 1;
    padding: 20px;
    margin-bottom: 20px;
    overflow: auto;
    text-align: left;
    background: linear-gradient(35deg, rgba(221,67,119,0.3), rgba(131, 206, 120, 0.3));
    border-radius: 20px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    will-change: backdrop-filter;
}

/* Layout for main content */
#separator {
    width: 0px;
    margin: 0;
    border-radius: 0px;
    align-self: stretch;
}

.inner_content {
    margin: 0;
    flex: 1;
    border-radius: 0 15px 15px 0;
}

#main_menu {
    min-width: 200px;
    display: flex;
    flex-direction: column;
    padding: 15px;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    border-radius: 15px;
}

#main_content {
    display: flex;
    width: 50vw;
    height: 40vw;
    text-align: center;
    background: linear-gradient(35deg, rgba(221,67,119,0.3), rgba(131, 206, 120, 0.3));
    border-radius: 20px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    will-change: backdrop-filter;
    gap: 0px;
    margin-bottom: 80px;
}

.empty_span {
    font-family: Quicksand, sans-serif;
    font-weight: bold;
    text-align: justify;
}

/* Layout for history page */
#history_item {
    overflow: hidden;
    display: flex;
	align-items: center;
	gap: 25px;
	padding: 1rem 1.2rem;
	text-decoration: none;
	color: white;
	background: rgba(255, 255, 255, 0.1);
	backdrop-filter: blur(2px);
	-webkit-backdrop-filter: blur(2px);
	will-change: backdrop-filter;
	border-radius: 64px;
	border: 1px solid rgba(255, 255, 255, 0.2);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
	transition: transform 0.2s ease, background 0.2s ease;
	margin: 10px;
    cursor: pointer;
    font-weight: bold;
}
#history_item:hover {
	background: rgba(255, 255, 255, 0.2);
	transform: scale(1.03);
}
#history_item:hover .link_span {
    transform: scale(1.05);
    margin-right: auto;
}
#history_item:active {
	transform: scale(0.98);
	transition: transform 0.5s;
}
.link_icon {
	width: 36px;
	height: auto;
    border-radius: 64px;
}
.link_span {
    font-family: Quicksand, sans-serif;
    font-size: 1.2em;
    overflow: hidden;
}
.link_url {
    font-family: Quicksand, sans-serif;
    font-size: 0.9em;
    color: #cccccc;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s ease;
}
.text_element {
    display: flex;
    flex-direction: column;
}
#history_item:hover .link_url {
    opacity: 1;
    max-height: 100px;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

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

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