/* 
[data-theme="light"],
:root:not([data-theme="dark"]) {
	--primary: #f4511e;
	--primary-hover: #e64a19;
	--primary-focus: rgba(244, 81, 30, 0.125);
	--primary-inverse: #FFF;
} */

:root:not([data-theme=dark]),
[data-theme=light] {
	--primary: hsl(207deg 25% 40%);
	--primary-hover: hsl(204deg 17% 36%);
}

/* Deep-orange Dark scheme (Auto) */
/* Automatically enabled if user has Dark mode enabled */
@media only screen and (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--primary: #f4511e;
		--primary-hover: #ff5722;
		--primary-focus: rgba(244, 81, 30, 0.25);
		--primary-inverse: #FFF;
	}
}

@media only screen and (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--primary: #bbc6ce;
		--primary-hover: #bbc6ce;
		--primary-focus: rgba(244, 81, 30, 0.25);
		--primary-inverse: #FFF;
	}
}

/* Deep-orange Dark scheme (Forced) */
/* Enabled if forced with data-theme="dark" */
[data-theme="dark"] {
	--primary: #f4511e;
	--primary-hover: #ff5722;
	--primary-focus: rgba(244, 81, 30, 0.25);
	--primary-inverse: #FFF;
}

/* Deep-orange (Common styles) */
:root {
	--form-element-active-border-color: var(--primary);
	--form-element-focus-color: var(--primary-focus);
	--switch-color: var(--primary-inverse);
	--switch-checked-background-color: var(--primary);
}

article {
	margin: 0;
	padding: 10px var(--block-spacing-horizontal);
	border-radius: var(--border-radius);
	background: var(--card-background-color);
	box-shadow: var(--card-box-shadow);
	overflow: auto;
}

td,
th {
	border-bottom: none;
}

[role=button],
button,
input[type=button],
input[type=reset],
input[type=submit] {
	--background-color: #ff5722;
	--border-color: #ff5722;
}

section {
	padding-bottom: var(--block-spacing-vertical);
}

.logo {
	max-width: 250px;
}

@media screen and (max-width: 560px) {
	.logo {
		width: 150px;
	}
}

/* TODO smaller font? */

@media screen and (max-width: 360px) {
	.header__menu {
		font-size: 12px;
	}
}

.promo {
	padding-bottom: 40px;
}

.promo__wrapper {
	display: flex;
	justify-content: space-between;
	/* justify-content: center; */
}

@media screen and (max-width: 960px) {
	.promo__wrapper {
		display: flex;
		align-items: center;
		flex-direction: column-reverse;
	}
}

.promo__info {
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	/* align-items: center; */
}

@media screen and (max-width: 960px) {
	.promo__info {
		align-items: center;
		padding-top: 48px;
	}
}

/* .promo__text {
	text-align: center;
} */

@media screen and (max-width: 960px) {
	.promo__text {
		text-align: center;
	}
}

@media screen and (max-width: 960px) {
	.title {
		text-align: center;
	}
}

.promo__button {
	max-width: 200px;
	width: 100%;
}

.promo__button:hover {
	background-color: #ff8f00;
	border-color: #ff8f00;
}

.promo__button:focus {
	background-color: #ff5722;
	border-color: #ff5722;
}


.promo__hero {
	object-fit: cover;
	/* width: 310px; */
	height: 304px;
	border-radius: 3px;
}

@media screen and (max-width: 560px) {
	.promo__hero {
		width: 210px;
		height: 206px;
	}
}

.app__link {
	text-decoration: none;
}

.app__link:hover {
	color: #bbc6ce;
}

.app__app {
	display: flex;
	align-items: flex-start;
	gap: 20px;
}

.app__logo {
	max-width: 80px;
	width: 100%;
	border-radius: 7px;
}

.app__info {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.app__title {
	margin: 0;
}

.promo__button-wrapper {
	display: flex;
	justify-content: center;
}

.review__title {
	margin-bottom: 10px;
}

.review__stars {
	max-width: 180px;
	margin-bottom: 10px;
}

blockquote {
	margin: 0;
}

.review__link {
	text-decoration: none;
	color: #ff5722;
}

.review__link:after {
	content: ">";
	display: inline-block;
	margin-left: 7.5px;
	-webkit-transition: 0.1s;
	transition: 0.1s;
}

.review__link:hover {
	color: #ff8f00;
}

.about-me__wrapper {
	display: flex;
	justify-content: space-between;
}

@media screen and (max-width: 540px) {
	.about-me__wrapper {
		flex-direction: column-reverse;
	}
}

/* TODO flex-end? */
.about-me__text {
	max-width: 600px;
	/* display: flex;
	flex-direction: column;
	justify-content: flex-end; */
}

.about-me__photo {
	border-radius: 3px;
	max-height: 327px;
	max-width: 270px;
	object-fit: contain;
}

@media screen and (max-width: 940px) {
	.about-me__photo {
		max-height: 307px;
	}
}

@media screen and (max-width: 540px) {
	.about-me__photo {
		max-height: 352px;
		max-width: 292px;
		margin: 0 auto 20px;
	}
}

.contact__email {
	font-weight: 500;
}

.footer__company {
	margin: 0;
}

.footer__wrapper {
	display: flex;
	justify-content: space-between;
	align-items: center;
	align-items: flex-start;
}

.link:hover {
	opacity: .7;
}

.apps__grid {
	display: grid;
	align-items: start;
	gap: 20px;
	grid-template-columns: repeat(2, 1fr);
	/* grid-template-rows: repeat(2, 1fr); */
}

@media screen and (max-width: 960px) {
	.apps__grid {
		grid-template-columns: repeat(1, 1fr);
		gap: 0;
	}
}

@media screen and (max-width: 540px) {
	.footer__menu {
		align-items: center;
		flex-direction: column;
		padding-top: 26px;
	}
}

.footer__links {
	flex-direction: column;
	display: flex;
    align-items: flex-start;
}

.footer__link {
	padding: 0;
}