max-height breaks my iframe's background.

hello, i'm trying to make a new site for my neocities, and when i try setting max-height below 100% (950px) on an iframe it breaks the background. i cant seem to fix this.

as you can see, the background cuts off at the tamaNOTchi.

https://preview.redd.it/ft0n3qvaocie1.png?width=411&format=png&auto=webp&s=607ca2a431e856d575c343d6ad078da145a1da6f

the css is here:

(please ask in comments if you need anymore snippets from my code)

body, html {
padding: 0;
margin: 0;
height: 100%;
background: #000;
font-size: 12px;
font-family: Calibri, sans-serif;
}

.page {
padding: 0;
    background: #FFF;
    background: #FFF;
}

.page h1:first-child {
margin-top: 0;
}

img {
max-width: 100%;
}
iframe {
border: 0;
width: 100%;
height: auto;
    height: 950px;
    max-height: 820px;
    overflow: scroll;
    display: flex;
}

h1, h2, h3, h4 {
}

h1 {
}

h2 {
}

.wrapper {
border: 6px ridge;
width: 700px;
margin: auto;
margin-top: 20px;
box-sizing: border-box;
}

.header {
border-bottom: 6px ridge;
height: 160px;
box-sizing: border-box;
background-image: url('0031.png');
position: relative;
}

.main {
display: flex;
}

.side {
  border-right: 6px ridge;
  width: 180px;
  padding: 12px;
  box-sizing: border-box;
  background: #e100ff;
  color: white;
  min-height: 760px;
}

.content {
flex-grow: 2;
}

.button {
display: block;
line-height: 40px;
text-align: center;
font-weight: bold;
margin-bottom: 12px;
font-size: 17px;
background: #aaff00;
border-radius: 5px;
color: #000;
text-decoration: none;
text-shadow: 0 0 3px #FFF;
letter-spacing: 1px;
border: 1px solid #FF8301;
}

.button:hover {
text-decoration: underline;
}

.wrapper-body {
background-image: url('background.gif');
background-repeat: repeat;
    height: 100%;
z-index: -9999
}

.cat {
  position: absolute;
  top: 0;
  right: 40px;
  height: 140px;
}

.title {
  padding-left: 20px;
  padding-top: 30px;
}

h1 {
color: #f2007d;
border-bottom: 1px dashed;
}

h2 {
color: #f2007d;
}

a {
color: blue;
}

iframe {
    border-width: 0;
}hello, i'm trying to make a new site for my neocities, and when i try setting max-height below 100% (950px) on an iframe it breaks the background. i cant seem to fix this.the css is here:body, html {
padding: 0;
margin: 0;
height: 100%;
background: #000;
font-size: 12px;
font-family: Calibri, sans-serif;
}

.page {
padding: 0;
    background: #FFF;
    background: #FFF;
}

.page h1:first-child {
margin-top: 0;
}

img {
max-width: 100%;
}
iframe {
border: 0;
width: 100%;
height: auto;
    height: 950px;
    max-height: 820px;
    overflow: scroll;
    display: flex;
}

h1, h2, h3, h4 {
}

h1 {
}

h2 {
}

.wrapper {
border: 6px ridge;
width: 700px;
margin: auto;
margin-top: 20px;
box-sizing: border-box;
}

.header {
border-bottom: 6px ridge;
height: 160px;
box-sizing: border-box;
background-image: url('0031.png');
position: relative;
}

.main {
display: flex;
}

.side {
  border-right: 6px ridge;
  width: 180px;
  padding: 12px;
  box-sizing: border-box;
  background: #e100ff;
  color: white;
  min-height: 760px;
}

.content {
flex-grow: 2;
}

.button {
display: block;
line-height: 40px;
text-align: center;
font-weight: bold;
margin-bottom: 12px;
font-size: 17px;
background: #aaff00;
border-radius: 5px;
color: #000;
text-decoration: none;
text-shadow: 0 0 3px #FFF;
letter-spacing: 1px;
border: 1px solid #FF8301;
}

.button:hover {
text-decoration: underline;
}

.wrapper-body {
background-image: url('background.gif');
background-repeat: repeat;
    height: 100%;
z-index: -9999
}

.cat {
  position: absolute;
  top: 0;
  right: 40px;
  height: 140px;
}

.title {
  padding-left: 20px;
  padding-top: 30px;
}

h1 {
color: #f2007d;
border-bottom: 1px dashed;
}

h2 {
color: #f2007d;
}

a {
color: blue;
}

iframe {
    border-width: 0;
}