/* Color Variables */
:root {
    --bg: rgb(10, 11, 16);
    --bg2: rgb(18, 19, 28);
    --text-primary: #ffffff;
    --text-sub: #585858;
    --text-accent: #5370D9;
    --text-accent-dim: #3B4360;
}

/* Boilerplate */
* {
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
    user-select: none;

    font-family: 'Lato', sans-serif;
}

body {
    background-color: var(--bg);
}

/* Property class */
.hide {
    opacity: 0;
    display: none;
}

/* HEADER */
#header {
    /* background: grey; */

    display: flex;
    justify-content: space-between;
    align-items: center;

    width: 100%;
    height: max-content;
    padding: 30px 25px;
    padding-bottom: 20px;
}

#header p {
    color: var(--text-primary);
    font-family: 'Lato', sans-serif;
    font-weight: 300;
    letter-spacing: 3px;
    font-size: 11px;
}

/* refresh btn */
#refreshBtn {
    cursor: pointer;
}

/* Main container */
.mainContainer {
    width: 100vw;
    height: 100vh;

    overflow: hidden;
    background: var(--bg);

    display: flex;
    flex-direction: column;
    flex-wrap: wrap;

    align-items: center;
    /* justify-content: space-between; */

}

/* INFO CARD */
#ratInfo {
    margin-top: 60px;
    max-width: 260px;
    width: max-content;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;
    row-gap: 10px;

    text-align: center;
    font-family: 'Lato', sans-serif;

    transition: opacity 0.5s ease-in-out;
}

.infoTop {
    display: flex;
    justify-content: center;
    align-items: center;

    width: 90%;
}

.hideInfo {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

#ratInfo #floor,
#ratInfo #reporter,
#ratInfo #time {
    color: var(--text-sub);
    font-size: 12px;

    word-wrap: none;
    white-space: nowrap;
}

#time::before {
    content: '•';
    margin: 0px 8px;
}

#ratInfo #description {
    color: var(--text-primary);

}


/* GRID */
#ratGrid {
    margin-top: 60px;

    display: flex;
    flex-direction: row;

    column-gap: 15px;
}

#ratGrid .column {
    display: flex;
    flex-direction: column;

    row-gap: 15px;
}

.column::before {
    color: var(--text-sub);
    font-family: 'Lato', sans-serif;
    font-size: 12px;

    text-align: center;

    margin-bottom: 10px;
    width: 36px;
}

#wingA::before {
    content: "A";
}

#wingB::before {
    content: "B";
}

#wingC::before {
    content: "C";
}

#wingD::before {
    content: "D";
}


/* REPORT BUTTON */
.btn {
    position: fixed;
    bottom: 30px;

    width: max-content;
    height: 30px;

    padding: 30px 30px;

    background: var(--bg);
    border: 1px solid #5370D9;
    border-radius: 1000px;

    font-family: 'Lato', sans-serif;
    font-weight: 400;
    letter-spacing: 3px;
    color: var(--text-accent);

    display: flex;
    align-items: center;
    justify-content: center;
    column-gap: 20px;

    transition: background 0.2s ease-in-out;
    cursor: pointer;
}

.btn-off {
    opacity: 0.2 !important;
}

/* Only enable this for desktop */
/* .btn:hover {
    background: var(--bg2);
    transition: background 0.2s ease-in-out;
} */

.btn:active {
    background: black;
    transition: background 0s ease-in-out;
}

/* REPORT FORM */
#reportForm {
    position: fixed;
    bottom: 0px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    row-gap: 30px;

    width: 100%;
    height: max-content;

    background-color: var(--bg);
    box-shadow: 0px -10px 15px 5px rgba(0, 0, 0, 0.366);

    padding: 30px 30px;

    transform: translate(0%, 100%);
    transition: transform 0.3s ease-in-out;
}

/* override old btn positioning*/
#submitBtn {
    position: inherit !important;
}

/* Buttons inside the form */
.formBtns {
    width: 100%;

    display: flex;
    justify-content: space-around;
    align-items: center;
}

.show {
    transform: translate(0%, 0%) !important;
    transition: transform 0.3s ease-in-out !important;
}

/* NAME AND DESCRIPTION */
.nameField {
    width: 100%;
    position: relative;
    background-color: var(--bg2);
}

.descField {
    width: 100%;
    height: 100px;
    background-color: var(--bg2);
    position: relative;
}

#reportForm input,
textarea {
    background-color: var(--bg);

    outline: none;
    border: none;
    /* border: 0.1px solid rgb(21, 21, 21); */

    border-left: 3px solid var(--text-accent-dim);

    width: 100%;
    height: 100%;

    padding: 10px 15px;

    user-select: all;

    color: white;
    font-family: 'Lato', sans-serif;

    transition: border 0.2s ease-in-out;
}

textarea {
    resize: none;
    overflow: hidden;
}

textarea::placeholder {
    color: var(--text-sub);
}

#reportForm input::placeholder {
    color: var(--text-sub);
}

.counter {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translate(0%, -50%);

    color: var(--text-sub);
    font-family: 'Lato', sans-serif;
    font-size: 12px;

    border-radius: 2px;
}

.nameField input:focus {
    border-left: 3px solid var(--text-accent) !important;
}

textarea:focus {
    border-left: 3px solid var(--text-accent);
}

/* WING & FLOOR */
.radio::before {
    content: "Wing";
    position: absolute;
    top: -30px;
    left: 0px;

    font-size: 13px;
    color: var(--text-sub);
}

#floorField {
    margin-bottom: 8px;
}

#floorField::before {
    content: "Floor";
}

.radio {
    position: relative;
    display: flex;

    margin-top: 25px;
    width: 100%;
    padding: 0px 20px;

    color: var(--text-accent-dim);
    justify-content: space-between;
    align-items: center;

    font-size: 14px;
}

.wingBtn,
.floorBtn {
    cursor: pointer;
    width: 100%;
    text-align: center;

    padding: 3px 0px;

    transition: color .1s ease-in-out;
}

/* Used to highlight selected custom radio btn */
.selected {
    color: var(--text-accent);
    background: linear-gradient(90deg, rgba(32, 35, 49, 0) 0%, rgba(32, 35, 49, 1) 48%, rgba(32, 35, 49, 0) 100%);
}

/* Used to highlight selected rat */
.ratImage {
    transition: all 1s ease-in-out;
    cursor: pointer;
}

.selected-rat {
    -webkit-filter: drop-shadow(0px 0px 10px #1c8ee4);
    filter: drop-shadow(0px 0px 10px #1c8ee4);
}

/* WRITE MEDIA QUERIES FOR DESKTOP */
@media screen and (min-width: 600px) {
    body {
        background: black;

        display: flex;
        justify-content: center;
        align-items: center;
    }

    .mainContainer {
        width: 600px;
    }

    #reportForm {
        width: 600px;
    }
}