I'm trying to figure out how to adjust this code so that it fills the entire height of any device screen it's displayed on. I want both rectangles to keep their relative proportions.
.screen a {
display: contents;
text-decoration: none;
}
.container-center-horizontal {
display: flex;
flex-direction: row;
justify-content: center;
pointer-events: none;
width: 100%;
}
.container-center-horizontal>* {
flex-shrink: 0;
pointer-events: auto;
}
* {
box-sizing: border-box;
}
.ray106 {
background-color: #ffffff;
height: 740px;
width: 360px;
}
.ray106 .component-1-1 {
background-color: #463af2;
border: 1px solid #707070;
height: 740px;
}
.ray106 .rectangle-2 {
background-color: #f61a1a;
border: 1px solid #707070;
height: 677px;
left: 33px;
position: relative;
top: 31px;
width: 292px;
}
<body style="margin: 0; background: #ffffff">
<input type="hidden" id="anPageName" name="page" value="ray106" />
<div class="container-center-horizontal">
<div class="ray106 screen">
<div class="component-1-1">
<div class="rectangle-2"></div>
</div>
</div>
</div>
</body>