/* Import Roboto font from Google */
@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap");

/* Color Variables */
:root {
    --primary-color: #138bff;
    --secondary-color: #004fa6;
    --background-color: #000000;
    --text-color: #ffffff;
}

/* Size Variables */
:root {
    --small-size: 12px;
    --medium-size: 16px;
    --large-size: 24px;
}

/* Radius Variables */
:root {
    --small-radius: 4px;
    --medium-radius: 8px;
    --large-radius: 12px;
}

/* Font Variable */
:root {
    --font-family-roboto: "Roboto", sans-serif;
}

/*? Tippys */

.tippy-box[data-theme~="main"] {
    z-index: 9999;
    background-color: #707070;
    color: var(--text-color);
}

.tippy-box[data-theme~="main"] .tippy-content {
    font-size: var(--medium-size);
    font-family: var(--font-family-roboto), sans-serif;
    text-align: center;
}

.tippy-box * {
    z-index: 9999;
}

.tippy-box[data-theme~="main"][data-placement^="top"] > .tippy-arrow::before {
    z-index: 9999;
    border-top-color: #707070;
}

.tippy-box[data-theme~="main"][data-placement^="bottom"] > .tippy-arrow::before {
    z-index: 9999;
    border-bottom-color: #707070;
}

.tippy-box[data-theme~="main"][data-placement^="left"] > .tippy-arrow::before {
    z-index: 9999;
    border-left-color: #707070;
}

.tippy-box[data-theme~="main"][data-placement^="right"] > .tippy-arrow::before {
    z-index: 9999;
    border-right-color: #707070;
}


/* Global Styles */
body {
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: var(--font-family-roboto), sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-color);
    margin: 0 0 16px 0;
}

h1 {
    font-size: 3em;
    font-weight: 700;
    margin: 1rem;
    text-align: center;
}

h2 {
    font-size: 1.75em;
    font-weight: 500;
}

h3 {
    font-size: 1.5em;
    font-weight: 400;
}

h4 {
    font-size: 1.25em;
    font-weight: 700;
}

h5 {
    font-size: 1em;
    font-weight: 500;
}

h6 {
    font-size: 0.875em;
    font-weight: 400;
}

/* Button Styles */
button {
    background-color: var(--primary-color);
    border: none;
    border-radius: var(--medium-radius);
    color: var(--text-color);
    cursor: pointer;
    font-size: var(--medium-size);
    padding: 10px 20px;
    transition: background-color 0.3s;
}

button:hover {
    background-color: var(--primary-color);
}

.i-btn {
    background-color: #4a4a4a;
    border: none;
    border-radius: 50%;
    color: var(--text-color);
    cursor: pointer;
    font-size: var(--medium-size);
    padding: 5px;
    transition: transform 0.3s, background-color 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.i-btn:hover {
    background-color: var(--primary-color);
    transform: scale(1.1);
}

/* Flexbox Utilities */
.flex-row {
    display: flex;
    flex-direction: row;
}

.flex-column {
    display: flex;
    flex-direction: column;
}

#name {
    color: var(--primary-color);
}

.columns {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    grid-template-rows: 1fr;
    gap: 0;
    grid-template-areas: ". .";
    min-height: calc(100vh - 3em - 3rem);
    height: 100%;
    padding-inline: 0.5rem;
    align-items: center;
    justify-items: center;
}

.card {
    border-radius: var(--large-radius);
    margin: -0.5rem 0.5rem 0.5rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: center;
    width: calc(100% - 2 * 0.5rem);
    min-height: calc(100vh - 3em - 3rem);
    height: 100%;
    border: none;
}

.card.videoPlayer {
    background-color: rgb(36, 36, 36);
    aspect-ratio: unset;
}

@media (max-width: 850px) {
    h1 {
        font-size: 2em;
    }

    .columns {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr 1fr;
        gap: 1rem;
        grid-template-areas:
      "."
      ".";
        height: 100%;
        padding-inline: 0.5rem;
        align-items: center;
        justify-items: center;
    }

    .card {
        width: 100%;
        margin: -0.5rem 0.5rem 0.5rem;
        height: 100%;
        min-height: unset;
    }
}

.video {
    width: calc(100% - 2 * 24px);
    aspect-ratio: 16 / 9;
    border-radius: var(--medium-radius);
    margin: 24px 24px 10px;
}

.video video {
    width: 100%;
    border-radius: var(--medium-radius);
    aspect-ratio: 16 / 9;
    object-fit: contain;
    background-color: black;
}

.video video:fullscreen,
.video video:-webkit-full-screen,
.video video:-moz-full-screen {
    aspect-ratio: 16 / 9;
    height: 100vh;
    object-fit: contain;
    background-color: black;
}

.desc {
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: center;
    padding-bottom: 0.5rem;
}

.desc p {
    margin: 0;
    padding: 0;
    width: calc(100% - 2 * 24px);
    height: unset;
    overflow-y: auto;
}

.desc .heading {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 8px;
}

.desc .heading img {
    height: 2rem;
    border-radius: var(--small-radius);
}

.desc .heading h2 {
    margin: 0;
}

.footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    margin-top: 1rem;
}

.footer p {
    margin: 0;
    opacity: 0.4;
    text-align: center;
    max-width: calc(100% - 2 * 0.5rem);
}

.footer a {
    color: white;
    transition: opacity 0.3s;
}

.footer a:hover {
    opacity: 0.6;
}

span.nb {
    display: inline-block;
}

.loadingOverlay,
.errorOverlay,
.playOverlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: var(--medium-radius);
    transition: opacity 0.2s;
    opacity: 1;
    flex-direction: column;
    z-index: 2;
}

.loadingOverlay p,
.errorOverlay p,
.playOverlay p {
    font-size: 1.2rem;
    margin: 0;
    text-align: center;
}

.playOverlay {
    background-color: rgba(0, 0, 0, 1);
    z-index: 3;
    cursor: pointer;
}

.playOverlay img {
    transition: transform 0.3s;
}

.playOverlay:hover img {
    transform: scale(1.1);
}

.playOverlayHideBar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 20%;
    background-color: rgb(0, 0, 0);
    border-radius: var(--medium-radius);
}

.loadingOverlay {
    flex-direction: row;
    justify-content: space-between;
    align-items: start;
    z-index: 4;
    background: none;
    pointer-events: none;
    display: none;
}

.loadingOverlay > div,
.loadingOverlay > p {
    margin: 2rem;
}

.errorOverlay {
    color: red;
    z-index: 5;
    display: none;
}

.errorOverlay p a {
    color: red;
    transition: color 0.3s;
    text-align: center;
}

.errorOverlay p a:hover {
    color: rgb(255, 0, 0, 0.6);
}

.errorOverlay .errorMessage {
    text-align: center;
}

.errorOverlay button {
    background-color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: var(--medium-radius);
    color: var(--text-color);
    cursor: pointer;
    font-size: var(--medium-size);
    padding: 10px 20px;
    transition: background-color 0.3s;
    margin-top: 10px;
}

.errorOverlay button:hover {
    background-color: var(--secondary-color);
}

/* Loader Element */
@-webkit-keyframes scaling-dots {
    0%,
    100% {
        transform: scale(0);
    }
    40%,
    60% {
        transform: scale(1);
    }
}

@keyframes scaling-dots {
    0%,
    100% {
        transform: scale(0);
    }
    40%,
    60% {
        transform: scale(1);
    }
}

.scaling-dots {
    display: grid;
    height: 15px;
    grid-gap: 10px;
    grid-template-columns: repeat(5, 10px);
}

.scaling-dots div {
    -webkit-animation: scaling-dots 1s infinite ease backwards;
    animation: scaling-dots 1s infinite ease backwards;
    background: white;
    border-radius: 100%;
    height: 15px;
    width: 15px;
}

.scaling-dots div:nth-child(1) {
    -webkit-animation-delay: 0.1s;
    animation-delay: 0.1s;
}

.scaling-dots div:nth-child(2) {
    -webkit-animation-delay: 0.2s;
    animation-delay: 0.2s;
}

.scaling-dots div:nth-child(3) {
    -webkit-animation-delay: 0.3s;
    animation-delay: 0.3s;
}

.scaling-dots div:nth-child(4) {
    -webkit-animation-delay: 0.4s;
    animation-delay: 0.4s;
}

.scaling-dots div:nth-child(5) {
    -webkit-animation-delay: 0.5s;
    animation-delay: 0.5s;
}

.ti-music-heart {
    font-size: 2rem;
    color: var(--primary-color);
    transition: transform ease-in-out 0.3s,
    color ease-in-out 0.3s;
    display: block;
    width: min-content;
    align-self: center;
    justify-self: center;
    line-height: 2;: 2;
    overflow: visible;
    z-index: 2;
    margin: 0 auto;
}

.ti-music-heart:hover {
    transform: rotate(20deg) scale(1.2);
    color: var(--secondary-color);
}