/* app-specific styles */

body {
	/* explicity set font, otherwise semi-bold doesn't work for some reason (?) */
	font-family: 'Segoe WP', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

main > article.current {
	transition: left 0s none;
}

a { 
	/* color:" + this.LinkColour + "; */
	font-weight: 600;  /* will be user-configurable in Themes.tsx */
	text-decoration:none;
}

a:hover { 
	/* background-color:" + this.HoverBackgroundColour + ";  */
	}


thead {
	background-color: #c0c0c0;
	color: rgb(255, 255, 255);
	border: 1px solid grey;
	font-weight: bold;
}

	thead td {
		padding-right: 0.5em;
	}

		thead td:nth-child(3) {
			min-width: 7em;
		}

.itemcontainer {
	height: 100px;
	margin: 2px;
	overflow-y: hidden;
}

.itemcontainer-highlight {
	height: 100px;
	margin: 2px;
	overflow-y: hidden;
	background-color: grey;
}

.icon-block {
	height: 100px;
	width: 100px;
	float: left;
	margin-right: 10px;
}

.inline-icon {
	position: relative;
	top:0.1em; /* fine tune alignment with adjacent text */
}

.label-large {
	font-size: 2em;
	opacity: 1.0;
	line-height: 30pt;
}

.label-medium {
	font-size: 1em;
	line-height: 16pt;
}

.item-title {
	margin-bottom: 1em;
	width: 100%;
}

.search input {
	width: 90%;
	max-width: 50em;
}

.app-icon { /* override default */
	margin-left: 0;
}

#search section {
  overflow: hidden;
}

#search-content {
  height: 90%;
  overflow: auto;
}

.word-list {
  font-size: 1.2em;
}

.word-list ul {
	list-style: none; 
	padding: 0;
  margin: 0.1em;
}

.word-list li span { /* make links clickable on iOS */
  cursor: pointer;
  display: inline-block;
}

.word-list li span:hover {
  transform: translateX(0.03em) translateY(0.03em);
  display: inline-block;
}

.word-list li span:active {
  transform: translateX(0.1em)  translateY(0.1em);
  display: inline-block;
}

#definition-text {
	margin-top: 1em;
}

#definition-text a {
	display: inline-block;
  }

  #definition-text a:hover, #definition-text a:active {
	transform: translateX(0.1em) translateY(0.1em);
	display: inline-block;
  }
	
#definition-result h3 span[class*="icon-"] {
  margin-right: 0.3em;
  position: relative;
  top: 0.1em;
}

#definition-result {
	font-size: 1.2em;
  }
  
.quot { 
	/* color:" + this.LowlightColour + ";   */
	font-size:0.8em; 
	font-style: italic; 
}

.quot a { 
	/* override highlighting within quotation */
	/* color:" + this.LowlightColour + "; */
	font-weight: normal; 
}

.etym { 
	/* color:" + this.LowlightColour + ";  */
	font-size:0.8em; 
}

.headword { 
	font-size:1.5em; 
	/* background-color:" + this.BackgroundColour + ";  */
	/* color:" + this.ForegroundColour + ";  */
}

.page-decorator {
	float: right;
	position: relative;
    right: 0em;
	top: -0.2em;
	height: 1em;
	margin-left: 0.5em;
}

.page-decorator span { 
	cursor: pointer;
	vertical-align: middle;
}

.page-decorator span.icon-volume-up, .page-decorator span.icon-volume-off { 
	font-size: 1.2em;
}

.page-decorator span:hover { 
	transform: translateX(0.03em) translateY(0.03em);
	display: inline-block;
}

.page-decorator span:active { 
	transform: translateX(0.1em)  translateY(0.1em);
	display: inline-block;
}

.platform-android .page-decorator {
    position: relative;
      right: 0.3em;
      top: 0.2em;
      height: 1.5em;
  }  

#home-page {
  left: 0;
  bottom: 0;
  padding-top: 0.25em;
  padding-left: 0.25em;
  z-index: -1;
}

#home-page div {
}

/* make sure home-page elements are clickable */
#search section {
  z-index: 0;
}

#about ul li a {
  text-decoration: underline;
}

.WOTD h2 {
  text-align: center;
}

.WOTD-word {
  text-decoration: underline;
  text-align: center;
  font-size: 1.5em;
}

.WOTD-panel {
  border: solid #888 2px;
  padding: 1em;
  margin: 2em;
}

@media only screen and (max-width : 500px) {
  .WOTD h2 {
    font-size: 1em;
  }

  .WOTD-panel {
    padding: 10px;
    margin: 0;
  }
}

#button-unfavourite span.navbar-label {
  text-decoration: line-through;
}

.item-highlight {
  border: 1px solid grey;
}

img.float-right {
	float: right;
}

textarea.hidden-text { /* can't make visibilty:hidden because need to pick up text for copying */
	position: absolute;
	left: -999em;
	opacity: 0;
	height: 0;
	width: 0;
}

button.back-to-top {
	position: fixed;
	bottom: 2.5em;
	right: 1.1em;
	outline: none;
	cursor: pointer;
	padding: 0.4em;
	border-radius: 0.5em;
	font-size: smaller;
}


/* Word grid */

.wordgrid {
	/*border: 1px solid blue;*/ 
	position: absolute;
	display: block;
	width: 95%;
	height: 90%;
  overflow: hidden;
}

@keyframes wordAppear {
  from {
    opacity: 0;
    transform: scale(0.6); 
  }
}

@keyframes wordAppearRotated {
  from {
    opacity: 0;
    transform: rotate(90deg) scale(0.6);
  }
}

.wordgrid span {
	display: inline;
	position: absolute;
	/*border: 1px solid red;*/
	padding: 0px 4px;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  
  /*animation-name: wordAppear;*/
  animation-duration: 600ms;
  animation-timing-function: ease;
  animation-direction: normal;
  animation-fill-mode: backwards;
  animation-name: wordAppear;
  
  transition-property: transform;
  transition-duration: 0.05s;
  cursor: pointer;
}

.wordgrid span:active { 
  transform: translateX(5%) translateY(5%);
}

.wordgrid span.vertical {
  transform: translateX(-50%) translateY(-50%) rotate(90deg) translateX(50%) translateY(-50%);
  animation-name: wordAppearRotated;
}

.wordgrid span.vertical:active { 
  transform: translateX(-50%) translateY(-50%) rotate(90deg) translateX(55%) translateY(-55%);
}

.wordgrid p.wotd {
  font-size: 2em;
}

.wordgrid0{
	font-family: 'Segoe UI Semilight', Tahoma, Geneva, Verdana, sans-serif;
}
.wordgrid1{
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.wordgrid2{
	font-family: 'Segoe UI Black', Tahoma, Geneva, Verdana, sans-serif;
}
.wordgrid3{
	font-family: 'Segoe UI Semibold', Tahoma, Geneva, Verdana, sans-serif;
}
.wordgrid4{
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-style: italic;
}
.wordgrid5{
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  text-transform: uppercase;
}
