body {
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    background-color: #f9f9f9;
}

a {
    color: #7F00FF;
    text-decoration: none;
}

a:hover {
    color: #BF40BF;
}

input[type="date"] {
    font-family: Arial, Helvetica, sans-serif;
}

input:focus {
    border-radius: 2px;
    border-color: #BF40BF;
    outline: none;
    border-style:solid;
  }

h3 {
    margin: 0;
}



/* nav bar css */

header {
    background-color: white;
    min-height: 50px;
    box-shadow: 0px 3px 3px -3px gray;
    padding: 5px;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    position: relative;
}

header h1 {
    margin: 0;
    border: 0;
    font-size: 32px;
    color: #7F00FF;
}

header div.name {
    margin-right: 40px;
}

header ul {
    list-style-type: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 5px;
}

header ul li a {
    text-decoration: none;
    color: #7F00FF;
    font-size: 16px;
}

header ul li a:hover {
    color: #BF40BF;
    transition: 0.1s ease;
}

.log-in-link {
    margin-left: auto;
    display: none;
}

.nav-links {
    display: none;
}

/* header dropdown */

.burger-icon {
    height: 35px;
    width: 35px;
    color: #7F00FF;
}

.burger-span {
    height: inherit;
    display: flex;
    align-items: center;
}

header .dropdown a {
    text-decoration: none;
    color: #7F00FF;
    font-size: 16px;
}

header .dropdown a:hover {
    color: #BF40BF;
    transition: 0.1s ease;
}

.dropdown {
    position: relative;
    height: 50px;
    margin-left: auto;
}

.dropdown .burger-click {
    height: inherit;
}

.drop-contents {
    display: none;
    position: relative;
    left: 0px;
    background-color: white;
    flex-basis: 100%;
    margin-left: 0;
}

.dropdown:hover .drop-contents {
    display: block;
}

.drop-contents a {
    float: none;
    padding: 12px 16px;
    display: block;
    text-align: left;
  }
  
/* titles css */

.page-title {
    padding-left: 1%;
}

.table-title {
    height: 30px;
    width: 98%;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    position: relative;
}

.inline-h3 {
    display: inline;
    margin-left: auto;
    margin-right: auto;
}

.change-graph-box {
    height: 40px;
    width: 98%;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    position: relative;
}

.change-graph-button {
    width: 90px;
    float: right;
    position: absolute;
    right: 0;
    background-color: #7F00FF;
    border: none;
    color: white;
    padding: 5px;
    border-radius: 5px;
    transition-duration: 0.3s;
}

.change-graph-button:hover {
    background-color: #BF40BF;
}

.graph-dropdown {
    position: absolute;
    width: 90px;
    right: 100px;
    background-color: white;
    border: 1px solid black;
    color: black;
    padding: 5px;
    border-radius: 5px;
    display: none;
}

.graph-dropdown[multiple] {
    min-height: 100px;
    width: 150px;
}

/* speaks table */

.speaks-table-body {
    background-color: white;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    background-color: white;
    padding: 5px;
    border: 1px solid #ededed;
    margin-bottom: 30px;
    display: absolute;
    overflow-x: scroll;
}

.speaks-table-body-anlsis {
    background-color: white;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    background-color: white;
    padding: 5px;
    border: 1px solid #ededed;
    margin-bottom: 5px;
    display: absolute;
}

.speaks-table-body-graph {
    background-color: white;
    width: 90%;
    min-height: 300px;
    margin-left: auto;
    margin-right: auto;
    background-color: white;
    padding: 5px;
    border: 1px solid #ededed;
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
}

.speaks-table {
    width: 98%;
    margin-left: auto;
    margin-right: auto;
    background-color: white;
    padding: 2px;
    font-size: 14px;
    border-collapse: collapse;
    table-layout: fixed;
}

.wide-speaks-table {
    width: 98%;
    margin-left: auto;
    margin-right: auto;
    float: left;
    background-color: white;
    padding: 2px;
    font-size: 14px;
    border-collapse: collapse;
    table-layout: fixed;
}

.wide-speaks-table th.wide-speaks-th {
    text-align: left;
    height: 30px;
    width: 120px;
}

.wide-speaks-table th.narrow-speaks-th {
    text-align: left;
    height: 30px;
    width: 70px;
}

.wide-speaks-table th.call-speaks-th {
    text-align: left;
    height: 30px;
    width: 140px;
}

.wide-speaks-table td {
    height: 30px;
    border-top: 1px solid #ededed;
    min-width: 90px;
    padding-right: 5px; 
    overflow: hidden;
    white-space: nowrap;
}

.speaks-table th {
    text-align: left;
    height: 30px;
}

.speaks-table td {
    height: 30px;
    border-top: 1px solid #ededed;
    overflow: hidden;
    white-space: nowrap;
}

.wide-speaks-td {
    min-width: 100px;
    overflow: hidden;
    white-space: nowrap;
}

.narrow-speaks-td {
    min-width: 60px;
    overflow: hidden;
    white-space: nowrap;
}

.call-speaks-td {
    min-width: 120px;
    overflow: hidden;
    white-space: nowrap;
}

.speaks-table th:first-child {
    width: 120px;
    padding-right: 5px; 
}

.speaks-table td:first-child {
    width: 120px;
    padding-right: 5px; 
}

.speaks-table tr.data-row:hover, .wide-speaks-table tr.data-row:hover  {
    background-color: #ededed;
}

/* Table sorting styles */
.wide-speaks-table th.sortable {
    position: relative;
    padding-right: 20px;
}

.wide-speaks-table th.sortable:hover {
    background-color: #f5f5f5;
}

.wide-speaks-table th.sortable::after {
    content: '';
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    opacity: 0.3;
}

.wide-speaks-table th.sortable.sort-asc::after {
    border-bottom: 6px solid #333;
    border-top: none;
    opacity: 1;
}

.wide-speaks-table th.sortable.sort-desc::after {
    border-top: 6px solid #333;
    border-bottom: none;
    opacity: 1;
}

.graph-box-scatter {
    width: 50%;
    float: left;
    min-height: inherit;
    max-height: none;
    display: none;
}

/* slider */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    border: 2px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    border-radius: 20px;
    border-style: solid;
    border-width: 2px;
    border-color: #ededed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #7F00FF;
    -webkit-transition: .4s;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    border-radius: 50%;
    left: -2px;
    bottom: 0px;
    background-color: #ededed;
    -webkit-transition: .4s;
    transition: .4s;
  }

  input:checked + .slider {
    background-color: #BF40BF;
  }

  input:checked + .slider:before {
    -webkit-transform: translateX(23px);
    -ms-transform: translateX(23px);
    transform: translateX(23px);
  }
  
/* buttons */

.update-button {
    background-color: #7F00FF;
    width: 51px;
    border: none;
    color: white;
    padding: 5px;
    border-radius: 5px;
    transition-duration: 0.3s;
}

.delete-button {
    background-color: red;
    width: 51px;
    border: none;
    color: white;
    padding: 5px;
    border-radius: 4px;
}

.update-button:hover {
    background-color: #BF40BF;
    box-shadow: 3px 3px 3px -3px gray;
}

.delete-button:hover {
    background-color: #BF40BF;
    box-shadow: 3px 3px 3px -3px gray;
}

.reverse-update-button {
    background-color: #BF40BF;
    border: none;
    color: white;
    width: 51px;
    padding: 5px;
    border-radius: 5px;
    transition-duration: 0.3s;
}

.reverse-update-button:hover {
    background-color: #7F00FF;
    box-shadow: 3px 3px 3px -3px gray;
}

/* modal */

#motion-modal, #delete-user-modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fefefe;
    width: 95%;
    max-width: 600px;
    height: 300px;
    margin: 5% auto;
    margin-top: 50px;
    border: 3px solid #ededed;
    border-radius: 15px;
    overflow: auto;
}
  
.close-modal {
    color: #ededed;
    float: right;
    font-size: 28px;
    padding-right: 10px;
}
  
.close-modal:hover, .close-modal:focus {
    color: #BF40BF;
    text-decoration: none;
    cursor: pointer;
    transition-duration: 0.3s;
}

.modal-motion-box {
    margin-bottom: 5%;
    width: 100%;
    text-align: center;
    margin-right: auto;
    margin-left: auto;
}

.modal-motion-title {
    font-weight: bold;
    width: 100%;
    text-align: center;
}

.modal-motion-content {
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    padding-top: 5px;
    text-align: center;
}

.modal-close-box {
    width: 100%;
    height: 35px;
}

.update-button-gray {
    background-color: #f9f9f9;
    border: none;
    color: gray;
    padding: 5px;
    border-radius: 5px;
}

.modal-delete-content {
    color: red;
    font-weight: bold;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    padding-top: 60px;
    text-align: center;
}

.update-speaks-box {
    width: 90%;
    max-width: 350px;
    min-height: 865.0px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 10px;
    margin-bottom: 10px;
    background-color: white;
    border: 1px solid #ededed;
    text-align: center;
    position: relative;
}

/* speaks graph */

.graph-box {
    width: 98%;
    min-height: 350px;
    max-height: 350px;
}

.graph-box-scatter {
    width: 98%;
    min-height: 350px;
    max-height: 350px;
    display: none;
}

.clear-float {
    clear: both;
}

.no-data {
    height: 200px;
    width: inherit;
    color: #8E8E90;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    justify-content: center;
    line-height: 200px;
}

.no-data-graph {
    height: 300px;
    width: inherit;
    color: #8E8E90;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    justify-content: center;
    line-height: 300px;
}

@media only screen and (min-width: 700px) {

    .speaks-table-body-anlsis {
        width: 98%;
        min-height: 200px;
        display: flex;
    }

    .speaks-table-body {
      display: flex;
      max-height: none;
    }
    .speaks-table {
        width: 50%;
        float: left;
    }

    .graph-box {
        width: 50%;
        float: left;
        min-height: inherit;
        max-height: none;
    }

    .graph-box-scatter {
        width: 50%;
        float: left;
        min-height: inherit;
        max-height: none;
        display: none;
    }

    .speaks-table-body-graph {
        width: 98%;
    }

    .speaks-table-body {
        width: 98%;
    }

    .speaks-table th:first-child {
        width: auto;
    }
    
    .speaks-table td:first-child {
        width: auto;
    }

    .modal-content {
        background-color: #fefefe;
        width: 95%;
        max-width: 600px;
        height: 300px;
        margin: 5% auto;
        margin-top: 150px;
        border: 3px solid #ededed;
        border-radius: 15px;
        overflow: auto;
    }

}


/* login css */

.login-box {
    width: 90%;
    max-width: 350px;
    min-height: 320px;
    margin-top: 100px;
    margin-left: auto;
    margin-right: auto;
    background-color: white;
    border: 1px solid #ededed;
    text-align: center;
    position: relative;
}

.login-title {
    margin-top: 26px;
}

.password-username {
    width: 80%;
    margin-left: auto;
    margin-right: auto;
    align-content: center;
    margin-top: 15px;
    margin-bottom: 15px;
    height: 30px;
}

.login-button {
    width: 60%;
    height: 30px;
    background-color: #7F00FF;
    border: 0px;
    margin-top: 15px;
    transition-duration: 0.3s;
}

.red-button {
    background-color: red !important;
}

.login-button:hover {
    background-color: #BF40BF;
    box-shadow: 3px 3px 3px -3px gray;
}

.register-message {
    position: absolute;
    bottom: 0px;
    left: 0;
    right: 0;
    text-align: center;
}

.login-error {
    color: #BF40BF;
}

/* register css */

.register-box {
    width: 90%;
    max-width: 350px;
    min-height: 500px;
    margin-top: 100px;
    margin-bottom: 20px;
    margin-left: auto;
    margin-right: auto;
    background-color: white;
    border: 1px solid #ededed;
    text-align: center;
    position: relative;
}

.table-title {
    margin-top: 10px;
}

.register-error {
    margin-top: 3px;
    margin-bottom: 3px;
    margin-left: 2px;
    margin-right: 2px;
}

/* password reset css */

.reset-password-box {
    width: 90%;
    max-width: 350px;
    height: 365px;
    margin-top: 100px;
    margin-left: auto;
    margin-right: auto;
    background-color: white;
    border: 1px solid #ededed;
    text-align: center;
    position: relative;
}

.email-sent-message {
    height: inherit;
    margin-top: 90px;
    color: #BF40BF;
}

.reset-email-instruction {
    margin-top: 25px;
}

.reset-password-box {
    width: 90%;
    max-width: 350px;
    height: 475px;
    margin-top: 100px;
    margin-bottom: 20px;
    margin-left: auto;
    margin-right: auto;
    background-color: white;
    border: 1px solid #ededed;
    text-align: center;
    position: relative;
}

.update-user-box {
    width: 90%;
    max-width: 350px;
    min-height: 365px;
    margin-top: 100px;
    margin-left: auto;
    margin-right: auto;
    background-color: white;
    border: 1px solid #ededed;
    text-align: center;
    position: relative;
}

/* enter speaks css */

.all-enter-boxes {
    display: absolute;
}

.enter-speaks-box {
    width: 90%;
    max-width: 350px;
    min-height: 820.0px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 10px;
    margin-bottom: 10px;
    background-color: white;
    border: 1px solid #ededed;
    text-align: center;
    position: relative;
}

.enter-speaks-field {
    height: 20px;
    width: 80%;
    margin-top: 3px;
    margin-bottom: 3px;
}

.enter-speaks-select {
    background-color: white;
    border: 1px solid gray;
    border-radius: 2px;
    margin-top: 3px;
    margin-bottom: 3px;
    height: 26px;
    width: 83%;
}

select.enter-speaks-select option {
    width: 300px;
    height: 20px;
}

.enter-speaks-label {
    margin-top: 4px;
}

.enter-speaks-help-text {
    font-size: 12px;
    color: #666;
    margin-top: 2px;
    margin-bottom: 8px;
    font-style: italic;
}

.enter-url-box {
    width: 90%;
    max-width: 350px;
    min-height: 300px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 10px;
    margin-bottom: 10px;
    background-color: white;
    border: 1px solid #ededed;
    text-align: center;
    position: relative;
}

.enter-message {
    margin-top: 2px;
    color: #BF40BF;
}

.enter-url-box form .register-message,
.enter-speaks-box form .register-message,
.update-speaks-box form .register-message {
    position: relative !important;
    z-index: 2;
    clear: both;
    display: block;
    margin-top: 0px;
    margin-bottom: 0px;
    padding: 0;
}

.register-message p {
    margin: 0;
}

.enter-url-box form .login-button,
.enter-speaks-box form .login-button,
.update-speaks-box form .login-button {
    margin-top: 0;
    position: relative;
    z-index: 3;
}

@media only screen and (min-width: 700px) {
    .all-enter-boxes {
      display: flex;
      align-items: flex-start;
    }

}

@media only screen and (min-width: 700px) {
    .enter-speaks-box {
        margin-top: 100px;
        margin-bottom: 100px;
    }

    .enter-url-box {
        margin-top: 100px;
        margin-bottom: 100px;
    }

    .dropdown {
        display: none;
    }

    .nav-links {
        display: inline;
    }

    .log-in-link {
        display: inline;
    }

}

/* traker home */

.all-home-boxes {
    display: absolute;
}

.account-data-group {
    margin-top: 35px;
    margin-bottom: 35px;
}

.home-box {
    width: 90%;
    max-width: 400px;
    height: 400px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 10px;
    margin-bottom: 10px;
    background-color: white;
    border: 1px solid #ededed;
    text-align: center;
    position: relative;
}

.brackets-pi {
    height: 340px;
    margin-top: 10px;
    margin-bottom: 10px;
}

@media only screen and (min-width: 1200px) {
    .all-home-boxes {
        display: flex;
    }
    .home-box {
        margin-top: 65px;
    }
}
