body {
  background: url(background.jpg) no-repeat;
  background-size: cover;
}

.window{
  display:block;
  width: 1000px;
  height: 550px;
  margin-left:auto;
  margin-right:auto;
  background-color: white;
}

.results{
  text-align: center;
}

.startButton{
  display:block;
  margin-left:auto;
  margin-right:auto;
  margin-top: 25%;
}

.restartQuiz{
  display:block;
  margin-left:auto;
  margin-right:auto;
  margin-top: 25%;
}

button {
  padding: 20px;
  border: none;
  background-color: #38A9AF;
  color: #ffffff;
  font-size: 18px;
}

.questionAnswerForm {
  display: none;
  width: 100%;
}

.userSubmit{
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-top: 5px;
}

.question{
  display:block;
  margin-bottom: 10px;
  margin-left:auto;
  margin-right:auto;
}

h1{
  text-align: center;
}

button{
  margin-left: auto;
  margin-right: auto;
}

.score{
  float: right;
  margin-right: 20px;
}

.quiz{
  margin-top:20px;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  border: 8px solid red;
}

.info{
  display:block;
}

.info li{
  display: inline-block;
}

.Question{
  margin-top: 50px;
  float:left;
  width: 40%;
  height: 100%;
}

.scoreCount, .questionNumber{
  display: inline-block;
}

.nextQuestion, .submit{
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-top: -10px;
  margin-bottom: 20px;
}

fieldset{
  border: 0;
}
.inputBorder{
  border: 1px solid black;
}
input{
  border: 1px solid black;

}
.trivia{
  margin-top: 20px;
  margin-bottom: 20px;
  padding: 5px;
}

.display{
  float: right;
  width: 60%;
  height: 100%;  
}

.display img {
  height: 100%;
  width: 100%;
  max-width: 100%;
  max-height: 100%;
}

.trivia{
  padding: 10px;
}

@media screen and (max-width: 1120px) {
  
body {
  background-image:none;
}

.window{  
  display: block;
  border: none;
  max-width: 100%;
  min-width: 0;
}

.quiz{  
  display: flex;
  flex-direction: column;
  border: none;
  flex-shrink: 1;
  max-width: 100%;
  min-width: 0;
}
  
.display{
  display:block;
  flex-shrink: 3;
  max-width: 100%;
  height: auto;
  margin-left: auto;
  margin-right: auto;
  min-width: 0;
}

.Question{
  flex-shrink: 1;
  float:none;
  width: 100%;
  margin-left: auto;
  margin-right:auto;
  }
}

@media screen and (max-width: 320px) {

  .info li{
    display:block;
  }
  .count, .score{
    display:block;
    margin-left:auto;
    margin-right:auto;
  }

  .score{
    float:none;
  }
}