@import url(https://fonts.googleapis.com/css?family=Open+Sans:400italic,400,700);

*, *::before, *::after { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
}

body {
  background-color: #4F2582;
}

/* Homepage styles */

:root {
  --ink: #111827;
  --muted: #374151;
  --quiet: #d1d5db;
  --paper: #f8f6ef;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html body.home,
body.home {
  background: var(--paper) !important;
  color: var(--ink) !important;
  font-family: var(--sans) !important;
  font-size: 14px !important;
  line-height: 1.65 !important;
  min-height: 100%;
}

.home-container {
  max-width: 980px;
  margin: 0 auto;
  padding: 72px 32px 80px;
}

.home-header {
  margin-bottom: 20px;
}

.home-header h1 {
  border: 0 !important;
  color: var(--ink) !important;
  font-family: var(--sans) !important;
  font-size: 18px !important;
  line-height: 1.35 !important;
  letter-spacing: 0;
  margin: 0 !important;
  padding: 0 !important;
  font-weight: 800 !important;
}

.home a,
.home a:visited {
  color: var(--ink) !important;
  text-decoration: underline !important;
  text-decoration-thickness: 0.08em !important;
  text-underline-offset: 0.12em !important;
}

.home a:hover {
  color: var(--muted) !important;
}

.home-intro,
.home-section {
  max-width: 760px;
}

.home-intro {
  margin-bottom: 28px;
}

.home-intro p {
  color: var(--muted) !important;
  font-family: var(--sans) !important;
  font-size: 14px !important;
  line-height: 1.65 !important;
  margin: 0 !important;
}

.home-section {
  margin-top: 28px;
}

.home-section h2 {
  border: 0 !important;
  color: var(--ink) !important;
  font-family: var(--sans) !important;
  font-size: 18px !important;
  line-height: 1.2 !important;
  font-weight: 800 !important;
  margin: 0 0 18px !important;
  padding: 0 !important;
}

.link-list {
  color: var(--muted) !important;
  font-family: var(--sans) !important;
  font-size: 14px !important;
  line-height: 1.65 !important;
  margin: 0 !important;
  padding-left: 1.25em !important;
}

.link-list li {
  padding-left: 0.35em !important;
  margin: 0 0 6px !important;
}

.link-list li::marker {
  color: var(--quiet);
}

.project-list li,
.writing-list li,
.tweet-list li {
  display: list-item;
}

.project-list span,
.writing-list span,
.tweet-list span {
  color: var(--muted);
  display: block;
  font-size: 14px !important;
  line-height: 1.45 !important;
  margin-top: 1px !important;
}

.project-list .project-year {
  color: var(--muted) !important;
  display: inline !important;
  font-size: 14px !important;
  line-height: inherit !important;
  margin: 0 !important;
}

#substack-posts {
  color: var(--muted) !important;
  font-size: 14px !important;
}

@media (max-width: 760px) {
  body.home {
    font-size: 14px;
  }

  .home-container {
    padding: 40px 24px 64px;
  }

  .home-header {
    margin-bottom: 18px;
  }

  .home-intro {
    margin-bottom: 24px;
  }
}

.header{
  height: 10%;
}

.header>h1{
  margin: auto;
  text-align: center;
  font-family: 'Dosis', sans-serif;
  color: #205060
}

.bracket-container{
  display: flex;
  flex-direction: row;
  height: 90%;
  width: 100%;
}

.bracket-level{
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  height: 100%;
  width: 100%;
  flex-grow: 1;
  transition: all ease .5s;
}

.bracket-level:hover{
  width: 200%;
}

.bracket-matchup{
  width: 90%;
  margin: auto;
  max-height: 50px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.bracket-time{
  height: 45%;
  width: 100%;
  background-color: #b54b4b;
  color: #F0F8FF;
  box-shadow: rgba(0, 0, 0, 0.3) 0 1px 3px;
  display: flex;
  flex-direction: row;
  transition: all ease .5s;
}

.bracket-team{
  height: 45%;
  width: 100%;
  background-color: #F5F5F5;
  box-shadow: rgba(0, 0, 0, 0.3) 0 1px 3px;
  display: flex;
  flex-direction: row;
  transition: all ease .5s;
}

.bracket-name{
  font-family: 'Open Sans', sans-serif;
  width: 75%;
  font-size: .75em;
  padding: .2em;
  line-height: 1.5em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #2B2B2B;
  text-align: center;
}

.bracket-time-name{
  font-family: 'Open Sans', sans-serif;
  width: 75%;
  font-size: .75em;
  padding: .2em;
  line-height: 1.5em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #F0F8FF;
  text-align: center;
}

.bracket-score{
  font-family: 'Open Sans', sans-serif;
  font-size: .75em;
  padding: .2em;
  line-height: 1.5em;
  white-space: nowrap;
  overflow: hidden;
  color: #2B2B2B;
  text-align: center;
}

.winner>.bracket-name, .winner>.bracket-score{
  font-weight: bold;
  color: #00A300;
}

.bracket-team:hover{
  background-color: #E8E8E8;
  height: 100%;
  transition: all ease .5s;
}

.bracket-team:hover>.bracket-name{
  overflow: none;
  text-overflow: clip;
  white-space: normal;
  line-height: 1em;
  align-self: center;
  width: 100%;
}

.bracket-team:hover>.bracket-score{
  display: none;
}
