html, body {
	/*Set height to full view and remove default spacing*/
	height: 100%;
	margin: 0;
	padding: 0;
}

:root {
	/*Define color variables for color palette*/
  	--deep-navy: #262F4C;
  	--lavender: #DFCDFB;
  	--blush: #F6D4D4;
 	--text-dark: #222;
  	--text-light: #fff;
}

body::before {
	/*Add a somewhat transparent fixed background image*/
  	content: '';
  	position: fixed;
  	top: 0;
  	left: 0;
  	width: 100%;
  	height: 100%;
  	background-image: url('../img/duotone1.png');
  	background-size: cover;
  	background-position: center;
  	opacity: 0.40;
  	z-index: -1;
  	pointer-events: none;
}

h1, h2 {
	/*Heading font and color*/
  	font-family: 'DM Serif Display', serif;
  	color: var(--deep-navy);
  	font-size: 40px;
  	font-weight: 400;
  	margin-top: 0.5rem;
	margin-bottom: 0.5rem;
}

body {
	/*Base typograpy and layout styling*/
  	font-family: Georgia, serif;
  	margin: 0;
  	padding: 0;
  	font-size: 18px;
  	color: var(--text-dark);
  	background-color: #fdfdfd;
  	line-height: 1.5;
  	display: flex;
  	flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1; 
    display: flex;
    flex-direction: column;
}

/* Navigation bar container */
header {
	background-color: var(--deep-navy);
    display: flex;
    justify-content: space-between;
    align-items: center;           
    padding: 5px 20px;
}

.main-nav ul {
    display: flex;             
    list-style: none;
    margin-right: 20px;
    padding: 0;
	gap: 40px;
}

.main-nav a {
    color: var(--lavender);
    text-decoration: none; 
    font-size: 16px;
	font-weight: bold;
}

.main-nav a:hover {
	background-color: #f6d4d4;
	color: var(--deep-navy);
	padding: 0.2em 0.4em;
  	border-radius: 4px;
  	transition: background-color 0.3s ease;
    transform: scale(1.2);
}

header h1 {
	/*Title inside header*/
  	font-size: 25px;
	text-align: left;
  	color: var(--lavender);
}


/*For smaller screens sizing*/
@media (max-width: 768px) {
	/* Global adjustments */
    main {
        margin-top: 1rem !important;
    }

	html, body {
		margin: 0;
		padding: 0;
		font-size: 16px;
        overflow-x: hidden;
	}

	header {
		text-align: center;
        width: 100%;
        box-sizing: border-box;
        padding: 1rem 0.5rem;
	}

    header h1 {
        margin-bottom: 1rem;
        font-size: 1.5rem;
    }

	header nav ul{
		display: flex;
        justify-content: center;
        align-items: center;
        list-style: none;
		gap: 1rem;
        padding: 0;
		margin: 0;
	}

    footer {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center;
        gap: 0 !important;
        width: 100% !important;
        padding: 1rem 0;
    }

    .social-icons {
        display: flex !important;
        flex-direction: row !important;
        justify-content: center !important;
        width: 100% !important;
        margin-top: 0.5rem;
    }

    .social-icons img {
        width: 20px;
        height: 20px;
    }

    .copyright {
        display: block !important;
        font-size: 0.85rem !important;
        text-align: center;
        margin-top: 0 !important;
    }
}

footer {
	background-color: var(--deep-navy);
    padding: 0 10px;
    color: var(--lavender);
	border-top: 2px solid var(--blush);
    display: flex;
    flex-direction: row;

    align-items: center; 
    justify-content: center;

    gap: 60rem;
    flex-shrink: 0;
	font-family: 'DM Serif Display', serif;
	font-weight: 200;
}

.social-icons {
	display: flex;
    gap: 20px;
}

.social-icons img {
    width: 25px;
    height: auto;
    transition: transform 0.3s ease;
}

.social-icons img:hover {
    transform: scale(1.2);
}