:root {
    --main-color: #694a5c;
    --lighter-color: #8e7781;
    --light-color: #c9afc1;
}

::selection {
    background: var(--light-color);
}


html {
	font-family: "Playfair Display", serif;
	font-optical-sizing: auto;
	font-weight: 800;
	font-style: normal;
}

body {
    display: grid;
    color: var(--main-color);
	margin: 0;
	height: 100vh;
	grid-template-rows: auto 1fr auto;
	transition: 0.5s ease;
}

.dark {
    background-color: #000;
    --main-color: #b2839c;
    --lighter-color: #8e7781;
    --light-color: #c9afb8;
}

.darken {
    background-color: #392d37;
    --main-color: #d7b9c8;
    --lighter-color: #9b888f;
    --light-color: #65545b;
    
    a {
        color: #b37b98;
    }
    
}

.dark menu, .darken menu {
    background-color: transparent;
}

.bw {
    background-color: #2a2a2a;
    --main-color: #885663;
    --lighter-color: #8e7781;
    --light-color: #ae989e;
}

h1 {
	font-size: 3rem;
	
	width: 100%;
    text-align: center;
    border-top: 4px dotted var(--light-color);
    border-bottom: 4px dotted var(--light-color);
}

.header-comm {
    margin-top: 4rem;
}

p {
	font-family: "Raleway", sans-serif;
	font-optical-sizing: auto;
	font-weight: 400;
	font-style: normal;
	font-size: 1.4rem;
}

a {
	color: #911233;
	text-decoration-thickness: from-font;
	-webkit-transition: 0.3s ease;
	-moz-transition: 0.3s ease;
	-ms-transition: 0.3s ease;
	-o-transition: 0.3s ease;
	transition: 0.3s ease;

	&:hover  {
		color: white;
		background-color: var(--main-color);
		box-shadow: 0px 0px 12px 3px var(--lighter-color);
		-webkit-transition: 0.3s ease;
		-moz-transition: 0.3s ease;
		-ms-transition: 0.3s ease;
		-o-transition: 0.3s ease;
		transition: 0.3s ease;
	}

	&:active {
		text-decoration: none;
	}
	
	& img {
	    display: block;
	    margin: 0 !important;
		-webkit-transition: 0.3s ease;
		-moz-transition: 0.3s ease;
		-ms-transition: 0.3s ease;
		-o-transition: 0.3s ease;
		transition: 0.3s ease;
	    
	    &:hover {
	       box-shadow: 0px 0px 16px 10px var(--light-color);
	       -webkit-transition: 0.3s ease;
		-moz-transition: 0.3s ease;
		-ms-transition: 0.3s ease;
		-o-transition: 0.3s ease;
		transition: 0.3s ease;
	    }
	}
}

header {
	position: relative;
	text-align: center;
}

img {
    object-fit: contain;
    max-height: 100vh;
}

main,
main>div {
	margin: 0 1rem;
	display: grid;
	align-content: center;
	justify-content: center;
	align-items: baseline;
	justify-items: center;
	
	margin-left: auto;
    margin-right: auto;
}

main img {
	display: block;
	margin: 0.5rem;
	max-width: 100%;
	max-height: 95vh;
	width: auto;
	height: auto;
}

.m-slider {
    display: block;
    
    & img {
        max-height: 70vh;
    }
    
    & a {
        box-shadow: none;
        text-decoration: none;
    }
}

menu {
	font-family: "Raleway", sans-serif;
	font-weight: 500;
    position: relative;
    padding: 0.5rem;
    background-color: #ffffffc2;
    margin-bottom: -4rem;
    z-index: 1;

	& li {
		display: inline-block;
		font-size: 1.3rem;

		& a {
			padding: 0.5rem;
		}
	}
}

	.menu-proj {
	    margin-bottom: 0;
	}

.descr {

	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);

	& p {
		background-color: #ffffffa6;
		padding: 0.4rem;
		font-size: 1.9rem;
		margin: 0.5rem;
		text-align: center;

		display: grid;
		grid-template-columns: 1fr max-content 1fr;
		/* grid-template-rows: 27px 0; */
		grid-gap: 20px;
		align-items: center;

		&:after,
		&:before {
			content: " ";
			display: block;
			border-bottom: 1px solid var(--lighter-color);
			border-top: 1px solid var(--lighter-color);
			height: 5px;
			/* background-color:#f8f8f8; */
		}
		
		&:nth-child(1) {
		    font-family: "Playfair Display", serif;
		      color: #a3315f;
		}
		
		&:nth-child(2) {
		    font-size: 1.2rem;
		}
	}

}

.header-div {
    position: relative;
    min-height: 80vh;
	/* width: 100vw; */
	max-width: 100%;
	object-fit: cover;
	/* background-color: #fff; */
	
	z-index: -1;
	clip-path: inset(0);
	transition: 0.5s;
}

	.blog-img {
	    min-height: 30vh;
	   img {
	       max-width: 100%;
	   }
	}

.header-img {
     object-fit: cover;
      position: fixed;
    left: 0;
    /* top: 0; */
        max-height: 90%;
        min-width: 100%;
        /* top: -2rem; */
}

/* .header-img:not(.blog-img) {
    max-width: none;
} */

.blog {
	display: block;
	max-width: 60%;
	align-content: normal;
	justify-items: start;
}

article {
    border-bottom: 2px dotted var(--light-color);
    
    &:before {
        content: " ";
			display: block;
			position: absolute;
			border-left: 4px dotted var(--lighter-color);
			height: 3rem;
			width: 4px;
			transform: translate(-20px);
    }
}


.container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* gap: 10px; */
  grid-auto-rows: minmax(100px, auto);
  align-items: start;
}

.container > div {
    padding: 1rem;
}

footer {
	padding: 1rem;
	width: max-content;
	margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.proj-descr {
    text-align: center;
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
}

button {
    border: none;
    
    &:hover {
        cursor: pointer;
    }
}

@media (max-width: 1200px) {
    
    h1 {
        font-size: 2rem;
    }
    
	.blog {
		max-width: 80%;
		align-content: normal;
	}
	
	    .header-div:not(.blog-img) {
            min-height: 50vh;
    }
    
    
    .header-img {
        max-height: 50%;
    }
}

@media (max-width: 750px) {
    
    .container {
        grid-template-columns: repeat(1, 1fr);
    }
    
    .header-div:not(.blog-img) {
        min-height: 40vh;
    }
    
    menu {
        /* margin-bottom: 6rem; */
            margin-bottom: -6rem;
    }
    
     .blog-img {
        min-height: 10vh;
    }
    
    .header-comm {
        margin-top: -6rem;
    }
    
    .header-img {
        max-height: 50%;
    }
    
    .blog {
        margin-top: 12rem;
    }
    

}

@media (max-width: 500px) {
    
    h1 {
        font-size: 1.6rem;
    }
    
    p {
        font-size: 1.1rem;
    }

	menu {
	   margin-bottom: 0;
	}
	
	menu li {
		display: block;
		font-size: 1.3rem;
	}

	.descr {
		position: relative;
		top: 0;
		left: 0;
		transform: none;

		& p {
			margin: 0.5rem;
		}

	}
	
	.header-div {
        min-height: 20vh;
    }
    
    .blog-img {
        position: absolute;
        min-height: 10vh;
	    opacity: 0.3;
    }
    
    .header-comm {
        margin-top: 0rem;
    }

}