:root {
    --backgroundColour1: black;
    --backgroundColour2: red;
    --shadowColour: blue;
    --shadowOpacity: 0.5;
}

* {
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
}

.container {
    display: flex;
    flex-direction: column;
    background: var(--color-darker);
    height: 100%;
    box-sizing: border-box;
    align-items: center;
}

.content {
    padding: 20px;
}

.control {
    display: flex;
    flex-direction: row;
}

.control > * {
    margin: 5px;
}

.control > p {
    color: #d0d0d0;
    text-align: center;
    font-family: monospace;
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-size: 18px;
}

p.rgbText {
    width: 100px;
}

p.opacityText {
    width: 65px;
}

.example-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    padding: 10px;
}

.example {
    width: 300px;
    height: 300px;
    position: relative;
}

.example .object {
    width: 150px;
    height: 150px;
    position: absolute;
    top: 75px;
    left: 75px;
    border-radius: 75px;
    z-index: 1;
    background-color: var(--shadowColour);
    opacity: var(--shadowOpacity);
}

.example .background {
    width: 300px;
    height: 300px;
    position: absolute;
    top: 0;
    left: 0;
    transform: rotateX(45deg) rotateZ(45deg) translateZ(0);
}

.example .background .texture {
    width: 100%;
    height: 100%;
    background: repeating-conic-gradient(var(--backgroundColour1) 0% 25%, var(--backgroundColour2) 0% 50%) 50% / 20px 20px;
    background-size: 50px 50px;
    /*background-position: 0 0, 0 10px, 10px -10px, -10px 0px;*/
}
