@charset "UTF-8";

body {
  margin: 0;
  background-color: #ccffff;
}

#contents {
  min-width: 600px;
  max-width: 1200px;
  padding: 0;
  margin: auto;
  overflow-x: auto;
  background-color: white;
}

blockquote {
  border-left: 0.25em solid #dfe2e5;
}

p {
  margin: 5px 10px;
}

p.external-url {
  display: flex;
  flex-wrap: nowrap;
  gap: 5px;
  align-items: center;
}

span.url-label {
  white-space: nowrap;
}

hr {
  margin: 0;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: bold;
  line-height: 1.3;
  color: #000055;
  overflow-wrap: break-word;
  background-color: #c0cbff;
}

h1 {
  padding-left: 15px;
  font-size: 1.4rem;
}

h2 {
  padding-left: 15px;
  margin-top: 10px;
  font-size: 1.3rem;
}

h3 {
  padding-left: 20px;
  margin-top: 5px;
  font-size: 1.2rem;
}

h4 {
  padding-left: 25px;
  margin-top: 5px;
  font-size: 1.1rem;
}

.main-table {
  width: calc(100% - 20px);
  margin: 10px;
  table-layout: fixed;
  border-spacing: 0;
  border-collapse: collapse;
}

.main-table th {
  font-weight: bold;
  color: #000055;
  background-color: #c0cbff;
}

.main-table th,
.main-table td {
  padding: 0 0.5em;
}

.main-table,
.main-table th,
.main-table td {
  border: 1px solid #c8cce0;
}

a {
  overflow-wrap: anywhere;
}

a.submit-link {
  display: inline-block;
  padding: 0 15px;
  margin: 4px;
  font-weight: bold;
  text-decoration: none;
  border: 1px solid #999999;
  border-radius: 5px;
  transition: background-color 0.15s ease;
}

a.submit-link:hover {
  background-color: #e8edff;
  border-color: #666666;
}

a:focus-visible {
  outline: 2px solid #6f7fc8;
  outline-offset: 1px;
}

.code {
  margin: 0;
}

#total-num {
  display: flex;
  flex-wrap: wrap;
  gap: 0 5px;
  align-items: baseline;
  margin: 5px 20px;
  font-size: 1.25rem;
}

.total-num-note {
  font-size: 1.1rem;
  color: #555555;
}

.profile {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 10px;
}

.profile-icon {
  width: 100px;
  height: auto;
}

.profile-name {
  font-weight: bold;
}

.profile-label {
  display: inline-block;
  min-width: 5.2em;
  margin-right: 0.3em;
  text-align: right;
}

.profile-links p {
  margin: 2px 0;
}

.profile-links a {
  margin-left: 0.2em;
}

.data-load-error {
  font-size: 0.95em;
  font-style: italic;
  color: #666666;
}

.code-container {
  position: relative;
}

.code-copy-button {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 10;
  min-width: 80px;
  min-height: 36px;
  padding: 2px 10px;
  font-size: 1rem;
  font-weight: bold;
  color: #666666;
  cursor: pointer;
  background-color: #f5f5f5;
  border: 1px solid #cccccc;
  border-radius: 0 0 0 8px;
}

.code-copy-button:hover {
  background-color: #f5f5f5;
}

.code-copy-button:active {
  background-color: #e8e8e8;
}

.code-copy-button.copied {
  color: #f5f5f5;
  background-color: #666666;
}

pre:has(.language-kuin) {
  padding: 5px 10px;
  margin: 10px 15px;
  background-color: #fff5f5;
  border: 2px solid #ff8888;
}

/* 提出ID */
#contents-data th:nth-child(1),
#contents-data td:nth-child(1) {
  width: 100px;
  text-align: center;
}

/* 言語 */
#contents-data th:nth-child(2),
#contents-data td:nth-child(2) {
  width: 70px;
  text-align: center;
}

/* 問題タイトル */
#contents-data th:nth-child(3),
#contents-data td:nth-child(3) {
  width: auto;
}
