@import "variables.css";

html,
body {
    overflow-x: hidden;
}

.logo-container {
    display: flex;
    justify-content: center;
    padding: 10px 0 !important;
    height: 100%;
}

.logo-container img {
    height: 100%;
}

.logo-dgc {
    height: 50px;
}

header {
    border-bottom: 3px solid white;
    height: 10%;
    display: flex;
    align-items: center;
    margin-bottom: 0 !important;
}

.first-row {
    height: 50%;
    margin: 0;
}

.second-row {
    height: 40%;
    margin: 0;
    background-color: var(--red);
}

.timer-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-direction: column;
    height: 100%;
    padding: 0 !important;
}

.welcome-container {
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    flex-direction: column;
}

.welcome {
    height: 100px;
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#profile-name {
    font-size: 1.2em;
}

#playbutton {
    background: url("../img/start_button.png") no-repeat transparent center
        center;
    background-size: contain;
    cursor: pointer;
    display: flex;
    height: 100%;
    justify-content: flex-end;
}

#playbutton.playing {
    background: url("../img/stop_button.png") no-repeat transparent center
        center;
    background-size: contain;
}

#playbutton.continue {
    background: url("../img/continue_button.png") no-repeat transparent center
        center;
    background-size: contain;
}

.resetbutton {
    background: white;
    border-radius: 50%;
    padding: 10%;
    cursor: pointer;
    width: 100px;
}

#resetbutton {
    display: flex;
    align-items: center;
    height: 100%;
    justify-content: flex-start;
}

#transcript-container {
    width: 50%;
    margin: 0 auto;
    padding-top: 3%;
    color: white;
    font-size: 1.3em;
    max-height: 80%;
    overflow-y: auto;
    line-height: 40px;
}

.waves-container {
    background-color: transparent;
    height: 20%;
    position: relative;
    bottom: 30%;
}

.waves {
    position: relative;
    width: 100%;
    margin-bottom: -7px; /*Fix for safari gap*/
    min-height: 100px;
    max-height: 150px;
}

/* Animation */

.parallax > use {
    animation: move-forever 1s cubic-bezier(0.55, 0.5, 0.45, 0.5) infinite;
}
.parallax > use:nth-child(1) {
    animation-delay: -200ms;
    animation-duration: 700ms;
}
.parallax > use:nth-child(2) {
    animation-delay: -300ms;
    animation-duration: 1000ms;
}
.parallax > use:nth-child(3) {
    animation-delay: -400ms;
    animation-duration: 1300ms;
}
.parallax > use:nth-child(4) {
    animation-delay: -500ms;
    animation-duration: 2000ms;
}
@keyframes move-forever {
    0% {
        transform: translate3d(-90px, 0, 0);
    }
    100% {
        transform: translate3d(85px, 0, 0);
    }
}
/*Shrinking for mobile*/
@media (max-width: 768px) {
    .waves {
        height: 40px;
        min-height: 40px;
    }
    .content {
        height: 30vh;
    }
    h1 {
        font-size: 24px;
    }
}

.username-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.sentiment-analysis-container {
    height: 100%;
    display: flex;
    align-items: flex-end;
    flex-direction: column;
    padding-right: 0 !important;
}

.positivity,
.emotion {
    height: 100px;
    width: 100%;
}

.emotion > div {
    height: 100%;
    display: flex;
    align-items: center;
}

.emotion + div {
    justify-content: center;
}

.positivity {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    margin-top: 30px;
}

.positivity .range,
.emotion .range {
    display: flex;
    justify-content: space-between;
    width: 80%;
}

.entities {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    width: 100%;
    min-height: 100px;
    max-height: 300px;
}

.entities > .title-container {
    margin-top: 5px;
}

.entities-list {
    display: flex;
    align-items: center;
    justify-content: left;
    flex-wrap: wrap;
    box-sizing: border-box;
    width: 100%;
    padding: 10px;
    overflow: auto;
}

.entity {
    background: #ccc5c5;
    color: white;
    border-radius: 50px;
    padding: 3px 10px 3px 10px;
    margin-bottom: 4px;
    margin-right: 4px;
}

.third-container {
    padding-right: 0 !important;
    justify-content: flex-end;
    display: flex;
}

.chart-container {
    height: 20px;
    border-radius: 15px;
    width: 100%;
    margin-top: 10px;
}

.title-container span {
    margin-left: 10%;
}

#positivity-n {
    background-color: var(--grey);
    display: flex;
    height: 100%;
    padding: 0;
    justify-content: flex-end;
    border-bottom-left-radius: 15px;
    border-top-left-radius: 15px;
}

#positivity-n div {
    border-right: 1px solid #cbc5c5;
    /*background-color: var(--red);*/
    background-image: linear-gradient(to right, var(--red), #cbc5c5);
    border-bottom-left-radius: 15px;
    border-top-left-radius: 15px;
}

#positivity-p {
    background-color: var(--grey);
    display: flex;
    height: 100%;
    padding: 0;
    justify-content: flex-start;
    border-bottom-right-radius: 15px;
    border-top-right-radius: 15px;
}

#positivity-p div {
    border-left: 1px solid #4caf50;
    background-image: linear-gradient(to right, #cbc5c5, var(--green));
    border-bottom-right-radius: 15px;
    border-top-right-radius: 15px;
}

#positivity-p div,
#positivity-n div {
    transition: width 1s;
}

.emotion .title-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.emotion-tic {
    width: 15px;
    height: 30px;
    background-color: #f8f6f6;
    border-radius: 5px;
}

.emotion-tic-container {
    display: flex;
    justify-content: space-evenly;
}

#tic0.on {
    background-color: #ccc5c5;
}

#tic1.on {
    background-color: #c7c8c4;
}

#tic2.on {
    background-color: #a6dbc1;
}

#tic3.on {
    background-color: #90ceb0;
}

#tic4.on {
    background-color: #68b590;
}
#tic5.on {
    background-color: #328e62;
}

.preloader-wrapper {
    width: 20px !important;
    height: 20px !important;
    margin-left: 10px;
}

.button-container {
    display: flex;
    width: 100%;
    margin-top: 20px;
    padding-left: 20px;
}

.custom-button {
    background: #ef4a5f;
    color: white;
    border-radius: 50px;
    padding: 3px 10px 3px 10px;
    margin: 0 5px;
    cursor: pointer;
    user-select: none;
}

.custom-button:hover {
    background: #eaa7ad;
}

.custom-modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0, 0, 0); /* Fallback color */
    background-color: rgba(0, 0, 0, 0.4); /* Black w/ opacity */
}

/* Modal Content/Box */
.custom-modal-content {
    background-color: #fefefe;
    margin: 5% auto; /* 15% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    width: 80%; /* Could be more or less, depending on screen size */
}

/* The Close Button */
.custom-modal-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.custom-modal-close:hover,
.custom-modal-close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.archi-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.highlight {
    background: white;
    color: var(--red);
    padding: 2px 10px;
    border-radius: 15px;
}
