.left-aligned { margin-left: auto; }
.bg-dark { background-color: #343a40 !important; }
.bg-hero { background-color: hsl(264, 39%, 51%); }

/* 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; }

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

P{ 
  padding:0px; 
  margin:0px;
  display: inline;
}

html {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: 'Tahoma';
  font-size: 20px;
  line-height: 1.4;
  height: 100%;
  /* background-color: #ad1a2d; */
}

.page {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.container-nav {
  margin: 0 auto;
  padding: 0 24px;
  max-width: 80%;
  height: 100%;
}

.header {
  height: 80px;
  flex-shrink: 0;
  color: #fff;
  background: #950F22;
  position: fixed;
  width: 100%;
  z-index: 2;
}

.header-wrapper {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  text-transform: uppercase;
  font-weight: bold;
  font-size: 24px;
}

.icon-button {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
}

.icon-button_close {
  color: #950F22;
  position: absolute;
  right: 24px;
}

.title {
  margin-top: -12px;
}

.subtitle {
  margin: 0;
}

.navbar-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(143, 26, 26, 0.7);
  display: flex;
  justify-content: flex-end;
  transform: translateX(100%);
  clip-path: circle(0% at 100% 0);
  z-index: 3;
}

.navbar {
  position: relative;
  width: 350px;
  background: #fff;
  padding: 24px;
  transform: translateX(100%);
  overflow-y: auto;
  display: inline;
}

.navbar h2 {
  color: #950F22;
  text-transform: uppercase;
  border-bottom: 4px solid #950F22;
}

.navbar h3 {
  color: #C3142D;
  font-size: 0.9em;
  text-transform: uppercase;
  padding-top: 10px;
  padding-bottom: 10px;
  font-weight: bold;
}

.navbar ul {
  list-style-type: none;
  padding-left: 24px;
}

.navbar a {
  transition: color ease-in-out 0.3s;
  text-decoration: none;
  color: black;
}

.navbar a:hover {
  color: #C3142D;
}

.logoimg {
  width: 25%;
}

.line {
  width: 100%;
  border-bottom: 75px solid #950F22;
  border-top: 5px solid #950F22;
}

.container-fluid {
  padding: 0px;
}

.mb-5 {
  margin-bottom: 0rem!important;
}

.content {
  width: 90%;
}

.footer {
  background-image: url("https://static.igem.wiki/teams/4514/wiki/design/footer-red.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  text-shadow: 2px 2px 4px #000000;
}

.white-line {
  width: 100%;
  border-bottom: 2px solid white;
}

.orange-line {
  width: 100%;
  border-bottom: 5px solid #FF7300;
}

.blue-line {
  width: 100%;
  border-bottom: 5px solid #05AC9B;
}

.social {
  padding-top: 10%;
}

.social-list {
  list-style: none;
}

/* Style buttons */
.btn {
background-color: #950F22; /* Blue background */
border: none; /* Remove borders */
color: white; /* White text */
padding: 12px 16px; /* Some padding */
font-size: 16px; /* Set a font size */
cursor: pointer; /* Mouse pointer on hover */
display: none; /* Hidden by default */
position: fixed; /* Fixed/sticky position */
bottom: 20px; /* Place the button at the bottom of the page */
right: 30px; /* Place the button 30px from the right */
z-index: 99; /* Make sure it does not overlap */
}

/* Darker background on mouse-over */
.btn:hover {
background-color: darkred;
}

.footer-top {
width: 100%;
}

.trans1-top{
width: 100%;
height: 130px;
}

.trans1-bottom{
margin-top: -1px;
height: 130px;
width: 100%;
-moz-transform: scaleY(-1);
  -o-transform: scaleY(-1);
  -webkit-transform: scaleY(-1);
  transform: scaleY(-1);
  filter: FlipV;
  -ms-filter: "FlipV";
}

.bg-1 {
background-image: url("https://static.igem.wiki/teams/4514/wiki/design/background1.png");
width: 100%;
background-size: cover;
background-position: top;
background-repeat: no-repeat;
padding-top: 5%;
padding-bottom: 5%;
color: white;
text-shadow: 2px 2px 7px #000000;
border: 5px solid #05AC9B;
}

.bg-2 {
background-image: url("https://static.igem.wiki/teams/4514/wiki/design/background2.png");
width: 100%;
background-size: cover;
background-position: top;
background-repeat: no-repeat;
padding-top: 5%;
padding-bottom: 5%;
color: white;
text-shadow: 2px 2px 7px #000000;
border: 5px solid #FF7300;
}

.bg-1-plain {
background-image: url("https://static.igem.wiki/teams/4514/wiki/design/background2.png");
width: 100%;
background-size: cover;
background-repeat: no-repeat;
padding-top: 5%;
padding-bottom: 5%;
border: 5px solid #FF7300;
}

.bg-2-plain {
background-image: url("https://static.igem.wiki/teams/4514/wiki/design/background1.png");
width: 100%;
background-size: cover;
background-repeat: no-repeat;
padding-top: 5%;
padding-bottom: 5%;
border: 5px solid #05AC9B;
}

.trans1 {
background-image: url("https://static.igem.wiki/teams/4514/wiki/design/background1-transition-2.gif");
width: 100%;
height: 200px;
background-size: cover;
background-repeat: no-repeat;
}

h2.section-h2 {
color: #C3142D;
}

.scrollDown {
position: absolute;
width: 45px;
height: 70px;
border: #fff solid 2px;
border-radius: 30px;
display: flex;
justify-content: center;
}

.scrollDown span {
background-color: #fff;
width: 5px;
height: 10px;
border-radius: 30px;
margin-top: 10px;
position: relative;
}

.scrollDown span::before {
position: absolute;
content: '';
width: 15px;
height: 15px;
border: none;
border-right: 2px solid #fff;
border-top: 2px solid #fff;
transform: translateY(-10px) rotate(135deg);
left: -6px;
margin-top: 10px;
opacity: 0;
animation: ani 1.8s infinite linear;
}


.scrollDown span::after {
position: absolute;
content: '';
width: 15px;
height: 15px;
border: none;
border-right: 2px solid #fff;
border-top: 2px solid #fff;
transform: translateY(-10px) rotate(135deg);
left: -6px;
margin-top: 10px;
opacity: 0;

animation: ani 1.8s infinite linear;
animation-delay: 0.8s;
}

@keyframes ani {
0% {
    margin-top: 10px;
    opacity: 0;
}

50% {
    margin-top: 25px;
    opacity: 1;
}

100% {
    margin-top: 40px;
    opacity: 0;
}
}

.center {
width: 100%;
display: flex;
justify-content: center;
}

.rounded-3 {
background-color: white;
}

.center-image {
width: 100%;
text-align: center;
}

h4.education-h4 {
margin-top: 10px;
color: #C3142D;
}

figcaption {
text-align: center;
}

.color-white {
color: white;
text-shadow: 2px 2px 7px #000000;
}

.flip-box {
transform-style: preserve-3d;
perspective: 1000px;
cursor: pointer;
}

.flip-box-front,
.flip-box-back{
background-size: 100%, cover;
background-position: center;
background-repeat: no-repeat;
border-radius: 8px;
min-height: 475px;
transition:transform 0.7s cubic-bezier(.4,.2,.2,1);
backface-visibility: hidden;
border: 3px solid #000;
}

.flip-box-front{
transform: rotateY(0deg);
transform-style: preserve-3d;
}

.flip-box:hover .flip-box-front{
transform: rotateY(-180deg);
transform-style: preserve-3d;
}

.flip-box-back{
position: absolute;
top: 0;
left: 0;
width: 100%;
transform: rotateY(180deg);
transform-style: preserve-3d;
}

.flip-box:hover .flip-box-back{
transform: rotateY(0deg);
transform-style: preserve-3d;
}

.flip-box .inner{
position: absolute;
left: 0;
width: 100%;
padding: 60px;
outline: 1px solid transparent;
perspective: inherit;
z-index: 2;
transform: translateY(-50%)translateZ(60px) scale(.94);
top:50%;
}

.flip-box-header{
font-size: 30px;
}

.flip-box p{
font-size:20px;
line-height: 1.5rem;
text-shadow: 2px 2px 7px #000000;
}

.flip-box-img {
margin-top: 25px;
}

.flip-box-button{
background-color: black;
border:2px solid #fff;
border-radius: 2px;
color: #fff;
cursor: pointer;
font-size: 20px;
font-weight: bold;
margin-top: 25px;
padding: 15px 20px;
text-transform: uppercase;
}

.teamrow {
margin-bottom: 10px;
}

.sponsor{
width: 100%;
}

.sponsorcol{
margin: auto;
}

.navmenu {
position: sticky;
top: 25%;
}

.navmenu ul {
padding-left: 50px;
position: relative;
margin-top: 10px;
list-style: none;
}

.navmenu ul::after {
content: "";
position: absolute;
width: 3px;
height: calc(100% - 58px);
left: 40px;
top: 0;
background-color: #A31237;
z-index: -1;
margin-top: 29px;
}

.navmenu ul li {
padding: 30px 0;
padding-left: 20px;
}

.navmenu ul li a {
text-decoration: none;
position: relative;
color: #A31237;
font-size: 1.5rem;
line-height: 1rem;
font-weight: 500;
}

.navmenu ul li a::before {
content: "";
position: absolute;
background: white;
width: 18px;
height: 18px;
left: -37px;
top: 50%;
transform: translateY(-50%);
border-radius: 50px;
border: 4px solid #A31237;
}

.navmenu ul li a.active {
font-weight: 700;
}

.navmenu ul li a.active::before {
background: #A31237;
}

#main-h1 {
  text-align: center;
}

#main-header {
  background-image: url("https://static.igem.wiki/teams/4514/wiki/design/header-background.gif");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  text-shadow: 2px 2px 4px #000000;
  padding-top: 5%;
  padding-bottom: 5%;
}

h2.education-h2 {
  color: #C3142D;
}

.text>p {
  background: linear-gradient(to right,
      rgb(37, 37, 37) 50%,
      rgb(255, 255, 255) 50%);
  background-size: 200% 100%;
  background-position-x: 100%;
  color: transparent;
  background-clip: text;
  -webkit-background-clip: text;
}

.text-eng>p {
  background: linear-gradient(to right,
      rgb(37, 37, 37) 50%,
      rgb(255, 255, 255) 50%);
  background-size: 200% 100%;
  background-position-x: 100%;
  color: transparent;
  background-clip: text;
  -webkit-background-clip: text;
}

body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

.header-bottom {
  width: 100%;
}

.header-top {
  width: 100%;
}

.font-weight-bold {
  font-weight: bold;
}

.text-center {
  text-align: center;
}