/* Sections */
.intro,
.split {
	width: 100%;
	max-width: var(--content-max-width);
	margin-left: auto;
	margin-right: auto;
}

.intro {
	width: 100%;
	margin-bottom: 1rem;
	border-radius: 16px;
	overflow: hidden;
	position: relative;
	display: flex;
	box-sizing: border-box;
	
	color: var(--text-colour);
	text-align: left;
	align-self: center;
	
	padding: 0;
}

.intro-content {
    /* Layout */
    align-items: flex-start;
    text-align: left;
    padding: 2rem;
    padding-top: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: left;
	background-color: rgba(0, 0, 0, 0.1);
    /* Reset and Fill */
    position: relative;
    z-index: 2;
    flex: 1;

    /* The Filter */
    backdrop-filter: brightness(0.6);
    -webkit-backdrop-filter: brightness(0.6); /* Safari support */
}

.split {
	display: flex;
	justify-content: center;
	align-items: stretch;
	gap: 1rem;
	
	margin: 0 auto;
	width: 100%;
	box-sizing: border-box;
	
	margin-bottom: 1.5rem;
}

.panel {
    flex: 1;
    min-height: 200px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: 16px;
    color: white;
    overflow: hidden;
    transition: 0.4s ease;
}

.panel:hover {
    flex: 1.1;
}

.panel::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    transition: background-color 0.5s ease;
    z-index: 0;
    
    /* mix-blend-mode: multiply; */
}

.panel:hover::before {
    transform: scale(1.05);
}

/* Panel background gradients */
.intro::before {
	content: "";
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(to bottom, rgba(50,200,200,0.12), rgba(50,200,200,0.3));
	
	background: linear-gradient(to bottom, rgba(0,200,100,0.15), rgba(0,200,100,0.3));
	
	background: linear-gradient(to bottom, rgba(0,175,100,0.15), rgba(0,175,100,0.3));
	/* background: linear-gradient(to bottom, rgba(100,50,200,0.1), rgba(100,50,200,0.3)); */
	z-index: -1;
}

.panel.left::before {
    background: linear-gradient(to bottom, rgba(0,100,200,0.1), rgba(0,100,200,0.3));
}

.panel.right::before {
    background: linear-gradient(to bottom, rgba(200,50,0,0.1), rgba(200,50,0,0.3));
}


.panel h2 {
	position: relative;
	color: var(--icon-text-colour);
}

.right {
	color: red;
}

.bg-sprite {
	width: 300px;
	height: 300px;
	position: relative;
	fill: currentColor;
	color: grey;
	z-index: 0;
	
	transition: color 0.2s ease, transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.bg-sprite {
	width: clamp(150px, 30vh, 300px);
	height: clamp(150px, 30vh, 300px);
}

.panel:hover .bg-sprite{
	color: white;
	transform: scale(1.05);
}

.overlay {
    position: relative;
    height: 100%;
    width: 100%;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    backdrop-filter: brightness(0.6);
    -webkit-backdrop-filter: brightness(0.6); 
}

.overlay h2 {
    /* font-size: 1.75rem; */
    margin-bottom: 0.5rem;
}





/* Code Block Stuff */
.highlight pre {
    margin: 0;
}

code, pre {
    font-family: ui-monospace, SFMono-Regular, SF Mono, Consolas, 
                 Liberation Mono, Menlo, monospace;
}

.highlight {
    position: relative;
    background: #f6f8fa;
    border: 1px solid #d0d7de;
    border-radius: 6px;
    padding: 16px;
    overflow-x: auto;
    font-size: 0.9rem;
}

.copy-button {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #ffffff;
    border: 1px solid #d0d7de;
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: 0.2s ease;
}

.copy-button:hover {
    background: #f3f4f6;
}

.copy-button.copied {
    background: #d1f0d1;
    border-color: #5cb85c;
}

