/* Shared stylesheet */
:root {
  --accent: #d6007d;
  --neutral: #f5f5f5;
  --dark: #333;
}

body { margin:0; font-family:Arial; background:var(--neutral); color:var(--dark); }
header { background:white; border-bottom:4px solid var(--accent); padding:20px; text-align:center; }
header h1 { margin:0; font-size:3rem; color:var(--accent); border:3px solid var(--accent); padding:10px 20px; border-radius:15px; display:inline-block; }
nav { display:flex; justify-content:center; gap:20px; padding:15px 0; background:white; }
nav a { text-decoration:none; color:var(--dark); font-weight:bold; }
nav a:hover { color:var(--accent); }

.hero { background:#ccc; height:50px; display:flex; align-items:center; justify-content:center; color:white; }

.section { padding:40px 20px; max-width:1000px; margin:auto; }
.section h3 { color:var(--accent); margin-bottom:15px; }

.gallery { display:grid; grid-template-columns:repeat(auto-fill,minmax(250px,1fr)); gap:20px; }
.gallery-item { background:white; padding:15px; border-radius:8px; text-align:center; }

footer { background:white; border-top:4px solid var(--accent); padding:20px; text-align:center; margin-top:40px; }

@media (max-width:600px){
  header h1 { font-size:2rem; padding:8px 16px; }
  nav { flex-wrap:wrap; gap:10px; }
  .hero { height:100px; }
  .section { padding:20px 15px; }
  .gallery { grid-template-columns:1fr; }
}


/* Notice Styling */
.notice {
    margin-bottom: 30px;
    padding: 15px;
    background-color: #f0f0f0;
    border-left: 5px solid #007bff;
}

/* Section/Category Styling */
.design-category {
    margin-bottom: 40px;
}

    .design-category h2 {
        font-size: 2em;
        margin-bottom: 20px;
        border-bottom: 2px solid #ccc;
        padding-bottom: 5px;
    }

    /* Sub-Category Styling (e.g., Holidays) */
    .design-category h3 {
        font-size: 1.5em;
        margin: 15px 0 10px 20px;
    }

/* Grid Container for Designs */
.design-grid {
    display: grid;
    /* Creates a responsive grid of 200px columns, showing 3 to 6 columns depending on screen size */
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Individual Design Item Styling */
.design-item {
    text-align: center;
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 5px;
}

    .design-item img {
        width: 100%; /* Make image fill its container */
        max-width: 200px;
        height: auto; /* Maintain aspect ratio */
        display: block;
        margin: 0 auto 10px;
        border-radius: 3px;
    }

    .design-item p {
        margin: 0;
        line-height: 1.3;
    }

/* Personalizable Tag Styling */
.personalizable {
    font-size: 0.9em;
    color: #fff;
    background-color: #28a745;
    padding: 2px 5px;
    border-radius: 3px;
    font-weight: bold;
    display: inline-block;
    margin-top: 5px;
}

/* BACK TO TOP */

html {
	scroll-behavior: smooth;
}

.back-to-top {
	position: fixed;
	bottom: 2rem;
	right: 2rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background-color: #dc143c;
	border-radius: 0.5rem;
	padding: 0.5rem;
	text-decoration: none;
	transition: 0.2s ease-out;
}

.back-to-top span {
	color: #fff;
	font-size: 3rem;
	transition: 0.2s ease-out;
}

.back-to-top:hover {
	background-color: #be1a3b;
}
.back-to-top:hover span {
	transform: translateY(-4px);
}