@import url('https://fonts.googleapis.com/css?family=Rubik:300,400,700&display=swap');

/* Core Styles */

*,
*:before,
*:after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-family: 'Rubik', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #ffffff;
}

body {
    background: #04000e;
}

section {
  text-align: center;
  padding: 1.5em 1em;
}

.header {
  width: 960px;
  margin: 1em auto;
  text-align: center;
  border-bottom: 2px solid rgb(255, 255, 255);
  padding: 1em;
}

.header h1 {
  margin-bottom: 0.25em;
  font-weight: 600;
  text-transform: uppercase;
  color: #ffffff;
}

.header a {
  text-decoration: none;
  color: #ffffff;
  font-weight: 700;
  transition: all 0.35s ease-in-out;
}

.header a:hover {
  color: #7779fd;
}

.row {
  max-width: 1920px;
  width: 100%;
  margin: 0 auto;
}

.heading {
    margin-bottom: 1em;
}

.figure {
  background: #1d1d1d;
  display: inline-block;
  margin: 10px;
  max-width: 380px;
  min-width: 230px;
  overflow: hidden;
  position: relative;
  text-align: center;
  width: 100%;
  border-radius: 2%;
  
}

.figure * {
  -webkit-transition: all 0.35s ease;
  transition: all 0.35s ease;
}



/* Section 1 - Hover Effect #01 */

.section-3 .figure {
  background-color: #1d1d1d;
  color: #efefef;
}

.section-3 .figure img {
  max-width: 100%;
  vertical-align: top;
}

.section-3 .figure figcaption {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-image: -webkit-linear-gradient(bottom, rgba(0,0,0,0.8) 0%, transparent 100%);
  background-image: linear-gradient(bottom, rgba(0,0,0,0.8) 0%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  text-align: left;
  padding: 0 0px 10px 15px;
}

.section-3 .figure h3 {
  font-size: 44px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 1px;
  margin: 3px 0;
}

.section-3 .figure .title1,
.section-3 .figure .title3 {
  font-weight: 300;
  font-size: 25px;
}

.section-3 .figure .title2 {
  color: #debbff;
  font-family: 'Rubik', sans-serif;
  font-size: 150%;
  font-weight: 800;
}

.section-3 .figure a {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.section-3 .figure:hover img,
.section-3 .figure.hover img {
  -webkit-transform: scale(1.3) rotate(-3deg);
  transform: scale(1.3) rotate(-3deg);
}

/* Modal styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
  margin: auto;
  display: block;
  max-width: 80%;
  max-height: 80%;
}

.modal img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
}

.close {
  position: absolute;
  top: 20px;
  right: 40px;
  color: white;
  font-size: 80px;
  font-weight: bold;
  cursor: pointer;
}

/* Sticky Popup Styles */
.popup {
	display: none;
	position: fixed;
	bottom: 50px;
	left: 50%;
	transform: translateX(-50%);
	background: linear-gradient(to right, #ff5680e7, #fa5a3e);
	color: white;
	padding: 20px;
	box-shadow: 0 2px 10px rgba(0,0,0,0.2);
	border-radius: 10px;
	z-index: 1000;
	width: 520px;
  }
  
  .popup .content {
	display: flex;	
	align-items: center;
	justify-content: space-between;
  }

  .popup .content span {
	font-size: 20px;
  }
  
  .learn-more {
	display: inline-block;
	background: white;
	color: #ff4a59;
	text-decoration: none;
	padding: 10px 20px;
	border-radius: 5px;
	font-weight: bold;
	position: absolute;
	right: 20px;
	transition: all 0.3s ease-in-out;
	box-shadow: 0 0 10px white; /* Add this line */
  }
  
  .learn-more:hover {
	transform: scale(1.05);
	box-shadow: 0 0 20px white; /* Add this line */
  }