:root {
    --clr-bg: #efefef;
    --clr-bg-tint: hsl(from var(--clr-bg) calc(h + 10) calc(s + 5) calc(l - 10));
    --clr-txt-tint: hsl(from var(--clr-txt) h calc(s + 5) calc(l + 70));
    --clr-txt: black;
    --clr-thm: hsl(from lightblue calc(h + 10) s calc(l - 5));
    --time: 300ms;
}
html {
    scroll-behavior: smooth;
}
body {
    background: var(--clr-bg-tint, var(--clr-bg));
    color: var(--clr-txt);
    height: 100vh;
    height: calc(100svh - 2rem);
}
html, body {
    line-height: 1.4;
}
h1 {
    text-align: center;
}
h2 {
    font-size: unset;
    font-weight: 300;
    font-family: sans-serif;
    text-align: center;
}
nav {
    /* Remove this as soon as nav is needed */
    display: none;
    background: var(--clr-thm);
    margin: 0;
    padding: 0;
    max-height: 4ch;
}
main {
    margin: auto;
    width: min(90svmax, 100%);
}
menu, ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.menu-item {
  	min-height: 8rem;
  	aspect-ratio: 4/3;
    background: var(--clr-bg);
    border: 2px solid var(--clr-txt-tint, transparent);
    border-radius: 2rem;
    transition: border var(--time) ease-in-out, background-color var(--time) ease-in-out;
}
.menu-item:hover,
.menu-item:focus-within,
.menu-item.gamepad-focus {
    border-color: transparent;
    background-color: var(--clr-thm);
}
.listcontain {
    padding: .5rem 1rem;
}
.headline {
  	max-width: 18ch;
}
.listcontain, .img-line {
    width: fit-content;
    margin-inline: auto;
}
.menu-item-icon {
    max-width: 4ch;
    aspect-ratio: 1;
    border: .25ch solid transparent;
    border-radius: 50%;
    transition: transform var(--time) ease-in-out, border var(--time) ease-in-out;
}
.menu-item-icon:hover, 
.menu-item:focus-within .menu-item-icon {
    border-color: var(--clr-txt);
    transform: scale(1.2);
}
.embed {
    max-width: calc(100% - 4rem);
    margin: 0 auto 2rem;
}
.embed-item {
	min-height: min(6.5rem, 100%);
	aspect-ratio: 13/4;
}
img {
    width: 100%;
    height: auto;
}
footer {
	text-align: end;
}
footer svg path {
	fill: white;
}
footer svg path.connected {
	fill:green;
}
@media (width > 23rem) {
	@supports (display: grid) {
        menu {
            grid-gap: 3rem;
            grid-template-columns: repeat(auto-fit, minmax(min(20ch, 100%), 1fr));
        }
          body, menu, .menu-item, .embed, .embed-item a {
            display: grid;
            place-items: center;
        }
	}
}
@supports (object-fit: cover) {
    .menu-item-icon {
        object-fit: cover;
    }
}
@supports (color-scheme) {
    html, body {
        color-scheme: light dark;
    }    
}
@media(prefers-color-scheme: dark) {
    :root {
        --clr-bg: black;
        --clr-txt: white;
        --clr-bg-tint: hsl(from var(--clr-bg) calc(h - 10) calc(s - 5) calc(l + 10));
        --clr-txt-tint: hsl(from var(--clr-txt) calc(h + 15) calc(s + 5) calc(l + 10));
    }
	footer svg path {
		fill: black;
	}
}
