/* General Setup */
body {
    font-family: 'Courier New', Courier, monospace;
    background-color: #f4f4f4;
    color: #222;
    display: flex;
    justify-content: center;
    padding: 40px 20px;
    margin: 0;
    overflow-x: hidden; /* Prevents scrollbars when things break */
}

#site-container {
    max-width: 800px;
    width: 100%;
    text-align: center;
}

/* 
   Editable Text Styling
   Gives a subtle dashed underline when hovered/clicked so people know they can edit it 
*/
[contenteditable="true"] {
    outline: none;
    padding: 2px 5px;
    border-bottom: 1px dashed transparent;
    transition: background-color 0.2s, border-bottom 0.2s;
}

[contenteditable="true"]:hover,
[contenteditable="true"]:focus {
    border-bottom: 1px dashed #999;
    background-color: rgba(0, 0, 0, 0.03);
}

/* Headshot Block */
#headshot {
    background-color: #e0e0e0;
    border: 2px solid #999;
    padding: 60px 20px;
    margin: 0 auto 30px auto;
    max-width: 350px;
    color: #666;
    font-weight: bold;
    font-size: 0.9rem;
}

/* Typography */
h1#site-title {
    font-size: 4.5rem;
    margin: 10px 0;
    letter-spacing: 2px;
}

h2#site-subtitle {
    font-size: 1.5rem;
    margin-bottom: 30px;
    font-weight: normal;
    color: #555;
}

#main-content p {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

#ps-note {
    font-size: 0.9rem;
    color: #777;
    margin-top: 40px;
    margin-bottom: 40px;
}

/* 
   Links Grid 
   Auto-arranges into 2 or 3 columns depending on screen size 
*/
#links-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
    margin: 40px 0;
}

.link-block {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    border: 2px solid #222;
    padding: 15px;
    text-decoration: none;
    color: #222;
    font-weight: bold;
    /* This drop shadow makes them look like physical blocks */
    box-shadow: 4px 4px 0px #222; 
    transition: transform 0.1s, box-shadow 0.1s;
    cursor: pointer;
}

/* A fun little physical "press" effect when clicked */
.link-block:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px #222;
}
.link-block:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px #222;
}

/* The Button */
#give-up-btn {
    background-color: #ff4747;
    color: white;
    border: 3px solid #cc0000;
    padding: 15px 50px;
    font-size: 1.5rem;
    font-family: inherit;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 5px 5px 0px #cc0000;
    transition: transform 0.1s, box-shadow 0.1s;
}

#give-up-btn:hover {
    background-color: #ff1c1c;
    transform: translate(-2px, -2px);
    box-shadow: 7px 7px 0px #cc0000;
}
#give-up-btn:active {
    transform: translate(4px, 4px);
    box-shadow: 1px 1px 0px #cc0000;
}

/* The Reset Button */
#reset-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #222;
    color: white;
    border: 2px solid #222;
    padding: 10px 20px;
    font-size: 1rem;
    font-family: inherit;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 3px 3px 0px #999;
    z-index: 9999;
    transition: transform 0.1s, box-shadow 0.1s;
    display: none; /* Hidden by default, shown when physics starts */
}

#reset-btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0px #999;
}
#reset-btn:active {
    transform: translate(2px, 2px);
    box-shadow: 1px 1px 0px #999;
}