:root {
	--main-first-color: hsl(205, 90%, 35%);
	--main-second-color: hsl(205, 95%, 27%);
	--main-third-color: hsl(205, 100%, 20%);
}

* {
	margin: 0;
}

body {
	font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
	box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
	font-size: 16px;
	-webkit-tap-highlight-color: transparent;
}

p {
	line-height: 1.6;
}

a {
	text-decoration: none;
}

nav {
	position: sticky;
	top: 0;
	z-index: 1;
	background-color: hsl(0, 0%, 100%);
	box-shadow: 0 3px 3px hsla(0, 0%, 0%, 0.05);
}

#nav-content {
	display: flex;
	max-width: 1240px;
	margin: 0 auto;
	padding: 0 clamp(12px, -21.333px + 8.333vw, 62px);
	box-sizing: border-box;
}

nav #logo {
	font-size: 0;
}

#logo img {
	margin: 14px 0;
	width: 40px;
	height: 40px;
}

#nav-content > a {
	margin-right: 20px;
}

.dropdown {
	position: relative;
	cursor: default;
}

.dropdown:hover > .dropdown-text {
	color: var(--main-first-color);
}

.dropdown:hover > .dropdown-text::after {
	filter: brightness(0) saturate(100%) invert(23%) sepia(60%) saturate(2554%) hue-rotate(186deg) brightness(103%) contrast(93%);
}

.dropdown-text {
	display: inline-flex;
	height: 100%;
	align-items: center;
	padding: 0 15px 0 15px;
}

.dropdown-text::after {
	position: relative;
	top: -1px;
	content: "";
	background-image: url(/images/caret-down.svg);
	width: 18px;
	height: 18px;
	margin-left: 5px;
}

.dropdown-content {
	visibility: hidden;
	opacity: 0;
	position: absolute;
	left: 0;
	bottom: 0;
	transform: translateY(100%);
	background-color: hsl(0, 0%, 100%);
	box-shadow: 0 3px 5px hsla(0, 0%, 0%, 0.25);
	transition: 0.15s 0.1s ease-in;
}

.dropdown-content a#current {
	color: var(--main-first-color);
}

.dropdown:hover > .dropdown-content {
	visibility: visible;
	opacity: 1;
	transition: 0.15s 0.1s ease-out;
}

.dropdown-content a {
	display: inline-block;
	box-sizing: border-box;
	width: 100%;
	padding: 15px;
	white-space: nowrap;
	color: hsl(0, 0%, 0%);
}

#content {
	display: flex;
	gap: 50px;
	max-width: 1240px;
	margin: 0 auto;
	padding: 40px clamp(12px, -21.333px + 8.333vw, 62px);
	box-sizing: border-box;
}

main {
	flex-grow: 1;
}

h1 {
	font-size: 30px;
	font-weight: normal;
	margin-bottom: 30px;
}

.program-table-element {
	display: flex;
	align-items: start;
	gap: 25px;
	padding: 25px 0;
	border-bottom: 1px solid hsla(0, 0%, 60%, 0.75);
}

.program-table-element.first {
	border-top: 1px solid hsla(0, 0%, 60%, 0.75);
}

.program-table-element img {
	vertical-align: middle;
	width: 64px;
	min-height: 64px;
}

.program-info a {
	font-size: 24px;
	color: var(--main-first-color);
}

.program-info a:first-child {
	text-decoration: underline;
}

.program-info a:last-child {
	display: inline-block;
	margin-top: 10px;
	font-size: 16px;
}

.program-table-element p {
	margin-top: 10px;
}

#program-description {
	margin-bottom: 20px;
}

#table-and-image {
	display: flex;
	gap: 50px;
	align-items: flex-start;
	margin-bottom: 35px;
}

table {
	flex-grow: 1;
	border-collapse: collapse;
	line-height: 1.4;
}

table tr:nth-child(odd) {
	background-color: hsla(0, 0%, 90%, 0.7);
}

table th {
	text-align: left;
}

table th,
table td {
	padding: 10px 12px;
	border-bottom: 1px solid hsla(0, 0%, 75%, 0.50);
}

#table-and-image #image-and-description {
	min-width: min(336px, 40%);
	max-width: min(336px, 40%);
}

#image-and-description img {
	width: 100%;
}

#image-and-description .copyrighted-image-text {
	margin-top: 15px;
	font-size: 14px;
	text-align: right;
}

#download-image {
	display: block;
	margin: 0 auto 16px;
	max-width: 200px;
}

ul {
	margin-bottom: 30px;
	padding-left: clamp(30px, 23.333px + 1.667vw, 40px);
}

ul li {
	line-height: 1.4;
	margin-bottom: 12px;
}

h2 {
	font-size: 24px;
	font-weight: 500;
	margin-bottom: 15px;
}

.download-button {
	display: inline-block;
	padding: 12px 16px;
	color: hsl(0, 0%, 20%);
	border: 1px solid hsl(0, 0%, 70%);
	border-radius: 5px;
	margin-top: 20px;
	font-size: 18px;
}

.platform-button {
	display: block;
	margin-top: 16px;
	padding: 10px 16px;
	color: hsl(0, 0%, 100%);
	background-color: var(--main-first-color);
	border: 1px solid var(--main-second-color);
	border-radius: 5px;
	min-width: max-content;
	text-align: center;
	box-sizing: border-box;
}

.platform-button:first-of-type {
	margin-top: 25px;
}

footer {
	text-align: center;
	background-color: var(--main-first-color);
}

footer p {
	padding: 15px;
	color: hsl(0, 0%, 100%);
}

.ad {
	margin: 20px 0;
}

.square-ad {
	width: 100%;
}

@media (hover) {

	a,
	.dropdown .dropdown-text,
	.dropdown-text::after {
		transition: color 0.1s, background-color 0.1s;
	}

	.dropdown-text::after {
		transition: filter 0.1s;
	}

	.dropdown-content a:hover,
	.dropdown-content a#current:hover {
		color: hsl(0, 0%, 100%);
		background-color: var(--main-first-color);
	}

	.program-info a:hover,
	.program-table-element > a:hover + .program-info a {
		color: var(--main-third-color);
	}

	.download-button:hover {
		background-color: #e6e6e6;
	}

	.download-button {
		transition: color 0.2s, background-color 0.2s;
	}

	.platform-button:hover {
		background-color: var(--main-second-color);
		border-color: var(--main-third-color);
	}
}

@media (max-width: 1060px) {
	#content {
		flex-direction: column;
		gap: 30px;
	}
}

@media (max-width: 760px) {
	#table-and-image {
		flex-direction: column;
	}

	table {
		width: 100%;
	}

	#table-and-image #image-and-description {
		min-width: initial;
		max-width: initial;
	}

	#table-and-image img:not(#download-image) {
		max-width: min(336px, 100%);
		min-width: min(336px, 100%);
	}

	#image-and-description .copyrighted-image-text {
		text-align: initial;
	}

	.platform-button {
		min-width: initial;
	}
}