body {
    background-color: rgb(111, 138, 151);
    color: rgb(230, 230, 230);
    font-family: monospace;
    font-size: 15px;
    /* overflow: hidden; */
}
/* todo, transition to on chordy link click: background-color: rgb(50, 66, 83); */

.body-text {
    color: rgb(230, 230, 230);
    font-family: monospace;
    font-size: 15px;
}

.latex {
  font-size: 20px;
}


.body-text a {
    color: rgb(158, 187, 224);
}

.content {
    width: 750px;
    margin-left:auto;
    margin-right:auto;
    text-align: center;

    /* fadein due to js */
    display: block;
    /* overflow: hidden; */
}

@media only screen and (max-width: 750px) {
  .content {
    width: 100%;
  }
}

#head {
    font-family: monospace;
    color: #fff;
    margin: auto;
    padding: 25px;
    font-size: 42px;
    text-align: center;
}

#subhead, .subhead {
    font-family: monospace;
    color: #fff;
    margin: auto;
    font-size: 25px;
    text-align: center;
    /* position: relative;
    left: 10px; */
}

.subsubhead {
    font-family: monospace;
    color: #fff;
    margin: auto;
    font-size: 20px;
    text-align: left;
    padding-top: 10px;
    /* position: relative;
    left: 10px; */
}

.details {
    font-family: monospace;
    color: #fff;
    margin: auto;
    font-size: 15px;
    text-align: left;
    /* position: relative;
    left: 10px; */
}

@keyframes bang {
  from {
    transform: translate3d(0,0,0);
    opacity: 1;
  }
}

.project-button {
    overflow: hidden; /* for ribbon */
    position: relative;

    padding: 10px;
    display: inline-block;
    text-align: center;

    margin: 5px;
    margin-top: 10px;
    margin-bottom: 0;

    border-style: solid;
    border-radius: 5px;
    border-width: 2px;
    border-color: #fff;

    width: 250px;
    min-height: 80px;
}

.confetti {
  position: absolute;
  display: block;
  left: 50%;

  width: 5px;
  height: 5px;

  background: red;
  opacity: 0;
}

.project-button p {
    font-family: monospace;
    color: #fff;}

.project-button b {
    font-size: 16px;
}

.project-button:hover {
    border-color: rgb(83, 92, 99);
    cursor: pointer;
}

.project-button:hover p {
    color: #fff;
}

.project-button:hover b {
    color: #fff
}

#tech-button {
    border-width: 0;
    width: auto;
    min-height: 20px;
}

#tech-button p:hover {
    color: rgb(230, 230, 230);
    cursor: pointer;
}

.transition {
background:red;
-webkit-transition:background 1s;
-moz-transition:background 1s;
-o-transition:background 1s;
transition:background 1s
}



.ribbon {
  margin: 0;
  padding: 0;
  background: white;
  color:rgb(111, 138, 151);
  padding:1em 0;
  position: absolute;
  top: -1px;
  right:0;
  transform: translateX(30%) translateY(0%) rotate(45deg);
  transform-origin: top left;

  font-family: monospace;
  font-weight: bold;

  padding: 4px;
}
.ribbon:before,
.ribbon:after {
  content: '';
  position: absolute;
  top:0;
  margin: 0 -1px; /* tweak */
  width: 100%;
  height: 100%;
  background: white;
}
.ribbon:before {
  right:100%;
}

.ribbon:after {
  left:100%;
}

/* Keep the homepage compact and visible before JavaScript loads. */
.home {
    margin: 0;
    line-height: 1.5;
}

.home .content {
    display: block;
    width: min(620px, calc(100% - 40px));
    padding: 28px 0;
}

.home #head {
    padding: 0;
    font-size: 18px;
}

.home .intro {
    margin: 8px 0;
}

.home .home-links {
    margin: 12px 0 24px;
}

.home .subhead {
    margin: 22px 0 10px;
    font-size: 15px;
    font-weight: normal;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.home .project-grid .project-button {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-height: 96px;
    margin: 0;
    padding: 12px;
    border-width: 1px;
    border-color: rgba(255, 255, 255, .6);
    color: inherit;
    text-decoration: none;
}

.home .project-button p {
    margin: 0;
    font-size: 14px;
}

.home .project-button b {
    display: inline-block;
    margin-bottom: 4px;
}

.home .project-grid .project-button:hover,
.home .project-grid .project-button:focus-visible {
    border-color: white;
    background: rgba(255, 255, 255, .08);
}

.home #tech-button {
    margin-top: 20px;
}

.home #tech-button p,
.home .content > .body-text:last-of-type {
    font-size: 12px;
}

@media (max-width: 480px) {
    .project-grid {
        grid-template-columns: 1fr;
    }

    .home .project-grid .project-button {
        min-height: 80px;
    }
}

textarea{box-sizing:border-box;max-width:100%} .content{padding-bottom:24px}

body{background:var(--site-bg);color:var(--site-text);font:15px/1.6 system-ui,-apple-system,sans-serif;margin:0}
.content{width:min(760px,calc(100% - 40px));padding:28px 0;text-align:left}
#head{font:500 18px/1.5 monospace;color:inherit;text-align:left;padding:18px 0 8px}
.subhead,#subhead,.subsubhead,.details,.body-text{color:inherit;text-align:left}
.subhead,#subhead{font-size:15px}
a,.body-text a{color:var(--site-link)}
textarea{width:100%;border:1px solid var(--site-border);border-radius:5px;padding:12px;background:var(--site-input);color:inherit}
button{padding:7px 12px;border:1px solid var(--site-border);border-radius:5px;background:var(--site-panel);color:inherit;cursor:pointer}
