:root {
--content-color: #eee;
--sidebar-color: #ddd;
--main-gradient: linear-gradient(90deg, #e99, #eb7);
--focus-color: #039;
--good-light: #cd9;
--neutral-light: #9cd;
--good-dark: #090;
--bad-dark: #900;
}
* {
margin: 0;
padding: 0;
}
html, body {
height: 100%;
max-height: 100%;
}
body {
font: 16px sans-serif;
background-color: var(--sidebar-color);
color: #000;
display: grid;
grid-template: "h h" min-content
               "s c" 1fr / auto 1fr;
}
#header {
grid-area: h;
display: flex;
gap: 32px;
align-items: center;
background-image: var(--main-gradient);
padding: 16px 32px;
box-shadow: 0 0 8px rgba(0, 0, 0, .2);
z-index: 1;
}
#header > h1 {
margin: 0;
text-transform: uppercase;
letter-spacing: 4px;
font-size: 150%;
text-shadow: 0 0 2px #fff;
flex: auto;
}
#header > h1 > a {
text-decoration: none;
color: inherit;
}
#header p {
margin: 0;
}
#info_short {
display: none;
}
#with_sidebar, #show_sidebar, #hide_sidebar {
display: none;
}
#sidebar {
grid-area: s;
background-color: var(--sidebar-color);
width: 30vw;
max-width: 300px;
padding-bottom: 64px;
}
#sidebar > section, #sidebar > form {
padding: 16px;
text-align: center;
}
#sidebar p {
margin: 0;
}
.contest > h2 {
font-weight: bold;
font-size: 100%;
margin: 0 0 .5em;
}
#content {
grid-area: c;
padding: 0 32px 64px;
background-color: var(--content-color);
box-shadow: 0 0 4px rgba(0, 0, 0, .5);
max-width: 1000px;
}
#menu {
list-style: none;
margin: 0;
}
#menu > li {
border-bottom: 1px solid #bbb;
}
#menu > li:first-child {
border-top: 1px solid #bbb;
}
#menu > li.draft {
font-style: italic;
}
#menu > li > * {
display: flex;
align-items: center;
height: 32px; /*48px;*/
padding: 0 16px;
}
#menu > li > a {
font-size: 100%; /*150%;*/
text-decoration: none;
color: inherit;
}
#menu > li > a:hover {
background-color: #e7e7e7;
}
#menu > li > a.active {
background-color: var(--content-color);
font-weight: bold;
}
.task {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
width: 32px;
margin-left: auto;
font-weight: normal;
align-self: stretch;
}
.task + .task {
margin-left: 16px;
}
.task.solved {
background-color: var(--good-light);
color: var(--good-dark);
font-weight: bold;
}
.task.resigned {
background-color: var(--bad-dark);
color: #fff;
}
.task.working {
background-color: var(--neutral-light);
}
.message, .error {
padding: 16px;
}
.message {
background-color: var(--good-light);
}
.error {
background-color: var(--bad-dark);
color: #fff;
}
.right {
color: var(--good-dark);
}
.wrong {
color: var(--bad-dark);
}
button {
border-radius: 4px;
border: none;
background-image: var(--main-gradient);
color: #000;
font: inherit;
padding: .5em 1em;
cursor: pointer;
line-height: initial;
}
a:focus {
outline: 2px solid var(--focus-color);
}
button:hover, button:focus {
box-shadow: 0 0 0 2px var(--focus-color) inset;
outline: none;
}
button:active, button:disabled {
box-shadow: 1px 1px 4px rgba(0, 0, 0, .5) inset;
}
#header button {
background-image: none;
background-color: #fff;
}
input, textarea {
background-color: #fff;
padding: 4px 8px;
border-radius: 4px;
border: 2px solid #999;
font: inherit;
vertical-align: baseline;
line-height: initial;
}
textarea {
width: 40em;
height: 15em;
}
input:focus, textarea:focus {
border-color: var(--focus-color);
outline: none;
box-shadow: 1px 1px 4px rgba(0, 0, 0, .2) inset;
}
table {
border-collapse: collapse;
border-top: 2px solid #000;
border-bottom: 2px solid #000;
}
th, td {
padding: 8px 16px;
border-top: 1px solid #000;
border-bottom: 1px solid #000;
text-align: center;
}
h1, h2 {
font-weight: normal;
}
h1, h2, p, table, ul {
margin: 1em 0;
}
h1 {
font-size: 200%;
}
h2 {
font-size: 150%;
}
section + section {
margin-top: 3em;
}
dl {
display: grid;
grid-template-columns: auto auto;
}
dt {
text-align: right;
margin-right: 8px;
color: #555;
}
dd {
text-align: left;
}
a {
color: var(--focus-color);
text-decoration: underline;
}
#content p, #content ul {
line-height: 1.5;
}
#content li {
margin: .5em 0;
margin-left: 2em;
}
label {
display: inline-block;
width: 5em;
text-align: right;
}
