/*

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

*/

.landing-img {
    position: relative;
    width: calc(100% + 40px); /* To bypass padding for image */
    height: calc(100% + 40px);
    margin-left: -20px;
    margin-top: -20px;
}

.br-top {
    border-radius: 8px 8px 0 0;
}

.br-bottom {
    border-radius: 0 0 8px 8px;
}

.align-text {
    text-align: center;
}

.main-text {
    position: absolute;
    left: 50%;
    top: calc(50% - 15px);
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 0 18px 3px rgba(0, 0, 0, .3), 0 0 18px 3px rgba(0, 0, 0, .3);
    border-radius: 20px;
    padding: 20px;
    width: auto;
    white-space: nowrap;
}

.title-relative {
    position: relative;
}

.btm-margin { /* For larger margin at bottom */
    margin: 0 0 40px 0 !important;
}

.top-margin { /* For margin at top instead of bottom */
    margin: 40px 0 0 0 !important;
}

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

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

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

.feature {
    display: flex;
    flex-direction: column;
    border-radius: 6px;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 0 15px;
}

.top-items {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: -10px;
    border-radius: 6px 6px 0 0;
    width: 100%;
    padding: 10px 0;
}

.feature-link {
    color: #fff !important;
    font-weight: 500;
    margin-top: 6px;
    display: flex;
    flex-direction: row;
}

.feature-link:hover {
    color: #ccc !important;
}

.underline {
    text-decoration: underline !important;
    margin-right: 5px;
}

.grid-image {
    height: 80px;
    width: auto;
    background-color: #fff;
    border-radius: 8px;
    margin-bottom: 10px;
}

.grid-header { 
    display: flex;
}

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

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

.sub-p {
    font-size: 0.8rem;
    margin-top: 10px;
    padding-bottom: 5px;
}
/* For gradient buttons */
@property --myColor1 {
    syntax: '<color>';
    initial-value: #366fff;
    inherits: false;
  }
  
@property --myColor2 {
    syntax: '<color>';
    initial-value: #869fff;
    inherits: false;
}

.procedure-btn {
    background: linear-gradient(90deg, var(--myColor1), var(--myColor2)) !important;
    color: #fff;
    font-size: 1.5rem;
    padding: 3px 15px 8px 15px;
    margin: 4px 4px 4px 4px;
    border-radius: 10px;
    cursor: pointer;
    width: 100%;
    transition: --myColor1 0.3s ease, --myColor2 0.3s ease !important;
    margin: 0 !important;
  }

.procedure-btn:hover {
    --myColor1: #063fff;
    --myColor2: #366fff;
    color: #fff;
}

.small-bmargin {
    margin-bottom: 20px !important;
}

.btn-container {
    display: flex;
    flex-direction: row;
}

/* Media queries for dynamic website */
@media screen and (max-width: 972px) {

    /* Dynamic grid */ 
    .above-1 { grid-area: above-1; }
    .above-2 { grid-area: above-2; }
    .above-3 { grid-area: above-3; }
    .below-1 { grid-area: below-1; }
    .below-2 { grid-area: below-2; }
    .below-3 { grid-area: below-3; }
    .below-1, .below-2, .below-3 {
        margin-bottom: 10px;
    }

    .grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto auto auto auto;
        grid-template-areas: " above-1 "
                             " below-1 "
                             " above-2 "
                             " below-2 "
                             " above-3 "
                             " below-3 ";
    }
}

@media screen and (max-width: 585px) {
    /* Dynamic title */

    .main-text {
        white-space: normal;
    }
}