/*--------------------- Copyright (c) 2020 --------------------------
Project Name: Custom HMTL5 Video Player
Project Author: Hernan Romano
Tags: video, html5, API
Documentation:
    - Font:
        https://fonts.googleapis.com/css2?family=Questrial&display=swap
    - Icons:
        https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css
    - API Server:
        https://developer.mozilla.org/en-US/docs/Learn/JavaScript/Client-side_web_APIs/Video_and_audio_APIs
Notes:
    - This Project has been made by using the Audio and Video API
    - When using the tag Video or Audio Tag you can use the set of APIs that come with them
Version: 1.0.0
------------------------------------------------------------------- 
[Table of contents]
00. Global: CSS / Font
01. Body: CSS / h1
02. Video: .screen
03. Control Container: .controls 
04. @MEDIA: CSS / .currency .fa-play .fa-stop .fa-pause .timestamp
--------------------------------------------------------------------*/
/* ================== 00 Global === START ================== */

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

* {
  box-sizing: border-box;
}

/* ================== 00 Global === END ================== */

/* ================== 01 Body === START ================== */

body {
  font-family: 'Questrial', sans-serif;
  background-color: #666;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-height: 100vh;
  margin: 0;
}

h1 {
  color: #fff;
}
/* ================== 01 Body === END ================== */

/* ================== 02 Video === START ================== */
.screen {
  cursor: pointer;
  width: 55%;
  background-color: #000 !important;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}
/* ================== 02 Video === END ================== */

/* ================== 03 Control Container === START ================== */

.controls {
  background: #333;
  color: #fff;
  width: 55%;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
}

.controls .btn {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.controls .fa-play {
  color: #28a745;
}
.controls .fa-stop {
  color: #dc3545;
}
.controls .fa-pause {
  color: #fff;
}

.controls .timestamp {
  color: #fff;
  font-weight: bold;
  margin-left: 10px;
}

.btn:focus {
  outline: 0;
}

/* ================== 03 Control Container === END ================== */

/* ================== 04 @MEDIA === START ================== */

@media (max-width: 800px) {
  .screen,
  .controls {
    width: 90%;
  }
}
/* ================== 04 @MEDIA === END ================== */
