/*

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

*/

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

/* Image in grid to keep in desired place */

.stackimage {
    width: 200px;
    height: auto;
}

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

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

.grid-image-2 { 
    height: auto;
    width: 100%;
    border-radius: 6px;
    margin: 0 0 10px 0;
}

.main-p, .sub-p {
    margin-bottom: 0 !important; /* Avoid image being too far below text */
}

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

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