/* Example */
/* #region */
/* #endregion */

/* These definitions should be available everywhere */
:root {
    --background: #141414;
    --background-lighter: #181818;
    --background-border: #242424;

    --text-strong: #fff;
    --text-normal: #cecece;
    --text-subtle: #9c9c9c;
 
    --accent: #1ead1c;
    --accent-secondary: #1ead1c; /* If changed, also update colour in /static/js/colours.js  */
    --accent-invert: #000;

    scrollbar-width: none;
    -ms-overflow-style: none;
}

::-webkit-scrollbar {
    display: none;
}

body {
    background-color: var(--background);
    font-family: Consolas, monospace;
    margin: 0;
    min-width: 350px;
}

/* Basic text modifiers */
/* #region */
h1 {
    margin-top: 0;
    color: var(--accent);
    font-size: 2.5em;
}

h2 {
    color: var(--accent-secondary);
    font-size: 1.8em;
}

h3 {
    color: var(--text-strong);
    font-weight: 700;
    font-size: 1.3em;
}

h4 {
    color: var(--text-normal);
    font-weight: 600;
    font-size: 1.2em;
}

p {
    font-family: "Segoe UI", Arial, sans-serif;
    color: var(--text-normal);
    font-size: large;
    margin: 0;
    line-height: 1.5em;
}

aside {
    color: var(--text-subtle);
    font-size: medium;
}

a {
    color: var(--text-strong);
    text-decoration: none;
}

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

@media (max-width: 1000px) {
    p {
        font-size: medium;
    }
}
/* #endregion */


/* Nav (universal)*/
/* #region */
nav {
    background: var(--background);
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    font-size: 1.2em;
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 0 80px;
}

#nav_logo {
    color: var(--accent);
    display: flex;
    align-items: center;
    font-size: 2rem;
}

nav ul {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 30px;
}

#inverted_icon {
    width: 2rem;
    height: 2rem;
    border-radius: 8px;
    filter: invert(1);
}

#colour_button1, #colour_button2 {
    background-color: transparent;
    border-radius: 8px;
    border-color: white;
    cursor: pointer;
}

/* Spinner pane */
#spinner_pane{
    position: fixed;
    overflow: hidden;
    top: 80px;
    right: 10px;
    height: 50px;
    width: 350px;

    border-radius: 8px;
    z-index: 1;
}

/* Mobile Menu */
/* #region */
#mobile_menu {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 30px;
}

#hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 25px;
    cursor: pointer;
    z-index: 10;
}

.bar {
    width: 100%;
    height: 3px;
    background-color: var(--text-strong);
}

/* hamburger X */
#hamburger.active .bar:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
}

#hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

#hamburger.active .bar:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
}

#colour_button1 {
    display: none;
}

@media (max-width: 1000px) { /* width should match rule in base.js for mobile menu code*/
    nav {
        padding: 0 30px;
    }

    #hamburger {
        display: flex;
    }

    nav ul {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--background);
        flex-direction: column;
        align-items: center;
        margin: 0;
        gap: 10px;
        z-index: 3;
    }

    nav ul.show {
        display: flex;
    }

    /* makes it easier to press on mobile */
    nav ul li a {
        display: block;
        padding: 15px;
    }

    #colour_button1 {
        display: block;
    }

    #colour_button2 {
        display: none;
    }
}

@media (max-width: 500px) {
    #spinner_pane {
        left: 50%;
        transform: translateX(-50%);
    }
}
/* #endregion */
/* #endregion */


/* Footer (universal) */
/* #region */
.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 0 80px;
    padding-top: 5em;
    padding-bottom: 4em;
}

/* Cute rounded symbols */
.footer_links {
    display: flex;
    justify-content: left;
    align-items: center;
    gap: 1em;
}

.footer_img {
    border-radius: 8px;
    filter: invert(1);
    width: 2rem;
}

#icon_img_round {
    border-radius: 100px;
    filter: invert(1);
    width: 2rem;
}

.footer_links img:hover {
    box-shadow: 0 0 10px 2px var(--accent-invert);
    transition: all 0.3s ease;
}

/* Contact Info */
.footer_info {
    display: flex;
    gap: 0.5rem;
    margin-top: 20px;
}

.footer_info img {
    height: 1.5rem;
    align-self: center;
}

/* Footer text */
.footer aside {
    width: 32%;
    text-align: right;
}

@media (max-width: 1000px) {
    .footer {
        padding-left: 30px;
        padding-right: 30px;
    }
    .footer aside {
        width: 40%;
    }
}

@media (max-width: 700px) {
    .footer {
        flex-direction: column-reverse;
        align-items: flex-start;
        gap: 5em;
    }
    .footer aside {
        width: 60%;
        text-align: left;
    }
}

@media (max-width: 500px) {
    .footer {
        gap: 4em;
    }
    .footer aside {
        width: 70%;
        font-size: 0.8em;
    }
}

/* #endregion */


/* Lines (requires lines_container) */
/* #region */
.lines_container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
}

.line {
    position: absolute;
    width: 10px;
    height: 3px;
    animation: moveLine 10s ease-in infinite;
    z-index: -1;
}

/* the magic pixel number here is the height of the banner */
@keyframes moveLine {
    0% {
        transform: translateY(77px);
        background-color: var(--accent);
        box-shadow: 0 0 10px 2px rgba(255, 255, 255, 0);
    }
    48% {
        transform: translateY(80px);
    }
    50% {
        width: 3px;
        height: 3px;
        background-color: var(--accent);
        box-shadow: 0 0 10px 2px rgba(255, 255, 255, 0.2);
    }
    70% {
        width: 2px;
        height: 10px;
    }
    100% {
        width: 2px;
        height: 10px;
        transform: translateY(100vh);
        background-color: var(--background);
        box-shadow: 0 0 10px 2px rgba(255, 255, 255, 0);
    }
}
/* #endregion */


/* Misc useful */
/* #region */
ul {
    padding: 20px;
}

.banner {
    margin: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 600px) {
    .banner {
        margin: 2rem;
    }
}

img:not(.footer_img), video {
    height: auto;
    min-width: 0;
    max-width: 100%;
    border-radius: 10px;
    object-fit: scale-down;
}

section {
    margin: auto;
    padding: 15px;
    max-width: 900px;
}
/* #endregion */


