/**
 * Copyright 2015 Google Inc. All Rights Reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

:root {
  --primary-color: #5126aa;
}

 body, html, #renderedContent {
   padding: 0;
   margin: 0;
   height: 100%;
   width: 100%;
 }

.demo-ribbon {
  width: 100%;
  height: 40vh;
  background-color: transparent;
  -webkit-flex-shrink: 0;
      -ms-flex-negative: 0;
          flex-shrink: 0;
}

.demo-main {
  margin-top: -35vh;
  -webkit-flex-shrink: 0;
  -ms-flex-negative: 0;
  flex-shrink: 0;
  overflow: auto;
  display: flex;
  justify-content: center;
  width: 100%;
}

.demo-header .mdl-layout__header-row {
  padding-left: 40px;
}

.demo-container {
  max-width: 1600px;
  width: calc(100% - 16px);
}

.demo-content {
  border-radius: 2px;
  padding: 80px 56px;
  margin-bottom: 80px;
}

.demo-layout.is-small-screen .demo-content {
  padding: 40px 28px;
}

header {
  position: fixed;
  background-color: var(--primary-color) !important;
}


.top40 {
  margin-top: 40px !important;
}
.question-group-container {
  margin-top: 40px !important;
  min-height: unset !important;
}
.question-group-header {
  padding: 16px;
  margin-bottom: 0 !important;
}

.question-container:nth-child(2) .question-header {
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
}

.question-container:last-child .question-header {
  border-bottom-left-radius: 4px;
  border-bottom-right-radius: 4px;
}

.question-container:last-child .question-body {
  border-bottom-left-radius: 4px;
  border-bottom-right-radius: 4px;
}

.question-container {
  width: 100%;
}

.flip {
  transform: rotate(180deg);
}

.question-header {
  margin-bottom: 1px !important;
  margin-top: 0 !important;
  font-weight: bold;
  box-shadow: 0px 2px 1px -5px rgb(0 0 0 / 20%),
              0px 1px 1px 0px rgb(0 0 0 / 14%),
              0px 1px 3px 0px rgb(0 0 0 / 12%);
}

.question-body {
  display: none;
  padding: 16px;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  box-shadow: 0px 2px 1px -5px rgb(0 0 0 / 20%),
              0px 1px 1px 0px rgb(0 0 0 / 14%),
              0px 1px 3px 0px rgb(0 0 0 / 12%);
}

.selected-question {
  margin-top: 8px !important;
  margin-bottom: 8px !important;
}

.selected-question div.question-header {
  border-bottom-left-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
  margin-bottom: -1px !important;
  box-shadow: 0px 2px 1px -5px rgb(0 0 0 / 20%),
              0px 1px 1px 0px rgb(0 0 0 / 14%),
              0px 1px 3px 0px rgb(0 0 0 / 12%);
}

#support-button {
  margin-top: 24px;
  display: block;
  margin-bottom: 40px;
  z-index: 900;
  background-color: var(--primary-color) !important;
}

.support-button-container {
  display: flex;
  justify-content: center;
  width: 100%;
}

.back-button-container {
    display: flex;
    align-items: center;
    padding: 4px 8px;
    height: 36px;
}

.back-button-text {
    font-weight: 500;
    font-size: 14px;
}

.mdl-layout__header-row {
    display: flex;
    align-items: center;
}

.back-button-container + .mdl-layout-title {
    margin-left: 0;
    padding-left: 16px;
    border-left: 1px solid rgba(255, 255, 255, 0.3);
}
