@import url('https://fonts.googleapis.com/css2?family=Catamaran&display=swap');

/*Resetting Styles, Setting Font Family, Declaring Color Variables*/
* {
    all:revert;
    font-family: Catamaran, sans-serif;
    margin:0;

    /*Green Color Scheme*/
    --color-main-light: rgb(251, 226, 226);
    --color-main-dark: rgb(82, 0, 0);
    --color-medium: rgb(135, 39, 39);
    --color-dark-shade: rgba(32, 4, 4, 0.7);
    --color-semi-transparent: rgba(231, 180, 180, 0.4);
    --body-bg-color: rgb(255, 248, 248);
    --color-light-medium: rgb(208, 147, 147);
    --color-accent: rgb(24, 42, 75);
    --color-accent-light: rgb(87, 99, 123);
}

/*General Styles*/

/*General Body Style*/
body {
    background-color: var(--body-bg-color)
}

/*Links Have No Text Decoration and Default to White*/
a {
    text-decoration:none;
    color:white;
}

/*Header and Nav Bar*/

/*General Header Style*/
header {
    position:fixed;
    top:0;
    right:0;
    left:0;
    
    box-sizing:border-box;
    width:100vw;
    height:53px;
    padding:15px;

    z-index:20;
    font-size:15px;
    
    display:flex;
    align-items:center;
    
    color:var(--color-main-light);
    background-color: var(--color-main-dark);

    --header-font-size: 1.1rem;
}

/*Title In Header to Ensure Proper Formatting and Centering*/
.title {
    display:inline-flex;
    justify-content:center;
    align-content:center;
    font-size:20px;
}

/*Nav Bar and Links for Moving Between Pages*/

/*Resetting Materialize Nav Styles*/
nav {
    all:revert;
}

/*Nav Section with How to Use, Statistics, Sign In, Sign Up, and Sign Out*/

/*Links Container*/
.nav-links {
    display: inline-flex;
    height: 53px;
    position: absolute;
    right: 20px;
    margin: 0;
}

/*General Header Link Styles*/
.link {
    white-space: nowrap;
    
    display:inline-flex;
    align-items:center;
    
    box-sizing: border-box;
    padding: 0 10px;
    margin:0;
    height:100%;
    
    color: white;
    font-size: var(--header-font-size);
    text-decoration:none;
    transition:0.2s;
}

/*Nav Bar Font Size, Weight, and Color*/
.nav-links a, .nav-links h5 {
    font-size:15px;
    font-weight:100;
}

/*Dropdown*/

/*Dropdown Styles*/
.dropdown {
    position:relative;
    display:flex;
}

/*Primary Dropdown*/
.your-acc-links {
    display:inline-flex;
    flex-direction:column;
    position:absolute;
    align-items:flex-end;
    align-content:flex-end;
    justify-items:flex-end;
    justify-content:flex-end;
    background-color: var(--color-main-dark);
    top:53px;
    right:0;
    height:fit-content;
    padding:0;
}

.your-acc-links .link {
    display:flex;
    justify-content: flex-end;
}

/*Links in Dropdowns Take Up Dropdown's Full Width*/
.trinity, .thor, .credit, .explorer, .birthcontrol,
.napalm, .xerox, .clipper, .sources {
    width: 100%;
    padding: 5px 8px;
}


/*Home Page*/
/*Home Page*/
.article-title {
    margin: 50px 0 25px;
    height: 425px;
    width: 100vw;
    position: fixed;

    display: flex;
    align-content: center;

    background-image: url('../img/usflag.jpg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.art {
    height: 300px;
}

.layer {
    height: 100%;
    width: 100%;

    background-color: rgb(0, 0, 0, 0.5);
}

/*Title Div Text*/
.article-title h1 {
    margin: 110px 10vw;
    width: 80vw;
    position: absolute;
    display: block;
    color: whitesmoke;
    font-size: 6.5vw;
    cursor: pointer;
    text-align: center;
    font-weight: normal;
    cursor: default;
}

.datee {
    position:absolute;
    margin-top:30px;
    color:whitesmoke;
    width:100%;
    display:flex;
    flex-direction: column;
    align-items: center;
    font-size:20px;
}

.datee hr {
    background-color:whitesmoke;
    width:20px;
}

.art h1 {
    margin: 90px 10vw;
    font-size: 5vw;
}

.art p {
    margin: 190px 10vw;
    width: 80vw;
    position: relative;
    display: block;
    color: var(--color-main-light);
    font-size: 1.8vw;
    cursor: pointer;
    text-align: center;
    font-weight: normal;
    cursor: default;
}

/*Main Page Content Underneath Title Div*/
.main-content {
    position: relative;
    top: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--body-bg-color);
    padding-top: 20px;
}

.main-content-art {
    position: relative;
    top: 350px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--body-bg-color);
    padding-top: 20px;
}

.main-article {
    width: 70vw;
    margin-bottom: 50px;
}

.main-article p {
    margin-top: 20px;
    font-size: 16px;
}

.main-article a {
    font-size: 16px;
    color: var(--color-accent);
    display: inline-block;
    text-indent: -50px;
}

.main-article a.inline{
    text-indent: 0;

}

.main-article a:hover {
    color: var(--color-accent-light)
}

.img-section {
    display: flex;
}

.img-section figure {
    margin: 20px 0 0 0;
}

figure img {
    width:100%;
}

figcaption {
    color:grey;
}

.text-w-img {
    margin-left: 20px;
    max-width: 500px;
}


.time-header {
    width:80%;
    margin-bottom:20px;
}

.time-header h5 {
    width:fit-content;
    font-size:40px;
}

hr {
    height: 3.5px;
    background-color:black;
    border:none;
}


.buttons {
    position:absolute;
    z-index: 10;
    margin-top:40px;
    width:92vw;
    display:flex;
    justify-content: space-between;
}

.button {
    border: 3px solid var(--color-main-dark);
    background: var(--color-medium);
    padding: 20px 5px;
    display:flex;
    justify-content: center;
}

.button:hover {
    border: 3px solid var(--color-light-medium);
    background: var(--color-main-light);
    color:var(--color-main-dark);
}

.btn-w-label {
    display:flex;
    flex-direction: column;
    width: 8vw;
    padding:0;
}

.btn-w-label p {
    padding-top: 15px;
    color:grey;
    font-size: 15px;
    text-align:center;
}



/*Info Slides (About, How to Use, View Data)*/
.slide {
    width: 80%;
    height: 400px;
    display: flex;
    margin: 10px 0 20px;
}

/*Image Containers in Info Slides to Ensure Proper Image Sizing*/
.slide-img {
    width: 50%;
    margin: 0;
    display: flex;
    justify-content: center;
    overflow: hidden;
}

/*Images in Info Slides*/
.slide-img img {
    min-height: 100%;
    min-width: 100%;
}


/*Text Descriptions on Info Slides*/
.text-desc {
    display: flex;
    flex-direction: column;

    width: 50%;
    padding: 40px;

    background-color: var(--color-medium);
    color: whitesmoke;
}

/*Description Headers*/
.text-desc h3 {
    margin-bottom: 30px;
    font-size: 40px;
}

/*Description Explanations*/
.text-desc p {
    font-size: 16px;
    margin: 5px 0;
}

/*Description Button (for Info Slides with More Info Available)*/
.text-desc .btn {
    width: fit-content;
    margin-top: 30px;
}

.slide.full-screen {
    height: auto;
}

.text-desc.full-screen {
    display: flex;
    flex-direction: column;

    width: 100%;
    padding: 40px;

    background-color: var(--color-accent);
    /*background-color:var(--color-medium);*/
    color: whitesmoke;
}

/*Sign In, Sign Up, and Sign Out Forms*/

/*Form Containers*/
.form-sign {
    height: fit-content;
    padding: 5px 5% 50px;
    margin: 100px 20%;

    background-color: var(--color-main-dark);
    color: whitesmoke;
}

/*Labels for Inputs*/
.form-sign label{
    font-size: 1rem;
    color:white;
}

/*Entered Items in Forms*/
input {
    color: whitesmoke;
}


/*How to Use and Statistics Pages Shared Styling*/

/*Titles*/
.title-generic {
    margin: 100px 10vw;
    width: 80vw;
    position: absolute;
    display: block;

    color: black;
    font-size: 4rem;
    font-weight: normal;
    text-align: center;
    
    cursor: default;
}

/*Main Content Containers*/
.content-generic {
    position: relative;
    top: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
}


/*How to Use Page*/

/*Instructional Slide and Image Container*/
.slide-with-img {
    display: flex;
    flex-direction: row;
    margin: 0 10vw 10px;
    width: 80vw;
}

/*Slides Container Next to Each Image (Placed Beside Images)*/
.slides {
    display: flex;
    flex-direction: column;
    width: 60%;
}

/*Instructional Slide Containing a Step of the Instructions*/
.slide-how {
    background: var(--color-main-light);
    display:flex;
    align-items: center;
    margin-bottom: 20px !important;
}

/*Step Number Container*/
.num {
    display:flex;
    align-items: center;
    height:100%;
    background: var(--color-main-dark);
}

/*Step Number*/
.num h3 {
    margin:0;
    min-width: 45px;
    color: whitesmoke;
    text-align:center;
}

/*Text Instructions in Step*/
.slide-how p {
    padding: 20px;
}

/*Links in Instructions are Dark Green and Bold*/
.slide-how a {
    color: var(--color-main-dark);
    font-weight: bold;
}

/*Links Turn Lighter on Hover*/
.slide-how a:hover {
    color: var(--color-light-medium);
}

/*Image Default Layout (Not Used For All)*/
.slide-with-img img {
    width: 40%;
    height:100%;
    margin: 0 0 15px 15px;
}

/*Sign Up Slide and Image Width Styling*/
#sign-up-slide {
    width: 55%;
}
#sign-up-img {
    width: 45%;
}

/*USB Cable Slide and Image Width Styling*/
#usb-slide {
    width: 60%;
}
#usb-img {
    width: 40%;
}

/*Blink Detection App Sign In Slide and Image Width Styling*/
#blink-app-slide {
    width: 65%;
}
#blink-app-img {
    width:35%;
}

/*Signed in App (Analysis Started) Slide and Image Width Styling*/
#signed-app-slide {
    width: 23%;
}
#signed-app-img {
    width:77%;
}

/*Image Capture App Slide and Image Width Styling*/
#capture-app-slide {
    width: 64%;
}
#capture-app-img {
    width: 36%;
}

/*Image Analysis in Blink Detection App Slide and Image Width Styling*/
#analysis-slide {
    width:55%;
}
#analysis-img {
    width: 45%;
}


/*Statistics Page*/

/*Container for Stat Slides (General Information About Session) Above Graph*/
.info-cards {
    display: flex;
    justify-content: center;
    width: 75vw;
    margin-bottom: 30px;
}

/*Container for Choosing Session Form*/
.options {
    width: fit-content;
    min-width: 950px;
    margin: auto;
    padding: 30px;
}

/*Form Containing Dropdown to Choose Session to View Data For*/
.sess-choice {
    flex-grow: 9
}

/*Dropdown Label*/
.sess-choice label {
    font-size: 20px;
    color: black;
}

/*Session Names in Dropdown*/
.sessions {
    z-index: 100;
    display: block;
    visibility: visible;
}

/*Stat Slides Containing Session Info*/
.slide-stat {
    padding: 10px 5%;
    background-color: var(--color-medium);
    margin: 0 20px;
    color: whitesmoke;
}

/*Stat Slide Labels/Titles*/
#bpmlabel,
#minlabel {
    text-align: center;
    font-size: 20px;
    margin: 20px 0 5px;
}

/*Stat Slide Values*/
#bpmval,
#minval {
    text-align: center;
    font-size: 20px;
    margin: 10px 0 20px;
}

/*Blinks Per Minute Graph*/
#bpm {
    height: fit-content;
    width: 70vw;
    margin: auto;
    margin-bottom: 50px;
    padding: 10px;

    justify-self: center;
    align-self: center;

    background-color: white;
    border: 5px solid var(--color-main-dark);
}


/*Buttons*/

/*Default Button Styles*/
.btn {
    background-color:var(--color-main-dark);
    color: var(--color-main-light);
    border:2px solid var(--color-main-light);
    font-size:1rem;

    transition: 0.3s;
}

/*Button Sizing on Form Pages (Sign In, Sign Up, Sign Out) and Statistics Page*/
input.btn, .submit-stat {
    padding:0 1rem 38px;
    margin-top: 20px;
}

/*Buttons Invert Color on Hover*/
.btn:hover {
    background-color: var(--color-main-light);
    color: var(--color-main-dark);
}


/*General Footer Styles*/
footer {
    box-sizing: border-box;
    width:100%;
    padding: 1rem;

    font-size:15px;

    color: var(--color-main-light);
    background-color: var(--color-main-dark);

    display:flex;
    justify-content:flex-end;

    position:relative;
}

/*Adjusting Styles of Items On Screens Under 1200px Width*/
@media only screen and (max-width:1200px){
    /*Images in Info Slides*/
    .slide-img img {
        all: revert;
        height: 100%;
    }
}


/*Adjusting Styles of Items On Screens Under 1000px Width*/
@media only screen and (max-width:1000px){
    .slide {
        width: 90vw;
    }
    
}

/*Adjusting Styles of Items On Screens Under 800px Width*/
@media only screen and (max-width: 800px){
    /*Form Width*/
    .form-sign {
        width:70%;
    }

    .slide {
        width:95vw;
    }
}

/*Adjusting Styles of Items On Screens Under 700px Width*/
@media only screen and (max-width: 700px) {
    .slide {
        all:revert;
        width: 95vw !important;
        flex-direction: column;
        margin: 10px 0 20px;
    }

    .slide .slide-img {
        width: 95vw;
        margin:0;
    }

    .slide-img img {
        width:100%;
    }

    .text-desc {
        box-sizing: border-box;
        width: 100%;
        padding: 40px;

        background-color: var(--color-medium);
        color: whitesmoke;
    }
}