/*

  Project Name: EyeZen Wearable Sensor: static/css/data.css
  Team Members: Akshat Tewari, Rohan Arni, Harry Fan, Medhansh Puri
  Date: 6/1/25
  Task Description: Styling for the data page of the EyeZen Wearable Sensor project.

*/

.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 400px;
    grid-column-gap: 20px;
    grid-row-gap: 30px;
}

.panel {
    display: flex;
    flex-direction: column;
    border-radius: 6px;
    align-items: center;
    justify-content: flex-start;
    box-shadow: 0 0 18px 3px rgba(0, 0, 0, .3), 0 0 18px 3px rgba(0, 0, 0, .3), 0 0 18px 3px rgba(0, 0, 0, .3), 0 0 18px 3px rgba(0, 0, 0, .3);
}

.panel-chart {
    grid-column: 1 / 3;
    justify-content: center !important;
    background-color: #111 !important;
    padding: 15px;
}
#liveChart {
    width: 100%;
    height: 350px;
    margin: 0 auto;
}
.top-items {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    background-color: var(--c3);
    border-radius: 6px 6px 0 0;
    width: 100%;
    padding: 10px 0;
    color: var(--c1);
}

.grid-header { 
    display: flex;
    margin: 0 0 0 20px !important;
}

.grid-image-2 { 
    height: auto;
    width: 100%;
    padding: 15px;
    border-radius: 21px;
    margin: -5px 0 -15px 0; /* Negative margins so border radius can
                               also be used with padding*/
}

.main-p {
    margin-bottom: 20px !important;
    padding: 0 15px; 
}

/* Media queries for dynamic grid */
@media screen and (max-width: 866px) {
    /* Dynamic grid */

    .grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto 400px;
        grid-row-gap: 20px;
    }

    .panel-chart {
        grid-column: span 1;
    }
}