.content-panel {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

.announcement-header {
    background-color: var(--golden);
    margin: 15px;
    width: 85%;
    height: auto;
    aspect-ratio: 20 / 2;
    max-height: 100px;
    border: 2px solid rgba(0, 0, 0, 0.489);
    border-radius: clamp(10px, calc(100vw / 50), 20px);
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
    padding: 10px;
    overflow: hidden;
    font-size: clamp(15px, calc(4vw - 5px), 35px);
    line-height: 1.2;
    overflow-wrap: break-word;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.upload-prompt {
    margin: 5px 0;
    color: white;
    font: 500 clamp(15px, calc(4vw - 10px), 25px) Arial, sans-serif;
    font-style: italic;
}

.upload-container {
    margin: 15px 0;
    width: 80%;
    height: fit-content;
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Stack the upload sections vertically if the screen is too narrow */
@container (max-width: 1000px) {
    .upload-container {
        flex-direction: column;
    } 
}

.upload-section {
    flex: 1;
    border-radius: 10px;
    box-shadow: 0 2px 5px 2px rgba(0, 0, 0, 0.5);
    height: fit-content;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: clamp(44px, calc(11.5vw - 28.2px), 73px); /* Scales to only show preview buttons */
}

.upload-section.smooth {
    transition: max-height 500ms ease-in-out;
}

.upload-section.expanded {
    max-height: 600px; /* Expands to reveal details section */
}

.upload-preview {
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 15px;
    border: none;
    outline: none;
    cursor: pointer;
    width: 100%;
}

.upload-preview img {
    width: clamp(20px, calc(4vw - 10px), 35px);
    height: auto;
    aspect-ratio: 1 / 1;
    margin-right: clamp(5px, 1vw, 10px);
}

.upload-preview h2 {
    color: white;
    font-size: clamp(15px, calc(4vw - 10px), 25px);
}

.details-section {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 10px;
    background-color: var(--bronze);
}

.details-section * {
    font-size: clamp(14px, calc(2vw + 2px), 18px);
}

.details-section input[type="text"],
.details-section input[type="file"],
.details-section textarea,
.details-section label {
    display: flex;
    align-items: center;
    margin: 5px 0;
    padding: 5px;
    width: 98%;
    height: 35px;
    border: 1px solid black;
    border-radius: 5px;
    background-color: transparent;
    color: black;
}

.details-section textarea {
    height: fit-content;
    resize: none;
}

.details-section label {
    text-decoration: underline;
    cursor: pointer;
}

.details-section span {
    margin: 5px 0;
    width: 100%;
}

.details-section input::placeholder,
.details-section textarea::placeholder {
    color: black;
    opacity: 0.5;
}

.details-section input:active,
.details-section input:focus,
.details-section textarea:active,
.details-section textarea:focus {
    outline: none;
    box-shadow: 0 0 3px 1px rgba(0, 0, 0, 0.5);
}

.public-share {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    gap: 10px;
}

.status-message {
    margin: 5px;
    padding: 8px;
    border-radius: 5px;
}

.status-message.success {
    background-color: rgb(20, 131, 20);
}

.status-message.error {
    background-color: rgb(120, 27, 27);
}

.details-section input[type="checkbox"] {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
}

.details-section button {
    margin: 10px 0;
    border: none;
    border-radius: 8px;
    outline: none;
    cursor: pointer;
    background-color: rgb(38, 55, 31);
    color: white;
    width: 60%;
    max-width: 300px;
    min-width: 150px;
    height: 35px;
    box-shadow: 0 2px 2px 2px rgba(0, 0, 0, 0.5);
    transition: transform 50ms ease-in-out;
    padding: 5px 0 0 0;
}

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

/* Custom styling for the checkboxes */
.public-share input {
    outline: none;
    box-shadow: 0 0 3px 1px rgba(0, 0, 0, 0.5);
    appearance: none;
    -webkit-appearance: none;
    background-color: white;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    font-family: sans-serif;
    user-select: none;
    border: 1px solid black;
    border-radius: 5px;
    place-content: center;
    transition: all 100ms ease-in-out;
}

.public-share input::before {
  content: "";
  width: 10px;
  height: 6px;
  border-left: 2px solid white;
  border-bottom: 2px solid white;
  transform: rotate(-45deg) scale(0); /* Rotates lines into a checkmark shape */
  transition: transform 100ms ease-in-out;
  margin-top: -3px; /* Slight alignment tweak */
  margin-right: 1px;
}

#Manual-Upload-Section .public-share input::before{
    margin-right: 0px; /* Slight tweak for just the File Upload section */
}

/* Checked state modifications */
.public-share input:checked {
  background-color: rgb(38, 55, 31);
  border-color: black;
}

/* Make checkmark visible upon click */
.public-share input:checked::before {
  transform: rotate(-45deg) scale(1);
}

/* Focus indicator for keyboard accessibility */
.public-share input:focus-visible {
  outline: 2px solid black;
  outline-offset: 2px;
}

/* Hover effect */
.public-share input:hover input[type="checkbox"] {
  border-color: black;
}