/* styles.css */
@import url('https://fonts.googleapis.com/css?family=Roboto:400,500');
@import url('https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css');

/* Base Reset */
*,
*::before,
*::after {
  box-sizing: inherit;
}

html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Roboto', sans-serif;
  background-color: #f4f4f4;
  color: #333;
  font-size: 1rem;
  line-height: 1.5;
  overflow-x: hidden;
}

/* anchors */
a, a:visited, a:hover, a:active {
  color: rgba(255, 255, 255, 1);
}

/* burger menu */
.burger {
  position: fixed;
  top: 10px;
  left: 1em;
  z-index: 1000;
}

header {
  background-color: #f0f0f0;
  padding: 10px 0;
  text-align: center;
  width: 100%;
}

header h1,
header p {
  margin: 0;
}

header p {
  margin-top: 0.5em;
}

section {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  margin: 1em;
  max-width: 100%;
  padding: 2em;
}

section h2 {
  margin-top: 0;
  text-align: center;
}

footer {
  background-color: #333;
  color: white;
  padding: 1em 0;
  text-align: center;
  width: 100%;
}

footer p {
  margin: 0;
}

/* Feature Layout */
.app-features {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.feature-app-store {
  padding: 2em;
}

.feature-caption {
  font-weight: 500;
  margin: 2rem 0 1rem;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
  text-transform: uppercase;
}

.feature-item {
  align-items: center;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 1em;
  max-width: 100%;
  padding: 2em;
  text-align: center;
}

.feature-item img {
  border-radius: 8px;
  height: auto;
  max-height: 80vh;
  max-width: 100%;
}

.feature-item p {
  flex: 1;
  margin: 1em 0 0;
  min-width: 0;
}

.feature-item picture {
  display: flex;
  justify-content: center;
  width: 100%;
}

.feature-txt {
  color: #999;
  margin-bottom: 3rem;
  max-width: 300px;
}

/* resize logo */
.apple-app-store-img {
  transform: scale(1.2);
}

.github-logo {
  align-self: flex-start;
  height: auto;
  padding: 4em;
  width: 50%;
}

.skills-img {
  align-self: flex-start;
  height: auto;
  width: 30%;
}


/* iDevice border */
.device-border-styling {
  border-radius: 30px;
  box-shadow: 0 0 0 4px black;
}

/* iDevice border : invert on mode */
.device-border-styling-invert {
  border: 1px solid white;
  border-radius: 30px;
  box-shadow: 0 0 0 4px black;
}


/* mode : dark */
@media (prefers-color-scheme: dark) {
  body {
    background-color: rgba(30, 30, 30, 1);
    color: #ccc;
  }

  header, footer {
    background-color: rgba(30, 30, 30, 1);
  }

  .feature-item {
    background-color: #333;
  }

  /* iDevice border : dark */
  .device-border-styling {
    border: 1px solid white;
    border-radius: 30px;
    box-shadow: 0 0 0 4px black;
  }

  /* iDevice border : dark */
  .device-border-styling-invert {
    border-radius: 30px;
    box-shadow: 0 0 0 4px black;
  }
}



/* responsive tweaks */
@media (max-width: 768px) {
  .feature-item {
    flex-direction: column;
  }

  .feature-item img {
    margin: 0 0 1em 0;
  }

  .github-logo {
    padding: 2em;
    width: 80%;
  }
}


/* workaround : fuml mode specific links */
.dark-link { display: none; }

@media (prefers-color-scheme: dark) {
  .light-link { display: none; }
  .dark-link { display: block; }
}
