
* {
	box-sizing: border-box;
}

html, body{
	height: 100%;
	margin: 0;
	overflow-x: hidden;
}

body, div {
	margin: 0;
	padding: 0;
	text-align: center;
	font-family: Helvetica;
}

body {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	margin: 0;
	background-color: #f1ebf2;
	color: black;
}

#header {
	background-color: black;
	width: 100%;
	height: 200px;
	overflow: hidden;
	display: flex;
	justify-content: center;
	align-items: center;
	flex-shrink: 0;
}

#header img {
	display: block;
	width: auto;
	height: auto;
	max-height: 200px;
	max-width: 100%;
}

#buffer {
	margin-top:1em;
}

#footer {
	background-color: #56bab0;
	font-size: 10px;
	text-decoration: none;
	font-family: Arial;
	color: black;
	text-align: center;
}

#links {
	position: relative;
	top: 0;
	left: 0;
	right: 0;
	margin-bottom: 0;
	background-color: #8d1da3;
	border-top: black solid 1px;
	padding: 0 0;
	display: flex;
	flex-wrap: nowrap;
	justify-content: center;
	font-family: Helvetica;
}


	
#links a, 
#links .nav-links {
	margin: 0.5em 1em;
	color: white;
	display: block;
	text-decoration: none;
	white-space: nowrap;
}

#links button.nav-links {
	background: none;
	border: none;	
	padding: 0;
	font-size: inherit;
	cursor: pointer;
}

.sidebar {
	background: linear-gradient(to bottom, #8d1da3, #56bab0);
	display: block;
	text-align: center;
	padding-top: 0;
}

.left-sidebar {
	
	width: 5%;
}

.right-sidebar {
	
	width: 5%;
}


	
#content {
	flex: 1;
	padding-bottom: 20px;
	max-width: 1200px;
	margin: 0 auto;
}

#wrapper {
	display: flex;
	flex: 1;
}	

#row {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
	margin-bottom: 20px;
}

#row > img {
	width: 100%;
	aspect-ratio: 1/1;
	object-fit: cover;
}

#row > img.hidden {
	display: none;
}


#row img:hover {
	transform: scale(1.05);
}



img {
	max-width: 100%;
	height: auto;
}

.yarn-list {
	text-align: left;
	display: inline-block;
	list-style: none;
}

.yarn-list-container {
	text-align: center;
}

.card {
	text-decoration: none;
	color: black;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.card img {
	width: 100%;
	height: auto;
	aspect-ratio: 1/1;
	object-fit: cover;
	display: block;
}

.card-title {
	display: block;
	margin-top: 0.5em;
	font-size: 1.1em;
	font-weight: bold;
	text-align: center;
} 

#hamburger {
    display: none;
    width: 28px;
    height: 22px;
    position: relative;
    cursor: pointer;
}

#hamburger span {
    height: 2.5px;
    width: 100%;
    background: white;
    transition: all 0.3s ease;
	border-radius: 2px;
}

/* Top bar */
#hamburger span:nth-child(1) {
    top: 0;
}

/* Middle bar */
#hamburger span:nth-child(2) {
    top: 9px;
}

/* Bottom bar */
#hamburger span:nth-child(3) {
    bottom: 0;
}
/* When active (menu open) */
#hamburger.active span:nth-child(1) {
    transform: translateY(-50%) rotate(45deg);
    top: 50%;
	left: 0;
	transform-origin: center;
	background: #56bab0;
	position: absolute;
	height: 2.5px;
}

#hamburger.active span:nth-child(2) {
    opacity: 0;
}

#hamburger.active span:nth-child(3) {
    transform: translateY(-50%) rotate(-45deg);
    top: 50%;
	left: 0;
	transform-origin: center;
	background: #56bab0;
	position: absolute;
	height: 2.5px;
}


#nav-menu {
	display: flex;
	justify-content: center;
	align-items: center;
}

.dropdown {
	position: relative;
}

.dropdown-content {
	display: none;
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	background:linear-gradient(to bottom, #8d1da3, #56bab0);
	min-width: 180px;
	z-index: 1000;
	padding: 0.5em 0;
}

.dropdown-content a {
	display: block;
	padding: 0.5em 1em;
	color: white;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 0.2s ease;
}

.dropdown:hover .dropdown-content {
	display: block;
}

.dropdown-content a:hover {
	background-color:rgba(0,0,0,0.4);
}


.dark-mode{
	background-color: black;
	color: white;
}

.dark-mode .left-sidebar,
.dark-mode .right-sidebar {
	display: none;
}

.dark-mode .card-title {
	color: white;
}

.rotating-img {
	transition: opacity 0.4s ease-in-out;
	opacity: 1;
}



.rotating-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.rotating-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.6s ease-in-out;
  opacity: 0;
}

.rotating-wrapper img.active {
  opacity: 1;
}





.contact-form {
  max-width: 500px;
  margin: 0 auto;
  text-align: left;
}

.form-row {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.form-row label {
  width: 120px; 
  font-weight: bold;
}

.form-row input,
.form-row textarea {
  flex: 1;
  padding: 6px;
  font-size: 14px;
}

.form-row textarea {
  resize: vertical;
  min-height: 80px;
}



#show-more,
.contact-form input[type="submit"] {
  background: linear-gradient(to right, #8d1da3, #56bab0);
  color: white;
  border: none;
  padding: 16px 20px;
  font-size: 15px;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  width: auto;
  align-self: center;
  flex: 0;
}

#show-more:hover,
.contact-form input[type="submit"]:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}


.contact-form input[type="submit"]:active {
  transform: translateY(0);
}

.contact-form .form-row:last-child {
  justify-content: center;
}

@media (max-width: 1024px) {
	#row {
		grid-template-columns: repeat(2, 1fr);
	}

	#row > img {
		width: calc(50% - 10px);
	}
}

@media (max-width: 768px) {

	#wrapper {
		flex-direction: column;
	}

	.left-sidebar,.right-sidebar {
		display: none;
	}

	#content {
		width: 100%;
		padding: 1em;
		margin: 0;
	}

	#header {
		height: auto;
		padding: 1em;
	}

	#header img {
		max-height: 120px;
	}

	#links {
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
		flex-direction: column;
		align-items: center;
	}

	#links a {
		margin: 0.5em 1em;
		display: block;
	}

	#row {
		grid-template-columns: 1fr;
	}

	#row > img {
		width: 100%;
	}

	.card {
		width: 100%;
	}

	p {
		font-size: 1em;
		line-height: 1.5;
	}
	#hamburger {
		display: flex;
		flex-direction: column;
		justify-content: space-between;
		align-self: center;
		color: white;
		padding: 5px 0;
		margin: 0 auto;
		;
	}
	#nav-menu {
		display: none;
		flex-direction: column;
		width: 100%;
		text-align: center;
	}
	#nav-menu.active {
		display: flex;
	}
	#nav-menu a,
	#nav-menu button {
		padding: 1em 0;
		width: 100%;
		margin: 0;
		
		border-top: 1px solid black;
	}
	.dropdown {
		width: 100%;
	}
	.dropdown > a {
		display: block;
		width: 100%;
	}
	.dropdown-content {
		position: static;
		transform: none;
		display: none;
		background: linear-gradient(to bottom, #8d1da3, #56bab0);
	}
	.dropdown-content a {
		padding: 0.75em 0;
	}
	.dropdown:hover .dropdown-content {
		display: none;
	}
	.dropdown.active .dropdown-content {
		display: block;
	}

}


#lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
}

#lightbox img {
    max-width: 90%;
    max-height: 90%;
}

#close-lightbox {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 40px;
    color: white;
    cursor: pointer;
}




