/******************************************
/* BASE - Define how elements should look in all occurrences on the page
/*******************************************/

@import url("normalize.css");
/*@import url("fontawesome.min.css");*/

/* Box Model Hack */
*{
  box-sizing: border-box;
}

/* Palettes */
:root{
  /* Colors */
  --color-bg: #4e5c77;
  --color-bg-secondary: #111;
  --color-bg-body: #EEE;
  --color-fg: #000;
  --color-heading: #FFF;
  --color-border: #4E7071;
  --color-highlight: #7cd8b6;
  --color-link: #73C8A9;
  --color-light-text: #222;
  --color-shadow: #00000033;

  /* Sizes */
  --radius-border: 16px;

  /* Fonts */
  font-family: "Nunito Sans", Helvetica, sans-serif;
}

html {
  background: linear-gradient(var(--color-bg), var(--color-bg-secondary));
}

body {
  width: 90%;
  max-width: 64rem;
  margin: 1rem auto;
  background-color: var(--color-bg-body);
}

img {
  margin: 0 auto;
  max-height: 24rem;
  max-width: 100%;
}

input, textarea {
  width: 100%;
  margin: .5rem;
  margin-bottom: 2rem;
}

form {
  padding: 1rem;
  margin: 1rem;
}

header {
  border: 5px solid var(--color-border);
  border-radius: var(--radius-border);
  background-color: var(--color-highlight);
}

h2 {
  background-color: var(--color-bg);
  color: var(--color-heading);
}

a {
  color: var(--color-link);
  text-decoration: none;
}

label {
  font-weight: bold;
}

ul {
  padding: 0;
}

/******************************************
/* LAYOUT - major components that dictate layout on the page, classes and IDs
/*******************************************/

.flex, .flex-col {
  display: flex;
  padding: 1rem;
  /* justify-content: center; */
  /* flex-direction: column; */
  /* justify-content: space-between; */
  /* text-align: center; */
}

.flex-col {
  flex-direction: column;
  min-width: 50%;
  text-align: center;
}

.flex img {
  max-width: 100%;
}

/* Element specific tweaks */
header.flex {
  justify-content: space-around;
}

ul.flex-col {
  text-align: left;
}

.list{
  list-style: disc;
  text-align: left;
  align-self: center;
  font-weight: bolder;
  font-size: 2rem;
  margin: .5rem;
  font-style: italic;
}

.list li{
  list-style: disc;
  line-height: 3rem;
}

/******************************************
/* MODULE - standalone, discrete components. Sit inside layout components.
/*******************************************/

.socials {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 12rem;
}

.social  li {
  margin: .2rem;
}

.icon {
  width: 2em;
  height: 2em;
  vertical-align: -0.125em;
}

.btn, input[type="submit"], input[type="reset"] {
  padding: 1rem;
  border: 3px solid var(--color-highlight);
  border-radius: var(--radius-border);
  background-color: var(--color-link);
  color: var(--color-fg);
  font-weight: bold;
  box-shadow: .25rem .25rem var(--color-shadow);
}

.banner {
  object-fit: cover;
  object-position: 60% 50%;
  margin: 2rem 5% 0 5%;
  width: 90%;
  height: 16rem;
  text-align: center;
  border-radius: var(--radius-border);
}

/* Refactor so flex & feature can be combined */
.container {
  padding: 1rem;
  margin: 0 1rem;
  line-height: 1.5rem;
  font-size: 1.2rem;
}

.project {
  min-width: 0;
  width: 33%;
  justify-content: space-between;
}

.hero {
  font-weight: bold;
  justify-content: space-between;
}

.hero > img{
  align-self: center;
}

/******************************************
/* STATE - applied to elements to indicate change in state at runtime (often has js dependency)
/*******************************************/

a > img:hover, a > img:active, a > img:focus,
.icon:hover, .icon:active, .icon:focus {
  opacity: 70%;
}

a img.shadow-skinny:hover, 
a img.shadow-skinny:active, 
a img.shadow-skinny:focus{
  border-color: var(--color-highlight);
}

a:hover, 
a:active, 
a:focus, 
input[type="submit"]:hover, input[type="reset"]:hover,
input[type="submit"]:active, input[type="reset"]:active,
input[type="submit"]:focus, input[type="reset"]:focus {
  text-decoration: underline;
  font-weight: bold;
  cursor: pointer;

}

.btn:hover, input[type="submit"]:hover, input[type="reset"]:hover{
  background-color: var(--color-highlight);
}

/* BREAKPOINTS */
/* MOBILE */
@media(max-width: 940px){
  .flex {
    flex-direction: column;
    padding: 0;
    margin: 0;
  }
  .container {
    margin: 1rem auto;
  }
  header {
    align-items: center;
    text-align: center;
  }
  .project, .flex-col {
    width: 90%;
  }
  .project img{
    max-height: 18rem;
  }
  form {
    margin: 0;
    padding: 0;
  }
  .banner {
    margin: 1rem 0 0 0;
    width: 100%;
  }
  .btn, input, textarea{
    margin: 1rem;
    width: 90%;
  }
}

/******************************************
/* THEME - Look and feel
/*******************************************/

.flex li {
  list-style: none;
}

.container {
  border: 3px inset var(--color-shadow);
  background: var(--color-heading);
  border-radius: var(--radius-border);
  color: var(--color-light-text);
}

.shadow, .shadow-skinny {
  border: 8px solid var(--color-border);
  border-radius: var(--radius-border);
  padding: 1rem;
  box-shadow: .5rem .5rem var(--color-shadow);
}

.shadow-skinny {
  border: 4px solid var(--color-border);
}

.shadow img {
  padding: 0;
}