@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap");

@font-face {
    font-family: "nitemare";
    src: url("nitemare.woff2") format("woff2"), url("nitemare.woff") format("woff");
}

/* --------------------------------------------------------------------------- */
/* Main Layout & Style ------------------------------------------------------- */
/* --------------------------------------------------------------------------- */
:root {
    --fontlarge: 2rem;
    --fontmedium: 1.5rem;
    --fontsmall: 1rem;
    --fontxsmall: 0.9rem;
    --fontxxsmall: 0.7rem;
    --white: #ffffff;
    --greylightest: #8b8a8a;
    --greylight: #808080;
    --greymid: #474646;
    --grey: #393737;
    --greydarkest: #292727;
    --yellowlight: #f5e889;
    --yellow: #f3dc30;
    --yellowdark: #e7cc00;
    --yellowdarkest: #8b8031;
    --border2: 2px solid #393737;
    --orangelight: #df8d5e;
    --orange: #f88745;
    --orangedark: #bf6f41;
    --padding: 30px;
}

* {
    box-sizing: border-box;
}

body {
    font-family: "Roboto", sans-serif;
    background-color: #f3dc30;
    background-image: url("../img/background.gif");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center top;
    height: 100%;
    margin: 0;
}

h1 {
    font-size: var(--fontlarge);
    font-weight: 500;
}
h2 {
    font-size: var(--fontmedium);
    font-weight: 500;
    line-height: 2rem;
}
h3 {
    font-size: var(--fontsmall);
    font-weight: 500;
    line-height: 2rem;
}
p {
    font-size: var(--fontxsmall);
    font-weight: 400;
    line-height: 1.5rem;
}

/* --------------------------------------------------------------------------- */
/* Grid & Flex Layout -------------------------------------------------------- */
/* --------------------------------------------------------------------------- */

/* Parent Layout */
#home,
#report {
    height: 100vh;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 120px 1fr min-content;
    /* border: magenta solid 1px; */
}

#home {
    grid-template-areas:
        "head-1 head-2"
        "cont-1 cont-1"
        "foot-1 foot-1";
}
#report {
    grid-template-areas:
        "head-1 head-2"
        "cont-2 cont-2"
        "foot-1 foot-1";
}

/* Child  Layout*/
.container-parent-1,
.container-parent-2,
.container-parent-3,
.container-parent-4 {
    display: flex;
}

.container-parent-1 {
    grid-area: head-1;
}

.container-parent-2 {
    grid-area: head-2;
}

.container-parent-3 {
    grid-area: cont-1;
    padding: 0 20px;
}

.container-parent-3a {
    grid-area: cont-2;
    padding: 0 20px;
}

.container-parent-4 {
    grid-area: foot-1;
    background-color: var(--grey);
}

/* Grandchild  Layout*/
.box-home,
.box-result,
.box-submit-report,
.submit-report-container,
.admin-report-container,
.admin-report-list {
    background-color: var(--grey);
    padding: var(--padding);
    border-radius: 10px;
    margin: 10px 0 40px;
}

.box-home {
    max-width: 400px;
}

.box-result {
    max-width: 550px;
}

.box-submit-report {
    width: 35%;
    gap: 40px;
    color: var(--yellow);
}

/* -------------------------------------------- */
/* -------------------------------------------- */
.submit-report-container {
    display: grid;
    grid-template-columns: 1fr;
    grid-column-gap: 30px;
    grid-row-gap: 10px;
    width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.submit-report-container > div {
    margin: 0;
}
/* -------------------------------------------- */
/* -------------------------------------------- */
.admin-report-container {
    display: grid;
    grid-template-columns: minmax(250px, 1fr) 1fr;
    grid-column-gap: 30px;
    grid-row-gap: 10px;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
}

.admin-report-container > div {
    margin: 0;
}

.photos-section {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    height: fit-content;
    gap: 5px;
}
/* -------------------------------------------- */
/* -------------------------------------------- */

.box-admin-report {
    width: 80%;
    /* min-width: 720px; */
    /* height: 100%; */
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.report-left-panel {
    width: 100%;
}

.report-right-panel {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    min-width: 370px;
    height: fit-content;
    gap: 5px;
}

.img-enlarge {
    width: 100%;
    aspect-ratio: 3/2;
}

.img-thumbnail {
    width: calc(25% - 4px);
    aspect-ratio: 3/2;
}

.attachment {
    width: 100%;
    height: min-content;
    border: 1px solid var(--greylight) !important;
    text-align: center;
    position: relative;
    padding-top: 2rem;

    color: var(--greylight);
}

.attachment p {
    line-height: 1.2rem;
}

.attachment i {
    position: absolute;
    top: 1.5rem;
    left: 50%;
}

.admin-report-list {
    overflow-x: auto;
}

.report-list {
    display: grid;
    grid-template-columns:
        minmax(120px, 0.5fr) minmax(200px, 0.5fr) minmax(200px, 0.7fr) minmax(200px, 0.5fr)
        minmax(150px, 0.5fr) minmax(200px, 1fr) minmax(100px, 0.4fr) minmax(50px, 0.4fr);
    grid-auto-rows: 1fr;
    width: 100%;
    padding-left: 0;
    margin: 0;
    /* overflow: hidden; */
}
.report-list li {
    padding: 0.5em;
    border-bottom: 1px solid var(--greymid);
    box-sizing: border-box;
    list-style-type: none;
}

.report-list li div {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.report-list li div span {
    margin: 0 1px 6px;
}
.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    list-style-type: none;
    margin-top: 2.5rem;
    padding: 0;
    gap: 5px;
}
.footer {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.footer > div {
    color: var(--greylightest);
    padding: 15px 20px;
}

/* --------------------------------------------------------------------------- */
/* Fonts --------------------------------------------------------------------- */
/* --------------------------------------------------------------------------- */
.nitemare {
    font-family: nitemare;
    color: var(--yellow);
    font-size: var(--fontlarge);
}

.gg-software-upload {
    /* This value will multiple the actual size  */
    --ggs: 1.5;
    color: var(--greylight);
}

/* --------------------------------------------------------------------------- */
/* Button -------------------------------------------------------------------- */
/* --------------------------------------------------------------------------- */

/* White Hyperlink */
a.white-link:visited,
a.white-link:link {
    color: var(--white);
    text-decoration: none;
    padding: 0 2px;
}
a.white-link:hover {
    color: var(--white);
    text-decoration: underline;
}
a.white-link:active {
    color: var(--greylightest);
}

/* Text Link */
a.txt-grey:visited,
a.txt-grey:link {
    font-size: var(--fontxsmall);
    font-weight: 500;
    text-decoration: none;
    color: var(--greylightest);
}
a.txt-grey:hover {
    color: var(--yellow);
}
a.txt-grey:active {
    color: var(--yellowdarkest);
}

/* Grey Button */
a.button-link:visited,
a.button-link:link {
    color: var(--greylightest);
    text-decoration: none;
    padding: 0 2px;
}
a.button-link:hover {
    color: var(--greylight);
}
a.button-link:active {
    border: var(--grey);
    background-color: var(--grey);
    color: var(--greylight);
}

a.button-report:visited,
a.button-report:link {
    font-size: var(--fontsmall);
    color: var(--grey);
    font-weight: 500;
    text-decoration: none;
    height: max-content;
    padding: 10px;
    border: var(--border2);
    border-radius: 8px;
    text-align: center;
    margin: 20px;
}
a.button-report:hover {
    border: 2px solid var(--greylight);
    color: var(--greylight);
}
a.button-report:active {
    border: var(--grey);
    background-color: var(--grey);
    color: var(--greylight);
}

/* Yellow Button */
a.button-yellow:visited,
a.button-yellow:link {
    font-size: var(--fontxsmall);
    font-weight: 500;
    text-decoration: none;
    background-color: var(--yellow);
    color: var(--grey);
    padding: 10px 20px;
    border-radius: 8px;
}
a.button-yellow:hover {
    background-color: var(--yellowdark);
}
a.button-yellow:active {
    background-color: var(--yellowdarkest);
}

/* Edit Button */
a.button-edit:visited,
a.button-edit:link {
    font-size: var(--fontxxsmall);
    font-weight: 500;
    text-decoration: none;
    background-color: var(--yellowlight);
    color: var(--grey);
    padding: 5px 20px;
    border-radius: 5px;
}
a.button-edit:hover {
    background-color: var(--yellowdark);
}
a.button-edit:active {
    background-color: var(--yellowdarkest);
}

/* Archive Button */
a.button-archive:visited,
a.button-archive:link {
    font-size: var(--fontxxsmall);
    font-weight: 500;
    text-decoration: none;
    background-color: var(--orangelight);
    color: var(--grey);
    padding: 5px 10px;
    border-radius: 5px;
}
a.button-archive:hover {
    background-color: var(--orange);
}
a.button-archive:active {
    background-color: var(--orangedark);
}

/* Pagination Button */
a.button-pagination:visited,
a.button-pagination:link {
    font-size: var(--fontxxsmall);
    font-weight: 500;
    text-decoration: none;
    background-color: var(--greymid);
    color: var(--greylight);
    padding: 5px 10px;
    border-radius: 5px;
    margin-bottom: 50px !important;
}
a.button-pagination:hover {
    color: var(--white);
    background-color: var(--greylightest);
}
a.button-pagination:active {
    background-color: var(--greydarkest);
}

/* --------------------------------------------------------------------------- */
/* Alignment ----------------------------------------------------------------- */
/* --------------------------------------------------------------------------- */

.align-right {
    justify-content: flex-end;
    align-items: center;
}

.align-center {
    justify-content: center;
    align-items: center;
}

.align-logo {
    align-items: center;
    padding: 20px;
}

/* --------------------------------------------------------------------------- */
/* others -------------------------------------------------------------------- */
/* --------------------------------------------------------------------------- */
.result,
.login {
    text-align: center;
    color: var(--yellow);
}

.report,
.list-title {
    color: var(--yellow);
}

.reason {
    margin-bottom: 0.5rem;
}

.disclaimer {
    position: relative;
    margin-bottom: 0.6rem;
}
.text-grey {
    color: var(--greylight);
    margin-top: 0;
}
.title {
    color: var(--yellow);
}
.list-content {
    color: var(--greylight);
}

img {
    display: block;
}
/* --------------------------------------------------------------------------- */
/* Form Style ---------------------------------------------------------------- */
/* --------------------------------------------------------------------------- */
.form {
    margin-top: 0;
}

.form__div {
    position: relative;
    height: 4rem;
}
.form__input {
    color: var(--greylight);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    font-size: var(--fontsmall);
    border-bottom: 1px solid var(--greylight);
    border-top: none;
    border-left: none;
    border-right: none;
    padding: 0.6rem 0.85rem;
    background: none;
    z-index: 1;
}
.form__label {
    position: absolute;
    left: 0.5rem;
    top: 0.75rem;
    padding: 0 0.3rem;
    background-color: var(--grey);
    color: var(--greylight);
    font-size: var(--fontsmall);
    transition: 0.3s;
}
.form__button {
    display: block;
    margin-top: 10px;
    padding: 0.75rem 2rem;
    outline: none;
    border: none;
    background-color: var(--yellow);
    color: var(--grey);
    font-weight: 500;
    font-size: var(--fontsmall);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: 0.3s;
    width: 100%;
}
.form__button:hover {
    background-color: var(--yellowdark);
    box-shadow: 0 10px 36px rgba(0, 0, 0, 0.15);
}
.form__button:active {
    background-color: var(--yellowdarkest);
    box-shadow: 0 10px 36px rgba(0, 0, 0, 0.15);
}

/*Input focus move up label*/
.form__input:focus + .form__label {
    top: -0.5rem;
    left: 0.5rem;
    color: var(--yellow);
    font-size: var(--fontxxsmall);
    font-weight: 500;
    z-index: 10;
}

/*Input focus sticky top label*/
.form__input:not(:placeholder-shown).form__input:not(:focus) + .form__label {
    top: -0.5rem;
    left: 0.5rem;
    font-size: var(--fontxxsmall);
    color: var(--greymid);
    font-weight: 500;
    z-index: 10;
}

.form__input:not(:placeholder-shown) {
    border-bottom: 1px solid var(--greymid);
}

/*Input focus*/
.form__input:focus {
    border-bottom: 1px solid var(--yellow);
    outline: none;
}

/* Checkbox */
.disclaimer input,
.reason input {
    display: block;
    float: left;
}
.disclaimer label,
.reason label {
    font-size: var(--fontxsmall);
    color: var(--greylight);
    display: inline-block;
    width: 85%;
    margin-left: 10px;
}

.disclaimer label {
    color: white;
    /* margin-bottom: 10px; */
}

/* --------------------------------------------------------------------------- */
/* Images Style -------------------------------------------------------------- */
/* --------------------------------------------------------------------------- */
.logo {
    width: fit-content;
    height: auto;
}

.fotorama__wrap {
    width: 100% !important;
}

@media only screen and (max-width: 1100px) {
    .admin-report-container {
        width: 100%;
    }

    .fotorama__wrap {
        width: 100% !important;
    }
}

@media only screen and (max-width: 960px) {
    .box-submit-report {
        width: 100%;
    }

    .footer {
        flex-direction: row;
        justify-content: center;
        flex-direction: column-reverse;
    }
    .footer > div:nth-child(1) {
        padding: 5px 20px 20px;
        text-align: center;
    }
    .footer > div:nth-child(2) {
        padding: 20px 20px 5px;
        text-align: center;
    }
}

@media only screen and (max-width: 760px) {
    .admin-report-container {
        grid-template-columns: 1fr;
        width: 100%;
    }
    .fotorama__wrap {
        width: 100% !important;
    }
}

@media only screen and (max-width: 600px) {
    .submit-report-container {
        width: 350px;
    }

    .admin-report-list {
        width: 800px;
    }
    .fotorama__wrap {
        width: 100% !important;
    }
}

@media only screen and (max-width: 391px) {
    .fotorama__wrap {
        width: 285px !important;
    }

    .fotorama__stage,
    .fotorama__stage__shaft,
    .fotorama__nav,
    .fotorama__nav--thumbs {
        width: 285px !important;
    }

    a.button-report:visited,
    a.button-report:link {
        font-size: var(--fontsmall);
        color: var(--grey);
        font-weight: 500;
        text-decoration: none;
        height: max-content;
        padding: 5px;
        border: var(--border2);
        border-radius: 8px;
        text-align: center;
        margin: 5px 20px;
    }
}
