/*
    See the JupyterLab Developer Guide for useful CSS Patterns:

    https://jupyterlab.readthedocs.io/en/stable/developer/css.html
*/

/* Hint Request Bar */
.hint-request-bar {
  background-color: #f5f5f5;
  display: flex;
  margin: 10px auto 10px 72px;
  justify-content: space-between;
  border: 1px solid #e0e0e0;
  padding: 5px 10px;
}

.hint-request-bar-left {
  display: flex;
  width: 40%;
  justify-content: flex-start;
  align-items: center;
  padding-left: 10px;
}

.hint-request-bar-left-text {
  font-size: 14px;
  line-height: 1.2;
  color: #444;
}

.hint-request-bar-left-info-button {
  width: 25px;
  height: 25px;
  background-color: #ccc;
  border: 0.5px solid #e0e0e0;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  margin-left: 10px;
}

.hint-request-bar-right {
  display: flex;
  justify-content: flex-end;
  width: 60%;
}

.hint-request-bar-right-request-button {
  width: 60%;
  display: inline-block;
  background-color: #1976d2;
  border: 1px solid #e0e0e0;
  border-radius: 3px;
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
  line-height: 1.2;
  margin: 6px auto;
  padding: 6px 12px;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}

.hint-info {
  line-height: 40px;
}

.hint-info span {
  width: 100px;
}

.planning {
  background-color: #81c0ff;
}

.debugging {
  background-color: #f87b7b;
}

.optimizing {
  background-color: #7fc47f;
}

/* Hint History Bar */
.hint-history-bar {
  background-color: #f5f5f5;
  margin: 10px auto 10px 72px;
  border: 1px solid #e0e0e0;
  font-size: 14px;
  line-height: 1.2;
}

/* Style the buttons that are used to open and close the accordion panel */
.accordion {
  background-color: #f5f5f5;
  color: #444;
  cursor: pointer;
  padding: 18px;
  width: 100%;
  text-align: left;
  border: none;
  outline: none;
  transition: 0.4s;
}

.ta-accordion {
  background-color: #f5f5f5;
}
.accordion-error {
  background-color: #eddddd;
}

/* Add a background color to the button if it is clicked on (add the .active class with JS), and when you move the mouse over it (hover) */
.active,
.accordion:hover,
.ta-accordion:hover {
  background-color: #ccc;
}

/* Style the accordion panel. Note: hidden by default */
.accordion-panel {
  background-color: white;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease-out;
  padding: 0 18px 0 18px;
}

.accordion:after,
.ta-accordion:after {
  content: '\02795';
  /* Unicode character for "plus" sign (+) */
  font-size: 14px;
  color: #777;
  float: right;
  margin-left: 5px;
}

.active:after {
  content: '\2796';
  /* Unicode character for "minus" sign (-) */
}

/* Hint Banner */
:root {
  --hint-banner-height: 25vh;
}

#hint-banner-placeholder {
  width: 100%;
  height: var(--hint-banner-height);
  background-color: #fff;
}

#hint-banner {
  position: fixed;
  z-index: 10;
  left: 0;
  right: 0;
  top: 29px;
  width: calc(100% - 32px);
  height: calc(var(--hint-banner-height));
  margin: 0 auto;
  padding: 0 20px;
  background-color: #fff;
  border: 1px solid #e0e0e0;
  font-size: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  overflow-y: auto;
}

#hint-banner p {
  display: flex;
  align-items: center;
}

.loader {
  width: 24px;
  height: 24px;
  margin-right: 50px;
  border: 3px solid #1976d2;
  border-bottom-color: transparent;
  border-radius: 50%;
  display: inline-block;
  box-sizing: border-box;
  animation: rotation 1s linear infinite;
}

@keyframes rotation {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

#hint-banner-buttons-container {
  display: flex;
  width: 90%;
  justify-content: flex-end;
}

.hint-banner-button {
  background-color: #1976d2;
  border: 1px solid #e0e0e0;
  border-radius: 3px;
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.2;
  margin: 6px;
  padding: 6px 12px;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}

.hint-banner-cancel-button {
  background-color: #757575;
  border: 1px solid #e0e0e0;
  border-radius: 3px;
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.2;
  margin: 6px;
  padding: 6px 12px;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}

.reflection {
  width: 400px;
}

.reflection-input {
  width: 97%;
  resize: vertical;
}
