:root[data-theme="light"] 
{
  --text: oklch(18.50% 0.025 156.06);
  --background: oklch(96.28% 0.019 162.94);
  --primary: oklch(46.29% 0.103 153.81);
  --secondary: oklch(82.89% 0.139 157.40);
  --accent: oklch(79.14% 0.202 151.96);
}
:root[data-theme="dark"] 
{
  --text: oklch(96.12% 0.017 159.12);
  --background: oklch(18.80% 0.027 159.26);
  --primary: oklch(85.39% 0.097 159.00);
  --secondary: oklch(57.70% 0.137 153.38);
  --accent: oklch(79.14% 0.202 151.96);
}

*{
    margin: 0;

    padding: 0;

    box-sizing: border-box;
}

html
{
    height: 100%;
    min-width: 100%;
    background-color: var(--background);
    color: var(--text);
}

body
{
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-top: 10em;
    width: 100%;
}

.container
{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    flex-direction: column;
}

.title 
{
    display: flex;
    flex-direction: row;
    align-items: center;
    max-width: 90%;
    width: 700px;
    padding: 20px;
    background: transparent;
    border-radius: 20px;
    border: 2px solid var(--accent);
    border-bottom: none;
    border-bottom-left-radius: 0px;
    border-bottom-right-radius: 0px;
    color: var(--primary);
    
}



.title img
{
    width: 100px;
    height: 100px;
    margin-right: 30px;
}



.request 
{
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 90%;
    width: 700px;
    padding: 20px;
    background-color: var(--secondary);
    border-radius: 20px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.linkbar
{
    display: flex;
    justify-content: center;
    width: 90%;
    max-width: 700px;
    height: 32px;
}

#link-inp
{
    flex-grow: 1;
    border: none;
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
    padding-left: 15px;
    padding-right: 15px;
    background-color: var(--background);
    color: var(--text);
    outline: none;
    
}

#search
{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    border: none;
    background-color: var(--accent);
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
}

#search:hover
{
    background-color: var(--primary);
}

#search svg
{
    width: 24px;
    height: 24px;
    fill: var(--background);
}

.info
{
    margin-top: 20px;
    width: 90%;
    max-width: 700px;
    color: var(--text);
    text-align: center;
}

#show-tracktime 
{
    display: flex;
    justify-content: left;
    align-items: center;
    width: 90%;
    margin-top: 24px;
    text-align: left;
}

#show-tracktime input
{
    min-height: 24px;
    min-width: 24px;
    appearance: none;
    background-color: var(--background);
    border: 2px solid var(--accent);
    border-radius: 50%;
    display: grid;
    place-content: center;
    margin-right: 10px;

}

#show-tracktime input::before 
{
  content: "";
  width: 0.9em;
  height: 0.9em;
  transform: scale(0);
  box-shadow: inset 1em 1em var(--accent);
  transform-origin: bottom left;
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}

#show-tracktime input:checked::before
{
    transform: scale(1);
} 

#show-tracktime input:hover
{
    background-color: var(--secondary);
}

.track-time
{
    display: flex;
    align-items: center;
    background-color: var(--background);
    border-color: var(--accent);
    border-radius: 20px;
    margin-top: 24px;
    height: 32px;
    width: 90%;
    padding-left: 10px;
    padding-right: 10px;
    font-size: 1.5em;
    justify-content: center;
}

#show-tracktime:not(:has(input:checked)) + .track-time
{
    display: none;
}

.track-time input
{
    -moz-appearance: textfield;
    -webkit-appearance: none;   
    appearance: none;
    flex-grow: 1;
    border: none;
    outline: none;
    background: none;
    text-align: right;
    color: var(--text);
    padding-right: 15px;
    font-size: 1em;
    
    
}

.track-time input::-webkit-outer-spin-button,
.track-time input::-webkit-inner-spin-button
{
    -webkit-appearance: none;
    margin: 0;
}

.response
{
    position: relative;
    margin-top: 20px;
    display: flex;
    flex-direction: row;
    align-items: center;
    max-width: 90%;
    width: 700px;
    padding: 20px;
    background-color: var(--secondary);
    border-radius: 20px;
    margin-bottom: 200px;
}

.song 
{
    
    display: flex;
    flex-direction: row;
    width: 100%;
}

.image
{
    width: 200px;
    height: 200px;
    aspect-ratio: 1 / 1;
}

.image img
{
    width: 100%;
    height: 100%;
}

.text
{
    margin-left: 20px;
    width:calc(100% - 200px)
}

.name
{
    font-size: 2em;
}

.artist
{
    font-size: 1.5em;
    margin-bottom: 20px;
    width: 100%;
    color: var(--primary);
}

.link 
{
    color: var(--text);
    word-wrap: break-word;
    width: 80%;
    flex-grow: 1;
}

.link-div
{
    display: flex;
    align-items: center;
    justify-content: left;
    width: 100%;
    margin-top: 10px;
    gap: 10px;
}

.link-div svg
{
    width: 24px;
    height: 24px;
    fill: var(--text);
}

.link-div svg:hover
{
    fill: var(--primary);
    cursor: pointer;
}



.loadingData
{
    position: absolute;
    bottom: 0;
    right: 0;
    display: flex;
    gap: 20px;
    margin-right: 30px;
    margin-bottom: 20px;
    align-items: center;
    justify-content: center;
}

.loadingText
{
    color: var(--text);
}

.throbber
{
    display: flex;
    align-items: center;
    justify-content: center;
    border: 5px solid;
    border-color: var(--accent) transparent transparent transparent;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    text-align: center;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
    
}
@keyframes rSpin {
    to {
        transform: rotate(-360deg);
    }
    
}

.percentage
{
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9em;
    animation: rSpin 1s linear infinite;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 90%;
    height: 90%;
}


.message
{
    display: flex;
    align-items: center;
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: red;
    color: var(--text);
    padding: 10px 20px;
    border-radius: 10px;
    z-index: 1000;
    animation: slideFadeIn 0.5s ease-out forwards;
    width: 95%;
    max-width: 700px;
}

@keyframes slideFadeIn {
    0% {
        opacity: 0;
        transform: translate(-50%, -30px);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

@keyframes slideFadeOut {
    0% {
        opacity: 1;
        transform: translate(-50%, 0);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -30px);
    }
}

.message svg
{
    min-width: 24px;
    min-height: 24px;
    max-width: 24px;
    max-height: 24px;
    fill: var(--text);
    margin-right: 10px;
}

.message.success
{
    background-color: green;
}

.message.warning
{
    background-color: rgb(255, 136, 0);
}

.message.error
{
    background-color: red;
}

.impressum
{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--secondary);
    color: var(--text);
    padding: 10px 20px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    z-index: 1000;
    width: 95%;
    font-size: 0.8em;
    max-width: 700px;
}

.impressum a
{
    color: var(--accent);
    text-decoration: underline;
}

.impressum button
{
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.impressum svg
{
    width: 24px;
    height: 24px;
    fill: var(--accent);
}

.share
{
    position: absolute;
    width: 32px;
    height: 32px;
    border: 2px solid var(--accent);
    border-radius: 50%;
    background-color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    top: 20px;
    right: 20px;
}

.share:hover
{
    background-color: var(--primary);
    cursor: pointer;
}

.share svg
{
    width: 20px;
    height: 20px;
    fill: var(--text);
}

@media screen and (max-width: 700px)
{
    body
    {
        margin-top: 5em;
    }

    .image
    {
        min-width: 75px;
        width: 75px;
        height: 75px;
    }

    .text
    {
        height: 150px;
        width:calc(100% - 95px)
    }

    .name
    {
        font-size: 1.5em;
    }

    .artist
    {
        font-size: 1em;
        
    }

    .link 
    {
        font-size: 0.9em;
    }

    
}

.hidden
{
    display: none;
}
