<?php
header("Content-type: text/css; charset: UTF-8");

$combos = [
    ["8c6b51", "f29e92"],
    ["7fb9ad", "f6e491"],
    ["b48d6d", "d4f293"],
    ["5c44a2", "b7ede2"],
    ["3f9483", "b2f2cf"],
    ["f12d4e", "b2fce1"],
    ["823053", "f69f39"],
    ["ff8c94", "a8e6ce"],
    ["877996", "e9ecef"],
    ["b4a08f", "b4debb"],
    ["bfac9d", "f0e5dd"],
    ["864200", "d2b85f"],
    ["d7585e", "e2f6f0"],
    ["0b2c3c", "c5a285"],
    ["ff9541", "b9f1c5"],
    ["ffb540", "50ffd7"],
    ["212121", "50ffd7"],
];
$colors = $combos[array_rand($combos)];

$images = [];
foreach (new DirectoryIterator(__DIR__."/seals") as $file) {
    if ($file->isFile()) {
	$images[] = $file->getFilename() . "\n";
    }
}
$image = "https://bug.bz/subeta/css/_mine/profile/seals/" . $images[array_rand($images)];
?>
body,html{background-color:#<?=$colors[1]?>;}.header{background-color:#<?=$colors[0]?>}.top-image:before{content:url(<?=$image?>);display:block;text-align:center;margin-left:auto;margin-right:auto;}
