@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Comic+Neue:ital,wght@0,300;0,400;0,700;1,300;1,400;1,700&family=Delius&family=Sour+Gummy:ital,wght@0,100..900;1,100..900&display=swap');

html {
    background-color: #cac0b4;
    background-image:  radial-gradient(#8c8375 0.8px, transparent 0.8px), radial-gradient(#8c8375 0.8px, #cac0b4 0.8px);
    background-size: 32px 32px;
    background-position: 0 0,16px 16px;
}

body {
    display: flexbox;
    justify-self: center;
}

.parent {
    display: grid;
    grid-template-columns: 375px 525px;
    grid-template-rows: 75px 425px 113px;
    grid-column-gap: 10px;
    grid-row-gap: 9px;
    color: #422800;
    font-family: 'Rubik', 'Times New Roman', Times, serif;
    padding-top: 70px;
}

.header { grid-area: 1 / 1 / 2 / 3; }
.uploadPreviewPanel { grid-area: 2 / 1 / 3 / 2; }
.controlPanel { grid-area: 3 / 1 / 4 / 2; }
.metadataList { grid-area: 2 / 2 / 4 / 3; }

button {
    background: linear-gradient(22.5deg, #f8e1c9, #fbeee0);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 52px;
    width: 154px;
    align-self: center;
    border-radius: 26px;
    border: 2px solid #422800;
    background-color: #fbeee0;
    color: #422800;
    font-size: 15px;
    line-height: 1.2;
    cursor: pointer;
    box-shadow: #422800 1px 3px 0 0;
    font-family: 'Rubik';
    font-weight: 550;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
}

.buttonWide {
    width: 375px;
}

.buttonCircle {
    width: 52px;
    border-radius: 26px;
    font-size: 18px;
    font-weight: 450;
    padding-top: 4px;
}

button:hover {
    background-color: #fff;
}

button:active {
    box-shadow: #422800 2px 2px 0 0;
    transform: translate(2px, 2px);
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    box-shadow: none;
}

.header, .uploadPreviewPanel, .metadataList {
    border: 2px solid #422800;
    background: linear-gradient(22.5deg, #f8e1c9, #fbeee0);
    background-color: #fbeee0;
    border-radius: 20px;
    box-shadow: #422800 1px 3px 0 0;
}

.header {
    margin-right: 275px ;
    padding-left: 50px;
    text-align: start;
    font-family: "Sour Gummy";
    font-weight: 500;
    font-size: xx-large;
    align-content: center;
}

.uploadPreviewPanel, .metadataList {
    margin-top: 15px;
}

.uploadPreviewPanel {
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    text-align: center;
    font-weight: 550;
}

.uploadPreviewPanel.dragover {
    box-shadow: #422800 2px 2px 0 0;
    transform: translate(2px, 2px);
    outline: 2px dashed #84a98c !important;
    background: #d3e2c4 !important;
}

.uploadPreviewPanel:active {
    box-shadow: #422800 2px 2px 0 0;
    transform: translate(2px, 2px);
}

.controlPanel {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    align-content: space-between;
}

.metadataList {
    max-height: 510px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 10px;
    padding-right: 8px;
    padding-left: 8px;
    scrollbar-width: thin;
    scrollbar-color: #909090 transparent;
}

.footer {
    text-align: center;
    padding-top: 15px;
    font-size: 10pt;
    font-family: 'Rubik';
    color: #422800;
}

.modalOverlay {
    display: none;  
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(66, 40, 0, 0.5);  
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modalOverlay.active {
    display: flex;  
}

.modalContent {
    background: #fbeee0;
    border: 2px solid #422800;
    border-radius: 20px;
    box-shadow: #422800 1px 3px 0 0;
    width: 90%;
    max-width: 530px;
    max-height: 80vh;
    padding: 20px;
}

.modalHeader {
    font-family: "Sour Gummy";
    font-weight: 520;
    font-size: 29px;
    padding: 10px 0;
    text-align: center;
    border-bottom: 2px solid #422800;
    margin-bottom: 10px;
    padding-bottom: 25px;
}

.modalBody {
    font-family: 'Rubik';
    font-weight: 500;
    padding: 10px;
    line-height: 1.5;
    max-height: 500px;
    overflow-y: auto;
}

.modalButton {
    width: 100%;
    margin-top: 15px;
}

.ul, u, a { 
    text-decoration-style: wavy;
    text-decoration-thickness: 1px;
    text-decoration-skip-ink: none;
    text-decoration-color: #422800;
    color: #422800;
}

.ul {
    font-style: italic;
}

a {
    color: #9b610a;
}

.ul:hover, a:hover {
    color: #84a98c;
}

@media (max-width: 1000px) {
.parent {
    display: grid;
    grid-template-columns: 150px 190px;
    grid-template-rows: 65px 150px 470px;
    grid-column-gap: 10px;
    grid-row-gap: 9px;
}

.header { grid-area: 1 / 1 / 2 / 3; }
.uploadPreviewPanel { grid-area: 2 / 1 / 3 / 2; }
.controlPanel { grid-area: 2 / 2 / 3 / 3; }
.metadataList { grid-area: 3 / 1 / 4 / 3; }

.header {
    margin-right: 0px ;
    padding-left: 20px;
    text-align: start;
    font-family: "Sour Gummy";
    font-weight: 550;
    font-size: 14pt;
    align-content: center;
    margin-bottom: 15px;
}

button {
    align-items: center;
    justify-content: center;
    height: 40px;
    width: 190px;
    align-self: center;
    font-size: 12px;
    line-height: 1.0;
    border-radius: 20px;
}

.controlPanel {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-content: space-between;
    flex-wrap: wrap;
}

.uploadPreviewPanel {
    margin-top: 0px;
}
.uploadMsg {
    font-size: 14px;
}

#credits {
    order: -1;
}

.buttonWide {
    width: 142px;
}

.buttonCircle {
    border-radius: 22px;
    width: 42px;
    height: 42;
    font-size: 17px;
}

}

