@charset "UTF-8";
/* CSS Document */
body {
	min-height: 100vh;
	margin: 0;
}
h1 {
	flex: 1;
	color: cornflowerblue;
	margin: 15px 0px 0px 25px;
	font-family: courier, monospace; 
	font-size: 60px;
	
}

.subtitle {
	font-family: courier, monospace;
	margin: 0px 0px 25px 25px;
	display: block;
	font-size: 20px;
}

h3 {
	font-family: courier, monospace; 
	color: #008B8B;
	font-size: 40px;
	margin: 0px 0px 0px 0px;
	
	height: 60px;
	width: 100%;
	background-color:#b3bdc7;
	display: flex;
	justify-content: center;
	align-items: center;
	
}

/* navigatio bar */
.topnav a {
	flex: 1;
 	float: right; 
	color: cadetblue;
	text-align: justif;
	padding: 5px 5px;
	margin: 50px 25px 0px 0px;
	text-decoration: none;
	font-size: 25px;
	font-family: courier, monospace;
	font-weight: 300;
	
}

.topnav a:hover {
	color: fuchsia;
}

.topnav-sidebar {
	position: fixed;
	top: 0; 
	right: 0;
	height: 100vh;
	width: 250px;
	z-index: 99;
	background-color: rgba(255, 255, 255, 0.2);
	backdrop-filter: blur(10px);
	display: none;
	flex-direction: column;
	align-items: flex-start;
	justify-content: flex-start;
}

.topnav-sidebar a:hover {
	color: fuchsia;
}

.topnav-sidebar a {
	color: #68724d;
	font-size: 25px;
	font-family: courier, monospace;
	padding: 5px 5px;
	margin: 15px 25px 15px 25px;
	text-decoration: none;
}

.topnav-sidebar a > span {
	color: #ff48b0;
	font-weight: bolder;
	font-size: 40px;
	cursor: pointer;
}

.topnav-sidebar a > span:hover {
	color: #ffb511;
}

.container {
	display: flex;
}


/* image gallery */
.layout-container {
	height: 100%;
	width: min(900px, 100%);
	margin: 3em auto; 
	columns: 3 300px;
	column-gap: 3em;
	position: static;
	z-index: 3;
	background-color: #b3bdc7;
	padding: 3em;
	box-sizing: border-box;
}

.layout-container img {
	display: block;
	margin-bottom: 3em;
	width: 100%;
	z-index: 3;
	cursor: pointer;
}
.box-1 > img {
	box-sizing: border-box;
	height: 100%;
	background-color: white;
	padding: 10px;
}

/* stripped background */
.main-body {
	position: relative;
	padding: 2em 1em 3em 1em;
}
.background {
	background-image: linear-gradient(46deg, #b3bdc7 25%, #ffffff 25%, #ffffff 50%, #b3bdc7 50%, #b3bdc7 75%, #ffffff 75%, #ffffff 100%);
	background-size: 8.34px 8.64px;
	width: 100%;
	height: 100%;
	top: 0px;
	left: 0px;
	position: absolute;
	z-index: -1;
}

/* pop up description */

.popup-image {
	position: fixed;
	top: 0; left: 0;
	height: 100%;
	width: 100%;
	z-index: 100;
	display: none;
	
}

.popup-image > span {
	position: absolute;
	top: 0; right: 20px;
	font-size: 75px;
	font-family: courier, monospace;
	color:#ff48b0;
	cursor: pointer;
	z-index: 100;
	font-weight: bolder;
}

.popup-image > span:hover {
	color: #ffb511;
}

.description {
	display: flex;
}

.description > img {
	position: absolute;
	top: 50%; left: 50%;
	transform: translate(-50%, -50%);
	width: min(525px, 90%);
	object-fit: cover;
	background-color: #68724d;
	padding: 20px;
	height: auto;
	box-sizing: border-box;
	margin: auto;
	align-content: center;
}

.popup-background {
	background-image: linear-gradient(46deg, #68724d 25%, #ffffff 25%, #ffffff 50%, #68724d 50%, #68724d 75%, #ffffff 75%, #ffffff 100%);
	background-size: 8.34px 8.64px;
	width: 100%;
	height: 100%;
	z-index: -1;
}


.card-data {
	width: 280px;
	padding: 1.5rem 2rem;
	border-radius: 1rem;
	position: absolute;
	bottom: -9rem; 
	left: 0;
	right: 0;
	margin-inline: auto;
	opacity: 0;
	transition: 1s 1s;
	background-color: rgba(255, 255, 255, 0.2); 
	backdrop-filter: blur(20px);
}

.card-description {
	display: block;
	margin-bottom: .25rem;
}

.card-title {
	font-weight: 500;
	margin-bottom: .75rem;
}

.card-button {
	text-decoration: none;
	font-weight: 500;
}

.card-button:hover {
	text-decoration: underline;
	
}
.menu-button {
	display: none;
	height: 29px;
	
}

.description:hover .card-data {
	animation: show-data 1s forwards;
	opacity: 1;
	transition: opacity .3s;
}

.description:hover {
	animation: remove-overflow 2s forwards;
}

.description:not(:hover) {
	animation: show-overflow 2s forwards;	
}

.description:not(:hover) .card-data {
	animation: remove-data 1s forwards;	
}

.carousel-button {
	position: absolute;
	z-index: 2;
	background: none;
	border: none;
	font-size: 4rem;
	top: 50%;
	transform: translateY(-50%);
	color: rgba(255,255,255,.5);
	cursor: pointer;
	border-radius: .25rem;
	padding: 0 .5rem;
	background-color: rgba(0,0,0,.1);
}
.carousel-button:hover,
.carousel-button:focus {
	color: white;
	background-color: rgba(0,0,0,.2)
}

.carousel-button:focus{
	outline: 1px solid black;
}

.carousel-button.prev {
	left: 1rem;
}

.carousel-button.next{
	right: 1rem;
}
/*animation for display card*/
@keyframes show-data{
	50%{
		transform: translateY(-13rem);
	}
	100%{
		transform: translateY(-11rem)
	}
}

@keyframes remove-overflow{
	to{
		overflow: initial;
	}
}

@keyframes remove-data{
	0%{
		transform: translateY(-11rem)
	}
	50%{
		transform: translateY(-13rem)
	}
	100%{
		transform: translateY(.5rem)
	}
}

@keyframes show-overflow {
	0%{
		overflow: initial;
		pointer-events: none;
	}
	50%{
		overflow: hidden;
	}
}

/* media size */
@media(max-width:800px) {
	.hideOnMobile {
		display: none;
	}
	
	.menu-button {
		display: inline;
	}
	
	.topnav-sidebar {
		display: none;
}
}
