﻿/* Please see documentation at https://docs.microsoft.com/aspnet/core/client-side/bundling-and-minification
for details on configuring this project to bundle and minify static web assets. */

@font-face {
  font-family: 'Balsamiq Sans';
  src: url(../font/BalsamiqSans-Italic.ttf);
  font-style: italic;
}

.navbar-light, .navbar-brand {
  color: darkslategray !important;
}

a.navbar-brand {
  white-space: normal;
  text-align: center;
  word-break: break-all;
}

/* Sticky footer styles
-------------------------------------------------- */
html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.border-top {
  border-top: 1px solid #e5e5e5;
}

.border-bottom {
  border-bottom: 1px solid #e5e5e5;
}

.box-shadow {
  box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

button.accept-policy {
  font-size: 1rem;
  line-height: inherit;
}

.main-screen-option {
  font-size: 3rem;
  color: #fff;
  background-color: rgba(106,106,106,0.92);
  border-radius: 3rem;
  display: block;
  margin-top: 1.5rem;
  text-align: center;
  white-space: nowrap;
}

  .main-screen-option:hover, .main-screen-option:visited {
    text-decoration: none;
    color: #fff;
  }

#main-option-bloc {
  position: absolute;
  width: 50%;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%)
}
/* Sticky footer styles
-------------------------------------------------- */
html {
  position: relative;
  min-height: 100%;
}

body {
  /* Margin bottom by footer height */
  margin-bottom: 60px;
  background: #f0f0f0;
  font-family: Balsamiq Sans;
  font-style: italic;
}

.footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  white-space: nowrap;
  /* Set the fixed height of the footer here */
  height: 60px;
  line-height: 60px; /* Vertically center the text there */
}

.answer-option {
  height: 80px;
  border-radius: 20px;
  margin: 15px;
  border-width: 1px;
  border-color: #999;
  border-style: dotted;
  box-shadow: 0.4em 0.4em 5px rgba(122,122,122,0.5);
}

.color-results {
  height: 55px;
  border-radius: 15px;
}

.question-text {
  font-size: 3.5rem;
  font-weight: 300;
  line-height: 1.03;
}

.title {
  font-size: 3.5rem;
  font-weight: 300;
}

table.results td {
  vertical-align: middle;
}

  table.results td.icon {
    text-align: left;
    width: 3%;
  }

  table.results td.color-name {
    overflow: auto;
    width: 17%;
    text-align: left;
  }

  table.results td.color-cell {
    padding: 5px;
  }

  table.results td.right-color {
    width: 40%;
  }

  table.results td.user-color {
    width: 40%;
  }

  table.results td.right-answered {
    width: 80%;
  }

.back-img {
  position: absolute;
  z-index: -10;
  opacity: 0.9;
}

.app-container {
  width: 80%;
}


@media (orientation: landscape) {
  .back-img {
    height: 100%;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
  }
}

@media (orientation: portrait) {
  .back-img {
    width: 100%;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
  }

  #main-option-bloc {
    width: 90%;
  }
}

@media only screen and (max-width: 500px) {
  .question-text {
    font-size: 3rem;
  }

  .title {
    font-size: 3.0rem;
  }

  table.results td.color-name {
    max-width: 140px;
  }

  table.results td.icon {
    padding-right: 0;
  }

  .app-container {
    width: 100%;
  }
}

@media only screen and (max-width: 400px) {
  .question-text {
    font-size: 2.7rem;
  }

  .title {
    font-size: 2.5rem;
  }

  table.results td.color-cell {
    padding: 3px;
  }
}

@media only screen and (max-width: 370px) {
  table.results td.color-name {
    max-width: 120px;
  }

  .question-text {
    font-size: 2.5rem;
  }

  .title {
    font-size: 2.1rem;
    font-weight: 400;
  }
}

@media only screen and (max-width: 340px) {
  .question-text {
    font-size: 2.2rem;
  }

  .title {
    font-size: 1.8rem;
  }

  table.results td.color-name {
    max-width: 100px;
  }

  table.results td.color-cell {
    padding: 1px;
  }
}

@media only screen and (max-height: 450px) {
    .main-screen-option {
        font-size: 2rem;
        border-radius: 2rem;
    }
}

@media only screen and (max-height: 350px) {
    .main-screen-option {
        font-size: 1.7rem;
        border-radius: 1.7rem;
    }
}

@media only screen and (max-height: 300px) {
    .main-screen-option {
        font-size: 1.5rem;
        border-radius: 1.5rem;
        margin-top: 1.2rem;
    }
}

div.locker {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  background-color: rgba(50, 50, 50, 0.5);
  opacity: 0.2
}

div.long-locker {
  background: url('/img/busy.gif') 50% 50% no-repeat rgba(255, 255, 255, 0.9);
  opacity: 1;
  transition-property: background-color, opacity;
  transition-duration: 1.5s
}