@font-face {
    font-family: 'UnifrakturMaguntia';
    src: url('assets/font/UnifrakturMaguntia-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'IM Fell English';
    src: url('assets/font/IMFellEnglish-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* Base styling */
body {
    font-family: 'IM Fell English', serif;
    background-image: url('assets/background/1454771477.svg');
    /* Use the wood texture */
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    margin: 0;
    padding: 0;
    color: #333333;
    /* Dark text color */
    line-height: 1.8;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    flex-direction: column;
}

.paper {
    position: relative;
    padding: 30px;
    margin: 50px;
    font-size: 1.2em;
    width: fit-content;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    max-width: 1700px;
    border-radius: 5px;
}

.paper-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fdf8e1;
    border: 1px solid #d2b48c;

    background-size: cover;
    filter: url(#torn-paper);
    z-index: 0;
}

.paper-content {
    position: relative;
    z-index: 1;
    justify-content: center;
    align-items: center;
    width: fit-content;
    display: flex;
    flex-direction: column;
}

.nail {
    width: 20px;
    height: 20px;
    background-color: #555;
    border-radius: 50%;
    position: absolute;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
    z-index: 2;
    /* Ensure nails are above the paper background and content */
}

.container {
    display: flex;
    /* Flexbox to align papers horizontally */
    justify-content: center;
    /* Center the papers */
    align-items: flex-start;
    flex-wrap: nowrap;
    /* Wrap papers to the next row if the screen is too narrow */
    margin: 0 auto;

}

.top-left {
    top: -10px;
    left: -10px;
}

.top-right {
    top: -10px;
    right: -10px;
}

.bottom-left {
    bottom: -10px;
    left: -10px;
}

.bottom-right {
    bottom: -10px;
    right: -10px;
}

/* Styled headings */
h1,
h2,
h3 {
    font-family: 'UnifrakturMaguntia', serif;
    text-align: center;
    color: #8b4513;
    /* Saddle brown for headings */
    margin-bottom: 20px;
}

/* Styled paragraphs */
p {
    text-align: justify;
    margin-bottom: 20px;
    font-family: 'IM Fell English', serif;
}

/* Links with subtle hover effect */
a {
    color: #8b4513;
    text-decoration: none;
    border-bottom: 1px solid #8b4513;
}

a:hover {
    color: #555;
    border-bottom: 1px solid #555;
}

.world-map {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.info {
    display: none;
}

/* Class to show the container */
.info.visible {
    display: flex;
}

.modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    /* Stay in place */
    z-index: 1;
    /* Sit on top */
    left: 0;
    top: 0;
    width: 100%;
    /* Full width */
    height: 100%;
    /* Full height */
    overflow: auto;
    /* Enable scroll if needed */
    background-color: rgba(0, 0, 0, 0.4);
    /* Black w/ opacity */
}

.modal-content {
    background-color: #fdf8e1;
    /* Light paper color */
    border: 1px solid #d2b48c;
    /* Light brown border */
    margin: 5% auto;
    /* 5% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    width: 50%;
    /* Could be more or less, depending on screen size */
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    position: relative;
}

.modal-content::before,
.modal-content::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0.2;
    pointer-events: none;
}

.close {
    color: darkred;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.signature {
    text-align: left;
    font-style: italic;
    margin-top: 20px;
    color: #555;
}

.wooden-title {
    font-size: 68px;
    /* Adjust the size as needed */
    color: white;
    /* White color for the text */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    /* Add a subtle shadow for depth */
    padding: 10px 20px;
    /* Padding around the text */
    border-radius: 5px;
    /* Slightly rounded corners */
    display: inline-block;
    /* Ensure the background fits the text */
}