body {
    font-family: sans-serif;
    margin: 20px;
    background-color: #e0f2f7; /* Light blue background */
    color: #5e351b; /* Dark brown for general text */
}

/* Media query for mobile screens */
@media (max-width: 768px) {
    body {
        margin: 0; /* Remove margin on mobile */
    }
}

.main-header {
    background-color: transparent;
    padding: 15px 20px;
    margin: 0 auto 20px auto; /* shorthand for top right bottom left */
    position: relative;
    display: block; /* Ensure it's a block-level element */
    width: fit-content; /* Or a specific width if needed */
}

.main-header h1 {
    font-size: 2.5em;
    margin: 0;
    position: relative; /* For absolute positioning of the knife */
    display: inline-block; /* To contain the overlay */
    color: #b8860b; /* Brass color */
    /* Add a subtle texture (you might need a pattern image for more complex textures) */
    /* This is a very basic example using a linear gradient */
    background: linear-gradient(to bottom right, #b8860b 0%, #daa520 100%);
    -webkit-background-clip: text;
	/* -webkit-text-stroke: 1px #aa7c0a; */
	text-shadow: -1px 1px 1px #aa7c0a;
	z-index: 1;
}

.main-header h1 > span:first-child { /* Targets the "Mit" span */
  z-index: 3; /* Higher z-index than the overlay */
  position: relative;
}

.knife-overlay {
    background-image: url('chopknife.svg');
    background-repeat: no-repeat;
    background-size: cover;
	filter: drop-shadow(-1px 1px 1px #13162c);
    width: 60px;
    height: 60px;
    position: absolute;
    top: 45%;
    left: 10%; /* Roughly between "t" and "C" */
    transform: translateY(-50%) rotate(-15deg);
    z-index: 2; 
}

.rules {
    background-color: #fff;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.current-challenge {
    background-color: #fff;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.current-challenge h2 {
    margin-top: 0;
}

.current-challenge ul {
    list-style: disc;
    padding-left: 20px;
}

.current-challenge button {
    /* These styles will be overridden by Bootstrap's btn classes now */
    /* Consider using Bootstrap's default button styling if you remove custom CSS */
    padding: 8px 15px;
    background-color: #5cb85c;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
}

.current-challenge button:hover {
    background-color: #4cae4c;
}

.current-challenge .warning {
    color: orange;
    margin-top: 5px;
}

.image-gallery {
    margin-top: 20px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 5px;
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.gallery img {
    max-width: 300px;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.previous-challenges {
    background-color: #fff;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.previous-challenges h2 {
    margin-top: 0;
}

@media (max-width: 768px) {
    .previous-challenges h2 {
        text-align: center;
    }
}

.previous-challenges ul {
    list-style: none;
    padding-left: 0;
}

.previous-challenges li {
    margin-bottom: 8px;
}

.flashes {
    list-style: none;
    padding: 0;
    margin-bottom: 15px;
}

.flashes li {
    padding: 10px;
    border-radius: 5px;
}

.flashes li.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.flashes li.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.image-gallery .gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.image-gallery .gallery img {
    max-width: 100%;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.submission-item p {
    font-size: 0.9em;
    margin-top: 5px;
    text-align: center;
}

.previous-challenges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .previous-challenges-grid {
        grid-template-columns: repeat(auto-fill, 100%);
    }
}

.previous-challenge-card {
    background-color: #f9f9f9;
    padding-bottom: 0; /* Adjust padding to remove extra space below description */
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/* NEW: Custom class for carousel images to control height */
.carousel-submission-img {
    max-height: 300px; /* Adjust as needed */
    object-fit: contain; /* Ensures the entire image is visible, not cropped */
    margin: 0 auto; /* Center the image horizontally */
}

/* NEW: Style for the description within the carousel item */
.carousel-item-description {
    background-color: #f9f9f9; /* Light background similar to the card */
    padding: 10px;
    text-align: center;
    /* Optional: If you want a slightly different background or border-radius */
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    font-size: 0.9em;
    color: #5e351b; /* Match body text color */
}

.carousel-item-description p {
    margin-bottom: 5px; /* Adjust as needed for spacing between paragraphs */
}

/* Remove old carousel-caption-below styles if they exist */
.carousel-caption-below {
    /* REMOVED - this class is no longer used */
}


/* Remove or comment out all old custom carousel CSS */
/*
.carousel-container {
    position: relative;
    overflow: hidden;
}

.carousel {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-item {
    flex: 0 0 100%;
    text-align: center;
}

.carousel-item img {
    max-width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: contain;
    margin: 0 auto;
    display: block;
}

.carousel-button {
    position: absolute;
    top: 0px;
    bottom: 0px;
    width: 40px;
    background-color: rgba(0, 0, 0, 0.2);
    color: transparent;
    border: none;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
    max-height: 300px;
}

.carousel-container:hover .carousel-button {
    opacity: 1;
}

.carousel-button.prev::after {
    content: '';
    border: solid white;
    border-width: 0 2px 2px 0;
    display: inline-block;
    padding: 10px;
    transform: rotate(135deg);
    -webkit-transform: rotate(135deg);
    margin-right: 10px;
    margin-left: 7px;
}

.carousel-button.next::before {
    content: '';
    border: solid white;
    border-width: 0 2px 2px 0;
    display: inline-block;
    padding: 10px;
    transform: rotate(-45deg);
    -webkit-transform: rotate(-45deg);
    margin-left: 10px;
    margin-right: 7px;
}

.carousel-button.prev {
    left: 0;
}

.carousel-button.next {
    right: 0;
}

.carousel .caption {
    font-size: 0.9em;
    color: #777;
    margin-top: 5px;
    text-align: center;
}

.carousel .signature {
    font-size: 0.8em;
    color: #777;
    text-align: right;
    margin-top: 5px;
    padding-right: 10%;
    text-transform: capitalize;
}
*/