/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}

/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
    margin: 0;
    padding: 0;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}
/* Box sizing rules */
*, *::before, *::after {
    box-sizing: border-box;
  }
/* blockquote */
blockquote:before, blockquote:after,
q:before, q:after {
    content: '';
    content: none;
}
img {
    display: block;
}

















/*MY STYLE------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------*/
body {
	background: #f4f4ed;
    font-family: Jura, Lato, Corbel, sans-serif;
	color: #121212;
	font-size: 1.1rem;
	line-height: 1.6;
}

p {
	margin-bottom: 1.8rem;
}

li {
	margin-bottom: 1rem;
}

ul, ol {
	margin-bottom: 2rem;
}

p + h2, p + h3, p + h4 {
	margin-top: 0.7rem;
}

img {
	margin-bottom: 2rem;
}

p + img {
	margin-top: 0.2rem;
}

h2 +img, h3 +img, h4 +img {
	margin-top: 1rem;
}

/*lists styling*/
li:last-of-type {
	margin-bottom: 0;
}

h1, h2, h3 {
	text-wrap: balance;
}

h1 {
	font-size: 2rem;
	line-height: 1.3;
	color: #121212; 
	text-align: left;
}

h2 {
	font-size: 1.6rem;
	line-height: 1.55;
    margin-top: 2rem;
}

h3 {
	font-size: 1.3rem;
	line-height: 1.55;
	color: #121212;
    margin-top: 2rem;
}

h1 + h2, h2 + h3, h1 + cite {
	margin-top: 1rem;
}

h1 + p, h2 + p, h3 + p, h1 + .about-me-grid {
	margin-top: 1rem;
}

cite + p {
	margin-top: 2rem;
}

/*all links*/
a, a:link, a:visited {
	color: rgb(18, 18, 18);
	padding: 3px;
	text-decoration: underline;
	transition: .4s ease all;
    cursor: pointer;
}

a:hover, a:focus-visible, a:active {
	color: rgba(18, 18, 18, 0.6);
	cursor: pointer;
}

main ul {
    list-style-type: disc; /* bullet points */
    padding-left: 1.5rem; /* space from left edge */
    margin: 1rem 0 1.5rem 0; /* space above and below */
}

code {
    font-style: italic;
}



/*MAIN---------------------------------------------------------------------*/
main {
	width: 90%;
	max-width: 1000px;
	margin: auto;
}


/*HEADER---------------------------------------------------------------------*/
header {
	font-size: 1.1rem;
	line-height: 1;
	color: #121212;
}

.header-content {
	width: 90%;
	max-width: 1000px;
	margin: auto;
}

header img {
    max-width: 250px; 
    height: auto;
	margin: auto;
	margin-top: 1rem;
	margin-bottom: 1rem;
}

header {
	position: relative;
	border-bottom: none;
	margin-bottom: 2rem;
	padding-bottom: 2.5rem;
}

/*Custom border for the header*/
header::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1.85rem;
    background-image: url('../images/line.svg'); 
    background-repeat: repeat 1;
    background-size: auto 1.85rem; /* Auto width, fixed height */
    background-position: center bottom;
}

[src="images/logo-lera-light.svg"] {
	display: none;
}



/* DARK/LIGHT---------------------------------------------------------------------*/

/*so switchers and menu will be on the same line*/
#whole-header {
	display: grid;
    grid-template-columns: auto 1fr;
    align-items: start;
}

/* buttons default/ dark mode */
fieldset {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-column-gap: 1rem;
    margin: 2.0em;
    border: none;
}

label {
    white-space: nowrap;
}

label:hover, input:hover {
    cursor: pointer;
}


/* theme switchers---------------------------------------------------------------------*/
#themeselect {
	margin: 0px; 
	margin-left: auto; /* Push icons to the right */
}

/* layout/size/position of switch container */
#themeselect fieldset {
    display: grid;
    grid-template-columns: 40px 40px;
    grid-column-gap: 0.8rem;
    margin: 0;
    position: relative;
    line-height: 1;
}

/* hide radio button input */
#themeselect fieldset input {
	display: none;
}

/* style label */
#themeselect fieldset input + label {
	display: inline-block;
	text-decoration: none;
	text-align: right;
	transition: .2s ease all;
}

#themeselect fieldset input:hover + label {
	color: rgba(18, 18, 18, 0.6);

}

#themeselect fieldset input:active + label {
	color: rgba(18, 18, 18, 0.6);
}

/* show currently active switch */
#themeselect fieldset input:checked + label {
	color: rgba(18, 18, 18, 0.6);
}


/* Theme icon labels - completely hide text */
#themeselect fieldset label.theme-icon {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border: 2px solid transparent;
    cursor: pointer;
    margin: 0;
    padding: 0;
    line-height: 40px;
    font-size: 0 !important;  /* Force text to be invisible */
    color: transparent !important;
    text-indent: 0;  /* Reset text indent */
}

/* Light mode icon */
#themeselect fieldset label.icon-light {
    background-image: url('../images/icon-light.svg');
}

/* Dark mode icon */
#themeselect fieldset label.icon-dark {
    background-image: url('../images/icon-dark.svg');
}

/* Hover effect */
#themeselect fieldset label.theme-icon:hover, #themeselect fieldset input:focus-visible + label.theme-icon {
    opacity: 0.6;
}

/* Active theme - show border around selected icon */
#themeselect fieldset input:checked + label.theme-icon {
	color: rgba(18, 18, 18, 0.6);
}


/*MENU TOGGLE---------------------------------------------------------------------*/
input[type="checkbox"]#menu-toggle { /*to ensure the input remains accessible*/
    opacity: 0;
    position: absolute;
}

label.toggle {
    display: inline-block;
    width: auto;
    margin: 0;
    position: relative;
    padding-top: 10px;
    font-size: 1.2rem;
    line-height: 1;
    color: rgb(18, 18, 18);
}

nav label.toggle:hover, nav label.toggle:active, nav label.toggle:focus-visible {
    cursor: pointer;
}

/*visual focus*/
nav .toggle::before {
    content: "";
    display: inline-block;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    position: absolute;
}

input[type="checkbox"]#menu-toggle:focus-visible + label.toggle::before {
    border-top: 1.5px solid rgb(18, 18, 18);
    border-bottom: 1.5px solid rgb(18, 18, 18);
    outline: none;
}

/* show/hide menu */
input[type="checkbox"]#menu-toggle + label.toggle + ul {
    display: none;
}

input[type="checkbox"]#menu-toggle:checked + label.toggle + ul {
    display: block;
}

label.toggle strong { /*menu word*/
    position: absolute;
    display: none;
    width: 80vw;
    top: 10px; /*so menu word will be in the middle of three lines*/
    left: 3.5rem;
    color: rgb(18, 18, 18);
    transition: .4s ease all;
}

label.toggle:hover strong {
    color: rgba(18, 18, 18, 0.6);
}

/* 3 lined toggle vis*/
label.toggle [class*='line-'] {
    background: rgb(18, 18, 18); /*color of the menu lines*/
    display: block;
    border-radius: 3px;
    height: 1.7px;
    width: 26px;
    margin: 0 0 6px 0;
    transform: rotate(0deg);
    transition: .4s ease all;
}

label.toggle:hover [class*='line-'],
label.toggle:active [class*='line-'],
label.toggle:focus-visible [class*='line-'] {
  background: rgba(18, 18, 18, 0.6);
}

input[type="checkbox"]#menu-toggle:checked + label.toggle .line-top {
    transform: rotate(45deg);
    transform-origin: 7% 50%;
}

input[type="checkbox"]#menu-toggle:checked + label.toggle .line-mid {
    opacity: 0;
}

input[type="checkbox"]#menu-toggle:checked + label.toggle .line-bot {
    transform: rotate(-45deg);
    transform-origin: 7% 50%;
    margin-bottom: 2.5rem; /*to allow some distance between the 3 lined toggle and all other options while checked*/
}

/*link styling*/
header nav li a {
    margin-bottom: 2rem;
}

header nav li a:link, header nav li a:visited {
    display: block;
    padding-left: 0; /*so it will be on the same line with the menu*/
    /* link text */
    color: rgb(18, 18, 18);
    text-decoration: none;
    font-size: 1.2rem;
    text-align: left;
    transition: .4s ease all;
}

header nav li a:hover, header nav li a:active, header nav li a:focus-visible {
    color: rgba(18, 18, 18, 0.6);
}


/*HOMEPAGE---------------------------------------------------------------------*/

.home-page img {
	max-width: 520px;
	width: 100%;
	height: auto;
	margin: auto;
	margin-top: 2rem;
	margin-bottom: 2rem;
}

img[src="images/castle.png"] {
	max-width: 400px;
	margin-top: 1.5rem;
}

img[src="images/road-4.png"], img[src="images/road-5.png"] {
	display: none;
}

img[src="images/road-1-dark.png"], img[src="images/road-2-dark.png"], img[src="images/road-3-dark.png"], img[src="images/road-4-dark.png"], img[src="images/road-5-dark.png"] {
	display: none;
}

.babies {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem; 
    flex-wrap: wrap;
}

.babies img {
	width: 170px;
	height: auto;
	max-width: 40%;
}

.left-layout-babies {
	display: flex;
	justify-content: center; 
	gap: 1rem; 
	margin-top: 1rem;
}

.baby-1 {
    animation: float-1 4s ease-in-out infinite;
}

@keyframes float-1 {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-6px) rotate(2deg);
    }
}

.baby-2 {
    animation: float-2 6s ease-in-out infinite;
    animation-delay: 0.5s; 
}

@keyframes float-2 {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-10px) rotate(-3deg);
    }
}


/* Home page links with arrows */
.header-links {
	margin-top: 2rem;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 1rem;
}

.header-link {
    display: inline-flex;
    align-items: center;
    gap: 1rem; /* Increased from 0.5rem to bring arrow closer */
    text-decoration: none;
    color: rgb(18, 18, 18);
    font-size: 1.5rem;
    transition: .2s ease all;
    white-space: nowrap; /* Prevents text from wrapping */
}

.header-link, .header-link:link, .header-link:visited  {
	text-decoration: none;
}

.header-link:hover,
.header-link:focus-visible, .header-link:active {
    color: rgba(18, 18, 18, 0.6);
}

.header-link img {
    width: 90px;
    height: auto;
    margin: 0;
    transition: .5s ease all;
}

.header-link:hover img {
    transform: translateX(4px); /* arrow slides*/
	opacity: 0.6;
}

img[src="images/arrow-1-white.svg"] {
	display: none;
}
img[src="images/arrow-2-white.svg"] {
	display: none;
}


@media (min-width: 600px) {
	.header-links {
		display: flex;
		flex-direction: row;
	}

    .left-layout-text {
        padding-right: 13rem;
    }

    .right-layout-text {
        padding-left: 13rem;
    }

	.babies img {
		max-width: 45%;
	}
}

@media (min-width: 1000px) {
    
    .left-layout {
        display: flex;
        justify-content: flex-start;
        margin-left: 10rem;
    }
    
    .left-layout-babies {
        display: flex;
        justify-content: flex-start;
    }
    
    img[src="images/road-4.png"], img[src="images/road-5.png"] {
        display: block;
    }
    
    img[src="images/road-1.png"], img[src="images/road-2.png"] {
        display: none;
    }

	img[src="images/road-4.png"] {
		display: block;
		margin-left: auto;
		margin-right: 10rem; /* Adjust this value to control how far from right edge */
	}
    
    .home-page img {
        max-width: 600px;
    }
    
	.header-with-castle {
		display: grid;
		grid-template-columns: auto 1fr;
		align-items: center;
		gap: 3rem;
		justify-items: start;
	}
	
	/* Right column: castle image */
	.header-with-castle img {
		width: 100%;
		max-width: 400px;
		margin: 0;
		justify-self: end; /* Push castle to the right */
	}
    
    /* Left column: h1 and links together */
    .header-with-castle > div:first-child {
        display: flex;
        flex-direction: column;
    }
    
    .header-with-castle h1 {
        margin-top: 0;
        margin-bottom: 2rem;
    }
    
    .header-links {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    /* Right column: castle image */
    .header-with-castle img {
        width: 100%;
        max-width: 400px;
        margin: 0;
    }
    
    .babies {
        justify-content: flex-start !important;
    }
    
    .babies img {
        width: 170px;
        height: auto;
    }
    
    .header-link img {
        width: 90px;
    }
}


/*WORKS PAGE---------------------------------------------------------------------*/

.works-page h1 {
    margin-bottom: 2rem;
}

/* Base styles - Mobile (single column) */
.works-page {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.work-item {
    margin: 0;
}

.work-item a {
    display: block;
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.work-item a figcaption span, .work-item a figcaption span:link, .work-item a figcaption span:visited {
	color: rgb(18, 18, 18);
	padding: 3px;
	transition: .4s ease all;
    cursor: pointer;
}

.work-item a figcaption span:hover, .work-item a figcaption span:focus-visible, .work-item a figcaption span:active {
	color: rgba(18, 18, 18, 0.6);
	cursor: pointer;
}

.work-item img {
    width: 100%;
    margin-bottom: 1rem;
    height: auto;
    display: block;
}

/* Figcaption - visible on mobile */
.work-item figcaption {
    padding: 0 0 1rem 0;
}

.work-item figcaption p {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: #121212;
}

.work-item figcaption span {
    font-size: 1.2rem;
    font-weight: bold;
    color: #121212;
}

@media (min-width: 700px) {
    .works-page {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-auto-rows: minmax(100px, auto);
        gap: 1.5rem;
    }

    .works-page h1 {
        grid-column: 1 / -1;
    }

    /* Tall image on left spans full height */
    .work-item.tall {
        grid-row: 2 / 4;
    }

    /* Small images on right - half height each */
    .work-item.small {
        grid-row: span 1;
    }

    /* Bottom wide images */
    .work-item.med {
        grid-column: span 1;
    }

    .work-item a {
        display: block;
        height: 100%; /* makes link fill the grid cell */
    }

    .work-item img {
        width: 100%;
        height: 100%; 
        object-fit: cover; /* fills the space */
        display: block;
        transition: transform 0.3s ease;
    }

    /* Figcaption overlay */
    .work-item figcaption {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        background: rgba(244,244,237,0.95);
        padding: 1.5rem;
        margin: 0;
        opacity: 0;
        transition: opacity 0.5s ease;
    }

    .work-item a:hover figcaption {
        opacity: 1;
    }

    .work-item figcaption p {
        margin-bottom: 0.5rem;
    }

    .work-item figcaption span {
        display: block;
    }
}

/* Desktop */
@media (min-width: 1000px) {
    .works-page {
        gap: 1rem;
    }
}






























/*CASES---------------------------------------------------------------------*/

cite a {
	margin: 1rem 0;
}

cite a:link, cite a:visited {
	text-decoration: none;
	text-decoration: underline 1.5px;
	display: block;
	font-weight: 500;
	font-size: 1.2rem;
	line-height: 1;
	color: rgba(15, 15, 15);
	text-align: left;
	transition: .2s ease all;
}

cite + p, #case-sum-up {
	font-style: italic;
}

cite a:hover, cite a:active, cite a:focus-visible {
	color: rgba(15, 15, 15, 0.6);
}

.case-page img {
	max-width: 1000px;
	width: 100%;
    height: auto;
	margin: auto;
    border-radius: 1.5rem;
}

.case-page video {
    max-width: 1000px;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 1.5rem;
}





.post-right-grid h2, .post-left-grid h2, .text-left-float h2, .text-right-float h2 {
    text-align: left;
}

.post-left-grid img, .post-right-grid img, .post-left-grid video, .post-right-grid video {
	max-width: 700px; 
	height: auto;
	margin: auto;
	margin-bottom: 2rem;
}

/*
.post-right-vertical-grid img {
	max-width: 700px;
	height: auto;
	margin: auto;
	margin-bottom: 2rem;
}*/

.pic-right-float img, .pic-left-float img, .pic-right-float video, .pic-left-float video {
	max-width: 700px; 
	height: auto;
	margin: auto;
	margin-bottom: 5rem;
}

.wide img, .wide video, .wide {
    max-width: 700px; 
	height: auto;
	margin: auto;
	margin-bottom: 2rem;
}

.wide h2 + img, .wide h2 + video, h2 + div, h2 + video, h2 + .wide {
    margin-top: 2rem
}

.pics-left-grid img {
    max-width: 700px;
    height: auto;
    margin: auto;
    margin-bottom: 5rem;
}

.pics-left-grid img:last-child {
    margin-bottom: 0rem;
    max-width: 400px !important;
}

.pics-left-grid {
    margin-bottom: 5rem;
}

/*
.pics-long-grid img, .pics-three-long-grid img{
    max-width: 700px;
    height: auto;
    margin: auto;
    margin-bottom: 2rem;
}*/

.sketches-grid img, .sketches-three-long-grid img, .pics-long-grid img, .pics-three-long-grid img, .post-right-vertical-grid img, .post-left-vertical-grid img {
    max-width: 400px;
    height: auto;
    margin: auto;
    margin-bottom: 5rem; 
}

.sketches-grid img, .sketches-three-long-grid img, .post-right-vertical-grid img, .post-left-vertical-grid img {
    margin-bottom: 2rem !important;
}

.post-left-grid, .post-right-grid, .wide, .wide-text, .sketches-grid, .pics-long-grid, .post-left-vertical-grid, .post-right-vertical-grid, .pics-three-long-grid, .sketches-three-long-grid {
    margin-bottom: 5rem !important; 
}


@media (min-width: 700px) {
    .sketches-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-gap: 2rem;
        margin-bottom: 5rem !important;
    }

}


@media (min-width: 1050px) {

    .sketches-three-long-grid img, .post-right-vertical-grid img, .post-left-vertical-grid img {
        margin-bottom: 0rem !important;
    }

	.post-right-grid {
		display: grid;
		grid-template-columns: 1fr 2fr;
		grid-gap: 2rem;
		margin-bottom: 5rem;
	}

    .post-right-vertical-grid {
		display: grid;
		grid-template-columns: 2fr 1.5fr;
		grid-gap: 2rem;
		margin-bottom: 5rem;
	}

    .post-left-vertical-grid {
        display: grid;
		grid-template-columns: 1.5fr 2fr;
		grid-gap: 2rem;
		margin-bottom: 5rem;
    }

	.post-left-grid {
		display: grid;
		grid-template-columns: 2fr 1fr;
		grid-gap: 2rem;
		margin-bottom: 5rem;
	}

    .post-right-grid p:last-of-type, .post-left-grid p:last-of-type {
		margin-bottom: 0rem;
	}

	.post-right-grid img {
		grid-column: 2;
		grid-row: 1;
		margin: 0 auto;
	}

    .post-right-vertical-grid img {
		grid-column: 2;
		grid-row: 1;
		margin: 0 auto;
	}

    .post-left-grid img {
		grid-column: 1;
		grid-row: 1;
		margin: 0 auto;
	}

	.post-right-grid img, .post-left-grid img, .post-right-vertical-grid img, .post-left-vertical-grid img { 
        margin-top: 2.7rem;
		margin-bottom: 0;
	}

	.pic-right-float img, .pic-left-float img, .pic-right-float video, .pic-left-float video  {
        margin: 0;
		margin-bottom: 0;
	}

	.pic-right-float {
		display: flex;
		justify-content: flex-end;
		margin-bottom: 5rem;
	}
	
	.pic-left-float {
		display: flex;
		justify-content: flex-start;
		margin-bottom: 5rem;
	}

	.skinny-text {
		margin-bottom: 5rem;
	}

    .wide img, .wide video, .wide {
        margin-bottom: 5rem;
    }

	.text-left-float, .text-right-float {
		margin-bottom: 5rem;
	}

	.text-left-float p + h2, .text-right-float p + h2, .skinny-text p + h3 {
		margin-top: 5rem;
	}

    .pics-long-grid img, .pics-three-long-grid img, .sketches-grid img, .sketches-two-grid img{
        max-width: 500px;
    }
    
    .pics-long-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-gap: 2rem;
        margin-bottom: 5rem;
    }

    .pics-three-long-grid, .sketches-three-long-grid {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        grid-gap: 2rem;
        margin-bottom: 5rem;
    }

    .sketches-grid {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        grid-gap: 2rem;
        margin-bottom: 0rem !important;
    }

    .pics-long-grid img, .pics-three-long-grid img, .sketches-grid img, .sketches-three-long-grid img {
        width: 100%;
        height: auto;
        margin: 0;
    }
}

@media (min-width: 1112px) {
    .pics-left-grid {
        display: grid;
        grid-template-columns: 670px 1fr;
        grid-gap: 2rem;
        margin-bottom: 5rem;
    }

    .pics-left-grid img {
        width: 100%;
        height: auto;
        margin: 0;
    }
    
    .pics-left-grid img:first-child {
        max-width: 670px;
    }
}











/*ABOUT ME PAGE---------------------------------------------------------------------*/
.about-page {
	display: grid;
	grid-template-columns: 1fr;
    overflow: hidden; 
}

.about-page h1 {
	grid-column: 1;
	grid-row: 1;
}

.about-me-grid {
    width: 100%; /* Add this */
    max-width: 100%;
    overflow: hidden;
}

.about-me-grid img {
    display: block;
    max-width: 400px;
    width: 100%;
    height: auto;
    margin: 0 auto 2rem auto;
    object-fit: contain;
}

@media (min-width: 1050px) {

	.about-me-grid  {
		display: grid;
		grid-template-columns: 1fr 1fr;
		grid-gap: 2rem;
		margin-bottom: 5rem;
	}

    .about-me-grid img {
        grid-column: 2;
        grid-row: 1;
        max-width: 350px !important;
        margin: 0.3rem auto 0 auto !important;
    }
}


/*FOOTER---------------------------------------------------------------------*/
footer {
	position: relative;
	font-size: 1.1rem;
	margin-top: 2rem;
	padding: 1.5rem 2rem;
	color: #121212;
}

footer nav ul {
	width: 90%;
	max-width: 1000px;
	margin: auto;
	display: grid;
	grid-template-columns: 1fr;
}
footer nav ul li {
	margin: 0 auto;
	text-align: center;
	margin-bottom: 2rem;
}

footer nav ul li:last-child {
	margin-bottom: 0;
}

footer nav ul li a {
	text-decoration: none !important;
}

footer p {
	margin-top: 2rem;
	font-size: 0.9rem;
	font-weight: normal;
	text-align: center;
}

footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1.85rem;
    background-image: url('../images/line.svg'); 
    background-repeat: repeat-x;
    background-size: auto 1.85rem;
    background-position: center top;
}

a {
    cursor: pointer !important;
}

/*RESPONSIVE-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------*/
@media (min-width: 650px) {	
	footer nav ul {
		display: grid;
		grid-template-columns: repeat(5, 1fr);
	}

	footer nav ul li {
		margin-bottom: 0;
		margin-top: 2.5rem;
	}

}

@media (min-width: 810px) {	
	/* show/hide menu */	
    input[type="checkbox"]#menu-toggle + label.toggle + ul, input[type="checkbox"]#menu-toggle:checked + label.toggle + ul {
        display: block;
    }

    input[type="checkbox"]#menu-toggle + label.toggle, input[type="checkbox"]#menu-toggle:checked + label.toggle {
        display: none;
    }	

	header nav ul {
		width: 100%;
		margin-top: 0.5rem; /*so nav will be on the same lvl with the sunn and moon*/
	}

	nav ul li {
		display: inline;
		text-align: center;
	}

	nav li a:link, nav li a:visited {
		margin: 0;
		margin-right: 1.5rem;
		display: inline-block !important; /*this important makes it be not in a column*/
		text-align: center;
	}

	fieldset {
		display: grid;
		grid-template-columns: 1fr 1fr;
		grid-column-gap: 3.5rem;
	}
}









