/* Copy existing styles from gallery.html, but remove iframe-specific styles */
body {
	background-color: #111;
	color: #fff;
	font-family: Arial, sans-serif;
	max-width: 1400px;
	margin: 0 auto;
	padding: 20px;
}

h1 {
	text-align: center;
	color: #4ba3ff;
	margin-bottom: 10px;
}

h2 {
	color: #4ba3ff;
	font-size: 24px;
	margin-top: 40px;
	margin-bottom: 20px;
	padding-bottom: 10px;
	border-bottom: 1px solid #333;
}

.subtitle {
	text-align: center;
	color: #888;
	margin-bottom: 30px;
}

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

.gallery-item {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.gallery-item:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
	border-color: #4ba3ff;
}

.pattern-container {
	position: relative;
	width: 100%;
	aspect-ratio: 16/9;
	overflow: hidden;
	background: #000;
}

canvas {
	width: 100%;
	height: 100%;
	display: block;
}
 
.info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.info h3 {
	margin: 0 0 10px 0;
	color: #4ba3ff;
	font-size: 20px;
}

.metadata {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

button {
	background-color: #2a2a2a;
	color: #fff;
	border: 1px solid #444;
	padding: 6px 14px;
	border-radius: 4px;
	cursor: pointer;
	font-size: 13px;
	transition: all 0.2s;
}

button:hover {
	background-color: #333;
	border-color: #4ba3ff;
	color: #4ba3ff;
}

button.playing {
	background-color: #4ba3ff;
	color: #000;
	border-color: #4ba3ff;
}

.global-controls {
	display: flex;
	justify-content: center;
	gap: 15px;
	margin: 20px 0;
        }
        
        .empty-message {
            text-align: center;
            color: #888;
            margin: 50px 0;
            font-size: 18px;
        }
        
        .navigation-bar {
            display: flex;
            justify-content: center;
            gap: 20px;
            margin: 20px 0;
        }
        
        .navigation-bar a {
            color: #4ba3ff;
            text-decoration: none;
            padding: 8px 16px;
            border: 1px solid #333;
            border-radius: 4px;
            transition: all 0.2s;
        }
        
        .navigation-bar a:hover {
            background-color: rgba(75, 163, 255, 0.1);
            border-color: #4ba3ff;
        }
        
        /* Delete button */
        .delete-btn {
            position: absolute;
            top: 10px;
            right: 10px;
            background-color: rgba(0, 0, 0, 0.7);
            color: #ff4b4b;
            border: 1px solid #ff4b4b;
            border-radius: 50%;
            width: 24px;
            height: 24px;
            font-size: 14px;
            line-height: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            opacity: 0;
            transition: opacity 0.2s, background-color 0.2s;
            z-index: 10;
            box-shadow: 0 0 3px rgba(0, 0, 0, 0.5);
        }
        
        .gallery-item:hover .delete-btn {
            opacity: 1;
        }
        
        .delete-btn:hover {
            background-color: rgba(0, 0, 0, 0.9);
            color: #ff6b6b;
        }
        
        /* Confirmation dialog */
        .confirmation-dialog {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.8);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 1000;
        }
        
        .dialog-content {
            background-color: #252525;
            padding: 20px;
            border-radius: 8px;
            max-width: 400px;
            text-align: center;
        }
        
        .dialog-buttons {
            margin-top: 20px;
            display: flex;
            justify-content: center;
            gap: 15px;
        }
        
        .dialog-buttons button.confirm-delete {
            background-color: #ff4b4b;
            color: white;
            border-color: #ff4b4b;
        }
        
        .dialog-buttons button.confirm-delete:hover {
            background-color: #ff2a2a;
        }
