.frame {
  border: 1px solid red;

  min-height: 98%;
  max-height: 98%;
  min-width: 99%;
  max-width: 99%;

  text-align: center;
  margin: auto;
  position: absolute;
}

.img {
  border: 1px solid blue;

  min-height: 98%;
  max-width: 99%;
  max-height: 98%;

  width: auto;
  height: auto;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
}

.image2 {
    max-width: 100%;
    max-height: 100%;
    width:auto;
    height:auto; 
    bottom: 0;
    left: 0;
    margin: auto;
    overflow: auto;
    position: absolute;
    right: 0;
    top: 0;
    -o-object-fit: contain;
    object-fit: contain;
}
    
.btn {
  background: #000099;
  background-image: -webkit-linear-gradient(top, #000099, #2980b9);
  background-image: -moz-linear-gradient(top, #000099, #2980b9);
  background-image: -ms-linear-gradient(top, #000099, #2980b9);
  background-image: -o-linear-gradient(top, #000099, #2980b9);
  background-image: linear-gradient(to bottom, #000099, #2980b9);
  -webkit-border-radius: 48;
  -moz-border-radius: 48;
  border-radius: 48px;
  text-shadow: 2px 1px 15px #666666;
  font-family: Arial;
  color: #ffffff;
  font-size: 48px;
  background: #000099;
  padding: 20px 30px 20px 30px;
  text-decoration: none;
}

.btn:hover {
  background: #000099;
  background-image: -webkit-linear-gradient(top, #000099, #2980b9);
  background-image: -moz-linear-gradient(top, #000099, #2980b9);
  background-image: -ms-linear-gradient(top, #000099, #2980b9);
  background-image: -o-linear-gradient(top, #000099, #2980b9);
  background-image: linear-gradient(to bottom, #000099, #2980b9);
  text-decoration: none;
}

.btnback {
  background: #000099;
  background-image: -webkit-linear-gradient(top, #000099, #2980b9);
  background-image: -moz-linear-gradient(top, #000099, #2980b9);
  background-image: -ms-linear-gradient(top, #000099, #2980b9);
  background-image: -o-linear-gradient(top, #000099, #2980b9);
  background-image: linear-gradient(to bottom, #000099, #2980b9);
  -webkit-border-radius: 40;
  -moz-border-radius: 40;
  border-radius: 40px;
  font-family: Arial;
  color: #ffffff;
  font-size: 40px;
  padding: 10px 20px 10px 20px;
  text-decoration: none;
}

.btnback:hover {
  background: #000099;
  background-image: -webkit-linear-gradient(top, #000099, #2980b9);
  background-image: -moz-linear-gradient(top, #000099, #2980b9);
  background-image: -ms-linear-gradient(top, #000099, #2980b9);
  background-image: -o-linear-gradient(top, #000099, #2980b9);
  background-image: linear-gradient(to bottom, #000099, #2980b9);
  text-decoration: none;
}
