/**
 * Variables
 */
:root {
    --p-font-size: min(16pt,4vw);
    /* --p-font-size: 16pt; */
    --font-color: #e1e1e1;
    --bg-color: #1a1a1a;
    --bg-color-footer: #1f1f1f;
}
/**
 * Element-wise styles
 */
body {
    font-family: sans-serif;
    margin: 0em;
    padding: 0em;
    background-color: var(--bg-color);
}

h2 {
    font-size: min(30pt,3vw);
}

h3 {
    font-size: x-large;
}

h4 {
    font-size: var(--p-font-size);
    color: inherit;
}

a {
    color: inherit;
}

section {
    color: var(--font-color);
}

footer {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap-reverse;
    justify-content: space-around;
    color: var(--font-color);
    background-color: var(--bg-color-footer);
    padding-left: 3em;
    padding-right: 3em;
    /* text-align: center; */
}

/**
 * Title specific styles
 */
h1.main-title {
    text-align: center;
}

h2.sub-title {
    text-align: center;
    font-family: serif;
    font-style: italic;
    width: 100%;
}

div.title-block-container {
    width: 100%;
    margin: 0em;
    position: relative;
}

div.title-block-container > img {
    width: 100%;
    position: relative;
    z-index: -1;
    /* -webkit-mask-image: linear-gradient(to bottom, rgb(255, 255, 255) 0%, transparent 100%); */
     mask-image: linear-gradient(to bottom, var(--bg-color) 75%, transparent 100%);
}

div.title-block {
    text-align: center;
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    color: #e1e1e1;
    -webkit-text-stroke-width: 1px;
    -webkit-text-stroke-color: black;
    font-size: larger;
    width: 50%;
    min-width: 300px;
}

img.logo {
    width: 100%;
}

/**
 * Content styles
 */
.padded {
    margin-left: auto;
    margin-right: auto;
    padding-left: 3em;
    padding-right: 3em;
    max-width: 1200px;
}
/**
 * Section-specific styles
 */

/* This matches any p who as a section ancestor */
section p {
    font-size: var(--p-font-size);
}
/* This matches p whose direct parent is a section */
section > p {
    margin-left: 1em;
    margin-top: 0em;
    margin-bottom: 2em;
    /* text-indent: 0.5em; */
}

section > h4 {
    margin-left: 1em;
    margin-top: 0em;
    margin-bottom: 0em;
}

section table {
    margin: auto;
    font-size: var(--p-font-size);
    border: 1px solid white;
    border-collapse: collapse;
    width: 50%;
    min-width: 700px;
}

section th, section td {
    border: 1px solid white;
    border-collapse: collapse;
    text-align: center;
    /* min-width: 10em; */
}

/**
 * Flex container styles
 */
div.flex-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    text-align: center;
    flex-direction: row;
}

div.flex-container div {
    /* margin: auto; */
    flex-grow: 0;
    flex-shrink: 1;
    flex-basis: calc(30% - 1px);
    min-width: 15em;
}

section#applications img {
    width: 50%;
}

/**
 * Technology section styles
 */
section#technology img {
    max-width: 300px;
    width: 25%;
    margin-right: 2em;
    float: left;
}

/**
 * Team section styles
 */
section#team img {
    width: 75%;
}

section#team h3 {
    margin-bottom: 0em;
}

section#team p {
    margin-top: 0em;
}

/**
 * Contact form styles
 */
div#contact-form {
    text-align: left;
    /* width: 50%; */
    /* border: 1px solid white; */
}

div#contact-form table {
    margin: initial;
}

div#contact-form table td {
    text-align: left;
    width: auto;
    vertical-align: middle;
    height: 50px;
}

div#contact-form label {
    margin-right: 1em;
    margin-left: 1em;
    font-weight: bold;
}

div#contact-form input[type="text"] {
    background-color: #DDDDDD;   
    font-size: x-large;
}

div#contact-form textarea {
    background-color: #DDDDDD; 
    width: 400px;
    height: 200px;
    font-size: x-large;
}

div#contact-form input[type="button"] {
    margin-top: 10px;
    font-size: large;
}

/**
 * Footer styles
 */
footer img {
    float: left;
    margin-right: 15%;
}

pre {
    color: white;
}