body {
    background-color: #F7F1E8;
    font-family: 'Orange Typewriter', monospace;
}

.homepage {
    position: relative;
    height: 100vh;
}

.diary-image {
    width: 80%;
    max-width: 500px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.random-entry {
    position: absolute;
    bottom: 30%; /* Adjust this value to move the "Read a Random Entry" button up or down */
    left: 50%; /* Adjust this value to move the "Read a Random Entry" button horizontally */
    transform: translateX(-70%); /* Center the button horizontally */
    width: 200px; /* Adjust this value to resize the "Read a Random Entry" button horizontally */
    text-align: center; /* Center the button content */
}

.random-entry img {
    width: 250px; /* Adjust this value to resize the "Read a Random Entry" button image */
    margin: 10px; /* Adjust this value to add spacing around the "Read a Random Entry" button */
}

.submit-entry {
    position: absolute;
    bottom: 23%; /* Adjust this value to move the "Submit an Entry" button up or down */
    left: 50%; /* Adjust this value to move the "Submit an Entry" button horizontally */
    transform: translateX(-55%); /* Center the button horizontally */
    width: 200px; /* Adjust this value to resize the "Submit an Entry" button horizontally */
    text-align: center; /* Center the button content */
}

.submit-entry img {
    width: 170px; /* Adjust this value to resize the "Submit an Entry" button image */
    margin: 10px; /* Adjust this value to add spacing around the "Submit an Entry" button */
}

/* For devices with a maximum width of 767px (typical for mobile devices) */
@media screen and (max-width: 767px) {
    .random-entry {
        bottom: 40%; /* Adjust this value to move the "Read a Random Entry" button up or down */
        margin-bottom: 12px; /* Add margin to create space between the buttons */
    }

    .submit-entry {
        bottom: 35%; /* Adjust this value to move the "Submit an Entry" button up or down */
    }
}

/* Define a wiggle animation */
@keyframes wiggle {
    0% { transform: rotate(0); }
    25% { transform: rotate(-5deg); }
    50% { transform: rotate(5deg); }
    75% { transform: rotate(-5deg); }
    100% { transform: rotate(0); }
}

/* Apply the wiggle animation to the buttons on hover */
.random-entry:hover img,
.submit-entry:hover img {
    animation: wiggle 0.5s ease infinite;
}

/* Global styles */
body {
    background-color: #F7F1E8;
}

/* Header styles */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center; /* Vertically align items */
    margin-bottom: 20px;
}

.back-button,
.random-button {
    padding: 10px 20px;
    cursor: pointer;
    font-family: 'Orange Typewriter', sans-serif;
    font-size: 16px;
    line-height: 18px;
    letter-spacing: 0.34em;
    color: #141414;
    border: none; /* Remove border */
    background: none; /* Remove background color */
    box-sizing: border-box; /* Include padding in button's width */
    position: relative; /* Make button relative for absolute positioning of icon */
}

/* Article card styles */
.article-card {
    position: relative; /* Set position to relative for absolute positioning of noise overlay */
    background-color: #FBF8F3; /* Set background color to FBF8F3 */
    border-top-left-radius: 5px; /* Rounded top left corner */
    border-top-right-radius: 5px; /* Rounded top right corner */
    padding-left: 70px;
    padding-right: 70px;
    box-shadow: 0px 11px 20px rgba(0, 0, 0, 0.25);
    padding-bottom: 55px;
}

.content-wrapper {
    position: relative;
}



/* Padding adjustments for tablet and mobile */
@media screen and (max-width: 1024px) {
    .article-card {
        padding-left: 30px;
        padding-right: 30px;
    }
}

@media screen and (max-width: 768px) {
    .article-card {
        padding-left: 20px;
        padding-right: 20px;
    }
}

.noise-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('Images/noisetexture.png'); /* Replace 'path/to/your/image.png' with the path to your image file */
    background-size: cover; /* Adjust the size of the image to cover the entire element */
    background-repeat: repeat; /* Repeat the image */
    opacity: 0.4; /* Set opacity to 30% for the noise texture */
}


/* Responsive design */
@media screen and (max-width: 768px) {
    .article-page {
        padding: 10px; /* Smaller padding for tablet and mobile */
    }
}

@font-face {
    font-family: 'Orange Typewriter';
    src: url('Font/OrangeTypewriter.woff2') format('woff2'), /* WOFF2 format */
         url('Font/OrangeTypewriter.woff') format('woff'), /* WOFF format */
         url('Font/OrangeTypewriter.svg') format('svg'); /* SVG format */;
    font-weight: normal;
    font-style: normal;
}


/* Default padding for mobile */
.article-page {
    padding: 10px; /* Adjust this value as needed for mobile devices */
}

/* Media query for tablets */
@media (min-width: 768px) {
    .article-page {
        padding: 5%; /* 5% padding for tablets */
    }
}

/* Media query for large desktops */
@media (min-width: 1200px) {
    .article-page {
        padding-left: 20%; /* Left padding for large desktops */
        padding-right: 20%; /* Right padding for large desktops */
    }
}

/* Hero image styles */
.hero-image {
    display: block;
    margin: 0 auto; /* Center align the image */
    border-radius: 5px; /* Rounded corners */
}

/* Dummy text styles */
.p {
    font-family: 'Orange Typewriter', monospace;
    font-size: 16px;
    line-height: 1.5;
    margin-top: 20px;
}

/* Add media query for tablets */
@media only screen and (max-width: 1024px) {
    .hero-image {
        width: 100%;
    }
}

/* Add media query for mobile devices */
@media only screen and (max-width: 768px) {
    .hero-image {
        width: 100%;
    }
}

.article-text p {
    text-decoration: underline; /* Add underline to all paragraphs */
    text-decoration-color: #DCDCDC; /* Set the color of the underline */
    text-decoration-thickness: 2px; /* Set the thickness of the underline */
    text-underline-offset: 10px; /* Adjust the offset of the underline */
    line-height: 55px; /* Set the line height of the text */
    padding-bottom: 10px; /* Add some padding between lines */
    font-size: 20px;
}

@media only screen and (max-width: 1024px) {
    .article-text p {
        font-size: 16px; /* Smaller font size for tablets */
    }
}

/* Media query for mobile devices */
@media only screen and (max-width: 768px) {
    .article-text p {
        font-size: 14px; /* Even smaller font size for mobile devices */
    }
}

.article-page {
    padding-bottom: 0; /* Remove bottom padding */
}

.article-card {
    margin-bottom: 0; /* Remove bottom margin */
}

body {
    margin-bottom: 0;
}

a {
    color: inherit; /* Inherit the color from the parent element */
    text-decoration: none; /* Remove the underline */
}


footer {
    text-align: center;
    padding: 20px 0;
    color: #333;
    font-size: 14px;
}
