:root {
    --wi-width: 1920px;
    --wi-height: 1080px;
    --wi-widthRatio: 0.5;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    background: #20397a !important;
    overflow-x: hidden;
    margin: 0;
}

#heading {
    grid-column: 2;
    display: flex;
    padding: 0.5em;
    color: #1a1919;
    /*background-color: #fdf103;*/
    align-items: center;
    justify-content: center;
}

#head-img {
    grid-column: 3;
    display: block;
    margin-left: auto;
    margin-right: -1em;
    width: 170px;
}

#after-header {
    position: relative;
}

#preDice-container {
    position: fixed;
    right: 0;
    /*top: 90.71px;*/
    top: 100px;
    line-height: 58.19px;
    /*padding: 0em 1em;*/
    background: none;
    color: aliceblue;
    cursor: pointer;
    width: fit-content;
    border-radius: 6px 0px 0px 6px;
    transition: right 0.33s ease-out;
    z-index: 6;
}

#preDice-container #bg-bt2 {
    transform: scale(1);
    transition: 0.1s ease-in-out;
    width: 100px;
    height: 100px;
    background-image: url(https://penandprussia.lwl.org/wp-content/pnp/images/map/ic_2.png), url(https://penandprussia.lwl.org/wp-content/pnp/images/map/bg_bt_2.png);
    background-repeat: no-repeat, no-repeat;
    background-size: 90px 90px, 100px 100px;
    background-position: 10px, 0px, 0px 0px;
}

#preDice-container #bg-bt2:hover {
    transform: scale(1.1);
}

#dice-container {
    position: fixed;
    width: 240px;
    height: 400px;
    right: -240px;
    /*top:  90.71px;*/
    top: 100px;
    display: grid;
    background: none;
    /* #20397a; */
    border-radius: 0px 0px 0px 6px;
    transition: right 0.33s ease-out;
    z-index: 5;
    background-image: url(https://penandprussia.lwl.org/wp-content/pnp/images/dice_ui/bg.png);
    background-repeat: no-repeat;
    background-size: 220px 396px;
    /*cover*/
    /*  background-position: left -10px top -10px; */
}

/*
.dice-button-bg{
    width: 100%;
    height: 100%;
    background-image: url(https://penandprussia.lwl.org/wp-content/pnp/images/dice_ui/bg_dices.png);
    background-repeat: repeat;
    background-size: contain;
}  */
.dice-button {
    display: flex;
    flex-direction: row;
    gap: 0.5em;
    left: 20px;
    justify-self: center;
}

.dice-button #dice-button1,
.dice-button #dice-button2,
.dice-button #dice-button3 {
    width: 60px;
    height: 100%;
    background-image: url(https://penandprussia.lwl.org/wp-content/pnp/images/dice_ui/active.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: top 0px left 0px;
    cursor: pointer;
}

.dice-button>div>button {
    margin: 0.3em;
    padding: 0;
    border: none;
    color: aliceblue;
    /* background: #20397a; */
    background: none;
    font-size: xx-large;
    font-weight: 900;
    cursor: pointer;
    transform: scale(1);
    transition: 0.1s ease-in-out;
    z-index: 3;

}

.dice-button>div>button:hover {
    transform: scale(1.3);

}

.dice {
    display: flex;
    flex-direction: row;
    gap: 1em;
    justify-content: center;
    align-content: center;
    padding: 1.5em 0em;
    /*  margin-left: 6px; */
    justify-self: center;
}

#diceimg1,
#diceimg2,
#diceimg3 {
    position: relative;
    /*border: #fdf103 3px solid;*/
    width: 50px;
    height: 50px;
}

#img1,
#img2,
#img3 {
    position: absolute;
    /* transition: scale 1.5s ease-in;*/
    z-index: 1;
}

#shine {
    position: absolute;
    transform: scale(3.5);
    z-index: 0;
    /*transition: scale 1.5s ease-in;*/
    pointer-events: none;
    cursor: not-allowed;
}

#shine2 {
    position: absolute;
    transform: scale(3.5);
    z-index: 0;
    /*transition: scale 1.5s ease-in;*/
    pointer-events: none;
    cursor: not-allowed;
}

#phpContent {
    padding: 0.5em 1em;
}

#resultContainer {
    display: flex;
    flex-direction: row;
    font-weight: 900;
    gap: 0.1em;
    font-size: xx-large;
    color: aliceblue;
    justify-content: center;
    align-content: space-around;
    margin-top: 0.2em;
    /*margin: 0.5em 0.5em;
    transform: scale(1); */
    transition: transform 0.75s ease-in rotation 0.75s ease-in;
}

#legende {
    display: flex;
    flex-direction: column;
    font-weight: 900;
    /*gap: 0.1em;*/
    color: #35528b;
    justify-content: center;
    align-content: center;
    margin: 0.5em;
    justify-self: center;
}

i {
    display: block;
    transform: translateY(15%);

}

/*
#an {
    color: aliceblue;
    font-weight: 900;
    cursor: pointer;
    transform: scale(1);
    transition: 0.1s ease-in-out;
    padding: 0.3em;
}

#an:hover {
    transform: scale(1.3);
} */

.l1,
.l2,
.l3,
.l4,
.l5,
.l6 {
    display: flex;
    gap: 0.3em;
    font-size: large;
}

/* CharakterBogen */

#prePdf-container {
    position: fixed;
    background: none;
    line-height: 59px;
    color: aliceblue;
    cursor: pointer;
    width: 100px;
    /*fit-content*/
    height: 100px;
    /*padding: 0em 1em;*/
    left: 0px;
    top: 100px;
    z-index: 6;
    border-radius: 0 6px 6px 0;
    transition: left 0.33s ease-out;
}

#prePdf-container #bg-bt1 {
    transform: scale(1);
    transition: 0.1s ease-in-out;
    width: 100px;
    height: 100px;
    background-image: url(https://penandprussia.lwl.org/wp-content/pnp/images/map/ic_1.png), url(https://penandprussia.lwl.org/wp-content/pnp/images/map/bg_bt_1.png);
    background-repeat: no-repeat, no-repeat;
    background-size: 90px 90px, 100px 100px;
}

#prePdf-container #bg-bt1:hover {
    transform: scale(1.1);
}

#pdf-container {
    position: fixed;
    left: -50vh;
    top: 100px;
    width: 50vh;
    height: 85vh;
    /*transform: scale(0.25) translateX(-150%) translateY(-150%);*/
    border-radius: 6px 0px 0px 6px;
    transition: 0.33s ease-out;
    z-index: 5;
}

#embed {
    /*position: absolute;*/
    grid-column: 2;
    place-self: center;
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2em;
    width: 50vh;
    height: 70.5vh;
    /*   width: 38vw;
    height: 100vh; */
    z-index: 2;
    transition-property: all;
    transition: 0.33s ease-out;
}

/* Diese Klasse wird nach fertig abgewählt bzw. überschrieben */
#pdf-container-start {
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: absolute;
    top: 0em;
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
    width: 100vw;
    height: fit-content;
    background: #20397a;
    background-image: url(https://penandprussia.lwl.org/wp-content/themes/pnp/images/town.png);
    /*, url(https://penandprussia.lwl.org/wp-content/themes/pnp/images/pic_town.png);*/
    background-repeat: no-repeat;
    /*, no-repeat ; */
    background-position: bottom;
    z-index: 9;
}

#charSelect {
    grid-column: 1;
    display: flex;
    gap: 0.5em;
    flex-direction: column;
    margin: 1rem;
    align-items: center;
    justify-content: center;
    color: white;
    /*#f3cd2c;*/

    font-size: xx-large;
    filter: drop-shadow(1px 1px 1px black);
}

#char {
    cursor: pointer;
    font-size: large;
    transition: 0.1s ease-in-out;
    background:#0c356c;
    color: white;
    width: 50%;
    padding: 0.1em;
    border-radius: 5px;
    text-align: center;
}

#charReady {
    cursor: pointer;
    transition: 0.1s ease-in-out;
    color: #323639 !important;
    background-color: #fbcc0c !important;
    border-color: #fbcc0c !important;
    border-radius: 5px;
    padding: 0.2em;
    margin: 0.2em 0.2em 0.2em 0em;
}

#charReady:hover {
    cursor: pointer;
    transform: scale(1.2);
   /* color: #efb223; */
    color: #ffffff !important;
    background-color: #0c356c !important;
    border-color: #0c356c !important;
    border-radius: 5px;
    border-radius: 5px;
    padding: 0.2em;
    margin: 0.2em 0.2em 0.2em 0em;
}

#char:hover {
    transform: scale(1.2);
}



/* Spielleiter Info */

.masterinfo {
    display: none;
    /*    margin: 0.5em 2em;
    padding: 1em;
    color: #fefeff;
    text-align: center; */
}

/* Popups / Map */

#master-container {
    position: relative;
    z-index: 0;
}

#game-container {
    position: absolute;
    width: calc(2401px * var(--wi-widthRatio));
    height: calc(909px * var(--wi-widthRatio));
    top: 50vh;
    left: 50%;
    transform: translate(-50%, -50%);
    background-image: url('https://penandprussia.lwl.org/wp-content/pnp/images/map/map2.png');
    background-size: contain;
    background-repeat: no-repeat;
}

#zeitmaschine {
    position: relative;
    width: calc(168px * 0.7 * var(--wi-widthRatio));
    height: calc(144px * 0.7 * var(--wi-widthRatio));
    top: 36%;
    left: 51%;
    background-image:
        url('https://penandprussia.lwl.org/wp-content/pnp/images/map/16.png'),
        url('https://penandprussia.lwl.org/wp-content/pnp/images/map/16_shadow.png');
    background-size: contain, contain;
    background-repeat: no-repeat, no-repeat;
    background-position: 0 0, 0 calc(50px * 0.7 * var(--wi-widthRatio));
}

#zeitmaschine::after {
    content: '';
    background: url('https://penandprussia.lwl.org/wp-content/pnp/images/point/ic_time.png'),
        url('https://penandprussia.lwl.org/wp-content/pnp/images/point/bg_point.png');
    background-size: contain, contain;
    background-position: 0 0, 0 0;
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translate(-50%, 50%);
    width: calc(136px * 0.5 * var(--wi-widthRatio));
    height: calc(164px * 0.5 * var(--wi-widthRatio));
}

#simeonsplatz {
    position: absolute;
    width: calc(736px * var(--wi-widthRatio));
    height: calc(220px * var(--wi-widthRatio));
    top: 35.5%;
    left: 34.5%;
    background-image: url('https://penandprussia.lwl.org/wp-content/pnp/images/map/15.png');
    background-size: contain;
    background-repeat: no-repeat;
}

#simeonsplatz::after {
    content: '';
    background: url('https://penandprussia.lwl.org/wp-content/pnp/images/point/ic_platz.png'),
        url('https://penandprussia.lwl.org/wp-content/pnp/images/point/bg_point.png');
    background-size: contain, contain;
    background-position: 0 0, 0 0;
    position: absolute;
    top: 25%;
    left: 25%;
    transform: translate(-25%, -25%);
    width: calc(136px * 0.5 * var(--wi-widthRatio));
    height: calc(164px * 0.5 * var(--wi-widthRatio));
}

#lazarett {
    position: absolute;
    width: calc(233px * var(--wi-widthRatio));
    height: calc(144px * var(--wi-widthRatio));
    top: 31%;
    left: 21%;
    background-image: url('https://penandprussia.lwl.org/wp-content/pnp/images/map/1.png');
    background-size: contain;
    background-repeat: no-repeat;
}

#lazarett::after {
    content: '';
    background: url('https://penandprussia.lwl.org/wp-content/pnp/images/point/ic_hospital.png'),
        url('https://penandprussia.lwl.org/wp-content/pnp/images/point/bg_point.png');
    background-size: contain, contain;
    background-position: 0 0, 0 0;
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translate(-50%, 50%);
    width: calc(136px * 0.5 * var(--wi-widthRatio));
    height: calc(164px * 0.5 * var(--wi-widthRatio));
}

#proviantmagazin {
    position: absolute;
    width: calc(278px * var(--wi-widthRatio));
    height: calc(109px * var(--wi-widthRatio));
    top: 55%;
    left: 46.5%;
    background-image: url('https://penandprussia.lwl.org/wp-content/pnp/images/map/4.png');
    background-size: contain;
    background-repeat: no-repeat;
}

#proviantmagazin::after {
    content: '';
    background: url('https://penandprussia.lwl.org/wp-content/pnp/images/point/ic_provision.png'),
        url('https://penandprussia.lwl.org/wp-content/pnp/images/point/bg_point.png');
    background-size: contain, contain;
    background-position: 0 0, 0 0;
    position: absolute;
    top: -30%;
    left: 50%;
    transform: translate(-50%, 0%);
    width: calc(136px * 0.5 * var(--wi-widthRatio));
    height: calc(164px * 0.5 * var(--wi-widthRatio));
}

#oekonomiegebaeude {
    position: absolute;
    width: calc(145px * var(--wi-widthRatio));
    /*145 × 94*/
    height: calc(94px * var(--wi-widthRatio));
    top: 53%;
    left: 57.6%;
    background-image: url('https://penandprussia.lwl.org/wp-content/pnp/images/map/5.png');
    background-size: contain;
    background-repeat: no-repeat;
}

#oekonomiegebaeude::after {
    content: '';
    background: url('https://penandprussia.lwl.org/wp-content/pnp/images/point/ic_military_economy.png'),
        url('https://penandprussia.lwl.org/wp-content/pnp/images/point/bg_point.png');
    background-size: contain, contain;
    background-position: 0 0, 0 0;
    position: absolute;
    top: -55%;
    left: 55%;
    transform: translate(-55%, 0%);
    width: calc(136px * 0.5 * var(--wi-widthRatio));
    height: calc(164px * 0.5 * var(--wi-widthRatio));
}

#waschanstalt {
    position: absolute;
    width: calc(183px * var(--wi-widthRatio));
    /*183 × 138*/
    height: calc(138px * var(--wi-widthRatio));
    top: 48%;
    left: 62.7%;
    background-image: url('https://penandprussia.lwl.org/wp-content/pnp/images/map/6.png');
    background-size: contain;
    background-repeat: no-repeat;
}

#waschanstalt::after {
    content: '';
    background: url('https://penandprussia.lwl.org/wp-content/pnp/images/point/ic_laundry.png'),
        url('https://penandprussia.lwl.org/wp-content/pnp/images/point/bg_point.png');
    background-size: contain, contain;
    background-position: 0 0, 0 0;
    position: absolute;
    top: -5%;
    left: 50%;
    transform: translate(-50%, 0%);
    width: calc(136px * 0.5 * var(--wi-widthRatio));
    height: calc(164px * 0.5 * var(--wi-widthRatio));
}

#artillerie {
    position: absolute;
    width: calc(273px * var(--wi-widthRatio));
    /*273 × 248*/
    height: calc(248px * var(--wi-widthRatio));
    top: 34%;
    left: 70.5%;
    background-image: url('https://penandprussia.lwl.org/wp-content/pnp/images/map/7.png');
    background-size: contain;
    background-repeat: no-repeat;
    /*   -webkit-clip-path: polygon(100% 0, 100% 62%, 100% 100%, 0 99%, 0 90%, 27% 0);
    clip-path: polygon(100% 0, 100% 62%, 100% 100%, 0 99%, 0 90%, 27% 0); */
}

#artillerie::after {
    content: '';
    background: url('https://penandprussia.lwl.org/wp-content/pnp/images/point/ic_ artillery.png'),
        url('https://penandprussia.lwl.org/wp-content/pnp/images/point/bg_point.png');
    background-size: contain, contain;
    background-position: 0 0, 0 0;
    position: absolute;
    top: -15%;
    left: 45%;
    transform: translate(-45%, 0%);
    width: calc(136px * 0.5 * var(--wi-widthRatio));
    height: calc(164px * 0.5 * var(--wi-widthRatio));
}

#artillerie2 {
    position: absolute;
    width: calc(191px * var(--wi-widthRatio));
    /*191 × 152*/
    height: calc(152px * var(--wi-widthRatio));
    top: 30%;
    left: 63%;
    background-image: url('https://penandprussia.lwl.org/wp-content/pnp/images/map/9.png');
    background-size: contain;
    background-repeat: no-repeat;
    /*   -webkit-clip-path: polygon(0 0, 100% 0%, 100% 87%, 0 30%);
    clip-path: polygon(0 0, 100% 0%, 100% 87%, 0 30%); */
}

#artillerie2::after {
    content: '';
    background: url('https://penandprussia.lwl.org/wp-content/pnp/images/point/ic_ artillery1.png'),
        url('https://penandprussia.lwl.org/wp-content/pnp/images/point/bg_point.png');
    background-size: contain, contain;
    background-position: 0 0, 0 0;
    position: absolute;
    top: -15%;
    left: 45%;
    transform: translate(-45%, 0%);
    width: calc(136px * 0.5 * var(--wi-widthRatio));
    height: calc(164px * 0.5 * var(--wi-widthRatio));
}

#defension {
    position: absolute;
    width: calc(244px * var(--wi-widthRatio));
    /*244 × 187 191 × 152*/
    height: calc(187px * var(--wi-widthRatio));
    top: 31.6%;
    left: 56.3%;
    background-image: url('https://penandprussia.lwl.org/wp-content/pnp/images/map/8.png');
    background-size: contain;
    background-repeat: no-repeat;
    /*    -webkit-clip-path: polygon(30% 0, 100% 62%, 100% 100%, 69% 100%, 0 34%, 0 0);
    clip-path: polygon(30% 0, 100% 62%, 100% 100%, 69% 100%, 0 34%, 0 0);   */
}

#defension::after {
    content: '';
    background: url('https://penandprussia.lwl.org/wp-content/pnp/images/point/ic_barraks.png'),
        url('https://penandprussia.lwl.org/wp-content/pnp/images/point/bg_point.png');
    background-size: contain, contain;
    background-position: 0 0, 0 0;
    position: absolute;
    top: -5%;
    left: 45%;
    transform: translate(-45%, 0%);
    width: calc(136px * 0.5 * var(--wi-widthRatio));
    height: calc(164px * 0.5 * var(--wi-widthRatio));
}

#exerzierhalle {
    position: absolute;
    width: calc(138px * var(--wi-widthRatio));
    /*138 × 60*/
    height: calc(60px * var(--wi-widthRatio));
    top: 28.5%;
    left: 49.5%;
    background-image: url('https://penandprussia.lwl.org/wp-content/pnp/images/map/12.png');
    background-size: contain;
    background-repeat: no-repeat;
}

#exerzierhalle::after {
    content: '';
    background: url('https://penandprussia.lwl.org/wp-content/pnp/images/point/ic_drill.png'),
        url('https://penandprussia.lwl.org/wp-content/pnp/images/point/bg_point.png');
    background-size: contain, contain;
    background-position: 0 0, 0 0;
    position: absolute;
    top: -90%;
    left: 45%;
    transform: translate(-45%, 0%);
    width: calc(136px * 0.5 * var(--wi-widthRatio));
    height: calc(164px * 0.5 * var(--wi-widthRatio));
}

#infanterie {
    position: absolute;
    width: calc(234px * var(--wi-widthRatio));
    /*366 × 155*/
    height: calc(133px * var(--wi-widthRatio));
    top: 17%;
    left: 42.8%;
    background-image: url('https://penandprussia.lwl.org/wp-content/pnp/images/map/11.png');
    background-size: contain;
    background-repeat: no-repeat;
}

#infanterie::after {
    content: '';
    background: url('https://penandprussia.lwl.org/wp-content/pnp/images/point/ic_barraks.png'),
        url('https://penandprussia.lwl.org/wp-content/pnp/images/point/bg_point.png');
    background-size: contain, contain;
    background-position: 0 0, 0 0;
    position: absolute;
    top: -35%;
    left: 45%;
    transform: translate(-45%, 0%);
    width: calc(136px * 0.5 * var(--wi-widthRatio));
    height: calc(164px * 0.5 * var(--wi-widthRatio));
}

#wagenhaus {
    position: absolute;
    width: calc(183px * var(--wi-widthRatio));
    /*183 × 69*/
    height: calc(69px * var(--wi-widthRatio));
    top: 26.5%;
    left: 40%;
    background-image: url('https://penandprussia.lwl.org/wp-content/pnp/images/map/13.png');
    background-size: contain;
    background-repeat: no-repeat;
}

#wagenhaus::after {
    content: '';
    background: url('https://penandprussia.lwl.org/wp-content/pnp/images/point/ic_carriage.png'),
        url('https://penandprussia.lwl.org/wp-content/pnp/images/point/bg_point.png');
    background-size: contain, contain;
    background-position: 0 0, 0 0;
    position: absolute;
    top: -65%;
    left: 45%;
    transform: translate(-45%, 0%);
    width: calc(136px * 0.5 * var(--wi-widthRatio));
    height: calc(164px * 0.5 * var(--wi-widthRatio));
}

#schmiede {
    position: absolute;
    width: calc(70px * var(--wi-widthRatio));
    /*70 × 59*/
    height: calc(59px * var(--wi-widthRatio));
    top: 42%;
    left: 68%;
    background-image: url('https://penandprussia.lwl.org/wp-content/pnp/images/map/14.png');
    background-size: contain;
    background-repeat: no-repeat;
}

#schmiede::after {
    content: '';
    background: url('https://penandprussia.lwl.org/wp-content/pnp/images/point/ic_fitting.png'),
        url('https://penandprussia.lwl.org/wp-content/pnp/images/point/bg_point.png');
    background-size: contain, contain;
    background-position: 0 0, 0 0;
    position: absolute;
    top: -90%;
    left: 60%;
    transform: translate(-60%, 0%);
    width: calc(136px * 0.5 * var(--wi-widthRatio));
    height: calc(164px * 0.5 * var(--wi-widthRatio));
}

.popupcontainer {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-55%, -110%);
    width: 30vw;
    height: 0;
    z-index: 5;
}

.popupcontainer-rw {
    position: absolute;
    left: 50%;
    bottom: 50%;
    transform: translate(-55%, 110%);
    width: 30vw;
    height: 0;
    z-index: 5;
}

/*
.popupcontainer #close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 1.5rem;
    height: 1.5rem;
    color: #fefeff;
    cursor: pointer;
    background-color: #fefeff;
    -webkit-clip-path: polygon(20% 0%, 0% 20%, 30% 50%, 0% 80%, 20% 100%, 50% 70%, 80% 100%, 100% 80%, 70% 50%, 100% 20%, 80% 0%, 50% 30%);
    clip-path: polygon(20% 0%, 0% 20%, 30% 50%, 0% 80%, 20% 100%, 50% 70%, 80% 100%, 100% 80%, 70% 50%, 100% 20%, 80% 0%, 50% 30%);
    z-index: 5;
    transform: scale(0);
    transition: 0.1s linear;
    pointer-events: auto;
}

.popupcontainer #close:hover {
    transform: scale(1.2);
} . */


.styled-container {
    position: relative;
    z-index: 0;
    background: #1a1919;
    color: #fefeff;
    overflow-y: auto;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    -webkit-clip-path: polygon(0 10%, 6% 10%, 5% 0, 100% 0, 97% 84%, 91% 84%, 90% 91%, 62% 91%, 54% 100%, 50% 93%, 44% 91%, 4% 91%);
    clip-path: polygon(0 10%, 6% 10%, 5% 0, 100% 0, 97% 84%, 91% 84%, 90% 91%, 62% 91%, 54% 100%, 50% 93%, 44% 91%, 4% 91%);
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.styled-container::-webkit-scrollbar,
.styled-container-rw::-webkit-scrollbar {
    display: none;
}

.styled-container-rw {
    position: relative;
    z-index: 0;
    background: #1a1919;
    color: #fefeff;
    overflow-y: auto;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    -webkit-clip-path: polygon(38% 6%, 45% 0, 48% 4%, 56% 6%, 100% 6%, 98% 89%, 94% 92%, 94% 100%, 80% 100%, 60% 100%, 40% 100%, 8% 100%, 9% 92%, 0 90%, 1% 7%);
    clip-path: polygon(38% 6%, 45% 0, 48% 4%, 56% 6%, 100% 6%, 98% 89%, 94% 92%, 94% 100%, 80% 100%, 60% 100%, 40% 100%, 8% 100%, 9% 92%, 0 90%, 1% 7%);
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.styled-container::-webkit-scrollbar {
    display: none;
}

.popupcontainer::before {
    content: '';
    top: -1.5rem;
    left: -1.5rem;
    background: #fefeff;
    width: 100%;
    height: 100%;
    -webkit-clip-path: polygon(0 10%, 6% 10%, 5% 0, 100% 3%, 97% 84%, 91% 84%, 90% 91%, 62% 91%, 54% 100%, 50% 93%, 44% 91%, 7% 90%);
    clip-path: polygon(0 10%, 6% 10%, 5% 0, 100% 3%, 97% 84%, 91% 84%, 90% 91%, 62% 91%, 54% 100%, 50% 93%, 44% 91%, 7% 90%);
    position: absolute;
    z-index: -1;
    pointer-events: none;
}

.popupcontainer::after {
    content: '';
    top: .5rem;
    left: .5rem;
    background: #f3cd2c;
    width: 100%;
    height: 100%;
    -webkit-clip-path: polygon(0 10%, 6% 10%, 5% 0, 100% 3%, 97% 84%, 91% 84%, 90% 91%, 62% 91%, 54% 100%, 50% 93%, 44% 91%, 7% 90%);
    clip-path: polygon(0 10%, 6% 10%, 5% 0, 100% 3%, 97% 84%, 91% 84%, 90% 91%, 62% 91%, 54% 100%, 50% 93%, 44% 91%, 7% 90%);
    position: absolute;
    z-index: -1;
    pointer-events: none;
}

.popupcontainer-rw::before {
    content: '';
    top: .5rem;
    left: -1rem;
    background: #fefeff;
    width: 100%;
    height: 100%;
    -webkit-clip-path: polygon(38% 6%, 45% 0, 48% 4%, 56% 6%, 100% 6%, 98% 89%, 94% 92%, 94% 100%, 80% 100%, 60% 100%, 40% 100%, 8% 100%, 9% 92%, 0 90%, 1% 7%);
    clip-path: polygon(38% 6%, 45% 0, 48% 4%, 56% 6%, 100% 6%, 98% 89%, 94% 92%, 94% 100%, 80% 100%, 60% 100%, 40% 100%, 8% 100%, 9% 92%, 0 90%, 1% 7%);
    position: absolute;
    z-index: -1;
    pointer-events: none;
}

.popupcontainer-rw::after {
    content: '';
    top: -.5rem;
    left: 1rem;
    background: #f3cd2c;
    width: 100%;
    height: 100%;
    -webkit-clip-path: polygon(38% 6%, 45% 0, 48% 4%, 56% 6%, 100% 6%, 98% 89%, 94% 92%, 94% 100%, 80% 100%, 60% 100%, 40% 100%, 8% 100%, 9% 92%, 0 90%, 1% 7%);
    clip-path: polygon(38% 6%, 45% 0, 48% 4%, 56% 6%, 100% 6%, 98% 89%, 94% 92%, 94% 100%, 80% 100%, 60% 100%, 40% 100%, 8% 100%, 9% 92%, 0 90%, 1% 7%);
    position: absolute;
    z-index: -1;
    pointer-events: none;
}

.styled-container-hl {
    margin: 1em;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #efb223;
    font-size: xx-large;
    font-weight: 900;
}

.styled-container-text {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin: 2em;
    margin-bottom: 3em;
}

#button-container {
    position: relative;
    width: 50%;
    margin: 0.5em auto;
    cursor: pointer;
    transition: 0.3s cubic-bezier(0.075, 0.82, 0.165, 1);
}

#button-container:hover {
    transform: scale(1.2);
}

.styled-container-button {
    color: #35528b;
    background: #f3cd2c;
    text-align: center;
    font-weight: 900;
    font-size: large;
    -webkit-clip-path: polygon(5% 0, 100% 0%, 95% 100%, 0% 100%);
    clip-path: polygon(5% 0, 100% 0%, 95% 100%, 0% 100%);
    pointer-events: auto;
}

#button-container::after {
    content: '';
    position: absolute;
    top: .2rem;
    left: .2rem;
    background: #35528b;
    width: 100%;
    height: 100%;
    -webkit-clip-path: polygon(5% 0, 100% 0%, 95% 100%, 0% 100%);
    clip-path: polygon(5% 0, 100% 0%, 95% 100%, 0% 100%);
    z-index: -1;
}

.styled-container-button p {
    padding: 0.5em;
}

/* Subpage */

#subPage-museum,
#subPage-lazarett,
#subPage-geschaeftshaus,
#subPage-oekonomiegebaeude,
#subPage-defension,
#subPage-schmiede,
#subPage-simeonsplatz,
#subPage-zeitmaschine {
    position: fixed;
    transform: scale(0);
    top: 0;
    left: 0;
    width: 100%;
    /*0*/
    height: 100%;
    /*0*/
    background: #20397a;
    z-index: 5;

}

#subPage-museum #info,
#subPage-lazarett #info,
#subPage-geschaeftshaus #info,
#subPage-oekonomiegebaeude #info,
#subPage-defension #info,
#subPage-schmiede #info,
#subPage-simeonsplatz #info,
#subPage-zeitmaschine #info {
    opacity: 0;
    margin: 2.5em;
    padding: 1em 10em;
    padding-bottom: 120px;
    font-size: larger;
    text-align: center;
    color: #f3cd2c;
    background: #20397a;
}


#subPage-museum #close,
#subPage-lazarett #close,
#subPage-geschaeftshaus #close,
#subPage-oekonomiegebaeude #close,
#subPage-defension #close,
#subPage-schmiede #close,
#subPage-simeonsplatz #close,
#subPage-zeitmaschine #close {
    position: fixed;
    top: 2.5rem;
    right: 200px;
    /*transform: translateX(10%);*/
    width: 0;
    height: 0;
    color: #fefeff;
    cursor: pointer;
    background-color: #fefeff;
    -webkit-clip-path: polygon(20% 0%, 0% 20%, 30% 50%, 0% 80%, 20% 100%, 50% 70%, 80% 100%, 100% 80%, 70% 50%, 100% 20%, 80% 0%, 50% 30%);
    clip-path: polygon(20% 0%, 0% 20%, 30% 50%, 0% 80%, 20% 100%, 50% 70%, 80% 100%, 100% 80%, 70% 50%, 100% 20%, 80% 0%, 50% 30%);
    transform: scale(2);
    transition: 0.1s linear;
    z-index: 6;
}

#subPage-lazarett #subimg,
#subPage-museum #subimg,
#subPage-geschaeftshaus #subimg,
#subPage-oekonomiegebaeude #subimg {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 80%;
    height: auto;
    /*   width: 100%;
    height: 100%;
    object-fit: contain; */
}

#regelwerk {
    position: fixed;
    bottom: 100px;
    right: 68px;
}

#episode{
    position: fixed;
    top: 100px;
    left: 50%;
    transform: translate(-50%, 0);
    z-index: 1;
    height: fit-content;
    padding: 0.2em;
    background: #f3cd2c;
    color: #20397a;
    border:#fefeff 1px solid;
    border-radius: 5px;  
}

#episode p {   
margin-bottom: 0;
}