@font-face {
  font-family: Lato;
  src: url('./fonts/Lato-Regular.ttf') format('truetype');
}

html {
	font-family: Lato, sans-serif;
	scroll-behavior: smooth;
}

body {
	display: flex;
	align-items: center;
	justify-content: center;
	background-image: url("./sea1.jpg");
	background-repeat: no-repeat;
	background-attachment: fixed;
	background-size: 100%;
}

main {
	width: 50vw;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.header {
	margin-top: 20vh;
}

h1 {
	color: white;
	font-size: 2.3rem;
	text-align: center;
	margin-top: 5vh;
	margin-bottom: 5vh;
}

.span-big {
	font-size: 3rem;
}

h2 {
	font-size: 2rem;
	margin: 10px;
	color: white;
	margin-bottom: 1.1rem;
}

p {
	margin: 10px;
}

.card {
	line-height: 1.3rem;
	font-size: 1.1rem;
	width: 30vw;
	display: flex;
	text-align: center;
	color: white;
	justify-content: space-evenly;
	border-radius: 1rem;
	padding: 2rem;
	margin-bottom: 1rem;
	align-items: center;
	transition: height 0.5s ease-in-out;
	transition: height 5s ease-in-out;
	flex-direction: column;
}

.presentation, .school, .tarif, .gallery, .insta {
	background-color: rgba(0, 31, 63, .8); /* nice blue */;
}

.contact {
	background-color: rgba(0, 255, 127, 0.8); /* accent green */
}

.contact:hover {
	cursor: pointer;
}

.card img {
	max-width: 5vh;
	max-height: 5vw;
}

.presentation img {
	max-height: 100%;
	max-width: 90%;
	border-radius: 1rem;
}

.presentation-text {
	margin-bottom: 10px;
	padding: 0 10px;
	color: add8e6;
	font-size: 1rem;
	color: #f0f0f0;
}

.presentation-marker {
	background-color: rgba(65, 105, 225, 1);
	width: 30px;
	height: 30px;
	border-radius: 50%;
	animation: grow 2s infinite ease-in-out;
}

.presentation-marker::after {
	content: "";
	display: block;
	width: 100%;
	height: 100%;
	border-radius: 50%;
	/* background-color: blue; */
	background-color: rgba(65, 105, 225, 1);
	animation: pulse 2s infinite;
}

.presentation-click {
	display: flex;
	flex-direction: column;
	align-items: center;
	transition: display 2s;
}

.presentation-click:hover {
	cursor: pointer;
}

.tarif span {
	font-size: 1.4rem;
	line-height: 1.3rem;
	color: #00FF7F;
}
.tarif li {
	margin: 10px;
}


@keyframes grow {
	0% 100% {
		transform: scale(1);
	}
	50% {
		transform: scale(1.3);
	}
}

@keyframes pulse {
	from {
		transform: scale(1);
	}
	to {
		transform: scale(2);
		opacity: 0;
	}
}

@media screen and (max-width: 915px) {
	h1 {
		width: 90vw;
	}
	.card {
		width: 67vw;
	}
}

.hidden {
	opacity: 0;
}

.grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-gap: 20px;
	padding: 10px;
	width: 90%;
}

.grid-img {
	overflow: hidden;
	position: relative;
	width: 100%;
	height: 18rem;
}

.grid-img img {
	display: block;
  max-width: 100%;
  object-fit: cover;
  width: 100%;
  height: 100%;
	/* height: auto; */
	/* transition: transform 1s; */
}

