a, input{
  cursor: pointer;
}
a, a:visited {
  color: #50a000;
  text-decoration: none;
}

body {
  font-size: 87.5%;
  font-family: Verdana, Geneva, Arial, 'Bitstream Vera Sans', 'DejaVu Sans', Meiryo, 'Hiragino Kaku Gothic Pro', 'MS PGothic', Osaka, sans-serif;
}

div#skip-link {
  width: 1px;
  height: 1px;
  overflow: hidden;
}

section#header {
  font-family: "Trebuchet MS", sans-serif;
  display: grid;
  grid-template-areas:
    "logo name-and-slogan"
    "navigation navigation";
  grid-template-columns: auto 1fr;
  margin-top: 1em;
}

div#logo {
  grid-area: logo;
  margin: 10px;
}

div#name-and-slogan {
  grid-area: name-and-slogan;
  justify-self: start;
}

div#navigation {
  grid-area: navigation;
}

ul {
  list-style: none;
  padding:0;
}

ul.inline li {
  display: inline-block;
  border-left: 1px solid gray;
  padding-left: 1ch;
  padding-right: 1ch;
}

#header ul {
  text-align: center;
}

h1#site-name,
h1#site-name a {
  font-weight: 800;
  text-decoration: none;
  line-height: 1em;
  font-size: 34px;
  color: #555;
  margin: 0;
}

div#site-slogan {
  font-weight: normal;
  font-style: italic;
  margin-bottom: 5px;
  font-size: 15px;
  line-height: 1em;
  margin-top: 15px;
}

section {
  margin-left: 5ch;
  margin-right: 5ch;
}

/*frontpage*/
body {
    display: grid;
    grid-template-areas:
        "header header header"
        "left main right"
        "left middle middle"
        "footer footer footer";
    grid-template-columns: 1fr auto 1fr;
}

section#header {
    grid-area: header;
}

section#sidebar-left {
    grid-area: left;
}

section#main-content {
    grid-area: main;
}

section#sidebar-right {
    grid-area: right;
}

section#middle {
    grid-area: middle;
}

section#footer {
    grid-area: footer;
}

.frontpage section {
    margin: 0;
    padding: 0;
}

#sidebar-left>div,
#sidebar-right>div,
#sidebar-left ul,
#sidebar-right ul {
    border: 1px solid #dfdfdf;
    margin: 5px;
    padding:5px;
}

ul.inline li:first-child {
  border: none;
}

section#main-content {
  color: #3b3b3b;
}

.previewlist li {
  margin: 0;
  padding: 15px 12px 10px 14px;
  margin-bottom: 10px;
  border-style: solid;
  border-width: 1px;
  border-color: #ddd;
}

.previewlist h2 {
  border-bottom: 1px solid #ddd;
  padding-left: 1ch;
  margin-bottom: 0.2em;
}

.submitted {
  margin-bottom: 1em;
}

img.preview_image {
  float: left;
  margin: 1ch 3ch 1ch 1ch;
  max-height: 8em;
  max-width: 15ch;
}

.abstract {
  min-height: 9em;
  grid-area:abstract;
}

#page-title {
    margin-left: 3ch;
    font-size: xx-large;
}

body.frontpage .listblock.regions li {
    display: inline;
}

body.frontpage .listblock.topics li {
    display: block;
}


body.frontpage .listblock.topics {
    border: 1px solid #ddd;
    padding: 1ch;
}

.banner img {
    width: 90%;
}

a.nodeadd, a.nodeadd:visited {
  background-color: #99ff33;
  border: 2px solid grey;
  color: black;
  font-style: italic;
  padding: 2px;
  display: inline-block;
  border-radius: 30px;
  margin: 2px;
  text-align: center;
  line-height: 15px;
}

/*open posting*/
body.openposting {
    display: grid;
    grid-template-areas:
        "header header header"
        "left main right"
        "middle middle middle"
        "footer footer footer";
    grid-template-columns: 1fr 3fr 1fr;
    padding: 10px;
}

body.openposting section {
    margin: 0;
}
/*forms*/
form label,
form input,
form textarea,
form select,
form .license-option,
form .license-text {
    display: block;
    margin: 1ch 1ch 1ch 5ch;
}

textarea#field_body, #field_body_label,
textarea#field_comment, label[for="field_comment"] {
    display: none;
}
/*toggles instead of checkboxes:*/

label.switch input {
    width: 0;
    height: 0;
    opacity: 0;
    position: absolute;
}

label.switch span {
    padding: 5px;
    border-radius: 10px;
    border: 1px solid;
}

input:checked + span {
    background:cyan;
}

.topic-wrapper {
    display: grid;
    max-width: 80vw;
    grid-template-columns: repeat(auto-fit, minmax(20ch, auto));
}


form .license-option input, form .license-option label {
    display: inline;
    margin: 1ch 1ch 1ch 1ch;
}

.license-option {
    border: 1px dashed lightgray;
}

form label {
    font-weight: bold;
    margin-top: 2ch;
    color:#3b3b3b;
}
form span.required{
  color:red;
}
form #submitbutton{
  font-size:large;
  font-weight:bold;
  margin:3em;
  padding:2ch;
}

form #field_preview_image_delete:checked ~ label[for="field_preview_image_delete"] img {
    opacity: 0.3;
}
form #field_preview_image_delete:checked ~ label[for="field_preview_image_delete"]{
     background: #930c0ce0;
}

form input#field_preview_image.old_image_attached {
    display: none;
}

form #field_preview_image_delete:checked ~ input#field_preview_image.old_image_attached {
    display: block;
}

form input#field_preview_image_delete {
    display: none;
}

form label[for="field_preview_image_delete"],
form label[for="field_preview_image_delete"] h3{
    display:none;
}


form #field_preview_image.old_image_attached ~ label[for="field_preview_image_delete"],
form #field_preview_image_delete:checked ~ label[for="field_preview_image_delete"] h3{
    display:block;
}
form .old_image_block input {
    float: left;
}
form .old_image_block input:checked+label img {
 opacity:0.3
}


/*article*/
.content-wrapper {
    margin: 0;
    padding: 15px 12px 10px 14px;
    margin-bottom: 10px;
    border-style: solid;
    border-width: 1px;
    border-color: #ddd;
}

.content-wrapper .tags h3,
.content-wrapper ul.tags,
.content-wrapperul.tags li {
    display: inline-block;
}

.audio_block li {
    display: grid;
    text-align: center;
    width: fit-content;
}

.image_block ul {
    display: flex;
    gap: 2ch;
}

.image_block li {
    border: 1px dashed lightgrey;
    text-align: center;
}
.image_block img {
    display: block;
}

.wrapper.streams {
    display: grid;
    grid-gap: 1ch;
    margin-bottom: 2em;
}

/*user action bar*/
li.user_action {
    display: inline-block;
    margin-left: 2ch;
    font-weight: bold;
    font-size: large;
}

ul.user_actions {
    border: 1px dashed lightgray;
    border-top: none;
    margin-top: -7px;
    padding-top: 7px;
}

/*user-page*/
.user-block-left a{
  display: block;
  margin-top: 1em;
}

.userpage #user_page_link,
.userpage_edit #user_edit_link,
.userpage_edit #trash_page_link{
  display: none;
}

input#reset_password {
    display: inline;
}

label[for=reset_password] {
    display: inline;
    margin: 0;
}

.password_reset_wrapper {
    display: none;
}

#reset_password:checked~.password_reset_wrapper {
    display: block;
}

/*moderation */
input.hidden {
    display: none;
}


/*needs sorting*/
.simple-tag-list {
    display: inline-block;
    margin-right:  5ch;
}


.simple-tag-list li {
    display: inline-block;
    margin-left: 1ch;
}

.content-wrapper {
    display: grid;
    grid-template-areas:
        "submitted tags"
        "abstract abstract"
        "body body"
        "imgblock imgblock"
        "audioblock audioblock"
        "fileblock fileblock"
        "license license";
    grid-template-rows: 3em minmax(4em, auto) auto auto auto auto auto;
}

.submitted {
    grid-area: submitted;
}

.tags {
    grid-area: tags;
}

.abstract-image {
    grid-area: abstract-image;
}

.abstract-text {
    grid-area: abstract;
}

.node-page .abstract .abstract-image {
  float: left;
  margin-right: 2ch;

}

.body {
    grid-area: body;
}
.image_block{
  grid-area: imgblock;
}
.file_block{
  grid-area: fileblock;
}
.audio_block{
  grid-area: audioblock;
}

.license {
    grid-area: license;
}

h3 {
    margin: 0;
}

ul.tags {
    margin: 0;
}

.content-wrapper {}

/*blogwire mod*/
form.blogwire_new_feed {
    display: grid;
    grid-template-areas:
        "title feed author wp"
        "titlei feedi authori wpi"
        ". submit submit .";
    border: 1px solid #dfdfdf;
    padding: 10px;
}

.blogwire_new_feed label {
    grid-row: 1;
}

.blogwire_new_feed input {
    grid-row: 2;
}

input[type="submit"] {
    grid-area: submit;
}

.blogwire_feeds li {
    display: grid;
    grid-template-columns: repeat(6,auto);
    text-align: center;
    align-items: center;
    justify-items: center;
    border-bottom: 1px dashed;
    grid-gap: 10px;
}

a.update_feed {
    display: block;
    width: 12ch;
    padding: 1px;
}

/*linklist*/

.linklist-page li{
  display:grid;
  grid-template-areas: "tor title description action" "tor image description action";
  grid-template-columns: 5ch auto 1fr auto;
  grid-gap: 2px 1ch;
}
.linklist-page li.even{
  background: lightgray;
}
.linklist-page .has-tor-url-true{ grid-area: tor;}
.linklist-page .has-tor-url-false{display:none;}
.linklist-page .title{
  grid-area: title;
  font-size: x-large;
  min-width: 12ch;
}
.linklist-page .has-image-true{ grid-area:image;}
.linklist-page .has-image-false{ display:none;}
.linklist-page .description{
  grid-area: description;
  align-self: center;
}
.linklist-page li img{
  max-height:5em;
}

.linklist-page h3 {
    text-align: center;
    font-size: x-large;
}

.linklist_block img{
  width:100%;
}
.linklist-page .modbar{
  grid-area: action;
}
/*content-selection-page*/
.content-type-selection p {
    margin-left: 5ch;
}

/*video page*/
body.video {
    grid-template-areas:
        "header header header"
        "left main right"
        "middle middle middle"
        "footer footer footer";
}

body.video .video-list-wrapper {
    border: 1px solid #ddd;
    padding: 1ch;
}

section#middle {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-gap: 2ch;
}

.videogroups img {
    max-width: 100%;
    max-height: 8em;
}

.videogroupwrapper h2 {
  border-bottom: 1px solid #ddd;
}

#sidebar-left ul.videogroups {
    width: 20ch;
    border: none;
}


/*mobile*/
@media only screen and (max-width: 700px) {
  body{
    grid-template-areas:"header header"
    "main main"
    "left right"
    "middle middle"
    "footer footer";
  }
}
@media only screen and (max-width: 500px) {
  body{
    grid-template-areas:"header"
    "main"
    "right"
    "left"
    "middle"
    "footer";
  }
}


/*federation overview*/
.federation-log .error-log-message {
    display: none;
}

.federation-log input:checked ~ .error-log-message {
    display: block;
}

.federation-log li {
  border: 1px dashed;
  margin-top: 1em;
}

/*trash archive - dont let them click nor copy:*/

.trash_archive
 section#middle {
    grid-area: main;
    width: 100%;
    height: 100%;
    background: rgba(255,0,0,0.4);
    z-index: 1000;
}

.trash-archive #main{
  user-select: none;
}
