/*:root {
  --border: rgb(255, 216, 166);
  --header-line-height: 36px;
  --header-margin-top: 4px;
}*/
body {
  font-family: "Roboto", Helvetica, Arial, sans-serif;
  background-color: antiquewhite;
  width: 100vw;
  height: 100vh;
  margin: 0px;
  display: grid;
  grid-template-areas:
    'sidebar header'
    'sidebar main';  
  grid-template-rows: [row1] 0.75em [row2] 1fr;
  grid-template-columns: [col1] min-content [col2] 1fr;
}

header { /* currently just an empty line */
  background-color: antiquewhite;
}      

nav { /* sidebar */
  background-color: antiquewhite;
  padding-top: 0.75em;
  padding-right: 0.75em;
  padding-left: 0.75em;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 10px;
  overflow: hidden;
}
#tip {
  display: inline-block;
  word-wrap: break-word;
  hyphens: auto;
  font-size: 0.85em;
  width: 100%; /* for vertical navbar */
  flex: 1; /* grow */
  overflow: hidden;
}
/* note - similar with miniap CSSs */
[role="bigbutton"] {
  background-color: #0074d9;
  border-radius: 15px;
  color: #fff;
  cursor: pointer;
  display: inline-block;
  text-align: center;
  text-decoration: none;
  font-weight: bold;
  vertical-align: middle;
  width: 90px;
  height: 80px;
  line-height: 80px; /* for vertival text centering */
  box-shadow: 3px 3px 3px gray;  
  /*flex: none; /* so it won't grow or shrink in flex containers */
}

@media only screen and (max-width: 600px) {
  body {
      grid-template-areas:
        "sidebar sidebar"
        "header main";
      grid-template-rows: [row1] 105px [row2] 1fr;
      grid-template-columns: [col1] 0.75em [col2] 1fr;
  }
  nav {
    flex-direction: row;
    padding-top: 0.75em;
    padding-right: unset;
    padding-left: 0.75em;
    padding-bottom: 0.75em;
  }
  #tip {
    width: unset;
  }
}

main div { /*container for miniapp iframe */
  border-top-left-radius: 25px;
  overflow: hidden;
  width: 100%;
  height: 100%;
}
iframe {
  width:100%;
  height:100%;
  border: 0px solid white;
}

/* help */

div#help {
  position: fixed;
  top: 0.75em;
  left: 0.75em;
  bottom: 0.75em;
  right: 0.75em;
  background-color: lightblue;
  opacity: 0.95;
  padding: 15px;
  border-radius: 15px;
  display: none;
  /*display: flex;*/
  flex-direction: column;
  justify-content: flex-start;
}

div#help h1 {
  font-size: 1.8em;
  color: #333333;
  margin: 0.15em 0 0.6em 0.4em; /*top right bottom left */  
}
div#help div#help_content {
  flex: 1;
  display: inline-block;
  overflow: hidden;
}

div#help img.tacrlogo {
  height: 120px;
}

div#help a#help_close {
  position: absolute;
  bottom: 1.5em;
  right: 1.5em;
}

/*div#help div#help_bottombar {
  min-height: 80px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

div#help div#help_bottombar img.tacrlogo {
  height: 80px;
}*/


/*.padded {
  padding: 0.75em;
}*/
div#challenge {
  display:none;
}
