/*
 * App Global CSS
 * ----------------------------------------------------------------------------
 * Put style rules here that you want to apply globally. These styles are for
 * the entire app and not just one component. Additionally, this file can be
 * used as an entry point to import other CSS/Sass files to be included in the
 * output CSS.
 * For more information on global stylesheets, visit the documentation:
 * https://ionicframework.com/docs/layout/global-stylesheets
 */

/* Core CSS required for Ionic components to work properly */
@import "~@ionic/angular/css/core.css";

/* Basic CSS for apps built with Ionic */
@import "~@ionic/angular/css/normalize.css";
@import "~@ionic/angular/css/structure.css";
@import "~@ionic/angular/css/typography.css";
@import '~@ionic/angular/css/display.css';

/* Optional CSS utils that can be commented out */
@import "~@ionic/angular/css/padding.css";
@import "~@ionic/angular/css/float-elements.css";
@import "~@ionic/angular/css/text-alignment.css";
@import "~@ionic/angular/css/text-transformation.css";
@import "~@ionic/angular/css/flex-utils.css";

@import './app/colors';

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

* {
    font-family: 'Roboto', sans-serif;
    outline: none;
    text-decoration: none;
    letter-spacing: 0.5px;
}

ion-content {
    --background: #f4f4f4;
    // background: linear-gradient(to bottom, darken($brand-blue, 20%), $brand-blue 80%);
}

.common-heading-holder {
    margin-bottom: 2.7rem;
    padding: 0px 7%;

    .main-header {
        background: linear-gradient(to right, darken($brand-red, 10%), lighten($brand-red, 15%) 50%);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        font-size: 2.3rem;
        font-weight: 700;
        letter-spacing: 1px;    
        margin: 5% 0%;
    }

    p {
        color: $brand-blue;
        font-size: 1.2rem;
        font-weight: 500;
    }
}

.header-with-action-buttons {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0 3% 0 0%;
    height: 70px;
    position: sticky;
    position: -webkit-sticky;
    left: 0;
    top: 0;
    background-color: darken($brand-blue, 10%);
    z-index: 2;
    width: 100%;
    align-items: center;
    box-shadow: 0px 0px 5px darken($brand-blue, 20%);
    
    button {
        background-color: transparent;
        border: none;
    }
    
    .nav button {
        color: lighten($brand-blue, 20%);
        display: flex;
        align-items: center;
        justify-content: flex-start;

        ion-icon {
            font-size: 24px;
        }
        
        span {
            font-size: 14px;
        }
    }

    header {
        flex-grow: 1;
        padding: 0 15px;
        font-size: 14px;
        color: white;
        font-weight: 600;
        text-align: left;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;

        span {
            font-weight: 500;
            color: lighten($brand-blue, 20%);
            font-size: 12px;
        }
    }

    .action {
        display: flex;
        justify-content: flex-end;
    }

    .action button {
        width: 40px;
        height: 40px;
        border: 2px solid $green;
        background-color: rgba($green, 0.2);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-left: 15px;

        ion-icon {
            color: $green;
            font-size: 20px;
        }
    }

}

figure {
    margin: 0;
}