@charset "utf-8";

/*
   New Perspectives on HTML and CSS, 8th Edition
   Tutorial 8
   Tutorial Case

   Cinema Penguin Styles for Animation
   Author: ABD-RAHMAN FOAFANA  
   Date: 4/10/2024    

   Filename: cp_animate.css

*/

/* Transition Styles */

nav#topLinks a {
    color: rgb(255, 255, 255);
    font-size: 1em;
    letter-spacing: 0em;
    text-shadow: rgba(0, 0, 0, 1) 1px -1px 1px;
  }
  nav#topLinks a {
    color: rgb(255, 255, 255);
    font-size: 1em;
    letter-spacing: 0em;
    text-shadow: rgba(0, 0, 0, 1) 1px -1px 1px;
    transition: color 1.5s ease-in 0.5s, font-size 2s ease, letter-spacing 2s ease-out, text-shadow 2s cubic-bezier(0.6, 0, 0.8, 0.5);
  }
  
    

/* Key Frames Styles */

@keyframes spin{
   0%     {transform: rotate(0deg);}
   23%     {transform: rotate(0deg);}
   28%     {transform: rotate(90%);}
   39%     {transform: rotate(90%);}
   42%     {transform: rotate(180deg);}
   68%     {transform: rotate(180deg);}
   72%     {transform: rotate(270beg);}
   90%     {transform: rotate(270beg);}
   94%     {transform: rotate(360deg);}
   100%   {transform: rotate(360deg);} 

} 

/* Animation Styles */

.video {
    animation: spin 104.04s linear infinite;
  }
  input#rotateVideo:checked~video {
    animation-play-state: running;  
}  
input#rotateVideo:not(:checked)~video {
    animation-play-state: paused;  
}  

/* Animation Icon Styles */


input#rotateVideo {
    display: none;
}
input#rotateVideo:not(:checked) + label::after {
    content: "\21bb"; /* Unicode for the hand icon (used as pause) */
}
input#rotateVideo:checked + label::after {
    content: "\270b"; /* Unicode for the hand icon (used as pause) */
}
label[for="rotateVideo"]::after {
    color: rgba(255, 255, 255, 0.7);
    background: rgb(56, 87, 119);
    border-radius: 65px;
    display: block;
    font-size: 35px;
    font-weight: bold; 
    padding: 5px 10px;
    border-radius: 65%;
    width: 50px;
    
    text-align: center;
    line-height: 50px;
    position: relative;
    margin: 10x auto;
    
    z-index: 2; /* Ensure it's above all other content */
}
