No, don’t use both min and max, use one or the other.
Don’t use device-width, just min-widthormax-width.
Here you are setting margin-top: auto; margin-right: auto; margin-bottom: 50px; is that what you intended?
Using the margin shorthand with more than two values sets: top, right, bottom, left. So there you set the top, right and bottom.
Using just two values it sets: vertical margins (top & bottom), horizontal margins (right & left).
The first rule is pretty useless because the default margin is already set in the block above it. Setting it twice doesn;t make it twice as effective
All you need is this.
.curtain {
margin: auto auto 50px;
max-width: 640px;
border: 21px solid;
border-radius: 12px;
border-color: #000 #101010 #000 #101010;
position: relative;
}
/* no need for this first one because its already set above for everything
@media screen and (max-width: 1280px) {
.curtain {
margin-bottom: auto auto 50px;
}
}
*/
@media screen and (max-width: 682px) {
.curtain {
margin-bottom: 20px;
}
}