#header{
  height: 280px;
  background-image: url(/static/img/gym_head_m.jpg);
  background-position: center -18px;
  background-repeat: no-repeat;
  background-color: #040a0f;
  margin-bottom: -54px;
  display: flex;

}

#header div{
max-width: 1100px;
  margin: 14px auto;
  display: inline-block;
  color: #c3dfed;
  text-align: end;
  width: 100%;
}

#header p{
  margin: 5px;
  text-shadow:  1px 1px 12px black, 
                1px 1px 10px black, 
                0px 0px 8px black,
                0px 0px 5px black,
                0px 0px 3px black,
                0px 0px 2px black;
}

@media (min-width: 950px) {
  #header{
    height: 500px;
    background-image: url(/static/img/gym_head_b.jpg);
    background-position: center -42px;
    margin-bottom: -72px;
  }
}

.navbar{
  z-index: 999;
}

footer{
  text-align: right;
}

.abs-top{
  position: absolute;
  left: 0;
  right: 0;
}

#bodydiv{
  margin-top: 50px;
}

.card-body img{
  display: block;
  width: calc(100% + 32px);
  height: auto;
  margin: 0 -16px;
}

.grid{
  display: grid;
}

@media (min-width: 450px) {
  .grid{
    grid-template-columns: repeat(1, 1fr);
  }
}

#cardbody .imgpost{
height: 320px;
}

#cardbody img.imgpost{
  width: 100%;
  height: auto;
  max-height: 100%;
}

.imgpost{
  background-image: url(/static/img/gym_prev.jpg);
  display: block;
  width: 100%;
  max-height: 320px;
  background-size: cover;
  background-position: center;
  border-radius: 5px;
  background-color: rgba(100, 100, 100, 0.5);
  box-shadow: inset 0px 0px 15px rgba(50,50,50,0.1);
}

.imgpost div{
  display: block;
  width: 100%;
  height: 100%;
  max-height: 320px;
    text-align: center;
  -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  
}

.imgpost img{
  display: inline-block;
  max-width: 100%;
  max-height: 320px;
  box-shadow: 0 0 5px 1px rgba(225, 232, 236, 0.47);
}

@media (min-width: 650px) {
  .grid{
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 850px) {
  .grid{
    grid-template-columns: repeat(3, 1fr);
  }
}

.postcontent p {
  font-size: 1.2rem;
  margin-bottom: 0;
}

.card{
  margin: 20px;
}

.sep {
  display: none;
}

@media (min-width: 992px) {
  .sep {
    display: inline;
    color: var(--bs-nav-link-color);
    margin: auto;
  }
}

.container .container {
  padding: 25px;
}

#menu .container {
  padding: 0px 25px;
}

.floors {
  text-align: center;
}

.floors svg{
  max-width: 100%;
  height: auto;
}

.floors svg g {
  z-index: 2;
}

.floors svg g:not([inkscape\:label="back"]){
  cursor: pointer;
}

.floors svg g.hovermag rect,
.floors svg g.hovermag path,
.floors svg g:not([inkscape\:label="back"]):hover rect,
.floors svg g:not([inkscape\:label="back"]):hover path {
  fill: var(--bs-success-border-subtle) !important;
}

.floors svg g.hovermag rect + path,
.floors svg g:not([inkscape\:label="back"]):hover rect + path {
  fill: var(--bs-red) !important;
  stroke: transparent !important;
}

.floors svg g.hovermag path + text,
.floors svg g:not([inkscape\:label="back"]):hover path + text {
  fill: var(--bs-red) !important;
}

.floors svg g text {
  display: none !important;
}

a.card-link {
  text-decoration: none;
}

a.card-link h4 {
  color: var(--bs-primary);
}

a.card-link:hover h4 {
  color: var(--bs-red);
}

a.card-link p{
  color: var(--bs-body-color);
}

.card-link{
color: rgba(var(--bs-link-color-rgb), var(--bs-link-opacity, 1));
}

.dialogcontainer {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  background: rgba(51, 61, 64, 0.5);
}

.dialogcontainer .back{
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}

.dialogcontainer .card {
  max-width: 640px;
  margin: 25px auto;
  max-height: calc(100% - 50px);
  overflow-y: scroll;
}

.dialogcontainer svg {
  width: 20px;
  height: 20px;
  margin: 5px;
  fill: var(--bs-primary)
}

.dialogcontainer a svg {
  width: 32px;
  height: 32px;
  margin: 6px 0;
  fill: var(--bs-link-color);
  cursor: pointer;
}

.dialogcontainer a:hover svg {
  fill: var(--bs-link-hover-color);
}

.dialogcontainer .butclose {
  float: right;
  cursor: pointer;
}

.dialogcontainer .butclose:hover {
  fill: var(--bs-link-hover-color);
}

.maglist{
    column-count: 1;
  }

@media (min-width: 950px) {
  .maglist{
    column-count: 2;
  }
}

.maglist li {
  cursor: pointer;
  text-align: left;
  font-weight: bold;
  font-size: var(--bs-nav-link-font-size);
  color: var(--bs-blue);
  padding: 0 10px;
}

.maglist li .sub {
  font-weight: normal;
  font-size: var(--bs-body-font-size);
}

.maglist li:hover {
  color: var(--bs-link-hover-color);
}