@font-face {
    font-family: 'Joker';
    src: url('joker.ttf') format('truetype');
}

body {
    margin: 0;
    padding: 0;
    background-image: url('corkboard.jpg');
    background-size: cover;
    min-height: 100vh;
    min-height: -webkit-fill-available;
    height: 100vh;
    height: -webkit-fill-available;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

html {
    height: -webkit-fill-available;
}

@media (max-width: 768px) {
    body {
        height: 100%;
        min-height: 100%;
    }
}

#postButton {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #ff9900;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 32px;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 1000;
}

@media (max-width: 768px) {
    #postButton {
        width: 45px;
        height: 45px;
        font-size: 24px;
        bottom: 20px;
        right: 20px;
    }
}

#postButton:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    background: #ffa726;
}

#postButton:active {
    transform: scale(0.95);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    background: #fb8c00;
}

#modalOptions,
#modalInput {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    z-index: 1001;
    min-width: 300px;
}

#modalOptions select {
    width: 100%;
    padding: 12px;
    margin-bottom: 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    background-color: white;
}

#modalOptions button,
#modalInput button {
    width: 100%;
    padding: 12px;
    background: #ff9900;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#modalOptions button:hover,
#modalInput button:hover {
    background: #ffa726;
}

#modalOptions button:active,
#modalInput button:active {
    background: #fb8c00;
}

#modalInput input,
#modalInput textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    box-sizing: border-box;
}

#modalInput textarea {
    resize: vertical;
    min-height: 100px;
}

#modalInput label {
    display: block;
    margin-bottom: 8px;
    font-size: 16px;
    color: #333;
}

#messageCount,
#letterCount,
#sendamessageCount {
    color: #666;
    font-size: 14px;
    margin-bottom: 16px;
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.note {
    position: absolute;
    padding: 10px;
    border: 1px solid #000;
    background-color: #fff;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    overflow: hidden;
    word-wrap: break-word;
    box-sizing: border-box;
    font-size: 16px;
}

/* Add styles for post-it notes */
.note.postit {
    font-family: 'Caveat', cursive !important;
    font-size: 21px !important;
    line-height: 1;
    padding: 15px 10px;
}

@media (max-width: 768px) {
    .note.postit {
        font-size: 14px !important;
        padding: 15px 8px;
    }

    .note[style*="width: 100px"] {
        width: 80px !important;
        height: 80px !important;
    }

    .note[style*="width: 200px"] {
        width: 160px !important;
        height: 200px !important;
    }
}

.note.show {
    visibility: visible;
    opacity: 1;
}

.note:hover::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.5);
    z-index: 100;
}

.pin {
    position: absolute;
    width: 21px;
    height: 21px;
    top: 10px;
    left: 50%;
    transform: translate(-50%, -50%) scale(1.5);
    transition: transform 2s ease, opacity 0.5s ease;
    opacity: 0;
}

.pin.animate {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

#sendamessageDiv {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    justify-content: center;
    align-items: center;
    background-image: url(sendamessage.gif);
    background-size: cover;
    background-position: center;
}

#sendamessageText {
    background-color: rgba(0, 0, 0, 0.69);
    color: rgba(255, 255, 255, 0.69);
    padding: 20px;
    width: 50%;
    height: 80%;
    display: none;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-family: 'Joker', sans-serif;
    font-size: 69px;
    position: absolute;
    right: 50px;
}

.bulletin-title {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Caveat', cursive;
    font-size: 32px;
    color: #000;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    margin: 0;
    padding: 10px 25px;
    background: rgba(255, 255, 255, 0.9);
    border: 5px solid #8B4513;
    border-image: repeating-linear-gradient(
        45deg,
        #8B4513,
        #8B4513 10px,
        #A0522D 10px,
        #A0522D 20px
    ) 5;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    z-index: 100;
    text-align: center;
    display: inline-block;
}

@media (max-width: 768px) {
    .bulletin-title {
        font-size: 24px;
        top: 15px;
        padding: 8px 20px;
        border-width: 4px;
        width: auto;
    }
}

.info-button {
    position: fixed;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 100;
    opacity: 0.7;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.info-button:hover {
    opacity: 1;
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.info-button:active {
    transform: scale(0.95);
}

@media (max-width: 768px) {
    .info-button {
        top: 15px;
        right: 15px;
        width: 28px;
        height: 28px;
    }
    
    .info-button svg {
        width: 16px;
        height: 16px;
    }
}

.info-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    z-index: 1001;
    min-width: 300px;
    max-width: 90%;
}

.info-modal h2 {
    margin-top: 0;
    color: #333;
    font-size: 24px;
    margin-bottom: 16px;
}

.info-modal p {
    color: #666;
    margin: 8px 0;
    line-height: 1.5;
}

.info-modal button {
    width: 100%;
    padding: 12px;
    background: #ff9900;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 16px;
}

.info-modal button:hover {
    background: #ffa726;
}

@media (max-width: 768px) {
    .info-button {
        top: 15px;
        right: 15px;
        font-size: 20px;
    }
    
    .info-modal {
        padding: 20px;
    }
    
    .info-modal h2 {
        font-size: 20px;
    }
} 