@import url('https://fonts.googleapis.com/css2?family=Creepster&family=Nosifer&display=swap');

:root {
    --light-o: #fde5d4;
    --orange: #F98128;
    --c-2: #5D2586;
}

* {
    margin: 0px;
    padding: 0px;
    overflow-x: hidden;
    font-family: Arial;
}

html {
    background: var(--light-o);
}

body {
    padding-top: 50px;
    margin: 0px;
    padding-left: 0px;
}

.imageBk {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    object-fit: cover;
    margin-bottom: 0px !important;
    padding: 0px;
}

menu {
    z-index: 999999;
    padding: 0px;
    margin-top: 0px !important;
    width: 100vw;
    height: 70px;
    background: var(--orange);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    position: fixed;
    top: 0px;
    left: 0px;
}

menu a {
    color: var(--c-2);
    font-family: "Nosifer", system-ui;
    font-weight: 400;
    font-style: normal;
    font-size: 20px;
    box-sizing: border-box;
    padding: 10px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

menu a:hover,
.clicked {
    background: var(--c-2);
    color: var(--orange);
    transition: 1s;
}

main {
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

a {
    text-decoration: none !important;
}


/********************** START OF INTRO **********************/
intro img {
    width: 100vw;
    margin: 0px;
    padding: 0px;
    height: calc(100vh - 50px);
    object-fit: cover;
    position: relative;
}

intro p {
    position: absolute;
    bottom: 0px;
    left: 0px;
    color: white;
    font-family: "Creepster", system-ui;
    font-weight: 400;
    font-style: normal;
    font-size: 48px;
    padding: 20px;
    width: 100vw;
    box-sizing: border-box;
    text-align: center;
    background: var(--c-2);
}

/********************** END OF INTRO **********************/

main {
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

screen {
    width: 600px;
    height: 400px;
    background: white;
    border-radius: 25px;
    box-shadow: 10px 10px var(--orange);
}

#game {
    display: none;
}

.board {
    width: 300px;
    height: 300px;
    text-align: center;
    display: grid;
    grid-template-areas: "a b c" "d e f" "g h i";
    grid-template-rows: 1fr 1fr 1fr;
    grid-template-columns: 1fr 1fr 1fr;
    background: var(--c-2);
    gap: 5px;
    overflow: hidden;
    margin: auto;
}

.board .free:hover {
    background: url("../media/game2-ghost.png"),
        white !important;
    background-repeat: no-repeat !important;
    background-size: contain !important;
}

.board.pl2 .free:hover {
    background: url("../media/game2-pumpkin.png"), white !important;
    background-repeat: no-repeat !important;
    background-size: contain !important;
}

.board div {
    width: 100px;
    height: 100px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    background-repeat: no-repeat !important;
    background-size: contain !important;
}

#a {
    grid-area: a;

}

#b {
    grid-area: b;
}

#c {
    grid-area: c;
}

#d {
    grid-area: d;
}

#e {
    grid-area: e;
}

#f {
    grid-area: f;
}

#g {
    grid-area: g;
}

#h {
    grid-area: h;
}

#j {
    grid-area: i;
}


.controls img {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    border: 5px solid #00000033;
    margin-left: 20px;
}

.turnActive {
    border: 5px solid var(--c-2) !important;
}

.controls {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 15px auto;
}

#first,
#pl3 {
    background: url("../media/game2-start.png"), white;
    background-repeat: no-repeat !important;
    background-size: contain !important;
    background-position: center !important;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.center {
    width: 100%;
    background: #FFFFFFAA;
    padding: 20px;
    text-align: center;
    margin: auto;
    color: var(--c-2);
    font-family: Nosifer;
    font-size: 32px;
}

#start0,
#start1,
#start2,
#start3 {
    background: var(--orange);
    border-radius: 10px;
    width: 100px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

#start0:hover,
#start1:hover,
#start2:hover,
#start3:hover {
    background: var(--c-2);
}

#pl1 {
    display: none;
    background: url("../media/game2-ghost.png"), white !important;
    background-repeat: no-repeat !important;
    background-size: contain !important;
    background-position: center !important;
}

#start1,
#start3 {
    margin: 220px auto 0px auto;
    width: 200px;
}


#pl2 {
    display: none;
    background: url("../media/game2-pumpkin.png"), white !important;
    background-repeat: no-repeat !important;
    background-size: contain !important;
    background-position: center !important;
}

#pl3 {
    display: none;
}

#pl2 .center,
#pl3 .center {
    color: var(--orange);
}

#start2 {
    margin: 220px auto 0px auto;
    width: 200px;
    background: var(--c-2);
}

#start2:hover {
    background: var(--orange);
}