:root {
    --hc-red: #ec3750;
    --hc-orange: #ff8c37;
    --hc-yellow: #f1c40f;
    --hc-green: #33d6a6;
    --hc-cyan: #5bc0de;
    --hc-blue: #338eda;
    --hc-purple: #a633d6;
    --hc-muted: #8492a6;


    --background-dim: #23232b;
    --background-dark: #17171d;
    --background-darker: #0f0f13;

    --text-bright: #f1f8f4;
    --text-normal: #e1e1e1;
    --text-dim: #9f9f9f;

    --nav-bar-height: 250px;
    --nav-bar-pinned-height:calc(var(--nav-bar-height) / 4);
}

body {
    background: var(--background-dark);
    width: 100vw;

    height: min-content;

    /* box-sizing: border-box; */
    margin: 0;
    color: var(--text-bright);
    scroll-behavior: smooth;

    align-content: baseline;

    font-family: 'Bree Serif';
    overflow-y: scroll;
    overflow-x: hidden;
}

/* #top-padding {
    height: var(--nav-bar-height);
} */

nav {
    z-index: 5;
    position: sticky;
    top: -1px;
    height: var(--nav-bar-height);
    
    background: linear-gradient(30deg, var(--hc-muted) 20%, var(--hc-red) 50%, var(--hc-orange) 100%);
    background-size: 200vw;
    background-position: -100vw;
    
    display: grid;
    grid-template-columns: 0px repeat(1, 1fr) 0px;
    align-content: center;
    
    padding: 20px 50px;

    font-size: 90px;
    font-family: 'Lilita One';
    
    transition: 150ms;
    box-sizing: border-box;
}

nav.pinned {
    --logo-padding: 25px;
    height: var(--nav-bar-pinned-height);
    background-position: 0vw;
    transition: 300ms;
    font-size: 32px;
    padding: 0px 20px;
    grid-template-columns: calc(var(--nav-bar-pinned-height) - var(--logo-padding)) repeat(1, 1fr) max-content;

}

nav div {
    overflow: hidden;
}

nav #logo {
    height: calc(var(--nav-bar-pinned-height) - var(--logo-padding));
    background: url('../assets/jmss-hc-logo-64x64.png');
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    align-self: center;
}


nav #title {
    display: grid;
    align-content: center;
    user-select: none;
    cursor: pointer;
}

nav #buttons {
    position: relative;
    display: flex;
    flex-direction: row;
    justify-items: right;
    /* grid-template-columns: 30% 5% 30% 5% 30%; */
    margin-right: 10px;
    box-sizing: border-box;
}
nav.pinned #buttons {
    overflow: visible;
}


nav #tools {
    display: grid;
    justify-content: right;
    visibility: hidden;
}

nav #tools button {
    --user-pfp: url('../assets/default-pfp.png');
    height: calc(var(--nav-bar-pinned-height) - var(--logo-padding));
    aspect-ratio: 1;
    background: var(--user-pfp);
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    border: none;
    opacity: 0.8;
}

nav #tools button:hover {
    opacity: 1;
}

.seperator.coloured {
    height: 4px;
    width: 100%;
    position: relative;
    margin: 5px 0px 20px 0px;
    background: linear-gradient(30deg, var(--hc-red) 0%, var(--hc-yellow) 100%);
}

nav.pinned #message-banner {
    visibility: hidden;
}

nav #buttons ul {
	list-style:none;
	position:relative;
	float:left;
	margin:0;
	padding:0;
    /* align-items: center ;
    display: grid; */
}

nav #buttons ul a {
    /* width: min-content; */
	text-decoration:none;
	padding:0 15px;
    height: 100%;
    opacity: 0.7;
    color: var(--text-bright);
    border: none;
    box-sizing: border-box;
    align-content: center;
    justify-content: center;
    display: grid;
    font-size: 1.6rem;
    font-family: 'Lilita One';
    cursor: pointer;
    height: var(--nav-bar-pinned-height);
}

nav #buttons ul a:hover {
    opacity: 1;
}


nav #buttons ul li {
	position:relative;
	float:left;
	margin:0;
	padding:0
}



nav #buttons ul ul {
	display:none;
	position:absolute;
	top:var(--nav-bar-pinned-height);
	left:0;
	background:var(--background-dim);
	padding:0
}

nav #buttons ul ul li {
	float:none;
	width:200px
}

nav #buttons ul li:hover > ul
{   
    overflow: visible;
	display:block
}


#message-banner {
    --banner-bg: #3d8426;
    position: absolute;
    background: var(--banner-bg);
    color: var(--text-bright);
    font-size: 1.5rem;
    height: min-content;
    border-radius: 0px 0px 10px 0px;
    top: -2px;
    padding: 10px;
    display: flex;
}

#message-banner button {
    position: relative;
    height: 20px;
    aspect-ratio: 1;
    background: none;
    border: 1px solid white;
    color: white;
    font-family: 'Lilita One';
    align-self: center;
    border-radius: 100%;
    margin-left: 10px;
}

section {
    margin-top: var(--nav-bar-pinned-height);
    /* position: relative; */
    padding: 0px 50px;
    min-height: 100vh;
}
section div {
    position: relative;
}

section header {
    font-size: 3rem;
    font-family: 'Lilita One';
    color: var(--text-normal);
}

section.inactive {
    display: none;
}


section#welcome .content {
    display: grid;
}

section#welcome  #intro {
    display: grid;
    grid-template-columns: 65% 35%;
}

section#welcome  #intro .image {
    height: 300px;
    background: url('../assets/pretend-club.png');
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
}

section .text-content {
    font-size: 1.4rem;
}

section#rules ul {
    list-style:decimal;
}

section#rules ul ul {
    list-style:circle;
    color: var(--text-dim);
}


section#rules .content {
    margin-bottom: 50px;
}

.gradient-text {
    color: transparent;
    text-decoration: none;
    background-image: linear-gradient(to right bottom, var(--hc-red) 0%, var(--hc-purple) 100%);
    background-clip: text;

}
.gradient-text.hc {
    background-image: linear-gradient(to right bottom, var(--hc-red) 0%, var(--hc-orange) 100%);
}
.gradient-text.jmsshc {
    background-image: linear-gradient(140deg, var(--hc-green) 0%, var(--hc-blue) 25%, var(--hc-purple) 65%, var(--hc-muted) 90%);

}

.site-footer {
    position: relative;
    top: 100%;
    /* height: 175px; */
    background-color: var(--background-darker);
    display: grid;
    padding: 20px;
    width: 100vw;
    box-sizing: border-box;
}

.site-footer #about span {
    color: var(--hc-muted);
    font-size: 14px;
}
.site-footer #about p {
    margin-top: 0;
}

.site-footer .container {
    display: grid;
}

.site-footer .social-icons a {
    text-decoration: none;
    color: var(--hc-muted);
}