@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

html, body {
  width: 100vw;
  height: 100vh;
  margin: 0;
  padding: 0;
  font-family: 'Roboto', sans-serif;
  background-color: darkslategrey;
  position: absolute;
  top: 0;
  left: 0;
}

body {
    display: flex;
}

pre {
    margin: 0;
}

.anchor-no-underline {
    text-decoration: none;
    color: white;
}

.homepage-anchor {
    font-size: x-large;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    max-height: 3.5rem;
}

/* Table Stuff */

.repos-table-header {
    display: flex;
    color: white;
    font-size: medium;
    padding: 0.5rem 0 0.5rem 0.5rem;
    background-color: #aaaaaa0f;
    justify-content: space-between;
    align-items: center;
    overflow: hidden;
    margin-left: 10%;
    margin-right: 10%;
    height: 2rem;
}

.repo-display-header {
}


.repos-table-container {
    display: flex;
    flex-direction: column;
    margin-left: 10%;
    margin-right: 10%;
    margin-bottom: 3dvh;
    border-spacing: 0rem 0.25rem;
    width: 80%;
    box-sizing: border-box;
    max-height: 80%;
    overflow-y: scroll;
}

.table-cell {
    display: table-cell;
    padding-inline: 0.5rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.table-row {
    display: grid;
    gap: 4px;
    grid-template-columns: 3fr 4fr;
    background: slategrey;
    width: 100%;
}

.table-row:hover {
    background: #505050;
}

/* Repo Display */

.repo-display {
    display: block;
    margin-left: 10dvw;
    margin-right: 10dvw;
    margin-bottom: 3dvh;
    max-height: 90%;
    width: 80%;
    flex: 1;
}

.repo-display-header {
    display: flex;
    color: white;
    font-size: medium;
    padding: 0.5rem 0 0.5rem 0.5rem;
    background-color: #aaaaaa0f;
    justify-content: space-between;
    align-items: center;
    overflow: hidden;
    max-height: 2rem;
}

.info-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.25rem .5rem;
    background-color: #f0f0f00f;
    max-height: 100%;
}

.repo-reload-btn {
    padding: .5rem;
    cursor: pointer;
    color: white;
}

.repo-reload-btn:hover {
    cursor: pointer;
    background-color: #d0d0d00f;
}

.repo-display-body {
    display: grid;
    gap: 0.25rem;
    grid-template-columns: 1fr 4fr;
    background-color: #aaaaaa0f;
    height: 95%;
}

.repo-file-tree {
    height: 100%;
    width: 100%;
}

.repo-file-tree-dir:hover {
    background-color: #a0a0d0;
    color:  #303030;
    cursor: pointer;
}

.repo-file-tree-file:hover {
    background-color: #a0c0c0;
    color:  #303030;
    cursor: pointer;
}

.repo-file-tree-bin:hover {
    background-color: #a0d0a0;
    color:  #303030;
    cursor: pointer;
}

.repo-file-tree-dir, .repo-file-tree-file, .repo-file-tree-bin {
    height: fit-content;
    width: auto;
    color: white;
    padding-left: 2px;
    padding-right: 2px;
}

.repo-file-tree-file {
    background-color: #709090;
}

.repo-file-tree-bin {
    background-color: #409040;
}

.repo-file-tree-dir {
    background-color: #505090;
}

.repo-file-content-text {
    height: calc(100% - 1.5rem);
    width: calc(100% - 1.5rem);
    text-align: start;
}

.repo-file-content-panel {
    height: 100%;
    width: 100%;
    max-height: 100%;
    overflow-y: scroll;
    border: 2px lightgray;
}

.repo-file-content {
    height: 100%;
    display: flex;
    flex-grow: 2;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(32, 32, 32, 0.5);
}

.loading-div {
    width: 200px;
    height: 100px;
    background-color: gray;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}
