:root {
    --text: hsl(154, 20%, 93%); /* Main text elements */
    --text5: hsl(154, 20%, 93%, 5%); /* Background of boxes that are more factual (footer) */
    --text10: hsl(154, 20%, 93%, 10%); /* Background of boxes that are more factual (footer) */
    --text50: hsl(154, 20%, 93%, 50%); /* Used when text is hovered */
    --background: hsl(154, 20%, 7%); /* Page background */
    --primary: hsl(187, 69%, 49%); /* Key buttons or important box backgrounds */
    --primary5: hsl(187, 69%, 49%, 5%); /* Background of less important boxes (groups) */
    --primary20: hsl(187, 69%, 49%, 20%); /* Backround of boxes to be used against secondary10 */
    --secondary: hsl(325, 72%, 31%); /* Secondary box backgrounds */
    --secondary10: hsl(325, 72%, 31%, 10%); /* Background of boxes to be used against primary20 */
    --secondary20: hsl(325, 72%, 31%, 20%); /* Background of standalone boxes */
    --secondary30: hsl(325, 72%, 31%, 30%); /* Secondary buttons and interactable objects */
    --accent: hsl(51, 100%, 50%); /* Icons, graphics and few places with primary and secondary */

    --p: 1rem;
    --h5: 1.1rem;
    --h4: 1.3rem;
    --h3: 1.8rem;
    --h2: 3rem;
    --h1: 10rem;
}

* {
    box-sizing: border-box;
}

body {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    margin: 0 12%;
    width: auto !important;
    position: relative;
    background-color: var(--background);
    color: var(--text);
    line-height: 1.75;
    font-family: "Inter", sans-serif;
}

.mono-text {
    font-family: monospace !important;
}

#hero-title-container {
    width: 80vw;
    height: 10rem;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    display: flex;
    box-sizing: border-box;
    margin: 0 0 7em 0;
}

nav {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    align-items: center;
    position: fixed;
    z-index: 9997;
    border-bottom: 1px solid var(--text10);
    background-color: var(--background);
    padding: .5rem 7%;
}

nav a {
    display: flex;
    justify-content: center;
} 

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 8em;
    margin: 5em 0;
    width: 100%;
}

footer {
    display: grid;
    gap: 2em;
    border-radius: 10px;
    padding: 3em 5em;
    width: 100%;
    margin-bottom: 5em;
    background-color: var(--text5);
}

.corner-logo {
    width: 50px;
    border-radius: 2px;
}

.menu {
    display: flex;
    flex-direction: row;
    gap: 5em;
}

h1, h2, h3, h4, h5 {
    margin: 0;
}

p {
    margin: 0;
    font-size: var(--p);
}

.hero {
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 3em;
    margin: 10em 0 3em 0;
}

h1 {
    font-weight: 700;
    font-size: var(--h1);
    white-space: nowrap;
    line-height: 1;
}

.button-box {
    display: flex;
    flex-direction: row;
    gap: 1em;
    justify-content: center;
}

.main-button {
    padding: 0.5em 2em;
    border-radius: 7px;
    border: none;
    background-color: var(--primary);
    color: var(--background);
    line-height: 2.25;
    font-size: var(--p);
    cursor: pointer;
    font-family: "Inter", sans-serif;
    font-weight: 600;
}

.sub-button {
    padding: 0.5em 2em;
    border-radius: 7px;
    border: none;
    background-color: var(--secondary30);
    color: var(--text);
    line-height: 2.25;
    font-size: var(--p);
    cursor: pointer;
    font-family: "Inter", sans-serif;
}

h2 {
    text-align: center;
    font-weight: 700;
    font-size: var(--h2);
}

h3 {
    font-weight: 700;
    font-size: var(--h3);
}

.color-effect {
    background: linear-gradient(120deg, var(--primary), var(--accent));
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

span {
    display: inline-block;
}

#who-me {
    display: flex;
    flex-direction: column;
    gap: 2em;
}

.tile-row {
    display: flex;
    flex-direction: row;
    gap: 3em;
}

.tile {
    flex: 1 1 0;
    background-color: var(--primary5);
    text-align: center;
    padding: 2em;
    border-radius: 10px;
}

a {
    text-decoration: none;
    color: var(--text);
    transition: .25s;
}

a:hover{
    color: var(--text50);
}

.line {
    width: 100%;
    height: 1px;
    background-color: var(--text10);
    margin-top: 1em;
}

#footer-left {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    gap: 1em;
}

#footer-right {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    gap: 1em;
}

#footer-line {
    grid-column: 1/3;
    grid-row: 2;
}

.panel {
    display: flex;
    flex-direction: column;
    gap: 2em;
    width: 100%;
}

.panel-item {
    width: 100%;
    background-color: var(--secondary20);
    padding: 2em;
    border-radius: 10px;
    display: flex;
    flex-direction: row;
    gap: 2em;
}

.panel-item div{
    width: 50%;
}

.panel-accent {
    color: var(--accent);
}

.panel-more {
    float: right;
    color: var(--accent);
}

.panel-text {
    text-overflow: ellipsis;
    overflow: hidden;
    word-wrap: break-word;
}

.post-box {
    display: flex;
    flex-direction: column;
    gap: 2em;
    width: 100%;
}

.post-text-box {
    width: 100%;
    background-color: var(--primary5);
    padding: 2em;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.blog-index-row {
    width: 100%;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto;
    gap: 1em;
}

.loading-cover {
    width: 100%;
    height: 100%;
    position: absolute;
    background-color: var(--background);
}

.loading-dot {
    height: 25px;
    width: 25px;
    background-color: var(--accent);
    border-radius: 50%;
    position: absolute;
    top: calc(50vh - 25px);
    right: 50%;
    animation: floating 5s ease-in-out infinite;
}

@keyframes floating {
    0% {transform: translate(0, 0px); background-color: var(--accent);}
    16% {transform: translate(0, 50px); background-color: var(--primary);}
    32% {transform: translate(0, 0px); background-color: var(--secondary);}
    48% {transform: translate(0, 50px); background-color: var(--accent);}
    64% {transform: translate(0, 0px); background-color: var(--primary);}
    80% {transform: translate(0, 50px); background-color: var(--secondary);}
    100% {transform: translate(0, 0px);}
}


/* WEAVER */

#words-container {
    position: relative;
    gap: 5px;
    width: min-content;
    height: min-content;
    padding: 2em;
    margin-top: -5em;
    margin-bottom: 5em;
    border-radius: 10px;
    /* background-color: var(--secondary20); */
    display: none;
}

.word {
    display: flex;
    flex-direction: row;
    gap: 5px;
}

.letter
{
    font-family: "Inter", sans-serif;
    height: 95px;
    width: 95px;
    border-radius: 10px;
    background-color: var(--primary20);
    font-size: 80px;
    font-weight: 700;
    text-align: center;
    line-height: 90px;
}

#start div
{
    background-color: limegreen;
}

#end div
{
    background-color: indianred;
}

#spotify-login-button
{
    background-color: #1db954;
    font-weight: bold;
}