@import "./buttons.css";

body {
    background-color: purple;
    font-family: Arial, Helvetica, sans-serif;
}

h4 {
  margin-top: 80px;
}

.wrapper {
    max-inline-size: 900px;
    margin: auto;
}

.player {
  margin-block-start: 100px;  
  position: relative;  
}

.player video{
    inline-size: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.player-title {
  color: white;
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: 20px;
}

.player-actions {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.player-progress {
    
    position: absolute;
    inset-block-end: 0;
    inset-inline: 0;
    display: flex;
    padding: 10px;
}

.player-progress input {
  flex: 1;
}

.player-overlay {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: .3s opacity;
}

.player:hover .player-overlay{
    opacity: 1;
}