/* font styling for vairable fonts -- replace something w unique identificier*/
/*
.geist-something {
  font-family: "Geist", sans-serif;
  font-optical-sizing: auto;
  font-weight: <weight>;
  font-style: normal;
}


.sora-something {
  font-family: "Sora", sans-serif;
  font-optical-sizing: auto;
  font-weight: <weight>;
  font-style: normal;
}


.familjen-grotesk-<uniquifier> {
  font-family: "Familjen Grotesk", sans-serif;
  font-optical-sizing: auto;
  font-weight: <weight>;
  font-style: normal;
}


.chivo-<uniquifier> {
  font-family: "Chivo", sans-serif;
  font-optical-sizing: auto;
  font-weight: <weight>;
  font-style: normal;
}

*/

body {
 background-image: url("backgrounds/doodlebg.png");
 background-size: cover;
 background-repeat: no-repeat;
 background-position: center center;
 background-attachment: fixed;
-webkit-background-size:cover;
-moz-background-size:cover;
-o-background-size:cover;

}


a {
    text-decoration: none;
    color: black;
}

li{
    color: black;
    font-size: 18px;
    padding: 8px 12px;
    border-radius: 4px;
}

/* scrollbar*/


/*navigation bar*/
.title {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-size: 26px;
  font-style: italic;

  /* keep .title in the normal flow so it's the left-most flex child */
  position: relative;
  order: 0;
  align-self: center;
  margin-left: 20px;
}

.navbar {
  font-family: 'Sora', sans-serif;
  font-size: 12px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 16px; /* space between the title and other navbar items */
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 26px 0;
  z-index: 1000;
  flex-wrap: nowrap;
}

@media only screen and (max-width:500px) {
  .navbar {
    flex-wrap: wrap;
    flex-direction: column;
    margin: 4px;
    line-height: 16px;
    gap: 0px;
  }
  .game{
    width:100%;
  }
  .doll {
    left: 25%;
  }
  .icon {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    text-align: left !important;
    align-items: flex-start;
    left: 10px !important;
  }
  .icon-0 {top: 4vh !important}
  .icon-1 {top: 17vh !important}
  .icon-2 {top: 31vh !important}
  .icon-3 {top: 45vh}
}

.navigation-links {
    list-style: none;
    margin: 10px;
    padding: 10px 0;
    display: flex;
    align-items: center;
    margin-top: 15px;
}

.navigation-links li:hover {
    font-style: italic;
}


li#change-background {
    cursor: pointer;
    margin: 0 0 0 10px;
    position: relative;
}

#specialbutton {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    font-size: 18px;
    font-style: italic;
    alignment-baseline: top;
}


.dropdown-list {
  font-size: 11px;  
  font-family: 'Geist', sans-serif;
  position: absolute;
  z-index: 1001; /* above navbar */
  width: 100%;
  list-style: none;
  display: none;
  font-style: normal;
  left: -20%;
}

.dropdown-list li {
    cursor: pointer;
}

li#change-background:hover .dropdown-list {
    display: block;
}


/* main part of website */

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 90px;
    padding-bottom: 50px;
    gap: 40px;
    bottom: 0px;
}

.game {
    position: relative;
    display: inline-block; /* keeps container only as big as the doll */
    margin: auto;
}

.doll {
  position: relative;
  display: inline-block;
  height: 550px;
  aspect-ratio: 546/1198; /* keeps correct proportions */
  margin: auto;
  align-items: center;
  justify-content: center;
}

.doll img {
  position: absolute;
  max-height: 550px;  /* aspect-ratio keeps it proportional */
  margin: auto;
}

.hidden {
  display: none;
}

/*icons around the figure*/

.icon {
  display: grid;
  position: absolute;
  background: none;
  border: none;
  font-size: 2rem; /* make it look like an icon */
  cursor: grab;
  width: 50px;
  font-size: 16px;
  text-align: center;
  align-items: center;
  justify-content: center;
  overflow: none;
}

.icon a {
  font-family: "Geist", sans-serif;
  font-size:14px;
  line-height: 30px;
  cursor: pointer;
}

.icon a:hover {
  text-decoration: underline; 
  color: blue;
}

.icon a:active {
  color:blue
}

.icon div{
  border: 2px solid brown;
  border-radius: 60px;
  padding: 10px;
  text-align: center;}


.icon img {
  width: 60px;
  height: auto;
  display: block;
  text-align: center;

}
.icon:active {
  cursor: grabbing;
}

/*Positioning around the doll */

.icon-0 { top: 80px; left: -97px; }
.icon-1 { top: 210px; left: -60px; }
.icon-2 { top: 90px; left: 300px; }
.icon-3 { top: 220px; left: 400px; }


/* textbox */

.textbox {
  font-family: 'Geist', sans-serif;  
  font-size: 16px;
  position: absolute;
  background-color: rgba(255, 255, 255, 0.8); /* semi-transparent background */
  padding: 20px;
    /*border-radius: 10px;*/
    width: 54vw;
    height: 21vh;
    text-align: left;
    bottom: 24px;
    overflow: scroll;
    overflow-y: scroll;
    line-height: 21px;
    scrollbar-width: thick;
    scrollbar-color: grey;
}

.textbox li {
  font-family: 'Geist', sans-serif !important;  
  font-size: 16px !important;
}

.textbox span {
  line-height: 26px;
  font-family: 'Playfair Display', serif;
  font-size: 16px;
}
 
.textbox a:hover{
  font-style: italic;
}