:root {
	--off-white: #E6E6E6;
	--off-black: #1A1A1A;
}


html {
	scroll-behavior: smooth;
}

body { 
	background-color: var(--off-white);
	color: black;
	margin: 0;
	padding: 0;
	font-family: "josefin sans", sans-serif;
	font-weight: 500;
	text-align: center;
	box-sizing: border-box;
}

img { vertical-align: bottom;}

.dark-mode {
	background-color: var(--off-black);
	color: white;
}

.dark-mode header {
	color: white;
}

header {
	width: 100%;
	color: black;
	padding-top: 100px;
}

header div {
	display: flex;
	justify-content: center;
}



main {
	width: 80%;
	max-width: 1660px;
	margin: auto auto 60px auto;
}    



/* NAV */

nav {
	background-color: black;
	width: 100%;
	position: fixed;
	z-index: 1000;
	box-sizing: border-box;
	text-transform: uppercase;
	top: 0;
}

#nav-content {
	/* width: 80%; */
	/* max-width: 1660px; */
    max-width: 80%;
    width: 1660px;
	margin: 0 auto;
	padding: 0.6em 0;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

#nav-content div {
	display: flex;
	
}

#dark-mode-toggle-button {
	background-color: rgba(0, 0, 0, 0);
	border: none;
}

#dark-mode-toggle-button:hover{
	opacity: 0.5;
}


nav ul {
	list-style: none;
	padding: 0;
	display: flex;
	justify-content: flex-start;
	align-items: center;
	gap: 20px;
}

nav ul li a {
	color: white !important;
	text-decoration: none;
	font-size: 1.4em;
}    

@media (max-width: 480px) {
	nav ul li a {
		font-size: 0.8em;
	}
}

nav ul li a:hover {
	opacity: 0.5;
}    


/* Hamburger button */
.mobile-nav-button {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    width: 32px;
    height: 24px;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    z-index: 1000;
}

.mobile-nav-button span {
    display: block;
    height: 3px;
    background: black;
    border-radius: 2px;
}

.dark-mode .mobile-nav-button span {
	background-color: white;
}

.mobile-nav-button.open span {
    background-color: white;
}

.dark-mode .mobile-nav-button.open span {
    background-color: black;
}

/* Slide-out panel */
.mobile-nav-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 180px;
    height: 100vh;
    background: black;
    box-shadow: -4px 0 12px rgba(0,0,0,0.2);
    padding: 24px;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    z-index: 999;
}

.dark-mode .mobile-nav-panel {
	background-color: white;
}

.mobile-nav-panel.open {
    transform: translateX(0);
}

.mobile-panel-links {
	margin-top: 48px;
}

.mobile-nav-panel a {
    display: block;
    margin: 16px 0;
	color: white !important;
	text-decoration: none;
	font-size: 1.4em;
	text-align: right;
}

.dark-mode .mobile-nav-panel a {
	color: black !important;
}

#dark-mode-toggle-button-mobile {
	background-color: rgba(0, 0, 0, 0);
	border: none;
}

#dark-mode-toggle-button-mobile:hover{
	opacity: 0.5;
}

.dark-mode #dark-mode-toggle-button-mobile img {
	filter: invert(1);
}

.mobile-panel-darkmode {
	display: flex;
	justify-content: flex-end;
}

#dark-mode-toggle-button-mobile img {

}


/* Show hamburger only on mobile */
@media (max-width: 900px) {
    .mobile-nav-button {
        display: flex;
    }

    /* Hide desktop nav on mobile */
    #nav-content {
        display: none;
    }
}


/* Scroll */
#scroll-button {
	display: none;
	width: 64px;
	height: 64px;
	position: fixed;
	bottom: 20px;
	right: 30px;
	z-index: 99;
	border: none;
	outline: none;
	background-color: black;
	color: white;
	cursor: pointer;
	padding: 15px;
	border-radius: 32px;
}

#scroll-button img {
	width: 100%;
	height: 100%;
}




/* contact */
form label {
	margin-bottom: 4px;
	display: block;
}

form input {
	display: block;
	margin: 0 auto 20px auto;
	font-size: 1.2em;
	width: 32em;
	padding: 0.4em;
}

form input, form textarea {
    margin-bottom: 10px;
	font-family: "josefin sans", sans-serif;
	font-size: 1.2em;
}

.contact-message-textarea {
	width: 32em;
	height: 16em;
	padding: 0.4em;
}

form input[type="submit"]{
    background-color: #333;
    border: none;
	font-size: 1.2em;
    color: #CCC;
    padding: 12px 24px;
	margin-top: 20px;
	width: 24%;
    border-radius: 100px;
	box-shadow: -4px 4px 14px rgba(0, 0, 0, 0.4);
}

.download-link {
	margin-bottom: 20px;
	font-size: 1.4em;
}

