/* Base styles */
body {
    font-family: 'Arial', Helvetica, sans-serif;
    background-color: #fff;
}

#wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: #d1e7ff; /* Light Blue */
}

/* Header */
header {
    background-color: #61ACFF; /* Darker Blue */
    color: #004080; /* Dark Blue */
    text-align: center;
    padding: 0px 0 40px;
    position: relative; 
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

header h1 {
    font-size: 48px;
    font-weight: bold;
    margin-right: 10px;
}

.box {
    margin-top: 10px;
    font-size: 3em;
    padding: 5px;
    color: white;
    font-weight: 800;
    animation: aniload 3s;
}

#box1::after {
    content: "The Icing Artist";
    display: flex;
    transform: rotateX(180deg);
    background-image: linear-gradient(180deg, rgba(255,255,255,0) 10%, rgba(255,255,255,.5));
    -webkit-background-clip: text;
    color: transparent;
}

header .logo {
    width: 250px;
    height: auto;
    position: absolute;
    right: 150px; /* Adjust to position the logo */
    top: 50%; /* Center the logo vertically */
    transform: translateY(-50%);
}

/* Navigation Menu */
nav {
    background-color: #ffffff; /* White */
    margin: 20px 0;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
}

nav a {
    color: #004080; /* Dark Blue */
    text-decoration: none;
    font-size: 16px; 
}

nav a:hover {
    color: #ffa07a; /* Light Orange */
}

nav a:visited {
    color: #004080; /* Dark Blue */
}

/* Company Image */
.company-image {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.company-image img {
    width: 100%;
    height: auto; /* Maintain aspect ratio */
    object-fit: contain; /* Ensure the entire image is shown */
    border-radius: 15px; /* Slight rounding for blurred edges effect */
    filter: blur(2px); /* Blur effect */
}

/* Add an inner shadow to enhance the blurred edge effect */
.company-image::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 15px;
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.5); /* Inner shadow for blurred edges */
}

.welcome {
    text-align: center;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 3em;
}

/* Subscribe Button */
.subscribe-button {
    background-color: #ff7f50; /* Bright Orange */
    color: #ffffff; /* White */
    padding: 10px 10px;
    border: none;
    cursor: pointer;
    font-size: 45px;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 15px;
}

.subscribe-button:hover {
    background-color: #ff7043;
}

/* Subscribe Button on Landing */
.subscription-button {
    background-color: #0015FF;
    color: #ffffff; /* White */
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    text-transform: uppercase;
    width: 100%;
    border-radius: 15px;
}

.subscription-button:hover {
    background-color: #ff7043;
}

.subscribe-link {
    text-decoration:line-through;
	display: block;
    color: inherit;
}

/* Section Headers */
section h2 {
    color: #ff7f50; /* Orange */
    background-color: #fffacd; /* Light Yellow */
    padding: 10px;
    margin-bottom: 20px;
    font-size: 18px; /* Smaller font size */
    font-weight: bold; 
    text-align: center; /* Center the text */
}

/* Main Content Area */
main {
    text-align: center;
    padding: 20px;
}

main h1 {
    color: #000000;
	font-size: 48px;
    font-weight: bold;
}

main p {
    background-color: #4169e1;
    color: #ffffff;
    padding: 10px;
    border-radius: 5px;
}

.content-area {
    display: flex;
    justify-content: space-between;
    padding: 20px 0;
}

/* Featured Cake and Tutorial Highlight */
.featured-cake, .tutorial-highlight {
    flex: 1 1 45%; /* Flex-grow, flex-shrink, flex-basis */
    background-color: #000; /* Black background */
    color: #fff; /* White text */
    padding: 20px;
    margin: 10px; /* Add margin between the boxes */
    box-sizing: border-box; /* Include padding in the element's total width and height */
    text-decoration: none; /* Ensure link style does not affect the appearance */
}

.featured-cake img, .tutorial-highlight img {
    width: 100%;
    height: auto;
}

.featured-cake h2, .tutorial-highlight h2 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.newsletter-subscription {
    width: 100%;
    background-color: #2503FD;
    color: #fff; /* White text */
    padding: 20px;
    box-sizing: border-box; /* Include padding in the element's total width and height */
}

.subscription-form {
    width: 100%;
    background-color: #000000; /* Black background */
    color: #fff; /* White text */
    padding: 20px;
    box-sizing: border-box; /* Include padding in the element's total width and height */
}

.tutorial-highlight p {
    font-size: 1em;
    margin-bottom: 10px;
}

.cake-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.cake-gallery img {
    width: 200px;
    height: auto;
    border: 2px solid #000000;
    border-radius: 10px;
}

/* Recipe Styling */
.recipe {
    background-color: #fff;
    border: 1px solid #ddd;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.recipe h2 {
    color: #ff7f50; /* Orange */
    font-size: 24px;
    margin-bottom: 10px;
}

.recipe h3 {
    color: #4169e1; /* Royal Blue */
    font-size: 20px;
    margin-bottom: 10px;
}

.recipe ul {
    list-style-type: square;
    padding-left: 20px;
    margin-bottom: 20px;
}

.recipe ul li {
    margin-bottom: 10px;
}

.recipe p {
    text-align: left;
}

/* Tutorial Styling */
.tutorial {
    background-color: #fff;
    border: 1px solid #ddd;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.tutorial h2 {
    color: #ff7f50; /* Orange */
    font-size: 24px;
    margin-bottom: 10px;
}

.tutorial h3 {
    color: #4169e1; /* Royal Blue */
    font-size: 20px;
    margin-bottom: 10px;
}

.tutorial ul, .tutorial ol {
    text-align: left;
    padding-left: 20px;
    margin-bottom: 20px;
}

.tutorial ul li, .tutorial ol li {
    margin-bottom: 10px;
}

.tutorial p {
    text-align: left;
}

/* Footer */
footer {
    background-color: transparent;
    color: #0A0A0A; /* Black */
    text-align: center;
    padding: 20px 0;
}

footer p {
    font-size: 12px;
}

/*Mobile Responsiveness */

@media screen and (max-width: 768px)
{
	/*Adjust section headers*/
	section h2{
		font-size: 16px;
	}
	/*Main content adjustments */
	main h1 {
		font-size: 32px;
	}
	/*Subscribe button adjustments*/
	.subscribe-button {
		font-size: 24px;
		padding: 8px 10px;
	}
	.subscription-button {
		font-size: 16 px;
		padding: 8px 15px;
	}
	/*Featured Cake and Tutorial Highlight Adjustments*/
	.featured-cake, .tutorial-highlight{
		margin: 10px 0;
		padding: 15px;
	}
	.cake-gallery{
		flex-direction: column;
	}
	.cake-gallery img {
		width: 100%
	}
	
	/*recipe and tutorial adjustments*/
	.recipe h2, .tutorial h2 {
		font-size: 20px;
	}
	.recipe h3, .tutorial h3 {
		font-size: 18px;
	}
	
	/*footer adjustments*/
	footer{
		padding: 15px 0;
	}
}