/* html styles */
:root {
    --background-color: black;
    --text-color-1: gold;
    --text-color-2: tan;
    --back-color-1: rgba(212, 116, 60, 0.3);
    --back-color-2:rgba(170, 92, 47, 0.8);
}

body {
    display: flex;
    height: 100vh;
    width: 100vw;
    flex-direction: column;
    background-color: var(--background-color);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    margin: 0px;
}

body.main {
    background-image: url("background.png");
    flex: 0 1 85%;
    flex-basis: 750px;
}

body.main main div p ~ul li {
    color: whitesmoke;
    margin-left: 4vw;
}
body.main main div p {
    color: whitesmoke;
    margin-left: 4vw;
}
main p {
    color: whitesmoke;
    margin-left: 4vw;
}

body.rooms {
    flex: 0 1 85%;
    flex-basis: 750px;
}
body.rooms#room1 {
    background-image: url("room1_background.png");
}
body.rooms#room2 {
    background-image: url("room2_background.png");
}
body.rooms#room3 {
    background-image: url("room3_background.png");
}
body.rooms#room4 {
    background-image: url("room4_background.png");
}

header, footer, details, main{
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    justify-items: center;
}

header, details, footer {
    width: 100%;
    flex: 0 0 5%;
    flex-basis: auto;
    font-family: Arial, Helvetica, sans-serif;
}

header {
    color: var(--text-color-2);
    padding: 20px 0px;
    margin: 0px 0px 20px 0px;
    font-size: x-large;
}

footer {
    color: gray;
    font-size: smaller;
    margin: 0px 0px 0px 0px;
    padding: 20px 0px;
}

main {
    width: 80%;
    margin: auto auto;
    padding: 10px 0px;
    border-radius: 12px;
    text-shadow: 20px;
    justify-content: center;
}

details{
    color: lightgray;
    justify-items: left;
    margin: auto 0px 0px 0px;
    border: 1px;
    border-color: gray;
    border-top-style: solid;
    transition-property: all;
    transition-duration: 2.5s;
}
details summary {
    color: var(--text-color-2);
}

h1 {
    color: var(--text-color-2);
}

h2 {
    color: var(--text-color-1);
}

p.beginEndButton a button {
    color: var(--text-color-1);
    border-color: var(--text-color-1);
    background-color: var(--background-Color);
    padding: 10px 20px;
    border-width: 3px;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 12px;
    backdrop-filter: blur(6px);
    cursor: pointer;
    transition-duration: .3s;
    transition-property: scale(), box-shadow;
}

p.beginEndButton a button:hover {
  background-color: rgba(255, 255, 255, 0.25);
  transform: scale(1.05);
}

p.beginEndButton a {
    justify-self: center;
    cursor: pointer;
    padding-left: 5vw;
}

p.continueButton a button {
    display: all;
    background-color: var(--back-color-1);
    border-color: var(--back-color-2);
    margin: 10px auto;
    backdrop-filter: blur(0px);
    border: rgba(170, 92, 47, 0.8);
    border-style: solid;
    padding: 10px 20px;
    border-width: 3px;
    border-radius: 12px;
    color:var(--text-color-2);
    transform: scale(1);
    transition-delay: .5s;
    transition-duration: 1s;
    transition-property: opacity;
    opacity: 0;
}

p.continueButton a button:hover {
  background-color: rgba(255, 255, 255, 0.25);
  transform: scale(1.05);
}

p.continueButton a {
    justify-self: center;
    cursor: pointer;
    transition-property: all;
    transition-duration: 1.5s;
}

div.hallway {
    display: flex;
    flex-wrap: wrap;
    width: 60vw;
    height: 12vh;
    backdrop-filter: blur(0px);
    background-color: var(--back-color-1);
    border: var(--back-color-2);
    border-style: solid;
    border-width: 5px;
    border-radius: 12px;
    justify-content: center;
    margin: auto auto auto auto;
}

div.door {
    backdrop-filter: blur(0px);
    background-image: url(door.png);
    background-size: fill;
    width: 10%;
    height: 100%;
    transform-origin: left;
}

/*div.handle {
    background-color: rgb(206, 160, 34);
    border-style: solid;
    border-radius: 12px;
    width: 5px;
    height: 5px;
    position: relative;
    top: 5vh;
    left: 4.5vw;
}*/

div.door::after {
    content: "\00a0""\00a0""\00a0""\00a0";
    background-color: rgb(206, 160, 34);
    border-style: solid;
    border-radius: 12px;
    width: 3px;
    height: 3px;
    position: relative;
    top: 5vh;
    left: 3.5vw;
    z-index: 9;
}

#key1:checked ~ div .door {
    animation: doorOpen;
    animation-duration: 1.3s;
    animation-fill-mode: forwards;
    }
#key1:checked ~ p.continueButton a button {
    opacity: 1;
}
/* KeyFrames */
@keyframes doorOpen {
    from { transform: rotatey(0deg);   }
    to   { transform: rotatey(110deg); }
}

