@font-face {
    font-family:Montserrat-Medium;
    src:url(fonts/Montserrat-Medium.ttf);
}
@font-face {
    font-family:Montserrat-Regular;
    src:url(fonts/Montserrat-Regular.ttf);
}

:root {
    --black: #000000;
    --almost-black: #0b0b0b;
    --mostly-black: #323233;
    --grey: #808080;
    --mostly-white: #bfbfbf;
    --almost-white: #f2f2f2;
    --white: #ffffff;
    
    --transition-speed: 0.2s;
    
    --main-width: 80vw;
}

html {
    font-family: Montserrat-Regular;
    font-size: 20px;
    color: var(--almost-black);
    text-size-adjust: none;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

::-webkit-scrollbar {
    width: 1rem;
}
::-webkit-scrollbar-track {
    background: var(--almost-white);
}
::-webkit-scrollbar-thumb {
    background: var(--mostly-white);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--grey);
}

a:has(h1):hover{
    text-decoration: none !important;
}
h1 {
    padding-top: 2rem;
    font-family: Montserrat-Medium;
    font-size: 1.5rem;
    color: var(--almost-black);
    margin: 2rem auto 0.5rem !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
h1 span {
    flex-basis: 0;
    display: flex;
    justify-content: center;
}
h1 img {
    height: 1.5rem;
}
h3 {
    font-size: 1rem;
}
h3 {
    font-size: 1rem;
}

a {
    color: var(--almost-black);
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

.youtube{
    color: #f15152;
}
.instagram {
    color: #efc88b;
}
.facebook {
    color: #2191fb;
}
.github {
    color: #4f359b;
}
.discord {
    color: #7289da;
}
.python, .micropython {
    color: #3776ab;
}
.reddit {
    color: #ff4500;
}
.email {
    color: var(--grey);
}

.page-width {
    max-width: min(500px, 80vw);
    margin: 0 auto;
}
.intro-text {
    text-align: right;
    color: var(--mostly-black);
    margin-top: 0.5rem;
}
h2 {
    margin: 2rem auto 0.5rem !important;
    font-size: 1.15rem;
    color: var(--mostly-black);
}
.module {
    cursor: pointer;
    background-color: white;
}
.module > img {
    max-height: 15rem;
    display: block;
    width: calc(100% - 2rem);
    padding: 1rem;
    margin: 0.5rem 0;
    background-color: var(--almost-white);
}
.module h3, .module h4 {
    text-align: left;
    margin: 0.25rem 0;
}
.module h3 {
    color: var(--almost-black);
    margin-bottom: 0;
}
.module h4 {
    color: var(--mostly-white);
    margin-top: 0;
}
.module p {
    color: var(--grey);
    margin: 0 0 0.5rem;
}

.module > * {
    overflow: hidden;
    max-height: 50rem;
    opacity: 1;
    transition: max-height 0.2s, opacity 0.2s, font-size 0.2s, margin 0.2s;
}
.module.focused {
    outline: none;
}
.module.focused h3 {
    font-size: 1.5rem;
    margin-top: 0.5rem;
}
.module.focused h4 {
    font-size: 1.15rem;
}
.module:not(.focused) > *:not(h3, h4) {
    max-height: 0;
    opacity: 0;
    margin: 0 auto;
    padding: 0;
}
.module:not(.focused) {
    opacity: 0.5;
}

.link-list {
    font-size: 1rem;
    
}
.module-group, .link-list, .intro-text {
    margin: 0.5rem auto 3rem;
}

hr {
    margin: 0;
    height: 2px;
    background-color: var(--almost-white);
    border: none;
}
.button-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}
.button-container > * {
    display: flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    width: fit-content;
    height: 2rem;
    color: var(--mostly-black);
    border: 2px solid var(--mostly-black);
    box-sizing: border-box;
    font-size: 0.85rem;
    opacity: 0.75;
    /*border-radius: 5rem;*/
}
.button-container > *:hover {
    filter: opacity(0.5);
    text-decoration: none;
}
.button-container > *.github {
    border-color: #4f359b;
    color: #4f359b;
}
.button-container > *.buy {
    background-color: #ff4544;
    color: white;
    border-color: #ff4544;
}
.button-container > *.oshwa {
    padding: 0;
    border: none;
}
.button-container > *.oshwa img {
    height: 100%;
}
.button-container > span {
    border-color: var(--mostly-black);
    /*background-color: var(--almost-black);*/
    /*color: white;*/
}
.button-container > span:hover {
    filter: opacity(1) !important;
    cursor: default !important;
}
footer {
    text-align: center;
    color: var(--mostly-white);
    margin: 5rem auto 3rem !important;
}
