@import url(https://fonts.googleapis.com/css?family=Montserrat);

.w3-button {
  padding: 16px;
  transition: 0.5s;
}


a:hover {
  color: blue;
}

table { 
	width: 750px; 
	border-collapse: collapse; 
	margin:50px auto;
	}

/* Zebra striping */
tr:nth-of-type(odd) { 
	background: #eee; 
	}

th { 
	background: #3498db; 
	color: white; 
	font-weight: bold; 
	}

td, th { 
	padding: 10px; 
	border: 1px solid #ccc; 
	text-align: left; 
	font-size: 18px;
	}

/* 
Max width before this PARTICULAR table gets nasty
This query will take effect for any screen smaller than 760px
and also iPads specifically.
*/
@media 
only screen and (max-width: 760px),
(min-device-width: 768px) and (max-device-width: 1024px)  {

	table { 
	  	width: 100%; 
	}

	/* Force table to not be like tables anymore */
	table, thead, tbody, th, td, tr { 
		display: block; 
	}
	
	/* Hide table headers (but not display: none;, for accessibility) */
	thead tr { 
		position: absolute;
		top: -9999px;
		left: -9999px;
	}
	
	tr { border: 1px solid #ccc; }
	
	td { 
		/* Behave  like a "row" */
		border: none;
		border-bottom: 1px solid #eee; 
		position: relative;
		padding-left: 50%; 
	}

	td:before { 
		/* Now like a table header */
		position: absolute;
		/* Top/left values mimic padding */
		top: 6px;
		left: 6px;
		width: 45%; 
		padding-right: 10px; 
		white-space: nowrap;
		/* Label the data */
		content: attr(data-column);

		color: #000;
		font-weight: bold;
	}

}



.clickedbtn {
  background-color: #C5C0C8!important;
  color: black!important;
}

.other-center {    
  display: flex;
  justify-content: center;
  align-items: center;
}

img {
  display: inline-block;
  margin-left: auto;
  margin-right: auto;
  vertical-align: middle;

}

.content-wrapper {
    height: 100vh;
    display: flex;
    justify-content: center;
    text-align: left;
    text-align: var(-130vh);
    flex-flow: column nowrap;
    color: #fff;
    font-family: Montserrat;
}

.figcaption{
  font-size:20px;
}

body,h1,h2,h3,h4,h5,h6 {font-family: "Lato", sans-serif;}
body, html {
  height: 100%;
  line-height: 1.8;
}

/* Create a Parallax Effect */
.bgimg-1, .bgimg-2, .bgimg-3, .bgimg-4 {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* First image (Logo. Full height) */
.bgimg-1 {
  background-image: url("https://static.igem.wiki/teams/4438/wiki/new-header.png");
  min-height: 100%;
}

/* Second image (Portfolio) */
.bgimg-2 {
  background-image: url("https://static.igem.wiki/teams/4438/wiki/what-is-pcos.jpg");
  min-height: 60%;
}

/* Third image (Contact) */
.bgimg-3 {
  background-image: url("https://static.igem.wiki/teams/4438/wiki/homepage.png");
  min-height: 60%;
}

.bgimg-4 {
  background-image: url("https://static.igem.wiki/teams/4438/wiki/developments.jpg");
  min-height: 60%;
}

.w3-wide {letter-spacing: 10px;}
.w3-hover-opacity {cursor: pointer;}

/* Turn off parallax scrolling for tablets and phones */
@media only screen and (max-device-width: 1600px) {
  .bgimg-1, .bgimg-2, .bgimg-3 {
    background-attachment: scroll;
    min-height: 400px;
  }
}

.menu {
  display: none;
}





/***********8Card Stuff------------------------------*/
.center {
  margin: auto;
  width: 50%;
  padding: 10px;
}

.card
{
  position: relative;
  width: 400px ;
  height: 400px;
  border-radius: 20px;
  transition: 0.5s;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.card:hover
{
  width: 80%;
  height: 400px;
}

.card .circle{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;

}

.card .circle::before{
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--clr);
  clip-path: circle(120px at center);
  transition: 0.5s;
}

.card:hover .circle::before{
  clip-path: circle(2000px at center);
}

.card .circle .logo {
  position: relative;
  width: 200px;
  height: 200px;
  transition: 0.5s;
  transition-delay: 0.5s;
}
.card:hover .circle .logo {
  transform: scale(0);
  transition-delay: 0s;
}


.sqcard
{
  position: relative;
  width: 400px ;
  height: 400px;
  border-radius: 20px;
  transition: 0.5s;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.sqcard:hover
{
  width: 100%;
  height: 500px;
}
.sqcard .square{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;

}

.sqcard .square::before{
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--clr);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  transition: 0.5s;
}

.sqcard:hover .square::before{
  clip-path: polygon(100% 0%,100% 100%,0% 100%,0% 0%);
  transition: 0.5s
}

.sqcard .square .logo {
  position: relative;
  width: auto;
  height: 200px;
  transition: 0.5s;
  transition-delay: 0.5s;
}
.sqcard:hover .square .logo {
  transform: scale(0);
  transition-delay: 0s;
}


.sqcard:hover .card-content {
  left: 0;
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  transition: 0.5s;
  transition-delay: 0.5s;
}

.sqcard .card-image {
position: absolute;
top: 50%;
left: 75%;
transform: translate(-50%, -50%) scale(0);
height: 250px;
transition: 0.5s;
}
.sqcard:hover .card-image {
  transform: translate(-50%, -50%) scale(1);
  transition-delay: 0.5s;
}


.card-content {
position: relative;
width: 50%;
left: 10%;
padding: 20px 20px 20px 40px;
opacity: 0;
transition: 0.5s;

transform: scale(0);  
visibility: hidden;

}
.card-content h2 {
  color:#fff;
  text-transform: uppercase;
}

.card:hover .card-content {
  left: 0;
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  transition: 0.5s;
  transition-delay: 0.5s;
}

.card .card-image {
position: absolute;
top: 50%;
left: 75%;
transform: translate(-50%, -50%) scale(0);
height: 250px;
transition: 0.5s;
}
.card:hover .card-image {
  transform: translate(-50%, -50%) scale(1);
  transition-delay: 0.5s;
}

@media (max-width: 991px){
  .card{
    align-items: flex-start;

  }
  .card:hover {
    height: 80%;
  }
  .card:hover .card-image {
    top: 0%;
    left: 50%;
    transform: translate(-50%, 0%) scale(1);
    height: 250px;
    bottom: 30px;
    opacity: 0;
  }
  .card .card-content{
    width: 100%;
    left: 0;
    padding: 40px;
    top: 50%;

  }

  .sqcard{
    align-items: flex-start;

  }
  .sqcard:hover {
    height: 80%;
  }
  .sqcard:hover .card-image {
    top: 0%;
    left: 50%;
    transform: translate(-50%, 0%) scale(1);
    height: 250px;
    bottom: 30px;
    opacity: 0;
  }
  .sqcard .card-content{
    width: 100%;
    left: 0;
    padding: 40px;
    top: 50%;

  }
  
}

/***********End of Card Stuff------------------------------*/

/***********Scrolling Stuff------------------------------*/

.scrollRow{
  opacity:0;
  transform: scaleX(0.1);
  transition:all 1s ease-in-out;

}


.appear{
  opacity: 1;
  transform: scaleX(1);
}

.scrollRow2{
  opacity:0;
  transform: scale(0.1);
  transition:all 1s ease-in-out;

}


.appear2{
  opacity: 1;
  transform: scale(1);
}



/***********End of Scrolling Stuff------------------------------*/

/**************Cards stuff------------------------------------------------*/

@import url('https://fonts.googleapis.com/css?family=Alegreya+Sans+SC|Neucha&display=swap'); 

.Uni-Blocks {
  display: grid;
  grid-template-columns: repeat(3, 300px);
  grid-gap: 40px;
  align-items: center;
  justify-content: center;
  font-family: 'Neucha', cursive;
  font-size: 18px;
}

.Uni-block .uni-main {
  justify-content: center;
  position: relative;
}
.Uni-block .uni-main .uni-card {
  transition: 0.5s;
  width: 300px;
  height: 200px;
}
.uni-main .uni-card.uni-card1 {
  position: relative;
  background: #333;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
  transform: translateY(100px);
}
.uni-main:hover .uni-card.uni-card1 {
  transform: translateY(0px);
}
.uni-main .uni-card.uni-card2 {
    position: relative;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
    transform: translateY(-100px);
}
.uni-main:hover .uni-card.uni-card2 {
  transform: translateY(0px);
}
/* #uni-1 .uni-card.uni-card1 .uni-content {
  background: url('https://i.pinimg.com/564x/8f/be/17/8fbe17fd1fbe4d817aa8af5e234e5869.jpg');
  background-size: cover;
  width: 300px;
  height: 200px;
  background-position: center center;
} */
}
.uni-main .uni-card.uni-card1 .uni-content p {
  margin: 0;
  padding: 0;
}
.uni-card.uni-card1 .uni-content img {
  object-fit: cover;
  width: 300px;
  height: 205px;
  object-position: center center;
}
.uni-main .uni-card.uni-card2 .uni-content a {
  margin: 10px;
  border: 1px solid #222;
  text-decoration: none;
  padding: 5px;
  display:  inline-block;
  margin-left: auto;
  margin-right: auto;
  font-family: 'Alegreya Sans SC', sans-serif;
  color: #333;
}
.uni-main .uni-card.uni-card2 .uni-content a:hover {
  background-color: #222;
  color: #fff;
}

.uni-third-center {
  margin: auto;
  width: 60%;
  padding: 10px;
}
.uni-half-center {
  margin: auto;
  width: 40%;
  padding: 10px;
}
