/*-----------------------------------------------------
    Title :  Peep Pea Star
    Edited:  07-10-24
-------------------------------------------------------*/

/*-----------------------------------------------------
    Colors - @import url('variables.css');
-------------------------------------------------------*/
@import url('colors.css');

/*-----------------------------------------------------
    1. Wrapper
-------------------------------------------------------*/

#wrapper-about {
	display: flex;
	flex-direction: row-reverse;
	justify-content: space-between;
	align-items: flex-start;
	margin: 0 auto;
	padding: 100px 0 50px;
	width: var(--width-center-section);
}

#wrapper-about>section {
    width: calc(100% - 300px);
}

#wrapper-about>section:not(#contact) {
    font-size: 2rem;
}

#wrapper-about section:not(#contact)>img {
    display: block;
    margin: 0 auto 46px;
    text-align: center;
}

#wrapper-about>section h1 {
    font-weight: 400;
    font-size: 4rem;
}

#wrapper-about>section:not(#contact) h1~h1 {
    margin-top: 5.5rem;
}

#wrapper-about>section:not(#contact) h1~h1+p {
    margin-top: 0.6rem;
}

#wrapper-about>section:not(#contact)>section:first-of-type,
#wrapper-about>section:not(#contact)>h2:first-of-type {
    margin-top: -0.6rem;
}

#wrapper-about>section:not(#contact) h2 {
    margin-top: 5.2rem;
    font-weight: 300;
    font-size: 3.2rem;
}

#wrapper-about>section:not(#contact) p {
    margin-top: 0.9rem;
}

#wrapper-about>section:not(#contact) ul,
#wrapper-about>section:not(#contact) ol {
    counter-reset: item-number;
    margin-top: 0.9rem;
}

#wrapper-about>section:not(#contact) li {
    position: relative;
}

#wrapper-about>section:not(#contact) ul>li::before {
    content: "";
    position: absolute;
    top: 1rem;
    left: -1.8rem;
    width: 0.6rem;
    height: 0.6rem;
    background-color: var(--color-body);
    border-radius: 50%;
    clip-path: circle(50%);
}

#wrapper-about>section:not(#contact) ol>li::before {
    content: counter(item-number) ".";
    counter-increment: item-number;
    position: absolute;
    top: 0.09rem;
    right: calc(100% + 0.7rem);
    color: var(--color-offwhiteviolet);
    font-weight: 700;
    font-family: Roboto, sans-serif;
    text-align: right;
}

/*-----------------------------------------------------
    2. About Pages Content
-------------------------------------------------------*/

#about h1 {
    font-size: 4.5rem;
    font-weight: 700;
    color: var(--color-seacaller);
    background-color: var(--color-coldmorning);
    padding: 20px 40px;
    border-radius: 5px;
    border-bottom: 4px solid var(--color-chinesebellflower);
    box-shadow: 0 4px 6px var(--color-aquasea);
    text-align: center;
    margin: 20px 0;
    transition: transform 0.3s ease-in-out;
}

#about h2 {
    font-size: 3.2rem;
    font-weight: 600;
    color: var(--color-aquasea);
    padding: 10px 20px;
    border-left: 5px solid var(--color-babe);
    background-color: rgba(255, 255, 255, 0.8);
    margin: 15px 0;
    display: inline-block;
    transition: all 0.3s ease-in-out;
}

#about h1:hover, #about h2:hover {
    transform: scale(1.01);
    box-shadow: 0 6px 8px var(--color-chinesebellflower);
}

.tab {
    display: inline-block;
    margin-left: 4em;
    padding: 1.3em;
}

/*-----------------------------------------------------
    2.1. Contact Us
-------------------------------------------------------*/

#contact {
	display: grid;
	grid-template-columns: 1fr 260px;
	grid-template-rows: auto 1fr;
	grid-template-areas:
		"left-col hq"
		"left-col retail";
	column-gap: 40px;
}

#contact>.wrapper {
	grid-area: left-col;
}

#contact .wrapper>p {
	margin-top: 1.9rem;
	font-size: 2rem;
}

#contact form {
	margin-top: 4rem;
}

#contact form>div+div,
#contact form> :is(div, fieldset)+fieldset {
	margin-top: 3rem;
}

#contact fieldset>div+div {
	margin-top: 1.1rem;
}

#contact label[for="upload"] {
	display: inline-block;
	margin-top: 56px;
}

#contact .drop-zone {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	margin-top: 1.4rem;
	padding: 24px 20px 20px;
	min-height: 140px;
	background-color: var(--color-whitesmoke);
	border: 1px dashed var(--color-border);
	border-radius: 6px;
}

#contact .dragged-over {
	background-color: var(--color-coldmorning);
	border-color: var(--color-seacaller);
}

#contact .drop-zone>p {
	font-weight: 500;
	font-size: 2rem;
}

#contact .drop-zone>.wrapper {
	position: relative;
	margin-top: 1.5rem;
}

#upload {
	position: absolute;
	top: 0;
	left: 0;
	opacity: 0;
	width: 100%;
	height: 100%;
	cursor: pointer;
}

#label-upload {
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 0 20px 2px;
	min-width: 146px;
	min-height: 44px;
	font-weight: 400;
	font-size: 2rem;
	text-align: center;
	background-color: var(--color-coldmorning);
	border: 1px solid #767676;
	border-radius: 4px;
	transition-property: color, background-color;
}

.wrapper:hover>#label-upload {
	color: var(--color-dark);
	border-color: var(--color-dark);
}

.wrapper:not(:hover) :focus:not(.no-outline)+#label-upload {
	box-shadow: 0 0 0 2px var(--color-dark);
}

#contact form .button {
	margin-top: 3.4rem;
	width: 100%;
}

#hq {
	grid-area: hq;
}

#hq h2 {
	position: absolute;
	left: -5000px;
}

#hq [itemprop="name"],
#hq+section h2 {
	display: inline-block;
	margin-bottom: 1.1rem;
	color: var(--color-heading);
	font-weight: 500;
	font-size: 2.4rem;
}

#contact [itemprop="address"] {
	display: block;
	font-size: 2rem;
}

:is(#hq, #hq + section) a[href^="tel"] {
	--color-link-static: var(--color-body);
	font-size: 2rem;
}

#hq figure {
	--color-link-background-hover: transparent;
	margin-top: 2.9rem;
	padding: 1.2rem 0;
	border: solid var(--color-border);
	border-width: 1px 0;
}

#hq figcaption {
	color: var(--color-heading);
	font-weight: 500;
	font-size: 2rem;
}

#hq figure>ul {
	display: flex;
	column-gap: 30px;
	margin-top: 1.2rem;
}

#hq figure li>a {
	/* social links */
	display: block;
	fill: #666;
}

#hq figure a:is(:hover, :focus)>svg {
	fill: #191919;
}

#hq+section {
	grid-area: retail;
	margin-top: 3.1rem;
}

#hq+section dt {
	color: var(--color-heading);
	font-weight: 400;
	font-size: 2rem;
}

#hq+section dl>div+div {
	margin-top: 2.5rem;
}

/*-----------------------------------------------------
    2.2. Bird Battle
-------------------------------------------------------*/

#observationsTitle {
    color: #333;
    font-family: 'Arial', sans-serif;
}

.centered-line {
    display: block;
    text-align: center;
    color: #b15d5d;
    margin: 10px 0;
    font-weight: bold;
	font-size: 1.3em;
}

.peeppea-stats {
    display: block;
    text-align: center;
    color: #1b1b1b;
    margin: 3px 0;
    font-weight: 500;
	font-size: .5em;
}

.centered-line::before {
	font-size: 3em;
    content: '🐦';
    padding-right: .3em;
}

/*-----------------------------------------------------
    3. Category Navigation
-------------------------------------------------------*/

nav[aria-label="Category"] {
	--color-link-static: var(--color-dark);
	--color-link-hover: var(--color-seacaller);
	--text-deco-line: none;
	--color-link-background-hover: transparent;
	position: sticky;
	top: 50px;
	flex-shrink: 0;
	width: 260px;
	border-bottom: 1px solid #ccc;
}

[aria-label="Category"] li {
	border-top: 1px solid #ccc;
}

[aria-label="Category"] a {
	display: block;
	padding: 1.5rem 30px 1.6rem 0;
	cursor: pointer;
	font-size: 1.6rem;
}

[aria-label="Category"] a[aria-current] {
	font-weight: 500;
}

/*-----------------------------------------------------
    4. User Actions Navigation
-------------------------------------------------------*/

nav[aria-label="UserActions"] {
    --color-link-static: var(--color-calicodress);
    --color-link-hover: var(--color-peeppeaplue);
    --text-deco-line: none;
    --color-link-background-hover: transparent;
    position: relative;
    top: auto;
    width: 100%;
    border-bottom: 2px solid var(--color-peeppeaplue);
    background-color: var(--color-light-offwhiteviolet);
    padding: 10px 20px;
	text-align: center;
}

[aria-label="UserActions"] li {
    border-top: 1px solid var(--color-peeppeaplue);
}

[aria-label="UserActions"] a {
    display: block;
    padding: 10px;
    cursor: pointer;
    font-size: 1.4rem;
    color: var(--color-peeppeaplue);
}

[aria-label="UserActions"] a:hover {
    background-color: var(--color-link-hover);
}

/*-----------------------------------------------------
    5. Company Info (991px)
-------------------------------------------------------*/

.company-info {
    color: rgba(0, 0, 0, 0.7);
    font-weight: 300;
    font-size: 1.3rem;
}

.company-info h2 {
    font-size: 1.8rem;
    font-weight: 400;
}

/*-----------------------------------------------------
    6. Responsive (991px)
-------------------------------------------------------*/

@media (max-width: 991px) {

	/* Wrapper */
	#wrapper-about {
		display: block;
	}

	#wrapper-about>section {
		width: auto;
	}

	#wrapper-about>section:not(#contact) {
		font-size: 1.6rem;
	}

	#wrapper-about section:not(#contact)>img {
		margin-bottom: 45px;
	}

	#wrapper-about>section h1 {
		padding-bottom: 0.1rem;
		font-size: 3.6rem;
	}

	#wrapper-about>section:not(#contact) h1~h1 {
		margin-top: 4.9rem;
	}

	#wrapper-about>section:not(#contact) h2 {
		margin-top: 4.7rem;
		font-size: 2.8rem;
	}

	#wrapper-about>section:not(#contact) ul,
	#wrapper-about>section:not(#contact) ol {
		padding-left: 2.4rem;
	}

	#wrapper-about>section:not(#contact) ul>li::before {
		top: 0.9rem;
		left: -1.4rem;
		width: 0.4rem;
		height: 0.4rem;
	}

	#wrapper-about>section:not(#contact) ol>li::before {
		right: calc(100% + 0.55rem);
	}

	/* Contact Us */
	#contact {
		display: block;
		margin-top: -59px;
	}

	#contact .wrapper>h1 {
		font-size: 4rem;
	}

	#contact .wrapper>p {
		margin-top: 1.8rem;
	}

	#contact label[for="upload"] {
		margin-top: 64px;
	}

	#contact .drop-zone {
		padding-top: 16px;
	}

	#contact form .button {
		margin-top: 2.5rem;
	}

	#hq {
		grid-area: hq;
		margin-top: 10.1rem;
	}

	/* Sidebar Navigation */
	nav[aria-label="Category"] {
		display: none;
	}

	.about-peeppea-sidebar {
		padding: 1.3em;
		padding-top: 30em;
	}
	
	.about-peeppea-sidebar h1 {
		font-size: 1.5em;
		margin-bottom: 1em;
	}
	
	.about-peeppea-sidebar ul {
		list-style-type: none;
		padding: 0;
	}
	
	.about-peeppea-sidebar ul li {
		margin-bottom: 0.5em;
	}
	
	.about-peeppea-sidebar ul li a {
		color: #40858C;
		text-decoration: none;
		font-weight: bold;
	}
	
	.about-peeppea-sidebar ul li a:hover {
		text-decoration: underline;
	}
}