:root {
    --textColor: white;
    --darkerTextColor: hsl(from var(--textColor) h s calc(l - 20));
    --font: monospace;
    --background: #1F1F1F;
}

html {
    /*FONT:*/   
    font-family: var(--font);
    color: var(--textColor);
    font-size: 18px; 
    font-weight: 400;

    /*BACKGROUND:*/
    background: var(--background);
    
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

body {
    margin: 10px auto; /*auto - center the linktree*/
}

img#profilePicture {
    width: 130px;
    height: 130px;
    display: block;
    margin: 20px auto;
    border-radius: 50%; /*round image*/
}

#userName {
    font-weight: 700; /*bold*/
}

#description {
    margin: 20px auto;
    padding-left: 35px;
    text-align: left;
}

#audioPlayer {
    transform: scale(0.9);
    position: absolute;
    top: 0;
    right: 0;
    margin: 0.2em;
}

#audioThumbnail {
    animation: rotation 10s infinite linear;
    animation-play-state: paused;
    height: 60px;
    width: auto;
    float: left;
    border-radius: 50%;
    cursor: pointer;
}

@keyframes rotation {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(359deg);
    }
}

#audioTitle {
    display: none;
    float: left;
    vertical-align: middle;
    padding-left: 1em;
    padding-right: 1em;
}

.audioControlButton {
    background: var(--background);
    border: none;
    font-size: 2em;
    margin: 0.2em auto;
    padding-left: 0.2em;
    float: right;
    cursor: pointer;
}

#playPauseButton {
    display: none;
}

main {
    width: auto;
    max-width: 500px;
    margin: 15px auto;
    clear: both;
}

/*LINKS*/
main a.link {
    /*LINKS TEXT*/
    color: var(--textColor);
    text-decoration: none;
    text-align: center;

    /*LINKS BORDER:*/
    border: 2px solid var(--textColor);
    border-radius: 10px;

    display: block; /*each link takes a whole line*/
    margin: 10px;
    padding: 10px; 
    min-width: 180px;
}

main a.darker {
    color: var(--darkerTextColor);
    border: 1px solid var(--darkerTextColor);
}

main a.cutout {
    border: 1px dashed var(--darkerTextColor);
}

main a .description {
    display: block;
    font-size: 0.55em;
    padding-top: 0.5em;
}

main p#legacyLinks {
    display: none;
    color: gray;
    font-size: 0.75em;

    #legacyLinksHeader {
        text-decoration: underline dotted;

        a {
            color: inherit;
            text-decoration: none;
        }
    }

    #legacyLinksDescription {
        display: block;
        max-width: 180px;
        font-size: 0.75em;
        color: gray;
        margin-left: 12px;
        padding-left: 10px;
        padding-top: 0.5em;
    }

    a.link {
        color: gray;
        border: 1px solid gray;
    }
}

footer {
    color: dimgray;
    font-size: 0.65rem;
    padding-top: 1rem;
}
