/*
  ___ ___  _ __ ___  _ __ ___   ___  _ __
 / __/ _ \| '_ ` _ \| '_ ` _ \ / _ \| '_ \
| (_| (_) | | | | | | | | | | | (_) | | | |
 \___\___/|_| |_| |_|_| |_| |_|\___/|_| |_|
 */
:root {
    --color-gray: #a0a0a0;
    --color-primary: #030303;
    --color-primary-text: #fefff8;
    --color-secondary: #1db2d1;
    --color-tertiary: #184f92;
    --font-family: "Helvetica Neue", sans-serif;
    --font-size: 14pt;
}

* {
    box-sizing: border-box;
    font-family: var(--font-family);
    font-size: var(--font-size);
    margin: 0;
    padding: 0;
    text-decoration: none;
}

body {
    align-items: center;
    background: var(--color-primary);
    color: var(--color-primary-text);
    cursor: url("/assets/images/cursor_03.png"), auto;
    display: flex;
    height: 100%;
    justify-content: center;
    line-height: 1.5rem;
    word-spacing: 0.25rem;
    margin: 0;
    padding: 0;
    position: absolute;
    width: 100%;
}

a,
button {
    align-items: center;
    border: 2px solid var(--color-primary-text);
    border-radius: 0.5rem;
    box-shadow: 0 0.25rem var(--color-gray);
    color: var(--color-primary-text);
    display: flex;
    font-weight: bold;
    height: 32px;
    justify-content: center;
    margin: 0.5rem;
    padding: 1rem 0.95rem;
    position: relative;
    width: fit-content;
}

a:hover,
button:hover {
    box-shadow: 0 0.125rem var(--color-gray);
    top: 0.125rem;
}

div {
    align-items: center;
    display: flex;
    flex-flow: column;
    justify-content: center;
}

h1 {
    align-items: center;
    color: var(--color-secondary);
    display: flex;
    font-size: 32pt;
    margin: 1rem;
    text-align: center;
}

h1 > img {
    margin-right: 1rem;
}

h2 {
    color: var(--color-primary-text);
    font-size: 24pt;
    margin: 1rem;
    text-align: center;
}

p {
    font: 24pt;
}

.avatar {
    height: 48px !important;
    left: -6px;
    position: relative;
    top: 3px;
}

.button,
.info,
.text {
    align-items: center;
    background: var(--color-primary-text);
    border: 2px solid var(--color-primary-text);
    border-radius: 0.5rem;
    color: var(--color-primary);
    display: flex;
    font-weight: bold;
    height: 32px;
    justify-content: center;
    margin: 0.5rem;
    padding: 1rem;
    position: relative;
    width: fit-content;
}

.button > img,
.info > img {
    height: 20px;
    padding: 0 4px;
    margin-right: 8px;
}

.info {
    box-shadow: 0 0.125rem var(--color-gray);
    top: 0.125rem;
}

.table {
    align-items: center;
    display: grid;
    grid-template-columns: 1fr 320px 1fr;
    justify-content: center;
    margin: 1rem;
    padding: 1rem;
}

.profile > span,
.table > div,
.table > span {
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 0.5rem;
    color: var(--color-primary-text);
    display: flex;
    font-weight: bold;
    height: 48px;
    line-height: 48px;
    margin: 0.5rem;
    padding: 1rem;
}

#btn-connect-with-strava {
    background-image: url("/assets/vendor/strava.svg");
    background-position-y: -30px;
    background-size: 190px 96px;
    width: 190px;
}

#btn-open-discord {
    width: 150px;
}

#intro {
    height: calc(100% - 48px);
    margin: auto;
    opacity: 0.3;
    position: absolute;
    width: calc(100% - 48px);
    z-index: -1;
}

#profile {
    display: flex;
    width: fit-content;
}

#intro-actions,
#profile,
#profile-actions {
    flex-flow: row;
}

#sudoria-logo,
#sudoria-story {
    padding: 1rem;
}

#sudoria-story {
    text-align: center;
}

/*
                 _     _ _             __ _          _
 _ __ ___   ___ | |__ (_) | ___       / _(_)_ __ ___| |_
| '_ ` _ \ / _ \| '_ \| | |/ _ \_____| |_| | '__/ __| __|
| | | | | | (_) | |_) | | |  __/_____|  _| | |  \__ \ |_
|_| |_| |_|\___/|_.__/|_|_|\___|     |_| |_|_|  |___/\__|
 */

main {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 100px 1fr 100px;
}

video {
    display: none;
}

.table {
    margin: 1rem;
    width: 100%;
}

#sudoria-logo {
    width: 350px;
}

#profile-name {
    width: 305px;
}

#sudoria-story {
    width: 400px;
}

/*
     _           _    _
  __| | ___  ___| | _| |_ ___  _ __
 / _` |/ _ \/ __| |/ / __/ _ \| '_ \
| (_| |  __/\__ \   <| || (_) | |_) |
 \__,_|\___||___/_|\_\\__\___/| .__/
                              |_|
 */
@media only screen and (min-width: 768px) {
    main {
        align-items: center;
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr 100px;
        justify-content: center;
        margin: auto;
        width: calc(100% - 400px);
    }

    video {
        display: block;
    }

    .table {
        margin: auto;
    }

    #sudoria-logo {
        width: 360px;
    }

    #profile-name {
        width: 365px;
    }

    #sudoria-story {
        width: 460px;
    }
}
