/* ***************************************************************************
 * styles
 * **************************************************************************/

body {background-color: #003366;
       ; 
        font-family:optima;
        }
h1, h2 {
    margin-top: 5px;
    margin-bottom: 5px;
}
.titleDiv{
    border: 2px solid black;
    min-height: 20px;
    background-color: azure;
    margin:auto;
    margin-bottom: 10px;
    text-align: center;
    transition: background-image .2s ease;
    
    
}
.title {text-align: center;
    font-size: 200%;
    padding-bottom: 5px;
    
    }
.resetText{
    
    color:red;
    
}

.score {
    text-align: center;
}
.qT {
    opacity: 1;
    transition: opacity 1ms linear;
}
.dont {
    opacity:0;
    transition: opacity 1ms linear; 
}

.question {
  border-radius: 25px;
  border: 2px solid black;
  padding-top: 20px;
  padding-left: 10px;
  padding-right: 10px;    
  width: 75%;
  min-height: 100px;
  margin: auto;
  background-color: azure;
  font-size: 250%;
  text-align: center;
  animation-duration: 2s;
  animation-name: none;
  animation-iteration-count: 1;
  animation-play-state: running;
  
}
.answer {
  transition: background-color .5s ease;
  border-radius: 25px;
  border: 2px solid black;
  padding: 20px 0; 
  width: 60%;
  min-height: 20px;
  margin-top:10px;
  font-size: 150%;
  cursor: pointer;
  background-color: azure;
  text-align: center;
  margin-left: 20%;
  margin-right:20%;
  animation-duration: 1s;
  animation-iteration-count: 1;
  animation-name: none;
  animation-play-state: running;
  
}
.help {
  border-radius: 25px;
  border: 2px solid black;
  padding: 20px 0; 
  width: 20%;
  min-height: 30px;
  margin-top: 15px;
  font-size: 150%;
  cursor: pointer;
  background-color: azure;
  text-align: center; 
  animation-name: shake;
  animation-duration: 10s;
  animation-iteration-count: infinite;
  
}

/* ***************************************************************************
 * transitions
 * **************************************************************************/


.answer:hover {
    background-color:beige;
    box-shadow: 5px 5px 5px black;
}
.help:hover {
    background-color:beige;
    box-shadow: 5px 5px 5px black;
}
.question:active .qT {
    opacity:0;
}
.question:active .dont{
    opacity:1;
}

.titleDiv:active
{
    background-image: url(rainbow.gif);
}


/* ***************************************************************************
 * Animations and transforms
 * **************************************************************************/


@keyframes correct {
    0% {background-color:azure;}
    25%{background-color:green;transform: scale(1.5,1.5)}
    50% {background-color:green;}
    100%{background-color:azure;}
    
}
@keyframes incorrect {
    0% {background-color:azure;}
    25%{background-color:red;transform: scale(.5,.5)}
    50% {background-color:red;}
    100%{background-color:azure;}
    
}

@keyframes shake {
    0% {transform: rotate(0deg);}
    89%{transform: rotate(0deg);}
    90% {transform: rotate(10deg);}
    95% {transform : rotate(-20deg);}
    100%{transform : rotate(10deg);}
}

@keyframes flip {
    0% {}
    100% {transform: rotateY(-360deg);}
}

