* {
    box-sizing: border-box;
}

/* Mobile */
@media (max-width: 768px) {
    html {
        scroll-padding-top: 0px;
    }
    
    section {
        width: 95%;
    }
    
    /* For mobile, the home section is not sticky */
    section#home {
        position: relative;
        height: auto;
    }
}

/* PC */
@media (min-width: 769px) {
    html {
        scroll-padding-top: 200px;
    }
  
    section {
        width: 80%;
        max-width: 600px;
    }
  
  /* For PC, the home section is sticky */
  section#home {
        position: sticky;
        top: 0;
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0.1rem 0;
        z-index: 999;
    }
}

body {
    font-family: 'Courier New', Courier, monospace;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

h1 {
    margin-bottom: 1rem;
    color: #007BFF; /* Changed color to blue */
}

section {
    margin: 0 auto 2rem auto;
    padding: 1rem;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

section#home {
    text-align: center;
    background-color: #007BFF;
    color: #fff;
}

section:not(#home) h2 { /* only apply to h2 tags outside of home section */
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #333; /* black color */
}

section#home h1, 
section#home h2,
section#home a {
    color: #fff;
}

a {
    color: #007BFF;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

form {
    display: flex;
    flex-direction: column;
}

label {
    margin-top: 1rem;
    font-weight: bold;
}

input, textarea {
    margin-top: 0.5rem;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 5px;
}

button {
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 5px;
    background-color: #007BFF;
    color: #fff;
    cursor: pointer;
    font-weight: bold;
}

button:hover {
    background-color: #0056b3;
}

.modal {
    display: none;
    position: absolute;
    z-index: 1;
    background-color: rgba(0,0,0,0.4);
    width: 80%; /* Adjust the modal width here */
    max-width: 800px; /* And the maximum width if needed */
    border-radius: 5px;
}

.modal-content {
    background-color: #fefefe;
    margin: 15px;
    padding: 20px;
    border-radius: 5px;
    color: #333;
    max-height: 400px;
    overflow-y: auto;
    position: relative;
}

.modal-content span {
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#close {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #000;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;  /* Add this to ensure the close button is above the other content */
}

#more {
    display: none;
}

#readMoreBtn {
    background-color: #008CBA;
    color: white;
    border: none;
    padding: 5px 10px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    cursor: pointer;
}

@font-face {
    font-family: 'MyCaptchaFont';
    src: url('path/to/your/font.woff2') format('woff2'),
         url('path/to/your/font.woff') format('woff');
}

.captcha span {
    font-family: 'MyCaptchaFont', cursive;
    transform: rotate(-5deg);
    display: inline-block;  /* This is important for the rotation to apply correctly to inline elements */
    letter-spacing: 2px;
    text-decoration: dashed underline overline line-through;
}

footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 20px;
    position: relative;
    bottom: 0;
    width: 100%;
}

footer p {
    margin: 0;
}

footer ul {
    list-style: none;
    padding: 0;
}

footer ul li {
    display: inline;
    margin: 0 10px;
}

footer ul li a {
    color: #fff;
    text-decoration: none;
}

footer ul li a:hover {
    text-decoration: underline;
}
