main > .container:first-child {
  padding: 70px 15px 20px 15px;
}

.unbordered {
  border: 0 !important;
}

.footer {
  background-color: #f5f5f5;
}

body {
  font-family: Helvetica, Arial, "Free Sans", sans-serif;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: bold;
}

.form-button {
  display: inline !important;
}

:not(.nav-item) .form-button button.btn {
  border: 1px solid transparent !important;
}

.buttons {
  margin-bottom: 12px;
}

.solve-header {
  font-size: 200%;
  font-weight: bold;
  line-height: 1;
}

.form-search {
  display: inline !important;
}

.form-search button.btn {
  border: 1px solid transparent !important;
}

.news {
  margin: 12px 0px;
}

.news > .title h4 {
  margin: 0;
}

.news > .content {
  margin: 2px 0;
  padding: 2px 0 2px 12px;
  border-left: 1px solid rgba(0,0,0,0.5);
}

.news > .meta {
  color: rgba(0,0,0,0.5);
  font-size: 85%;
}

.unanswered-question {
  background-color: #fff5d1;
}

.forum-thread > .title h4 {
  margin: 0;
}

.forum-thread > .content {
  margin: 2px 0;
  padding: 2px 0 2px 12px;
  border-left: 1px solid rgba(0,0,0,0.5);
}

.forum-thread > .meta {
  color: rgba(0,0,0,0.5);
  font-size: 85%;
}

.forum-post {
  margin: 12px 0px;
}

.forum-post > h5 {
  margin: 0;
}

.forum-post > .content {
  margin: 2px 0;
  padding: 2px 0 2px 12px;
  border-left: 1px solid rgba(0,0,0,0.5);
}

.forum-post > .meta {
  color: rgba(0,0,0,0.5);
  font-size: 85%;
}

.forum-hide-overflow-title {
  text-overflow: ellipsis;
  overflow: hidden;
}

.forum-hide-overflow {
  display: -webkit-box; /* You need this, it's an old version of display: flex; */	
  margin: 0 auto;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.badge-privilege {
  padding: 0 0 0 8px;
}

.badge-tag {
  padding: 0 0 0 8px !important;
}

#time {
  font-weight: bold;
}

.form-label-group small.help-dt {
  position: absolute;
  top: 2px;
  right: 10px;
  display: block;
  width: 100;
  margin-bottom: 0;
  line-height: 1.5;
  pointer-events: none;
  cursor: text; /* Match the input under the label */
  border: 1px solid transparent;
  border-radius: .25rem;
  font-size: 60%;
  font-weight: bold;
}

input[type=file] {
  height: auto;
}

p {
  margin-bottom: 0.25rem;
}

.forum-category {
  margin-bottom: 1rem;
}

.event-enter .dropdown-menu {
  min-width: 300px;
  max-width: 30vw;
}

.post-create {
  display: inline !important;
}

.post-create .dropdown-menu {
  width: 50vw;
  max-width: 500px;
}

.code-editor-saved-string {
  display: block;
  color: #777777;
  font-size: 0.9em;
  height: 20px;
  padding-right: 4px;
}

.input-output-current {}
.input-output-outdated {
  /* background-color: rgb(247, 247, 230); */
  border: solid yellow 2px;
}

#code-repository-test-boxes .collapsing {
  -webkit-transition: none;
  transition: none;
  display: none;
}

.status-colored {
  /*background-color: lightgray;*/
}

.status-colored[data-status="WAITING"].status-text,
.status-colored[data-status="WAITING"].test-run .status {
  color: #c0c0c0;
}

.status-colored[data-status="PREPARING"].status-text,
.status-colored[data-status="PREPARING"].test-run .status {
  color: #7393b3;
}

.status-colored[data-status="RUNNING"].status-text,
.status-colored[data-status="RUNNING"].test-run .status {
  color: #7393b3;
}

.status-colored[data-status="WAITING"].status-text:after,
.status-colored[data-status="WAITING"].test-run .status:after {
  content: url('spinner.gif');
  padding-left: 6px;
}

.status-colored[data-status="PREPARING"].status-text:after,
.status-colored[data-status="PREPARING"].test-run .status:after {
  content: url('spinner.gif');
  padding-left: 6px;
}

.status-colored[data-status="RUNNING"].status-text:after,
.status-colored[data-status="RUNNING"].test-run .status:after {
  content: url('spinner.gif');
  padding-left: 6px;
}

.status-colored[data-status="SKIPPED"].status-text,
.status-colored[data-status="SKIPPED"].test-run .status {
  color: #7393b3;
}

.status-colored[data-status="DONE"][data-verdict="ACCEPTED"].status-text,
.status-colored[data-status="DONE"][data-verdict="ACCEPTED"].test-run .status
{
  background-color: #c1e1c1;
  color: #228b22;
  font-weight: bold;
  /*text-decoration: underline;*/
}

.accepted-background
{
  background-color: #c1e1c1;
  
}

.accepted-font
{
  color: #228b22;
  font-weight: bold;
}

.status-colored[data-status="DONE"][data-verdict="UNSOLVED"].status-text,
.status-colored[data-status="DONE"][data-verdict="UNSOLVED"].test-run .status
{
  color: #e00000;
  font-weight: bold;
}
.unsolved-font
{
  color: #e00000;
  font-weight: bold;
}

.status-colored[data-status="DONE"][data-verdict="WRONG_ANSWER"].status-text,
.status-colored[data-status="DONE"][data-verdict="WRONG_ANSWER"].test-run .status
{
  color: #880808;
}

.status-colored[data-status="DONE"][data-verdict="TIME_LIMIT_EXCEEDED"].status-text,
.status-colored[data-status="DONE"][data-verdict="TIME_LIMIT_EXCEEDED"].test-run .status {
  color: #ff5f15;
}

.status-colored[data-status="DONE"][data-verdict="MEMORY_LIMIT_EXCEEDED"].status-text,
.status-colored[data-status="DONE"][data-verdict="MEMORY_LIMIT_EXCEEDED"].test-run .status {
  color: #aa336a;
}

.status-colored[data-status="DONE"][data-verdict="RUNTIME_ERROR"].status-text,
.status-colored[data-status="DONE"][data-verdict="RUNTIME_ERROR"].test-run .status {
  color: #800080;
}

.status-colored[data-status="DONE"][data-verdict="RULE_VIOLATION"].status-text,
.status-colored[data-status="DONE"][data-verdict="RULE_VIOLATION"].test-run .status {
  color: #ff3131;
}

.status-colored[data-status="DONE"][data-verdict="SYSTEM_ERROR"]{
  background: linear-gradient(124deg, #ff2400, #e81d1d, #e8b71d, #e3e81d, #1de840, #1ddde8, #2b1de8, #dd00f3, #dd00f3);
  background-size: 1800% 1800%;
  -webkit-animation: rainbow 6s ease infinite;
  -z-animation: rainbow 6s ease infinite;
  -o-animation: rainbow 6s ease infinite;
  animation: rainbow 6s ease infinite;
}

.status-colored[data-status="DONE"][data-verdict="COMPILATION_ERROR"].status-text,
.status-colored[data-status="DONE"][data-verdict="COMPILATION_ERROR"].test-run .status {
  color: #191970;
}

.hidden-problem {
  background-color: #e9ecef;
}


@-webkit-keyframes rainbow {
    0%{background-position:0% 82%}
    50%{background-position:100% 19%}
    100%{background-position:0% 82%}
}
@-moz-keyframes rainbow {
    0%{background-position:0% 82%}
    50%{background-position:100% 19%}
    100%{background-position:0% 82%}
}
@-o-keyframes rainbow {
    0%{background-position:0% 82%}
    50%{background-position:100% 19%}
    100%{background-position:0% 82%}
}
@keyframes rainbow { 
    0%{background-position:0% 82%}
    50%{background-position:100% 19%}
    100%{background-position:0% 82%}
}
.eventbadge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  line-height: 1.5;
}
.teamspan {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  line-height: 1.5;
}
.minimal-width {
  width: 1px;
  white-space: nowrap;
}

[type=button], [type=reset], [type=submit], button {
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
}

.row:before, .row:after {
  display: inline-block;
}

.source-code-text-box {
  font-family: 'Courier New', 'Free Mono', Courier, monospace;
}

.compilation-error-message {
  font-family: 'Courier New', 'Free Mono', Courier, monospace;
  resize: none;
  width:100%;
  height: 300px;
  cursor: text;
}

tr.ranking-gold:nth-of-type(2n) {
  background-color: rgb(215, 195, 50) !important;
}

tr.ranking-silver:nth-of-type(2n) {
  background-color: darkgrey !important;
}

tr.ranking-bronze:nth-of-type(2n){
  background-color: rgb(181, 108, 35) !important;
}

tr.ranking-gold:nth-of-type(2n+1) {
  background-color: rgb(237, 211, 65) !important;
}

tr.ranking-silver:nth-of-type(2n+1) {
  background-color: silver !important;
}

tr.ranking-bronze:nth-of-type(2n+1)  {
  background-color: rgb(205, 127, 50) !important;
}

small, .small {
  line-height: 0.9 !important;
}

div.user_organization {
  font-size: 75%;
  line-height: 0.9 !important;
  color: #555;
}

.after_freeze_baloon_background {
  background-color: rgb(162, 228, 246);
}
.after_freeze_baloon_color {
  color: rgb(162, 228, 246);
}

.unsafe_name {
  display: inline-block;
  max-width: 300px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.05;
  max-height: 2.1em;
  vertical-align: middle;
}

.unsafe_name_strict {
  display: inline-block;
  max-width: 200px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.05;
  max-height: 2.1em;
  vertical-align: middle;
}
