@import url("common.css");

.flatSlideshow {
	height: 100vh;
	position: relative;
	overflow: hidden;
}

#outerSlideWrapper {
	position: relative;
	height: 100%;
	width: 100%;
	transition: transform 0.5s ease-in-out;
}

.slideContainer {
	width: 100%;
	position: absolute;
	top: 0;
	bottom: 0;
}

.slide {
	width: 100%;
	height: 100%;
	position: relative;
}

.slideshowImageHolder {
	position: relative;
	width: 100%;
	height: 100%;
}

/*#firstSlideDiv::before {
	background-image: url("../images/konyha.jpg");
	background-size: cover;
	background-attachment: fixed;
	content: "";
    position: absolute;
    top: 0px;
    right: 0px;
    bottom: 0px;
    left: 0px;
    filter: brightness(70%);
}*/

/*#secondSlideDiv::before {
	background-image: url("../images/header_bg.jpg");
	background-size: cover;
	background-attachment: fixed;
	content: "";
    position: absolute;
    top: 0px;
    right: 0px;
    bottom: 0px;
    left: 0px;
    filter: brightness(70%);
}*/

/*#thirdSlideDiv::before {
	background-image: url("../images/pizza.jpg");
	background-size: cover;
	background-attachment: fixed;
	content: "";
    position: absolute;
    top: 0px;
    right: 0px;
    bottom: 0px;
    left: 0px;
    filter: brightness(70%);
}*/

.slideshowImage {
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: brightness(0.8);
}

.slideshowButton {
	position: absolute;
	top: 50%;
	padding: 0.5em;
	background-color: transparent;
	border: 1px solid #fff;
	width: 40px;
	height: 40px;
	z-index: 100;
	transition: background-color 0.5s;
}

.slideshowButton:hover {
	background-color: white;
	cursor: pointer;
}

.slideshowButton:hover i {
	color: black;
}

.slideshowButton i {
	color: white;
	font-size: 24px;
	transition: color 0.5s;
}

.leftButton {
	left: 50px;
}

.rightButton {
	right: 50px;
}

.slideshowPropertyData {
	position: absolute;
	bottom: 0;
	left: 0;
	padding: 3vw;
	font-size: 2.3em;
	color: wheat;
	font-weight: bold;
}

.slideshowPropertyButton {
	position: absolute;
	bottom: 0;
	right: 0;
	padding: 3vw;
}

.slideshowPropertyButton a {
	text-decoration: none;
	font-size: 2.3em;
	display: inline-block;
	padding: 0.3em;
	border: 2px solid #fff;
	color: wheat;
	transition: background-color 0.5s;
	font-weight: bold;
}

.slideshowPropertyButton a:hover {
	background-color: var(--buttonblue);
}

.intro {
	display: flex;
	flex-direction: row;
	min-height: 80vh;
	position: relative;
}

.intro::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-image: url('../images/intro-bg8.jpg');
	background-repeat: no-repeat;
	background-size: cover;
	background-attachment: fixed;
	z-index: -1;
	filter: brightness(50%);
}

.introText {
	color: whitesmoke;
	width: 65%;
	display: flex;
	align-items: center;
}

.introText h2 {
	font-size: 48px;
	font-weight: 400;
	margin: 0 30px;
}

.introText p {
	font-size: 25px;
	margin: 20px 30px;
}

.introImageWrapper {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 35%;
	padding: 30px;
}

.introImage {
	max-width: 100%;
	max-height: 100%;
}

.propertyGroups {
	background-color: #303030;
}

.propertyGroups > div:first-child {
	padding: 60px;
	width: 100%;
	max-width: 1400px;
	margin: 0 auto;
	text-align: center;
}

.propertyGroupWrapper { /* The grid container */
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	gap: 3vw 2vh;
}

.propertyGroupBox { /* The grid items */
	position: relative;
	min-height: 500px;
	border: 5px solid goldenrod;
	border-radius: 10px;
	margin: 20px;
}

.propertyGroupBox:hover .propertyGroupBoxLaneLearnMoreContainer {
	visibility: visible;
	opacity: 1;
}

.propertyGroupBoxLaneLearnMoreContainer {
	display: flex;
	justify-content: center;
	align-items: center;
	visibility: hidden;
	position: absolute;
	top: 0;
	left: 0;
	bottom: 0;
	right: 0;
	background-color: rgba(255, 255, 255, 0.8);
	opacity: 0;
	transition: visibility 0.3s, opacity 0.3s;
}

.propertyGroupBoxLaneLearnMoreContainer a {
	display: inline-block;
	border: 2px solid #000;
	color: black;
	text-decoration: none;
	padding: 0.5vw;
	font-size: 1.4em;
	font-weight: bold;
	transition: background-color 0.5s, color 0.5s;
}

.propertyGroupBoxLaneLearnMoreContainer a:hover {
	color: white;
	background-color: #000;
}

.propertyGroupBox h3 {
	text-align: center;
	font-size: 2.7vw;
	color: black;
	margin: 0;
}

.propertyGroupBoxImageHolder {
	background-size: cover;
	height: 70%;
}

.propertyGroupBoxData {
	background-color: white;
	height: 30%;
	display: flex;
	padding: 10px;
	flex-direction: column;
	justify-content: center;
}

.highlightedPropertiesBox .propertyGroupBoxImageHolder {
	background-image: url('../images/kiemelt.jpg');
}

.allPropertiesBox .propertyGroupBoxImageHolder {
	background-image: url('../images/teljes.jpg');
}

.urgentlyForSalePropertyBox .propertyGroupBoxImageHolder {
	background-image: url('../images/surgos.jpg');
}

.cityCentrePropertyBox .propertyGroupBoxImageHolder {
	background-image: url('../images/belvaros.jpg');
}

.universityPropertyBox .propertyGroupBoxImageHolder {
	background-image: url('../images/uni.jpg');
	background-position: center;
}

.detachedHousesPropertyBox .propertyGroupBoxImageHolder {
	background-image: url('../images/csaladi.jpg');
	background-position: center;
}

@media (max-width: 1200px) {

	.introText {
		width: 60%;
	}

	.introImageWrapper {
		width: 40%;
	}

	.introText h2 {
		font-size: 35px;
	}

	.introText p {
		font-size: 20px;
	}

	.propertyGroupWrapper {
		grid-template-columns: 1fr 1fr;
	}

	.propertyGroupBox {
		/*width: 35vw;
		height: 50vh;*/
	}

}

@media (max-width: 992px) {

	.slideshowPropertyButton a {
		padding: 0.2em;
	}

	.intro {
		flex-direction: column-reverse;
		height: auto;
	}

	.introText p, .introText h2 {
		margin: 20px;
	}

	.introPart {
		width: 100%;
	}

	.introImage {
		width: 55%;
		min-width: 200px;
	}
	
	/*.propertyGroupBox {
		width: 40vw;
		height: 45vh;
	}*/
}

@media (max-width: 768px) {

	.intro {
		flex-direction: column-reverse;
	}

	.introPart {
		width: 100%;
		height: 50%;
	}

	.introText h2 {
		font-size: 28px;
	}

	.slideshowButton {
		width: 35px;
		height: 35px;
		padding: 0;
		top: 50%;
		transform: translateY(-50%);
	}

	.rightButton {
		right: 25px;
	}

	.leftButton {
		left: 25px;
	}

	.slideshowButton i {
		font-size: 24px;
	}

	.slideshowPropertyData {
		font-size: 2em;
	}

	.slideshowPropertyButton a {
		font-size: 2em;
	}

	.propertyGroupWrapper {
		grid-template-columns: 1fr;
		justify-items: center;
		gap: 0 0;
	}

	.propertyGroupBox {
		/*width: 45vw;
		height: 45vh;*/
		max-width: 325px;
		width: 100%;
	}

	.propertyGroupBoxImageHolder {
		height: 60%
	}

	.propertyGroupBoxData {
		height: 20%;
	}

	.propertyGroupBoxLaneLearnMoreContainer {
		position: relative;
		opacity: 1;
		visibility: visible;
		background: transparent;
		height: 20%;
	}

	.propertyGroupBoxLaneLearnMoreContainer a {
		padding: 5px;
		font-size: 2.5vh;
		color: whitesmoke;
		border: 2px solid #fff;
	}
}

@media (max-width: 600px) {

	.slideshowPropertyButton a {
		font-size: 1.5em;
	}

	.slideshowPropertyData {
		font-size: 1.5em;
	}

	.propertyGroupWrapper {
		padding: 10px;
	}

	.propertyGroupBoxData h3 {
		font-size: 18px;
	}

	.propertyGroups > div:first-child {
		padding: 0;
	}
}

@media (max-width: 480px) {

	.slideshowPropertyButton a {
		font-size: 1.1em;
	}

	.slideshowPropertyData {
		font-size: 1.2em;
	}

	.introImageWrapper {
		padding: 15px;
	}
	.introText h2 {
		margin: 5px 20px;
		font-size: 24px;
	}

	.introText p {
		margin: 15px 20px;
		font-size: 18px;
	}
}