@font-face {
	font-family: 'Inter';
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src:	url("fonts/Inter-VariableFont_opsz,wght.woff2") format("woff2 supports variations"),
			url("fonts/Inter-VariableFont_opsz,wght.woff2") format("woff2-variations");
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: 'Inter', sans-serif;	
	background-color: #fff;
}

main {
	margin: 0px auto;
	width: 100%;
	color: #212529;
}

p {
	line-height: 1.7em;
}

.limitedwidth {
	width: 100%;
	max-width: 1080px;
	margin: 0 auto 140px auto;
	padding: 0 60px;
}

.fullwidth {
	width: 100%;
	margin: 0 auto 140px auto;
	padding: 0;
}

.header {
	opacity: 1;
	visibility: visible;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
	width: 100%;
	gap: 140px;
	display: flex;
	align-items: center;
	flex-direction: row;
	position: relative;
	left: 50%;
	transform: translateX(-50%);
	margin: 140px auto;
}

.header.scrolled {
    width: fit-content;
    background: rgba(255, 255, 255, .65);
    border: 1px solid #f1f1f1;
    backdrop-filter: blur(8px);
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 10px 20px;
    gap: 20px;
    position: fixed;
    top: 0px;
    left: 50%;
    transform: translateX(-50%);
    margin: 20px auto 40px auto;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.header.scrolled.visible {
    opacity: 1;
    visibility: visible;
}

.app-icon {
	width: 360px;
	height: 360px;
	border-radius: 81px;
	flex-shrink: 0;
	display: block;
	box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.25);
}

.header.scrolled .app-icon {
    width: 50px;
    height: 50px;
    border-radius: 11px;
	box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.25);
}

.app-header {
	width: fit-content;
	gap: 20px;
}

.header.scrolled .app-header {
	display: flex;
	flex-direction: row;
   	align-items: center;
	gap: 20px;
}

.app-header h1 {
	font-size: 66px;
	font-weight: 700;
	text-transform: uppercase;
	margin-bottom: 40px;
}

.header.scrolled .app-header h1 {
    font-size: 24px;
	font-weight: 400;
    text-transform: none;
    margin-bottom: 0;
}

.download-details a {
	text-decoration: none;
}

.downloadbtn {
	background-color: #fff;
	color: #168BFF;
	font-size: 16px;
	font-weight: 400;
	padding: 10px 20px;
	border-radius: 10px;
	border: 2px solid #168BFF;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 20px;
    transition: background-color 0.3s ease-in-out;
}

.downloadbtn:hover {
	background-color: #dcedfe;
    transition: background-color 0.3s ease-in-out;
}

.header.scrolled .downloadbtn span {
    display: none;
}

.lang {
	font-size: 16px;
	font-weight: 400;
	color: #9E9E9E;
	margin-top: 15px;
}

.header.scrolled .lang {
    display: none;
}

.description {
	width: 100%;
}

.description h2 {
	font-size: 32px;
	font-weight: 700;
	margin-bottom: 16px;
}

.description p {
	font-size: 24px;
	font-weight: 350;
	margin-bottom: 16px;
}

.gallery {
	width: 100%;
	overflow: auto;
	display: flex;
	flex-wrap: nowrap;
	justify-content: center;
}

.app-screenshot {
	border: 6px solid #000;
	border-radius: 50px;
	margin: 0 40px 40px 40px;
	box-shadow: 4px 4px 20px rgba(0, 0, 0, 0.25);
}

.meta {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: flex-start;
	margin-top: 40px;
}

.meta-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 18px;
}

.meta-item h3 {
	font-size: 12px;
	text-transform: uppercase;
	font-weight: 700;
	color: #BDBDBD;
}

.meta-item-text {
	font-size: 24px;
	text-align: center;
	font-weight: 700;
	color: #808080;
}

.toggle-section {
    margin-top: 140px;
    text-align: center;
}

.toggle-button {
    background-color: #BDBDBD;
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 20px;
}

.toggle-button:hover {
    background-color: #979797;
    color: #fff;
}

.toggle-text {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.3s ease-in-out, max-height 0.3s ease-in-out;
}

.toggle-text.visible {
    opacity: 1;
    max-height: 2000px; /* Adjust this value based on content length */
}

.toggle-text p {
	text-align: left;
    margin-top: 20px;
    font-size: 18px;
    font-weight: 350;
}

@media screen and (max-width: 1280px) {
	.gallery {
		justify-content: center;
		scroll-snap-type: x mandatory;
		overscroll-behavior-x: contain;
	}

	.app-screenshot {
		margin: 0 40px 40px 40px;
		width: 300px;
		scroll-snap-align: center;	
	}
}

@media screen and (max-width: 1080px) {
	.header {
		gap: 70px;
	}

	.app-icon {
		width: 260px;
		height: 260px;
		border-radius: 59px;
	}

	.app-header h1 {
		font-size: 54px;
	}

	.gallery {
		justify-content: space-between;
	}
}

@media screen and (max-width: 830px) {
	.limitedwidth {
		padding: 0 30px;
		margin: 0 auto 70px auto;
	}

	.fullwidth {
		margin: 0 auto 70px auto;
	}
	
	.header {
		flex-direction: column;
		text-align: center;
		margin: 70px auto;
	}

    .header.scrolled {
        flex-direction: row;
        text-align: left;
        gap: 20px;
    }
	
	.app-icon {
		width: 200px;
		height: 200px;
		border-radius: 45px;
	}

	.app-header h1 {
		font-size: 48px;
	}

	.downloadbtn {
		margin: 0 auto;
	}

	.app-screenshot {
		margin: 0 20px 40px 20px;
	}

    .meta {
        flex-wrap: wrap;
		column-gap: 40px;
        row-gap: 70px;
    }
    
    .meta-item {
        width: calc(50% - 20px); /* 50% width minus half of the gap */
    }

	.toggle-section {
		margin-top: 70px;
	}

	.toggle-text.visible {
		max-height: 3200px;
	}
}

@media screen and (max-width: 580px) {
	.header {
		gap: 40px;
	}
	
	.app-icon {
		width: 120px;
		height: 120px;
		border-radius: 27px;
	}
}