/* Global */
body {
    margin: 0;
    padding: 0;
    background: white;
    color: black;
    font-family: sans-serif;
    transition: background 0.3s, color 0.3s;
}

main {
    max-width: 800px;
    margin: auto;
    padding: 40px 20px;
}

#storyWrapper {
    position: relative;
    width: 100%;
    margin-top: 20px;
}

#storyList {
    list-style-type: disc;
    padding-left: 20px;
}

/* Header */
h1 {
    font-family: "ltc-goudy-text-pro", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 40px;
    text-align: center;
    margin-bottom: 10px;
}

h2{
    font-size: 18px;
    font-family: Georgia, 'Times New Roman', Times, serif;
    text-align: center;
}

h3{
    font-size: 24px;
    font-family: Georgia, 'Times New Roman', Times, serif;
    text-align: center;
}

li{
    font-family: Georgia, 'Times New Roman', Times, serif;
}
button{
    font-family: Georgia, 'Times New Roman', Times, serif;
}


/* Buttons */
button {
    padding: 10px 18px;
    margin: 8px;
    border: white 0.5px solid;
    cursor: pointer;
    border-radius: 6px;
    font-size: 15px;
    background: black;
    color: white;
    transition: background 0.3s, color 0.3s;
}

button:hover {
    opacity: 0.5;
}

.button-row {
    display: flex;
    justify-content: center;
    gap: 12px; 
}


/* Story list */
#storyList {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

#storyList li {
    padding: 12px 14px;
    margin-bottom: 10px;
    background: #f4f4f4;
    border-radius: 8px;
    transition: background 0.3s, color 0.3s;
}

/************************************************************
    NORMAL MODE STYLES
************************************************************/

body.normal-mode {
    background: white;
    color: black;
}

body.normal-mode #storyList li {
    background: #f4f4f4;
    color: black;
}

/************************************************************
    SHOCK MODE STYLES
************************************************************/

body.shock-mode {
    background: #F0F0F0;
}

.shock-mode #storyWrapper {
    position: relative;
    width: 100vw;
    /* background-color: aqua; */
    margin-left: calc(-50vw + 50%);
    padding: 0;
}

.shock-mode #storyList {
    list-style: none;
    padding: 0;
    margin: 0;

    position: relative;    
    width: 100vw;
    height: 100vh;
}

.shock-item {
  position: absolute;
  font-weight: bold;
  mix-blend-mode: difference;
  letter-spacing: 1px;
  max-width: 300px;
  overflow: hidden;
  word-wrap: break-word;
  text-align: center;
}

#shock {
    background: black;
    color: red;
}

