:root {
  --body-color: #E4E9F7;
  --sidebar-color: #FFF;
  --primary-color: #695CFE;
  --primary-color-dark: #3629cb;
  --primary-color-light: #F6F5FF;
  --toggle-color: #DDD;
  --text-color: #707070;

  --tran-02: all 0.2s ease;
  --tran-03: all 0.3s ease;
  --tran-04: all 0.4s ease;
  --tran-05: all 0.5s ease;
}

body {
  font-family: Arial, sans-serif;
  background-color: #f1f1f1;
  margin: 0;
}

h1 {
  color: #333;
}

#generateStoryForm {
  width: 100%;
  padding-top: 2vw;
  padding-bottom: 2vw;
}

label {
  display: block;
  font-weight: bold;
  margin-bottom: 8px;
}

input[type="text"],
textarea {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  margin-bottom: 12px;
  font-size: 1vw;
}

textarea {
  height: 100px;
}

button {
  background-color: #4caf50;
  color: #fff;
  border: none;
  padding: 10px 20px;
  font-size: 16px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#generateButton {
  background-color: var(--primary-color);
  color: white;
}

#generateButton:hover {
  background-color: var(--primary-color-dark);
}

#viewReportButton {
  background-color: var(--primary-color-light);
  color: var(--primary-color);
  padding-inline: 1vw;
}

#viewReportButton:hover {
  background-color: var(--toggle-color);
}

button:hover {
  background-color: #45a049;
}

.error {
  color: red;
  margin-bottom: 12px;
}

.success {
  color: green;
  margin-bottom: 12px;
}

.popup {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  max-height: 400px;
  /* Set a maximum height for the popup */
  padding: 20px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  z-index: 9999;
  overflow-y: auto;
  /* Enable vertical scroll when content exceeds the height */
}

.popup p {
  margin-bottom: 10px;
}

.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9998;
}

.close {
  position: absolute;
  top: 10px;
  right: 10px;
  cursor: pointer;
}

.success-popup {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  padding: 20px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  z-index: 9999;
  text-align: center;
}

.close-success-popup {
  position: absolute;
  top: 10px;
  right: 10px;
  cursor: pointer;
}

.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9998;
}

.invalid-feedback {
  color: red;
}

#orderSessionBtn{
  background-color: var(--primary-color);
  color: white;
  cursor: pointer;
}

#orderSessionBtn:disabled{
  opacity: 0.5;
  cursor: not-allowed;
}

#closePromptBtn{
  background-color: var(--primary-color-light);
  color: var(--primary-color);
}


.top-information {
    display: flex;
    max-width: calc(100vw - 100px);
    margin-bottom: 20px;
    margin-right: 0px;
}

.top-card {
    border-radius: 20px;
    box-shadow: 4px 4px 14px gray;
    margin-left: 10px;
}

.top-card:first-child {
    margin-left: 0px;
}



.card-list-header {
    padding: 20px;
}

.card-header {
    padding: 20px;
}

.list-group-item {
    padding: 20px;
}

.list-group-item:last-child {
    border-radius: 20px;
}


.content-window {
    display: flex;
    height: 100vh;
}


.middle-information {
    display: flex;
    flex-grow: 1;
    overflow: visible;
    position: relative;
}

/* TIMELINE */
.timeline-with-icons {
    border-left: 1px solid hsl(0, 0%, 90%);
    position: relative;
    list-style: none;
}

.timeline-with-icons .timeline-item {
    position: relative;
}

.timeline-with-icons .timeline-item:after {
    position: absolute;
    display: block;
    top: 0;
}

.timeline-with-icons .timeline-icon {
    position: absolute;
    left: -48px;
    background-color: hsl(217, 88.2%, 90%);
    color: hsl(217, 88.8%, 35.1%);
    border-radius: 50%;
    height: 31px;
    width: 31px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll {
    display: flex;
    overflow-y: scroll;
    margin-bottom: 20px;
}

/* width */
.scroll::-webkit-scrollbar {
    width: 20px;
}

/* Track */
.scroll::-webkit-scrollbar-track {
    box-shadow: inset 0 0 5px grey;
    border-radius: 10px;
}

/* Handle */
.scroll::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

/* Handle on hover */
.scroll::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color-dark);
}

/* LIST */
.list {
    height: 100%;
    margin: 0;
    display: grid;
    grid-template-columns: calc(33.3vw - 75px) calc(33.3vw - 75px) calc(33.3vw - 75px);
    grid-template-rows: calc(50vh - 80px) calc(50vh - 80px);
    grid-gap: 20px;

}

.listPage {
    padding: 10px;
    text-align: center;
    list-style: none;
}

.listPage li {
    background-color: #ffffffBD;
    padding: 20px;
    display: inline-block;
    margin: 0 10px;
    cursor: pointer;
    list-style-position: inside;
}

.listPage li:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.listPage .active {
    background-color: var(--primary-color);
    color: #fff;
}

.card {
    height: 100%;
}

.card-header {
    padding-left: 20px;
    padding-right: 20px;
}

.card-timeline-title {
    padding-bottom: 20px;
    padding-left: 20px;
    padding-right: 20px;
}

.card-body {
    padding-left: 20px;
    padding-right: 20px;
}

.card-content {
    padding-left: 40px;
    padding-right: 40px;
}

.card-img-top {
    width: 100%;
    height: 50%;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}




/* CHARTS PAGE */


/* Circle Bar */
.circular-progress-bar-card {
    position: relative;
    width: auto;
    background-color: white;
    border-radius: 20px;
    box-shadow: 4px 4px 14px gray;
}

.circular-progress {
    position: relative;
    height: 10vh;
    width: 10vh;
    background-color: green;
    border-radius: 50%;
    display: grid;
    place-items: center;
    margin: auto;
}

.circular-progress:before {
    content: "";
    position: absolute;
    height: 75%;
    width: 75%;
    background-color: #FFFFFF;
    border-radius: 50%;
}

.value-container {
    position: relative;
    font-size: 45%;
    color: #4d5bf9;
    white-space: pre;
    text-align: center;
    font-weight: bold;
}

/* Stat 2 */
.circular-progress-2 {
    position: relative;
    height: 10vh;
    width: 10vh;
    background-color: green;
    border-radius: 50%;
    display: grid;
    place-items: center;
    margin: auto;
}

.circular-progress-2:before {
    content: "";
    position: absolute;
    height: 75%;
    width: 75%;
    background-color: #FFFFFF;
    border-radius: 50%;
}

.value-container-2 {
    position: relative;
    font-size: 45%;
    color: #4d5bf9;
    white-space: pre;
    text-align: center;
    font-weight: bold;
}

/* Stat 3 */
.circular-progress-3 {
    position: relative;
    height: 10vh;
    width: 10vh;
    background-color: green;
    border-radius: 50%;
    display: grid;
    place-items: center;
    margin: auto;
}

.circular-progress-3:before {
    content: "";
    position: absolute;
    height: 75%;
    width: 75%;
    background-color: #FFFFFF;
    border-radius: 50%;
}

.value-container-3 {
    position: relative;
    font-size: 45%;
    color: #4d5bf9;
    white-space: pre;
    text-align: center;
    font-weight: bold;
}

/* Stat 4 */
.circular-progress-4 {
    position: relative;
    height: 10vh;
    width: 10vh;
    background-color: green;
    border-radius: 50%;
    display: grid;
    place-items: center;
    margin: auto;
}

.circular-progress-4:before {
    content: "";
    position: absolute;
    height: 75%;
    width: 75%;
    background-color: #FFFFFF;
    border-radius: 50%;
}

.value-container-4 {
    position: relative;
    font-size: 45%;
    color: #4d5bf9;
    white-space: pre;
    text-align: center;
    font-weight: bold;
}

/* Overall Stat */
.circular-progress-overall {
    position: relative;
    height: 24vh;
    width: 24vh;
    background-color: green;
    border-radius: 50%;
    display: grid;
    place-items: center;
    margin: auto;
}

.circular-progress-overall:before {
    content: "";
    position: absolute;
    height: 75%;
    width: 75%;
    background-color: #FFFFFF;
    border-radius: 50%;
}

.value-container-overall {
    position: relative;
    font-size: 100%;
    color: #4d5bf9;
    white-space: pre;
    text-align: center;
    font-weight: bold;
}

.circular-progress-bar-card-header {
    font-size: 30px;
    padding-bottom: 20px;
    font-weight: bold;
}





.line-card {
    flex-grow: 1;
    width: 100%;
}

canvas {
    position: relative;
    padding: 10px;
}



#pointCount,
#blockCount,
#foulCount,
#stealCount {
    font-weight: bold;
    font-size: 200%;
}

.bar {
    display: inline-block;
    display: block;
    height: 50%;
}

.circular-card {
    display: block;
    position: relative;
    margin-left: 10px;
    width: 100%;
}


/* Card containing the circle progress bars */
.item1 {
    grid-area: overall;
}

.item2 {
    grid-area: stat1;
}

.item3 {
    grid-area: stat2;
}

.item4 {
    grid-area: stat3;
}

.item5 {
    grid-area: stat4;
}

.grid-container {
    display: grid;
    grid-template-areas:
        'overall stat1 stat2'
        'overall stat3 stat4';
    gap: 10px;
    width: auto;
    height: auto;
    margin: auto;
    padding: 10px;
}

.grid-container>div {
    align-items: center;
    padding: 10px 0;
    font-size: 30px;
}

.bar .card-header {
    padding: 30px;
}

.circular-card .card-header {
    padding: 30px;
}

.headline-cards div {
    display: flex;
    float: left;
    clear: none;
}


.top-information {
    display: flex;
    max-width: calc(100vw - 100px);
    margin-bottom: 20px;
    margin-right: 0px;
}

.top-card {
    border-radius: 20px;
    box-shadow: 4px 4px 14px gray;
    margin-left: 10px;
}

.top-card:first-child {
    margin-left: 0px;
}



.card-list-header {
    padding: 20px;
}

.card-header {
    padding: 20px;
}

.list-group-item {
    padding: 20px;
}

.list-group-item:last-child {
    border-radius: 20px;
}


.content-section {
    display: flex;
    flex-flow: column;
    height: 100vh;
    padding: 40px;
}

.content-window-card {
    display: flex;
    flex-flow: column;
    height: 100vh;

}

.content-window-chart {
    display: flex;
    height: 100vh;

}


.middle-information {
    display: flex;
    flex-grow: 1;
    overflow: visible;
    position: relative;
}

/* start of code to wrap the table for userstory since it is too long */


.userstory-cell {
    position: relative;
}

.userstory-text {
    max-height: 66px;
    overflow: hidden;
}

.userstory-cell.truncated .userstory-text {
    max-height: none;
}

.userstory-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 20px;
    background: linear-gradient(transparent, white);
    pointer-events: none;
}

/* end of code to wrap the table for userstory since it is too long */

/* start of table code */

table {
    border-spacing: 0;
    width: 100%;
}

th {
    cursor: pointer;
}

th,
td {
    text-align: left;
    padding: 16px;
}

.column-header {
    background-color: #f8fafd;
}

.searchInput {
    width: 100%;
    padding: 16px;
    border-bottom: 1px solid #ddd;
    border-top: none;
    border-left: none;
    border-right: none;
    border-top-right-radius: 25px;
    border-top-left-radius: 25px;
}

tr {
    background-color: white;
}

.user-table {
  margin: 2vw;
    margin-inline: 5vw;
    border: 1px solid #ddd;
    border-radius: 25px;
}

.bottom {
    padding: 50px;
    background-color: white;
    border-bottom-left-radius: 25px;
    border-bottom-right-radius: 25px;
    margin-top: 0px;
}

tbody {
    background-color: white;
}


.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: #695CFE;
    color: white !important;
    border: none;
    /*change the hover text color*/
}

/*below block of css for change style when active*/

.dataTables_wrapper .dataTables_paginate .paginate_button:active {
    background: #695CFE !important;
    color: white !important;
    border: none;
}

.dataTables_wrapper {
    background-color: white;
}



#story-table_wrapper {
    padding: 10px;
}

#response-table_wrapper {
    padding: 10px;
}

/* end of table code */



/* export button code */
.export-btn-container {
    display: flex;
    justify-content: flex-end;
    padding: 16px;
    border-bottom: 1px solid #ddd;
    border-top: none;
    border-left: none;
    border-right: none;
    border-top-right-radius: 25px;
    border-top-left-radius: 25px;
    background-color: white;
}


.preEmpt-btn {
    padding: 10px 16px;
    background-color: var(--primary-color);
    color: var(--sidebar-color);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--tran-04);
}

.preEmpt-btn:hover {
    background-color: var(--primary-color-dark);
}

.dataTables_filter input {
    width: 15rem;
}


/* mobile responsiveness */
/* Add media queries for responsive layout */
@media screen and (max-width: 768px) {
    .sidebar {
        width: 70px;
    }

    .sidebar.close {
        width: 70px;
    }

    .sidebar.close .text {
        display: none;
    }

    .sidebar header .toggle {
        right: -10px;
    }

    .home {
        left: 70px;
        width: calc(100% - 70px);
    }

    .sidebar.close~.home {
        left: 70px;
        width: calc(100% - 70px);
    }


    .scroll::-webkit-scrollbar {
        width: 10px;
    }
}

@media screen and (max-width: 480px) {
    .sidebar {
        width: 60px;
    }

    .sidebar.close {
        width: 60px;
    }

    .sidebar header .toggle {
        right: -20px;
    }

    .home {
        left: 60px;
        width: calc(100% - 60px);
    }

    .sidebar.close~.home {
        left: 60px;
        width: calc(100% - 60px);
    }
}


#story-table {
    table-layout: fixed;
    width: 100%;
}

#story-table td {
    width: 10%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#story-table .truncated .userstory-text {
    max-height: none;
}


.userstory-tooltip {
    position: absolute;
    z-index: 999;
    top: 100%;
    left: 0;
    width: 100%;
    padding: 10px;
    background-color: #fff;
    border: 1px solid #ccc;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    white-space: pre-wrap;
}


.button-view-details {
    background-color: #007bff;
    /* Set the background color */
    color: #fff;
    /* Set the text color */
    border: none;
    /* Remove the border */
    padding: 8px;
    /* Set padding */
    border-radius: 4px;
    /* Add border radius for rounded corners */
    cursor: pointer;
    /* Add a cursor on hover */
}

.button-view-details:hover {
    background-color: #0056b3;
    /* Change background color on hover */
}

.button-view-details:focus {
    outline: none;
    /* Remove the focus outline */
}

.button-view-details:active {
    background-color: #003978;
    /* Change background color when active (pressed) */
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 40%;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

#detailsList {
    list-style-type: none;
    padding: 0;
}

#detailsList li {
    margin-bottom: 10px;
}


a {
    color: black;
}

.dropdown-menu {
    max-height: 32vh;
    overflow-y: auto;
    padding-top: 0;

}


.dropdown-menu .search-bar {
    position: sticky;
    top: 0;
    z-index: 1;
    background-color: #fff;
    border: none;

}




.dropdown-search {
    border: none;
    border-bottom: 1px solid #ccc;
    /* Add a bottom border */
    outline: none;
    padding-left: 10px;

}





.invalid-feedback {
    display: none;
    color: red;
}

.dropdown-toggle {
    text-align: left;
    color: #000 !important;
    border-color: #CCC !important;
    background-color: white !important;

}

.dropdown-toggle.dropdown-button::after {
    display: none;
    /* Hide the default down arrow */
}

.dropdown-toggle.dropdown-button.is-invalid {
    border-color: red !important;
}


.dropdown-item {
    border: 1px solid #ccc !important;
    padding-top: .5vw !important;
    padding-bottom: .5vw !important;
    border-left: none !important;
    border-right: none !important;
    border-top: none !important;
}

#addTopicBtn {

    padding-top: .5vw !important;
    padding-bottom: .5vw !important;

}

.dropdown-item:last-child {
    padding-top: .5vw !important;
    padding-bottom: .5vw !important;
    border: none !important;
}

.dropdown-content-button {
    display: none;
    width: 100%;
    text-align: left;
    border: none;
    cursor: pointer;
    background-color: white;
    padding-left: .5vw;
}

li {
    padding-right: 1vw;
    padding-top: 0.5vw;
    padding-bottom: 0.5vw;
}

li:first-child {
    padding-top: 1vw;
}

/* For modern browsers */
::placeholder {
    font-size: 1vw;
    /* Adjust the size as needed */
}

/* For older browsers */
:-ms-input-placeholder {
    font-size: 1vw;
    /* Adjust the size as needed */
}

/* For Firefox */
::-moz-placeholder {
    font-size: 1vw;
    /* Adjust the size as needed */
}

/* For Safari, iOS Safari, and Chrome */
::-webkit-input-placeholder {
    font-size: 1vw;
    /* Adjust the size as needed */
}

.dropdown-item {
    padding-left: 1vw;
}

.dropdown-item:hover {
    background-color: #eee;
}

/* Grid for the Session Form */
#createSessionForm {
    display: grid;
    grid-template:
        'groupNameContainer groupNameContainer groupNameContainer'
        'scenarioMethodContainer scenarioMethodContainer scenarioMethodContainer'
        'btnRowContainer btnRowContainer btnRowContainer'
        'personaContainer personaContainer personaContainer'
        'scenarioContainer scenarioContainer scenarioContainer'
        'generateBtnContainer generateBtnContainer generateBtnContainer'
    ;
    width: auto;
    padding-left: 5vw;
    padding-right: 5vw;
}

#groupNameContainer{
    grid-area: groupNameContainer;
}

#scenarioMethodContainer{
    grid-area: scenarioMethodContainer;
}

#btnRowContainer{
    grid-area: btnRowContainer;
}

#topicContainer{
    grid-area: topicContainer;
}

#yearContainer{
    grid-area: yearContainer;
}

#locationContainer{
    grid-area: locationContainer;
}

#scenarioContainer{
    grid-area: scenarioContainer;
}

#personaContainer{
    grid-area: personaContainer;
}

#generateBtnContainer{
    grid-area: generateBtnContainer;
}

.dropdown-item{
    font-size: 1.5rem;
}

.preEmpt-btn:disabled{
    background-color: lightgray;
}

nav {
    opacity: 1 !important;
  }

  .team-page-grid-container {
    /* gap: 1vw; */
    padding-top: 1vw;
    padding-bottom: 1vw;
    padding-left: 4rem;
    width: 100%;
    /* display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(3, 1fr);
    grid-template-areas:
        "captionArea videoArea"
        "captionArea videoArea"
        "createArea joinArea" */
    
}
.captionArea {
    /* grid-area: captionArea; */
    
}
.videoArea {
    /* grid-area: videoArea; */
}
.createArea {
    display: flex;
    flex-direction: column;
    /* grid-area: createArea; */
    justify-content: space-between;
}
.joinArea {
    display: flex;
    flex-direction: column;
    /* grid-area: joinArea; */
    align-items: center;
}

#joinSessionBtn{
    background-color: var(--primary-color);
    color: white;
}

#joinSessionBtn:hover{
    background-color: var(--primary-color-dark);
}