
.hidden {
  display: none;
}

.visuallyhidden {
  opacity: 0;
}

#user-menu-open {
  margin: 11px 11px 4px 11px;
  padding: 0px 0px 0px 33px;
  background-image: url(/img/curlie-ico.gif);
  background-repeat: no-repeat;
  background-position: left;
  background-size: contain;
  min-height: 1.8em;
}

#user-menu-open.closed {
  margin: 12px 11px 7px 10px;
}

#user-menu-open:hover {
  cursor: pointer;
}

#user-menu-bottom {
  position: fixed;
  top: 59px;
  right: 12px;
  z-index: 2;
  border: 1px solid #aaa;
  border-top: none;
  background: white;
  padding: 0px;
}

#user-menu-bottom.closed {
  visibility: hidden;
}

#user-menu-image {
  display: none;     /* inline-block to show */
  width: 36px;
  height: 28px;
  background: url(/img/curlie-ico.gif) center center no-repeat;
  background-size: contain;
}

#user-menu-bottom ul {
  list-style-type: none;
}

#user-menu-bottom li {
  padding: 1px 0px;
}

#user-menu-bottom i {
  padding-right: 9px;
  width: 1em;
}

div.mypage-group-editname {
  display: inline-block;
  padding: 1em 5px 0 0;
}

div.group-edit-icons {
  display: inline-block;
}

div.group-edit-buttons {
  display: inline-block;
  padding-left: 20px;
}

.form-inline input.groupname {
  border: 1px solid #777;
  padding: 3px 7px;
}

.form-inline label {
  color: white;
}

#addGroupButton {
  margin-top: 10px;
}

.form-inline .in-row-input {
  display: inline;
  padding-left: 13px;
}

div.group-add-cat {
  padding: 3px 7px 11px 22px;
  font-size: 0.9em;
}

i.myGroupMoveIcon {
  padding: 2px;
  border: 2px solid #d1d1d1;
  color: #fff;
  background-color: #676767;
  font-size: 0.9em;
}

i.myGroupMoveIcon:hover {
  background-color: #383838;
  cursor: pointer;
}

div.tip_default_group {
  width: 0;              /* don't let it take up additional space */
}

.tip_default_group span {
  display: none;         /* hide until we can get it to show properly */
}

i.defaultGroupIcon {
  display: none;         /* js will show as appropriate */
  position: relative;
  right: 3px;            /* we'll put it where the padding is, top right */
  bottom: 13px;
  font-size: 0.7em;
}

.icon-plus-catname {
  display: inline-block;
}

div.my-cat-icon.current-cat {
  float: left;
  height: 25px;
  width: 25px;
  min-height: 0;
  min-width: 0;
  padding: 0;
  margin-right: 10px;
}

/* fixed so that open/close doesn't shift text to the right */
.icon-plus-catname i.cat-bullet { width: 1em; }
i.openCloseAllIcon.cat-bullet   { width: 1.2em; }

.icon-plus-catname i.cat-bullet.closed { color: #aa422c; }

i.cat-bullet::before {
  content: '\f07c';    /* fa-folder-o */
}

i.cat-bullet.closed::before {
  content: '\f07b';    /* fa-folder */
}

i.cat-bullet:hover {
  cursor: alias;
}

.draggable-cat.ui-draggable-dragging {
  padding: 4px 8px 1px 5px;
  border-radius: 12px;
  background: #e8f14e;
}

i.myCatIcon:hover, i.mySiteIcon:hover, i.fa-home:hover {
  cursor: pointer;
}

i.mySiteIcon {
  color: #676767;
}

i.mySiteIcon:hover {
  color: #141414;
}

i.otherLinks.addLinkIcon {
  margin-top: 7px !important;
}

i.invisible {
  visibility: hidden;
  cursor: inherit;
}

input.hideButton {
  display: none;
}

div.cat-edit-icons {
  display: none;       /* hide until category hover */
  user-select: none;
}

div.cat-edit-icons.show-icons {
  display: inline-block;
}

div.cat-edit-icons.up-and-down {
  float: right;
  padding-right: 15px;
}

div.cat-edit-icons.edit-and-new {
  float: none;
  padding-left: 10px;
}

div.site-edit-icons {
  float: none;
  padding-left: 10px;
  display: none;       /* hide until site hover */
  font-size: 0.9em;
}

div.site-edit-icons.show-icons {
  display: table-cell;
}

div.mysite-header div.site-title {
  display: table-cell;
}

div.mysite-header {
  padding-left: 20px;
}

.mycat-site-content.closed {
  display: none;
}

i.open-close-cat:hover {
  cursor: pointer;
}

/****** public page **********************************************/

#publicTop {
  padding: 15px;
}

#mypage-notpublic {
  display: block;
  padding: 4em 2em;
}

#userInfo {
  display: inline-block;
  width: calc(100% - 635px);
}

#userInfo div {
  padding: 6px;
}

#userPhoto {
  float: left;
  margin-right: 20px;
  box-shadow: 5px 5px 5px #c7bcbc;
}

#userPhoto img {
  max-width: 250px;    /* use max width to preserve aspect ratio */
  height: 250px;       /* but exact height to limit overall size */
  object-fit: cover;
}

#userTitle {
  margin: 9px 0;
}

#userInfo div.donorLevel {
  padding: 0px;
  display: inline-block;
  position: relative;
  bottom: 3px;
  margin-left: 19px;
}

.donorLevel img {
  max-width: 100px;
  max-height: 40px;
  vertical-align: middle;
}

#userTitle span {
  font-style: italic;
}


/*****************************************************************/

/* If we decide we want to use a different icon to indicate a
   category that has no sites (expand/collapse is meaningless)
   and we code a way to recognize when one is empty,
   then use 'fas fa-circle' with these attributes */

.cat-without-sites {
  font-size: 0.5em;
  left: 0px;
  margin-right: 4px;
  margin-left: 11px;
  top: -3px;
}

h3.node-header.mycat-header:hover {
  cursor: default;
  box-shadow: 5px 3px 2px #eaeaea;
  background: #eee;
}

h3.mycategory.node-header:hover span.header-text {
  text-decoration: none;
}

h3.mycategory i.myCatSize.fa {
  font-size: 0.9em;
  padding-left: 10px;
}

h3.mycategory i.myCatIcon.fa {
  font-size: 0.8em;
}

h3.mycategory div.cat-edit-icons i:hover {
  color: #141414;
}

h3.mycategory i.fa {
  color: #676767;
  font-size: 1em;
}

h3.mycategory i.open-close-cat {
  font-size: 1.2em;
  color: #bbb;
  position: relative;
  top: 2px;
  margin-right: 2px;
  display: none;      /* remove to go back to enabling individual open/close */
}

h3.mycategory i.open-close-cat:hover {
  color: #222;
}

h3.mycategory.node-header {
  margin-bottom: 0px;
}

h3.mycategory span.header-text {
  margin: 0px 0px;
}

h3.node-header div.cat-edit-icons i {
  margin: 0px 3px;
  padding: 0px 3px;
}

i.mySiteIcon.fa {
  font-size: 1.0em;
}

div.site-edit-icons i.mySiteIcon.fa {
  padding-top: 4px;
}

div.mycategories {
  margin-top: 10px;
}

.mycat-section {
  padding-bottom: 10px;
}

div.mycategories div.site-item {
  margin: 0px 20px;
  overflow: initial;
}

div.mycategories div.site-item:hover {
  background-color: #fafaea8c;
}

div.mycategories div.site-icon {
  position: relative;
  bottom: -4px;
}

a.mycat-link, a.mycat-link:visited {
  color: #444;        /* consistent color for visited/non-visited */
}

a.mycat-link:hover {
  color: #dc8453;     /* different than visited/non-visited color(s) */
}

.addMyLink {
  padding-left: 20px;
}

form .catNameAndLoc {
  display: inline-block;
  width: 305px;         /* TODO: use js to match width of input.catname */
  padding-right: 10px;
}

form .fullCatPath {
  padding: 14px 0 10px 5px;
  white-space: nowrap;  /* extend beyond input.catname if necessary */
}

.mycat-edit-form {
  display: none;
}

.mycat-label-and-select, .editCatButtons {
  display: inline-block;
  vertical-align: top;
  padding-right: 10px;
}

.mycat-edit-form form {
  padding: 10px 24px;
  margin-block-end: 5px;
  background: #eee;
}

.mycat-edit-form input {
  font-size: 0.9em;
}

.mycat-edit-form input.catname {
  border: 1px solid #777;
  padding: 3px 7px;
}

form select {
  font-size: 0.9em;
  margin: 0 5px;
  border: 1px solid #777;
}

form input.button {
  background: #676767;
  padding: 2px 10px;
  color: white;
  margin: 0px 5px;
  font-size: 0.9em;
}

form input.button:hover {
  background: #383838;
  cursor: pointer;
}

form input.button.delete-cat {
  width: 70px;  /* why is the button too wide without this? */
  border-style: outset;   /* match input type=submit */
  text-align: center;
}

.form-inline input {
  font-size: 0.9em;
}

.form-inline .label {
  font-size: 0.9em;
}

.form-popup {
  display: none;
  min-width: 450px;
  position: fixed;
  top:50%;
  left:50%;
  margin-top:  -188px;
  margin-left: -293px;
  border: 1px solid #666;
  background: #eee;
  box-shadow: 0 2px 3px rgba(0,0,0,.14);
  z-index: 9;
}

.form-popup h1 {
  border-bottom: 1px solid #666;
  padding: 4px 10px;
}

.form-popup form {
  margin-block-end: inherit;
}

.form-popup form select {
  width: 99%;
  margin-bottom: 10px;
}

.form-popup h1 {
  font-size: 1.5em;
  margin-bottom: 4px;
}

.form-popup label {
  font-size: 1em;
}

.form-popup input {
  margin-bottom: 10px;
  font-size: 0.9em;
  border: 1px solid #777;
}

.form-popup #editdesc {
  margin-bottom: 14px;
  font-size: 0.9em;
}

.form-container {padding: 17px;}

#editurl, #edittitle, #editdesc {
  width: 99%;
  margin-left: 6px;
  padding-left: 7px;
  border-radius: 4px;
}

#editdesc {
  height: 60px;
}

#mypage-top {
  padding: 25px 11px 12px;
  clear: both;
}

h3.mypage-public-link {
  margin-top: 14px;
}

.mypage-group {background-color:#8080ff;}

.mypage-managegroup {
  display: none;
  background: hsla(  9, 61%, 50%, 1.0);
  margin-bottom: 10px;
  padding-left: 20px;
}

.mypage-group-tabs {
  display: inline-block;
  margin-bottom: 0px;
  width: 100%;
  background: #dc8453;
}

i.editGroupIcon, i.addGroupIcon, i.openCloseAllIcon {
  margin: 0px 6px;
}

#groupActionIcons {
  float: left;
  height: 45px;
  display: table;
  border-right: 1px solid white;
}

#groupOCTab, #groupEditTab, #groupAddTab {
  padding: 0px 5px;
  vertical-align: middle;
  border-right: none;
}

#groupOCTab:hover, #groupEditTab:hover, #groupAddTab:hover {
  color: #aa422c;
}

#groupOCTab {
  padding-left: 10px;
}

#groupAddTab {
  padding-right: 10px;
}

i.openCloseAllIcon {
  font-size: 1.2em;
  position: relative;
  top: 0px;
}

i.closeGroupEditIcon {
  margin: 0px 20px;
}

#groupTabs {
    overflow-y: hidden;
    overflow-x: auto;    /* show scroll bar only if necessary */
}

#groupAddEditIcons {
  float: right;
  cursor: inherit;
}

.groupTab {
  display: table-cell;
  background-color: #dc8453;
  border: none;
  outline: none;
  cursor: pointer;
  transition: 0.3s;
  color: white;
  font-weight: bold;
  font-size: 1.0em;
  padding: 10px 12px 10px 15px;
  margin: 0px;
  vertical-align: middle;
  border-right: 1px solid white;
  white-space: nowrap;
}

.groupTab:hover {
  background-color: #e59b71;
}

.groupTab.groupIconDiv:hover {
  background-color: initial;
}

.groupTab.ui-state-active {  
  color: #222;
  background-color: #d5dc53;
}

.groupTab.ui-state-hover {
  background-color: #e8f14e;
}

#groupAddTab.closed {
  background: '#e59b71';
}

#newGroupPanel.closed {
  display: none;
}

#groupAddEdit {
  cursor: inherit;
}

#typegrouptitle {
  display: block;
  width: 250px;
  margin-bottom: 10px;
}

#groupAddEditIcons:hover {
  background-color: #dc8453;
}

#newGroupForm {
  padding: 15px;
  margin-block-end: 0px;
}

input.closeNewGroup {
  display: none;
}

#newGroupPanel {
  display: inline-block;
  cursor: default;
  width: 300px;
  position: absolute;
  left: 0px;
  top: 46px;
  z-index: 9;
  background: hsla(  9, 61%, 50%, 1.0);
  box-shadow: 2px 2px 11px rgba(0,0,0,.8);
}

.newGroupLabel {
  color: white;
  padding-right: 5px;
  padding-bottom: 5px;
  font-weight: bold;
}

.groupTab.active {
  background-color: hsla(  9, 61%, 50%, 1.0);
  color: white;
  font-weight: bold;
}

.groupTab.default {
  /* padding-right: 12px; */  /* still causes expand/collapse */
}

.groupTab input {
  margin-right: 10px;
}

.groupcontent {
  display: none;
  padding: 6px 12px;
  border: 1px solid #ccc;
  border-top: none;
}

.mygroups {
  display: none;
}

.scroll-group-tab {
  position: fixed;
  top: 66px;          /* must match height of #nav-main-menu */
  z-index: 1;
}

#mypage-body.scroll-gap-adjust {
  padding-top: 46px;  /* must match height of #group-tab-outer */
}

#newGroupPanel.scroll-gap-adjust {
  top: 100px;
}

.content.post-header {
  margin-top: 65px !important;
}

.full-page-margin {
  margin: 20px;
}

.full-page-margin > h2 {
  padding-top: 25px;
}

/****** style instructions *****/

#mypage-help {
  display: none;       /* the page will determine when/whether to display this */
  padding: 25px;
  max-width: 900px;
  font-size: 1.1em;
}

#mypage-help i {
  margin: 0 2px;
}

#mypage-help .sign {
  font-style: italic;
}


/*************** Medium screens ***************/

@media screen and (max-width: 1000px) {

  #userInfo {
    width: auto;
    height: 250px;
    display: inherit;
  }
}

/*************** Medium-Small screens ***************/

@media screen and (max-width: 725px) {

  .scroll-group-tab {
    position: initial;
  }

  #mypage-body.scroll-gap-adjust {
    padding-top: 0;
  }

  div.group-edit-buttons {
    margin: 15px 0 0;
    padding: 0;
  }
}

/*************** Small screens ***************/

@media screen and (max-width: 625px) {

  #user-menu-open {
    margin: 14px 11px 0px 11px;
    padding: 0px 0px 0px 35px;
  }

  #user-menu-open.closed {
    margin: 15px 11px 7px 10px;
  }

  #userInfo {
    display: inline-block;
  }

  #userPhoto {
    margin-right: 0;
  }

  #userPhoto img {
    width: 100%;
    height: auto;
    max-height: 350px;
  }

  .form-popup {
    margin-left: 0;
    left: 0;
  }

  .mycat-label-and-select {
    margin: 0px 0px 14px 5px;
  }

  form .catNameAndLoc {
    width: auto;
  }

  form .fullCatPath {
    white-space: normal;
  }

  .mycat-edit-form form {
    padding-bottom: 20px;
  }
}

