@media (prefers-color-scheme: light) {
    :root {
        --text: black;
        --accent: black;
        --bg-main: white;
        --bg-repo: white;
        --bg-user: white;
    }
}

@media (prefers-color-scheme: dark) {
    :root {
        --text: white;
        --accent: white;
        --bg-main: black;
        --bg-repo: black;
        --bg-user: black;
    }
}

body {
  text-align: center;
  font-family: "Courier New", "Monaco","Helvetica","Papyrus";
    /*display: flex;*/
    align-items: center;
    justify-content: center;
    margin: 0;
    background-color: var(--bg-main);
    color: var(--text);
    font-size: 14px;
}

img {
	max-width: 100%;
}

.overlay {
	position: absolute;
	top: 9.7%;
	left;0;
	opacity: 0;
	transition: .5s ease;
}

.column:hover .overlay {
  opacity: 0.5;
}
.container {
    /*display: flex;*/
    justify-content: center;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    width: 90%;
    max-width: 1280px;
    text-align: center;
}

.hide {
    /* '!important' is to make sure that when we add the class using JS, it takes precendence */
    display: none !important;
}

h1 {
    color: var(--accent);
    margin-bottom: 4px;
}

small {
    width: 100%;
    text-align: center;
    display: block;
    margin-bottom: 20px;
}

h2 {
    width: 100%;
    color: var(--text);
    margin: 0;
}

img {
    border: 2px solid var(--accent);
    box-shadow:
        0 0px 6px var(--accent),
        0 0px 6px var(--accent);
    max-width: 100%;
    height: auto;
}

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

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

.github-img {
    width: 45px;
    margin-right: 8px;
}

ul {
    list-style: none;
    padding: 0;
}

.user-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    background-color: var(--bg-user);
    color: var(--text);
    font-size: 16px;
    padding: 1em;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

.user-info figure {
    width: 90%;
    max-width: 200px;
}

.user-info img {
    border-radius: 100%;
}

.user-info div {
    display: flex;
    text-align: center;
    flex-wrap: wrap;
    align-items: center;
    width: 100%;
    padding-left: 5%;
}

.user-info div p {
    width: 100%;
    margin: 0;
    padding: 0;
    border-bottom: 1px solid var(--text);
    padding-bottom: 18px;
}

.filter-repos,
input {
    background: var(--bg-user);
    width: 50%;
    border-radius: 20px;
    min-width: 300px;
    margin-top: 1em;
    padding: 1em;
    margin-bottom: 1em;
    border: 2px solid var(--accent);
    color: var(--text);
    text-align: center;
}

.repos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    background-color: var(--bg-repo);
    margin-top: 0;
    padding: 2em;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    margin-bottom: 4em;
}

h3 {
    margin: 4px;
    width: 100%;
    text-align: center;
    color: var(--accent);
    text-overflow: ellipsis;
    overflow: hidden;
}

.repo-list {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    text-overflow: clip;
}

.repo-list li {
    width: 100%;
    min-height: 200px;
    border-radius: 10px;
    margin: 1em 0;
    border: 1px solid var(--accent);
    padding: 1em;
    text-align: center;
    background-color: var(--bg-user);
    text-overflow: clip;
}

.repo-list li:hover {
    background-color: var(--bg-main);
    box-shadow:
        0 3px 6px var(--accent),
        0 3px 6px var(--accent);
}

.link-btn {
    display: inline-block;
    margin: 1em 0.5em;
    padding: 10px 20px;
    background: var(--bg-main);
    border-radius: 30px;
    border: 2px solid var(--accent);
    color: var(--text);
}

.link-btn:hover {
    background: var(--accent);
    border: 2px solid var(--text);
    transform: scale(1.1);
}

.repo-list p {
    padding: 0.5em;
    margin: 0.5em 0;
}

@media (min-width: 700px) {
    .user-info div {
        width: 45%;
        text-align: left;
    }

    .repo-list {
        justify-content: space-between;
    }

    .repo-list li {
        width: 48%;
    }
}

@media (max-width: 700px) {
    .user-info div p {
        margin: 10px;
    }
}

@media (min-width: 1200px) {
    .repo-list li {
        width: 32%;
	text-overflow: clip;
    }
}

.repo-name {
    font-size: 1.75em;
}

.repo-descriptopn {
    font-size: 1em;
}

span {
    margin: 0 0.5em;
}
