/* ######## Variables ######## */
:root {
	--primary: #085698;
	--darkPrimary: #064f8a;
	--background: #ffffff;
    --wallpaper: #f9f9f9;
	--secondary: #7EDE49;
	--tertiary: #248FDE;
}

/* ######## General Styling ######## */
html, body {
	height: 100%;
	max-width: 100vw;
	scroll-behavior: smooth;
}

/* Image Background */
html::after {
	content: '';
	position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
	background-image: url('../../static/images/wallpaper.webp');
	background-repeat: no-repeat;
	background-size: 100% 100%;
	background-attachment: fixed;
	z-index: -1;
}

/* Gradient Background - While Image is loading */
html::before {
	content: '';
	position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
	background-image: linear-gradient(to bottom, #085698 50%, #0985A6 75%, #11A5A0, #2ABC88, #56D163, #74DB4D);
	z-index: -2;
}

body::-webkit-scrollbar {
  	width: 1em;
}

body::-webkit-scrollbar-track {
	background-color: #1d3c50;
}

body::-webkit-scrollbar-thumb {
  	background-color: rgba(34, 34, 34, 0.603);
}

body {
	margin: 0px;
}

a {
	text-decoration: none;
}

/* ######## Header Styling ######## */
#page-header {
	height: 60px;
	width: 100%;
	box-sizing: border-box;
	display: flex;
	padding-left: 5%;
	padding-right: 5%;
	flex-direction: row;
	justify-content: space-between;
	position: fixed;
	top: 0px;
	user-select: none;
	-webkit-user-select: none;
	-ms-user-select: none;
	transition: border-color 200ms ease-in-out, background-color 200ms ease-in-out;
	z-index: 10;
	align-items: center;
}

.header-not-scrolled {
	background-color: var(--primary);
	border-bottom: none;
	border: 2px transparent solid;
}

.header-scrolled {
	background-color: rgba(255, 255, 255, 0.8);
	border: rgba(255, 255, 255) 2px solid;
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
    box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.25);
}

/* ######## Header Content ######## */
#header-logo {
	height: 50px;
	width: 150px;
	background-image: url(../../static/images/headerlogo.png);
	background-repeat: no-repeat;
	background-size: contain;
	transition: transform 100ms linear, background-image 200ms ease-in-out;
	margin-left: 10px;
}

.header-scrolled #header-logo {
	background-image: url(../../static/images/headerlogo_blue.svg);
}

#header-logo:hover {
	cursor: pointer;
}

#header-logo:active {
	transform: scale(1.15);
}

#header-page-container {
	display: flex;
	flex-direction: row;
	justify-content: space-evenly;
	height: 100%;
	width: 460px;
	align-items: center;
	margin-right: 10px;
	gap: 30px;
	transition: transform 200ms ease-in-out;
}

.header-link {
	font-family: 'Inter', sans-serif;
	color: white;
	font-size: 14px;
	position: relative;
	text-decoration: none;
	padding-bottom: 5px;
	padding-top: 5px;
	transition: color 200ms ease-in-out;
}

.header-scrolled .header-link:active {
	transition: backgroud-color 0ms ease;
	color: black;
}

.header-scrolled .header-link {
	color: var(--primary);
	font-weight: 500;
}

.header-link:hover {
	cursor: pointer;
}

.header-link:active {
	transition: color 0ms ease;
	color: var(--secondary);
}

.header-scrolled .header-link::after {
	background-color: var(--primary);
}

.header-link::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 2px;
	background-color: var(--background);
	transition: transform 200ms ease-in-out;
	transform: scaleX(0);
	transform-origin: center;
	border-radius: 25px;
}

.header-link:hover::after {
	transform: scaleX(1);
}

#header-download-button {
	font-family: 'Inter', sans-serif;
	border: rgba(255, 255, 255, 0.5) 2px solid;
    box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.25);
    background-color: rgba(255, 255, 255, 0.2);
	font-size: 14px;
	color: white;
	border-radius: 10px;
	width: 126px;
	height: 36px;
	text-align: center;
	display: flex;
	flex-direction: column;
	justify-content: center;
	transition: background-color 200ms ease-in-out, color 200ms ease-in-out;
}

.header-scrolled #header-download-button {
	font-weight: 500;
	color: #008bb2;
	background-color: rgba(0, 139, 178, 0.2);
	border-color: rgba(0, 139, 178, 0.705);
}

#header-download-button:hover {
	background-color: rgba(255, 255, 255, 0.4);
	transition: background-color 150ms ease-in-out, color 150ms ease-in-out;
	cursor: pointer;
}

.header-scrolled #header-download-button:hover {
	background-color: rgba(0, 139, 178, 0.4);
}

#header-download-button:active {
	color: var(--primary);
	background-color: var(--background);
}

.header-scrolled #header-download-button:active {
	color: white;
	background-color: rgba(0, 139, 178);
	transition: color 0ms ease;
}

/* ######## Download Popup ######## */
#download-popup {
    display: none;
    position: fixed;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.247);
    z-index: 11;
    user-select: none;
	-webkit-user-select: none;
	-ms-user-select: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#download-dialog {
    margin-right: auto;
    margin-left: auto;
	background-color: rgba(255, 255, 255, 0.8);
	border: rgba(255, 255, 255) 2px solid;
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
    border-radius: 25px;
    padding: 30px;
    width: fit-content;
}

#download-row {
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: center;
}

#download-row-spaced {
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

#download-icon {
    background-color: black;
    height: 30px;
    width: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
}

#download-icon::after {
	content: '';
	height: 20px;
	width: 20px;
	background-image: url('../../static/images/icons/download-alternative.svg');
	background-repeat: no-repeat;
	background-size: contain;
	background-position: center;
}

#download-icon svg {
    height: 18px;
    width: 18px;
}

#close-button {
    height: 30px;
    width: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    border: 1px solid transparent;
    transition: border-color 200ms ease-in-out, background-color 200ms ease, color 200ms ease;
}

#close-button::after {
	content: '';
	height: 20px;
	width: 20px;
	background-image: url('../../static/images/icons/close.svg');
	background-repeat: no-repeat;
	background-size: contain;
	background-position: center;
}

#close-button:hover {
    border: 1px solid black;
    cursor: pointer;
}

#close-button:active {
    transition-duration: 0ms;
    background-color: rgba(0, 0, 0, 0.25);
    color: white;
}

#close-button svg {
    height: 24px;
    width: 24px;
}

#download-title {
    font-size: 18px;
	font-family: 'Signika', sans-serif;
}

#download-text {
    font-family: 'Inter', sans-serif;
}

#apple-width {
    width: 150px;
}

.download-badge {
    width: 160px;
    height: 48px;
    transition: transform 100ms ease-in-out, filter 100ms ease;
}

.download-badge:hover {
    transform: scale(1.05);
    cursor: pointer;
}

.download-badge:active {
    filter: brightness(65%);
}


/* ######## Footer Content ######## */
#page-footer {
	backdrop-filter: blur(10px);
	border-top: 2px solid white;
	background-color: #063C68;
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	color: white;
	font-family: 'Signika', sans-serif;
	width: 100%;
	padding: 50px;
	box-sizing: border-box;
	user-select: none;
	-webkit-user-select: none;
	-ms-user-select: none;
}

#page-footer::after {
	content: 'Copyright 2026 Tavendi. All rights reserved.';
	position: absolute;
	bottom: 0;
	left: 0;
	margin-left: calc(50% - 125px);
	margin-bottom: 3px;
	font-family: 'Inter', sans-serif;
	font-size: 12px;
	width: 250px;
	color: rgb(179, 179, 179);
}

.footer-column {
	display: flex;
	flex-direction: column;
	gap: 15px;
	width: 250px;
	height: 100%;
}

.footer-column:nth-of-type(1) {
	gap: 0px;
}

#footer-logo {
	height: 60px;
	width: 180px;
}

#footer-logo-text {
	margin-left: 15px;
	font-family: 'Inter', sans-serif;
}

.footer-title {
	font-size: 24px;
}

#footer-desktop {
	display: flex;
	flex-direction: column;
	gap: 15px
}

.footer-link {
	color: #ffffff;
	font-family: 'Inter', sans-serif;
	font-size: 14px;
	position: relative;
	text-decoration: none;
	padding-bottom: 5px;
	padding-top: 5px;
	transition: filter 100ms ease-in-out, color 200ms ease-in-out;
	padding-left: 2px;
	width: fit-content;
	filter: brightness(100%);
}

.footer-link:hover {
	cursor: pointer;
	filter: brightness(140%);
}

.footer-link:active {
	transition: color 0ms ease;
	color: var(--secondary);
}

/* Navigation */
#page-navigation {
	display: none;
}

/* ######## Mobile Styling ######## */

@media (max-width: 580px) {
	:root {
		overflow-x: hidden;
	}

	/* ######## Navigation ######## */
	#page-header {
		display: none;
	}

	#page-navigation {
		width: 100%;
		box-sizing: border-box;
		height: 70px;
		background-color: #063C68;
		display: flex;
		flex-direction: row;
		position: fixed;
		z-index: 11;
		backdrop-filter: blur(3px);
		align-items: center;
		justify-content: space-between;
		padding-left: 20px;
		padding-right: 20px;
		gap: 10px;
		box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.25);
	}

	#dropdown {
		position: absolute;
		top: 0;
		left: 0;
		width: 70vw;
		height: calc(100vh + 1px); /* Covers small gap that appears at the bottom */
		background-color: #063C68;
		border-top-right-radius: 25px;
		border-bottom-right-radius: 25px;
		box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.25);
		box-sizing: border-box;
		display: flex;
		flex-direction: column;
		display: none;
		transition: display 200ms ease-in-out;
	}

	#dropdown .navbar-link {
		height: fit-content;
		font-size: 16px;
		color: white;
		font-weight: normal;
		padding-left: 20px;
		box-sizing: border-box;
		width: 100%;
		height: fit-content;
		line-height: 30px;
		padding-bottom: 12px;
	}

	#closing-button {
		margin-bottom: 15px;
		background-color: rgba(255, 255, 255, 0.25);
		border: 1px solid white;
		margin-top: 16px;
		margin-left: 20px;
		border-radius: 8px;
		height: 38px;
		width: 38px;
		box-sizing: border-box;
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: center;
	}

	#closing-button:active {
		background-color: white;
	}

	#closing-button:active #closing-icon {
		background-image: url('../../static/images/icons/close.svg');
	}

	#closing-icon {
		height: 30px;
		width: 30px;
		background-image: url('../../static/images/icons/close-white.svg');
		background-position: center;
		background-repeat: no-repeat;
		background-size: contain;
	}

	#dropdown .navbar-link:active {
		color: var(--secondary);
	}

	#dropdown .navbar-link::before {
		content: '';
		height: 1px;
		width: 90%;
		background-color: rgb(202, 202, 202);
		margin-bottom: 12px;
		display: flex;
	}

	#dropdown::after {
		content: '';
		height: 100vh;
		width: 100vw;
		position: absolute;
		top: 0;
		left: 0;
		background-color: rgba(255, 255, 255, 0.25);
		z-index: -1;
	}

	#menu-button {
		height: 36px;
		width: 36px;
		background-color: rgba(255, 255, 255, 0.15);
		border: 1px solid white;
		border-radius: 8px;
		align-items: center;
		display: flex;
		flex-direction: column;
		justify-content: center;
	}

	#menu-button:active {
		background-color: white;
	}

	#menu-button:active #menu-icon {
		background-image: url('../../static/images/icons/menu-black.svg');
	}

	#menu-icon {
		width: 30px;
		height: 30px;
		transition: background-image 200ms ease-in-out;
		background-image: url('../../static/images/icons/menu.svg');
		background-position: center;
		background-repeat: no-repeat;
		background-size: contain;
	}

	#navbar-logo {
		background-image: url('../../static/images/headerlogo.png');
		background-position: center;
		background-repeat: no-repeat;
		background-size: contain;
		width: 120px;
		height: 40px;
	}

	.nav-row {
		display: flex;
		flex-direction: row;
		gap: 10px;
	}

	.navbar-link {
		text-decoration: none;
		color: var(--primary);
		font-family: 'Inter', sans-serif;
		font-weight: bold;
		font-size: 13px;
		transition: color 200ms ease-in-out;
	}

	.navbar-link:active {
		transition-duration: 0ms;
		color: var(--secondary);
	}

	#dropdown .about-download-button {
		width: calc(100% - 30px);
		margin: 15px;
		margin-top: auto;
		max-width: 100%;
		box-sizing: border-box;
	}


	/* ######## Footer ######## */
	#page-footer {
		max-width: 100vw;
		overflow-x: hidden;
		box-sizing: border-box;
		padding: 30px;
	}

	#footer-desktop {
		display: none;
	}

	#footer-mobile {
		display: flex;
		flex-direction: row;
		justify-content: center;
		gap: 10px;
	}

	#footer-mobile a {
		height: 30px;
		width: 30px;
		background-size: contain;
		background-repeat: no-repeat;
		background-position: center;
	}

	#footer-mobile a:nth-child(1) {
		background-image: url('../../static/images/icons/facebook.svg');
	}

	#footer-mobile a:nth-child(2) {
		background-image: url('../../static/images/icons/instagram.svg');
	}

	#footer-mobile a:nth-child(3) {
		background-image: url('../../static/images/icons/tiktok.svg');
	}

	#footer-mobile a:nth-child(4) {
		background-image: url('../../static/images/icons/mail.svg');
	}

	.footer-column:nth-of-type(1) {
		display: none;
	}

	.footer-column:nth-of-type(2) {
		display: none;
	}

	.footer-column:nth-of-type(3) {
		justify-content: center;
		text-align: center;
		margin-right: auto;
		margin-left: auto;
	}

	.footer-link {
		text-align: center;
		align-items: center;
		margin-right: auto;
		margin-left: auto;
	}
}

@media (max-width: 406px) {
	/* ######## Download Dialog ######## */
	#download-dialog {
		width: 96%;
		box-sizing: border-box;
		max-width: 98%;
		overflow-x: hidden;
		padding: 20px;
	}
}
