@font-face {
    font-family: 'Icebreaker';
    src: url(https://uploads.igem.org/teams/4593/wiki/font/icebreaker-1.ttf) format('truetype');
}
.box1{
    position: relative;
    color: #fff;
    padding-top: 30px;

}
h11{
    padding-top: 20px !important;

}
.box1 > .right-title {
    position: absolute;
    right: 0px;
    top: 8rem;
    /* width: 300px; */
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    text-align: center;
    padding: 30px 50px;
    font-size: 2.5rem;
}
@media screen and (max-width: 1366px) {

    .box1 > .right-title{
        font-size: 1.5rem;
    }
    .boxfoot {
        font-size: 1rem;
    }
    .box2{
        font-size: 1.5rem!important;
    }
}
.boxfoot {
    width: 90%;
    padding: 0.2rem ;
    background: rgba(0, 0, 0, 0.2);
    position: absolute;
    box-sizing: border-box;
    z-index: 999;

    left: 50%;
    transform: translateX(-50%);

    bottom: 1rem;
    font-size: 1.5rem;
    line-height:1.5rem;
    box-sizing: border-box;
    padding: 1rem ;
    padding: 1rem ;
}
.box2 {
    transform: translateY(-5rem);
}

img1 {
    width: 100%;
}
.boxfoot-1 {
    width: 100%;
    height: 24rem;
    background: rgb(162, 103, 103);
    margin-right: 20px;
}
.box2-text {
    width: 47%;
    position: absolute;
    left: 5%;
    top: 50%;
    padding: 20px;
    font-size:1rem;
    background: none;
    line-height: 1.2rem;
}

.box2 {
    position: relative;
    top: -4px;
    font-size: 2.5rem;
    color: #fff;
}
.box1 {
    position: relative;
}

.box1 > div:nth-child(1) p {
    text-align: left;
}
.box1 > .right-title {
    right: 0px;
    top: 30%;
}

.box2 > div {
    z-index: 999;
    /* border: 1px solid #fff; */
    padding: 5px;
    border-radius: 5px;
    background: #b35d3e;
}
.box2 > div:nth-child(1) {
    position: absolute;
    left: 7%;
    top:  40%;
}
.box2 > div:nth-child(2) {
    position: absolute;
    left: 17%;
    top:  14%;
}
.box2 > div:nth-child(3) {
    position: absolute;
    left: 37%;
    top:  43%;
}
.box2 > div:nth-child(4) {
    position: absolute;
    left: 61%;
    top: 20%
}
.box2 > div:nth-child(5) {
    position: absolute;
    right: 30px;
    top: 50%;
}
.box2 > div:nth-child(6) {
    position: absolute;
    right: 46%;
    top: 78%
}
.box2 > div:nth-child(7) {
    position: absolute;
    right: 10%;
    bottom: 20%;
    display: none;
}
.box2 > div:nth-child(8) {
    position: absolute;
    left: 20%;
    bottom:10%;
}
.box2 > div:last-child {
    color: #fff;
    font-size: 20px;
}

.d-flex {
    display: flex;
}
.d-flex > div {
    flex: 1;
}


.a-e {
    align-items: flex-end;
}

.mt-20 {
    margin-top: 20px;
    font-size: 1.1rem;;

}
.box2-text{
    background: rgba(0,0,0,0.2) !important;
}

.boxs {
    font-family: DoHyeon-1;
}

@font-face {
    font-family: DoHyeon-1;
    src: url('https://static.igem.wiki/teams/4593/wiki/font/dohyeon-regular.ttf'),
}

.image {
    display: inline-block;
    height: 400px;
    width: 400px;
    flex-grow: 1;
    margin: 0 20px;
    margin-top: 10px;
    margin-bottom: 20px;
    position: relative;
}

.team-background {
    display: grid;
    height: auto;
    grid-template-rows: min-content auto;
    width: 100vw;
    background-color:#31253d;
    text-align: center;
}


.flex-team-leader, .flex-team {
    display: flex;
    flex-wrap: wrap;
    padding-bottom: 2em;
    justify-content: center;
}

.team-gallery {
    /* grid-column: 2/3; */
    grid-row: 2/3;
    padding-top: 10vh;
    /* position: fixed; */
}

.bio {
    position: relative;
}

.bio:hover .overlay, .bio:hover .overlay-wetlab, .bio:hover .overlay-drylab, .bio:active .overlay, .bio:active .overlay-wetlab, .bio:active .overlay-drylab {
    opacity: 1;
    z-index: 1;
}

.overlay {
    position: absolute;
    top: 0%;
    height: 450px;
    width: 450px;
    opacity: 0;
    transition: .3s ease;
    background-color: #31253d;
}

.overlay-text {
    width: 300px;
    color: white;
    font-size: 18px;
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    text-align: center;
    text-justify: inter-word;
    display: inline-block;
    overflow-wrap: break-word;
}

body { 
    margin:0;
    padding-top: 56px;
    padding:0;
    font-family: Icebreaker;
}

.left-aligned { 
    margin-left: auto; 
}

.bg-dark {
    background-color: #30263d !important;
}
.bg-hero { 
    background-color: #2b2f3b; 
}

.sideMenu {
    overflow: auto;
    width: 90%;
}

.list-group-item {
    background-color: transparent !important;
}

a.link {
    transition: 0.3s cubic-bezier(0.39, 0.58, 0.57, 1);
    color: #ffffff;
    box-shadow: inset 0 -0.5em 0 -1px #b6bdd3;
}

.grid-wrapper {
    display: grid;
    height: auto;
    grid-template-rows: min-content auto;
    width: 80vw;
}

.grid-wrapper-toc {
    grid-template-columns: 5fr 1fr;
    display: grid;
    height: auto;
    grid-template-rows: auto;
    width: 70vw;
}

.content {
    min-height: 40vh;
    /* min-width: -webkit-fill-available; */
}



.sticky {
  position: fixed;
  top: 0;
  width: 100%
}
/* Add some top padding to the page content to prevent sudden quick movement (as the header gets a new position at the top of the page (position:fixed and top:0) */
.sticky + .content {
  padding-top: 142px;
}

.cover{
display: flex;
padding-top: 80px;
}

.cover img{ 
min-width: 100%;
max-width: 100%;
}

.content{
  background-position: top;
  background-size: cover;
  background-image: url('https://static.igem.wiki/teams/4593/wiki/cover-back/sub-page-back-2.jpg');
  background-repeat: no-repeat, repeat-x, no-repeat;
}

.footer {
  text-align: center;
  padding: 30px;
  background-color: Red;
  color: white;
}

.fullpage {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    width: 100vw;
    min-height: 100vh;
    overflow: hidden;
}

.description-header{
    background-image: url(https://static.igem.wiki/teams/4593/wiki/cover-back/description-cover.jpg);
}

.result-header{
    width: 100%;
    height: 100%;
    object-fit:cover;
    background-image: url(https://static.igem.wiki/teams/4593/wiki/cover-back/result-cover.jpg);
}

.attribution-header{
    background-image: url(https://static.igem.wiki/teams/4593/wiki/cover-back/attribution-cover.jpg);
}

@media only screen and (max-width: 850px) {

    * {
        overflow: hidden;
    }

    /*changes to code to arrange aside below article. */
    .grid-wrapper {
        display: flex;
        flex-direction: column;
        width: 100vw;
        /* padding-left: 5vw; */
    }

    .grid-wrapper-toc {
        width: 100vw;
    }

    .flex-wrapper {
        flex-direction: column;
    }

    .image {
        margin-bottom: 20px;
    }

    .header h1,
    .wide-header h1 {
        font-size: 2rem;
        font-weight: bold;
        padding-top: 5vh;
    }

    .header p,
    .wide-header p {
        width: 80vw;
        font-size: 1.1rem;
        font-weight: normal;
    }

    .wide-header p {
        padding-top: 1vh;
    }

    .wide-header {
        background-size:100% 50%;
        min-height: 90vh;
        background-position: top;
    }

    .home-header {
        background-size: 100vw;
        background-position: top;
        margin-top: 10vh;
        padding-top: 40vh;
        background-color: white;
    }

    .p-desc{
        width: 100vw;
        height: 50vh;
        padding: 2em;
        margin-left: 0vw;
        padding-left: 5vw;
    }

    .p-desc p{
        width: 80vw;
    }


    .flex-content{
        flex-wrap: wrap;
    }

    .content-w-toc,
    .content {
        padding-left: 5vw;
    }

    .content p,
    .content section p, 
    .content ul,
    .content ol,
    .content-w-toc p,
    .content-w-toc ul,
    .content-w-toc ol {
        max-width: 90vw;
        text-align: justify;
        justify-content: center;
    }

    .content-w-toc ul li,
    .content ul li {
        list-style-position: inside;
    }

    .content-w-toc ol li,
    .content ol li {
        list-style: decimal;
        list-style-position: inside;
    }

    .fig{
        max-width: 90vw;
        width: 100%;
    }

    .cards li {
        min-width: 85%;
        margin: 10px;
        flex-grow: 1;
    }

    .team-gallery {
        padding: 5vw;
    }
}

.cont {
    /* height: 100vh; */
    background-image: url(https://static.igem.wiki/teams/4593/wiki/cover-back/back-full.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    object-fit: cover;
    background-attachment: fixed;
}

.wide-header {
    min-height: 100vh;
    height: auto;
    height: auto;
    color: white;
    background-size: auto;
    background-repeat: no-repeat;
    display: flex;
    /* justify-content: left; */
    /* align-items: baseline; */
    /* text-align: left; */
}

.project-header {
    background-color: #20423fe1;
}

.p-desc {
    background-color: #ffffff;
    width: fit-content;
    padding: 2em;
    margin-left: 10vw;
    font-size: large;
}

.flex-fig {
    padding-top: 5vh;
    padding-bottom: 5vh;
}

#content_round {
    background-color: rgba(24, 21, 121,0);
    left: 12.5%;
    position: relative;
    border-radius: 0rem;
}

#content_frame {
    position: relative;
    top: 125px;
    left: 5%;
    background-color: rgba(71, 67, 110, 0.382);
    height: 90%;
    width: 90%;
    border-radius: 1rem;
}

#content_inside {
    position: relative;
    top: 9%;
    left: 5%;
    background-color: rgba(71, 67, 110, 0.382);
    width: 90%;
    border-radius: 5rem;
}

.col {
    flex: 1 0 0%;
}

.grid-wrapper-toc {
    grid-template-columns: 5fr 1fr;
    display: grid;
    height: auto;
    width: auto;
    grid-template-rows: auto;
    /* margin: 0px; */
    /* background-color: rgb(255 255 255); */
    align-content: space-evenly;
    justify-content: space-evenly;
    align-items: baseline;
    justify-items: center;
}

.content-w-toc {
    grid-column: 1/2;
    min-height: 40vh;
    padding-top: 10vh;
    /* background-color: rgba(71, 67, 110, 0.382); */
}

a.link:hover {
    color: #ffffff;
    text-decoration: none;
    box-shadow: inset 0 -1.2em 0 -1px #9567b5;
}

h1{
    font-size: 3rem
}
h2 {
    font-size: 2.5rem;
    font-weight: bolder;
    padding-bottom: 2vh;
}

h3 {
    font-size: 2rem;
    font-weight: bold;
    padding-bottom: 2vh;
    padding-top: 2vh;
}

h4 {
    font-size: 1.8rem;
    font-weight: bold;
    padding-bottom: 2vh;
    padding-top: 2vh;
}

/* CALLOUT */
.bd-callout { padding:1.25rem; margin-top:1.25rem; margin-bottom:1.25rem; border:1px solid #e9ecef; border-left-width:.25rem; border-radius:.25rem }
.bd-callout h4 { margin-bottom:.25rem }
.bd-callout p:last-child { margin-bottom:0 }
.bd-callout code { border-radius:.25rem }
.bd-callout+.bd-callout { margin-top:-.25rem }
.bd-callout-info { border-left-color:#5bc0de }
.bd-callout-warning { border-left-color:#f0ad4e }
.bd-callout-danger { border-left-color:#d9534f }

/* footer */
footer a { color: white; font-weight: bold; text-decoration: none; }
footer a:hover { color: white; text-decoration: underline; }
