/* [ConnectEmo] - Jeu de cartes en ligne
 * Mina Pêcheux (2020)
 * -----------------------------------------------
 * app-screen.css - Styles for the app main screen
 */

 * {
  box-sizing: border-box;
}

html {
  font-family: Avenir, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

body {
  margin: 0;
}

.panel {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  display: grid;
  place-items: center;
  z-index: 500;
  opacity: 0;
  transition: opacity 0.35s ease-in-out;
  pointer-events: none;
}

.panel-overlay {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.25);
  z-index: 1;
}

.panel-content {
  display: flex;
  flex-direction: column;
  background-color: white;
  padding: 1em;
  box-shadow: 0 0 4px 2px rgba(0, 0, 0, 0.15);
  z-index: 2;
  border-radius: 2px;
}

.panel-content a {
  text-decoration: none;
  color: #b70770;
}
.panel-content a:hover {
  color: #e0167e;
}
.panel-content h4 {
  margin-top: 0;
}
.panel-content .bottom-credits {
  font-size: 0.85em;
  border-top: 1px solid black;
  padding-top: 4px;
  margin-top: 16px;
  width: 100%;
}

#card-expand-panel .panel-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

#card-expand-btn,
#card-expand-remove-btn {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  margin-top: 8px;
}

#card-expand-img {
  height: auto;
  transition: opacity 0.35s ease-in-out;
}

#card-expand-text {
  color: #f5f5f5;
  text-transform: uppercase;
  position: absolute;
}

.intro, .validation {
  width: 100vw;
  height: 100vh;
  display: grid;
  place-items: center;
}

.bandeau {
  width: 100%;
  text-align: center;
}

.bandeau img {
  width: 100%;
  max-width: 900px;
  height: auto;
}

.form-block {
  min-height: 275px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 2px;
  padding: 1em;
  box-shadow: 0 0 4px 2px rgba(0, 0, 0, 0.15);
}

.form-block form {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.form-block form .form-items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
}
.form-block form .form-items .left-label {
  text-align: right;
  justify-self: flex-end;
}
.form-block form .form-items .switch {
  justify-self: center;
}

.form-block form .btn {
  margin-top: 1em;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px;
  box-shadow: 0 0 4px 2px rgba(0, 0, 0, 0.15);
}
.header .icon {
  text-decoration: none;
  color: #555;
  display: grid;
  place-items: center;
  padding: 8px;
}
.header .icon a {
  color: #555;
  padding: 0;
  height: 20px;
}

.validated-cards {
  max-width: 100%;
  position: relative;
  width: 100vw;
  padding: 8px;
  height: 56px;
  box-shadow: 0 2px 2px 2px rgba(0, 0, 0, 0.15);
}

.validated-cards .row {
  justify-content: center;
}

.validated-cards img {
  height: 40px;
  width: auto;
  border-radius: 2px;
  cursor: pointer;
}
.validated-cards img:hover {
  filter: brightness(110%);
}

.validated-cards-placeholder {
  border: 2px dashed #aaa;
  border-radius: 2px;
  height: 40px;
  width: 57px;
  color: #aaa;
  display: grid;
  place-items: center;
  font-size: 16px;
  font-weight: bold;
  user-select: none;
}

#global-validate-form {
  position: absolute;
  top: 12px;
  right: 8px;
}

#global-validate-btn,
#card-expand-validate-btn {
  width: 36px;
  height: 36px;
  color: #f2f2f2;
  background-color: #97bd31;
}
#global-validate-btn:hover,
#card-expand-validate-btn:hover {
  background-color: #7fa024;
}
#global-validate-btn {
  transition: opacity 0.35s ease-in-out;
  opacity: 0;
}
#card-expand-validate-btn {
  margin-top: 8px;
}
#card-expand-remove-btn {
  background-color: #f7542f;
}
#card-expand-remove-btn:hover {
  background-color: #fd8d73;
}

.validation h3 {
  text-align: center;
}

#topic-question-panel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: grid;
  justify-content: center;
  text-align: center;
  opacity: 1;
  transition: opacity 0.35s ease-in-out;
  pointer-events: none;
  background-color: white;
  z-index: 100;
}

#topic-question-panel #number {
  align-self: flex-end;
  font-size: 1.4em;
}

#topic-question-panel #text {
  align-self: flex-start;
  font-size: 2em;
}

#topic-question-holder {
  text-align: center;
  font-weight: bold;
  padding: 8px;
  box-shadow: 0 2px 2px 2px rgba(0, 0, 0, 0.15);
}

.hiddenFromTopic {
  display: none;
}
.btn-short {
  display: none;
}

/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) {
  .btn-full {
    display: none;
  }
  .btn-short {
    display: inline;
  }
  #card-expand-img {
    width: 80vw;
    height: auto;
  }

  #card-expand-text {
    font-size: 16px;
    top: calc(0.7097 * 80vw - 8px);
  }
}

/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 600px) {
  #card-expand-img {
    width: 80vw;
    height: auto;
  }

  #card-expand-text {
    font-size: 24px;
    top: calc(0.7097 * 80vw - 24px);
  }
}

/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 768px) {
  #card-expand-img {
    width: 60vw;
    height: auto;
  }

  #card-expand-text {
    font-size: 32px;
    top: calc(0.7097 * 60vw - 32px);
  }
}

/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 992px) {
  #card-expand-img {
    height: 80vh;
    width: auto;
  }

  #card-expand-text {
    font-size: 32px;
    top: calc(80vh - 32px);
  }
}

/* Extra large devices (large laptops and desktops, 1200px and up) */
@media only screen and (min-width: 1200px) {
  #card-expand-img {
    height: 80vh;
    width: auto;
  }

  #card-expand-text {
    font-size: 32px;
    top: calc(80vh - 32px);
  }
}
