/* General Styling */

* {
    text-align: center;
    font-size: 24px;
    font-family: -apple-system, BlinkMacSystemFont, avenir next, avenir, segoe ui, helvetica neue, Adwaita Sans, Cantarell, Ubuntu, roboto, noto, helvetica, arial, sans-serif;
    color: #2d3436;
}

p {
    margin-top: 5px;
    margin-bottom: 3px;
}

ul {
    margin-top: 5px;
}

li {
    text-align: left;
}

body {
    margin: 0;
    justify-content: center;
    padding-top: 20px;
    padding-bottom: 20px;
}

img.header {
    max-width: 400px;
    max-height: 225.69px;
    padding: 15px;
}


h2 {
    margin: auto;
    padding: 5px;
}

h3 {
    padding: 5px;
}


.center {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page_max_width {
    max-width: 860px;
}

/* Link Animations */

a .link-image {
    display: block;
    transition: box-shadow 0.3s ease;
    border-radius: 22px;
    margin: 0;
}

a:hover .link-image {
    box-shadow: 0 0 18px rgba(45, 52, 54, 0.5); 
}

a .li-yt {
    border-radius: 18px;
}

a .li-soc {
    border-radius: 9px;
}

a .li-scr {
    border-radius: 0px;
}

/* Page Section */
.page_section {
    min-height: 250px;
    min-width: 250px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: auto;
    padding: 5px;
}

.page_section.blue {
    background-color: #e8f3fc;
}

.page_section>h2,h3,form {
    flex: 0 1 100%;
}

.game_container {
    min-height: 180px;
    min-width: 180px;
    display: flex;
    flex-direction: column;
    flex: 0 0 300px;
    padding: 10px;
    gap: 10px;
    
}

.game_item {
    max-width: 300px;
}

/* Socials */

.socials {
    flex-direction: column;
    align-items: center;
    margin: 0px;
    padding: 5px;
    gap: 10px;
}

.socials_section {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 10px;
    padding: 5px;
}

.socials_item {
    max-width: 180px;
}

/* Presskit sections */ 

.presskit_section {
    flex-direction: column;
    align-items: start;
    padding: 10px;
    max-width: 860px;
    gap: 15px;
}

.presskit_line {
    text-align: left;
    max-width: 860px;
}

/* Phaser game stuff */

.game-container {
    position: relative;
    width: 100%;
    max-width: 800px; /* Adjust this value to set a maximum width if needed */
    margin: 0 auto;
  }
  
.game-container img {
    width: 100%;
    height: auto;
    display: block;
    margin: auto;
}

.game-iframe {
    position: absolute;
    top: 17.2%;
    left: 50%; /* Move the left edge to the center of the container */
    transform: translateX(-50%); /* Move the iframe back by half its width */
    width: 67.5%;
    height: 40.5%;
    border: none;
}

/* Privacy page */
.privacy {
    font-size: 16pt;
    text-decoration: none;
    opacity: 0.8;
}

/* Logic page */
.logic_section {
    max-width: 860px;
}

.logic-div {
    display: flex;
    justify-content: left;
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

ul.logic {
    list-style: none;
}

ul.logic, li.logic, ul.logic a {
    text-align: left !important;
    display: block;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

h2.logic {
    padding: 0px;
    padding-bottom: 8px;
    text-align: left;
    margin: 0;
}


.hint_section {
    max-width: 860px;
    min-width: 250px;
    padding: 5px;
    text-align: left;
    margin: auto;
    display: block;
}

details {
    min-width: 250px;
    padding: 15px;
    text-align: left;
    display: block;
}

details details {
  margin-left: 0.25em; /* Indent first level of nesting */
}

details details details {
  margin-left: 0.5em;   /* Indent second level of nesting */
}

details details details details {
  margin-left: 0.75em;   /* Indent second level of nesting */
}

details details details details details{
  margin-left: 1em;   /* Indent second level of nesting */
}


summary {
    text-align: left;
}

h2.hint_section {
    margin-left: 0;
    margin-right: auto;
    text-align: left;
    padding: 5px;
}

.hint_image {
    max-width: 860px;
    margin: auto;
}

@media screen and (max-width: 600px) {
  .hint_image {
    max-width: 320px;
  }
}

.block {
    display: block;
}

.result {
  opacity: 0;
  transition: opacity 0.25s;
  min-height: 1.5em;
}
.result.visible {
  opacity: 1;
}
