/* WARNING: css styling that applies to all pages */

/* Import fonts */
/* @import url('https://fonts.googleapis.com/css?family=Montserrat'); */
@import url('https://fonts.googleapis.com/css?family=Hi+Melody&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@300..700&family=M+PLUS+Rounded+1c:wght@500;900&display=swap');

/* Global styling */
* {
	font-family: 'Hi Melody', sans-serif;
	font-size: 1.3rem;
	box-sizing: border-box;
	padding: 0;
	margin: 0;
}

html {
	overflow-x: hidden;
}

body {
	display: flex;
	flex-direction: column;
	background-color: #f8f6f0;
	min-height: 100vh;
	margin: 0;
	width: 100%;
	height: 100%;
	overflow-x: hidden;
}

main {
	flex-grow: 1; 
	text-align: center;
	opacity: 0;
	padding: 25px;
	background-color: #eae1cd;

}



#icon {
	width: 61px;
	height: 55px;
}

/*Styling for text in the header*/
#noodleText {
	font-family: 'Hi Melody', sans-serif;
	font-style: normal;
	font-weight: 400;
	font-size: 40px;
	margin: 7px;
}

.title {
	font-weight: 400;
	font-size: 50px;
	color: #ae3131;
}
button{
	cursor:pointer;
}

@media (min-width: 767px) {
	.navButtons a {
		font-size: 15px;
		font-family: 'Fredoka', sans-serif;
		padding: 15px;
		border-radius: 8px;
		position: relative;

		text-decoration: none;
		border: none;
		background-color: #da0b0b;
		color: white;
	}

	.dropdown {
		display: none;
	}
}

/*Styling for dropdown menu*/
@media (max-width: 767px) {
	.navButtons {
		display: none;
	}

	#toggle {
		display: none;
	}
	/* Hamburger */
	.hamburger {
		height: 45px;
		margin: 10px;
		width: 100%;

		display: grid;
		grid-template-rows: repeat(3, 1fr);
		justify-items: center;
		z-index: 120;
		margin-top: 0px;
	}

	.hamburger div {
		background-color: #eae1cd;
		position: relative;
		width: 40px;
		height: 5px;
		margin-top: 7px;
		-webkit-transition: all 0.2s ease-in-out;
		transition: all 0.2s ease-in-out;
	}

	#toggle:checked + .hamburger .top {
		-webkit-transform: rotate(-45deg);
		transform: rotate(-45deg);
		margin-top: 22.5px;
	}

	#toggle:checked + .hamburger .middle {
		-webkit-transform: rotate(45deg);
		transform: rotate(45deg);
		margin-top: -5px;
	}

	#toggle:checked + .hamburger .bottom {
		-webkit-transform: scale(0);
		transform: scale(0);
	}

	#toggle:checked ~ .dropdownContent {
		overflow: visible;
		height: auto;
	}

	.dropdown {
		font-family: 'Fredoka', sans-serif;
		background-color: #da0b0b;
		color: white;
		width: 100%;
	}
	.dropdownContent {
		margin: 0;
		grid-template-rows: 1fr repeat(4, 0.5fr);
		grid-row-gap: 25px;
		list-style: none;
		clear: both;
		width: auto;
		text-align: center;
		height: 0px;
		overflow: hidden;
	}

	.navLink {
		font-size: 15px;
		font-family: 'Fredoka', sans-serif;
		padding: 15px;

		display: flex;
		text-decoration: none;
		border: none;
		background-color: #da0b0b;
		color: white;
		text-align: center;
	}
}

.footer {
	width: 100%;
	background-color: #f8f6f0;
	text-align: center;
	justify-content: center;
}

button {
	font-family: 'Fredoka', sans-serif;
	border: none;
	font-size: 20px;
	border-radius: 8px;
	background-color: #da0b0b;
	color: white;
	cursor: pointer;
	transition: background-color 0.3s ease;
	padding: 10px;
	width: auto;
	height: auto;
	box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
}

button:hover {
	background-color: #da0b0b77;
}

/* Styling for accessibility button */
.speechify-highlight {
	color: #d7ae0d !important;
}

.accessibility-container {
	text-align: center;
}

.switch {
	position: relative;
	display: inline-block;
	text-align: right;
	width: 60px;
	height: 34px;
}

.switch input {
	opacity: 0;
	width: 0;
	height: 0;
}

.slider {
	position: absolute;
	cursor: pointer;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: #ccc;
	-webkit-transition: 0.4s;
	transition: 0.4s;
}

.slider:before {
	position: absolute;
	content: '';
	height: 26px;
	width: 26px;
	left: 4px;
	bottom: 4px;
	background-color: white;
	-webkit-transition: 0.4s;
	transition: 0.4s;
}

input:checked + .slider {
	background-color: #2196f3;
}

input:focus + .slider {
	box-shadow: 0 0 1px #2196f3;
}

input:checked + .slider:before {
	-webkit-transform: translateX(26px);
	-ms-transform: translateX(26px);
	transform: translateX(26px);
}

.slider.round {
	border-radius: 34px;
}

span i.fas {
	font-size: 1rem;
	transform: translateY(-12px) translateX(8px);
}

.slider.round:before {
	border-radius: 50%;
}

.rotate {
	animation: rotation 5s infinite linear;
}

@keyframes rotation {
	from {
		transform: rotate(0deg);
	}
	to {
		transform: rotate(359deg);
	}
}
