* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    font-size: 14px;
    font-family: dico-code-one,mono;
    font-weight: 400;
    font-style: normal;
    color: #fff;

    --colour-bright-blue: #3fffed;
    --colour-light-blue: #d8fcff;
    --colour-light-grey: #fefefe;
    --colour-grey: #bcbcbc;
    --colour-dark-grey: #272626;
}

body {
    background-color: var(--colour-dark-grey);
    min-height: 100vh;
    display: grid;
    align-items: center;
}

main {
    max-width: 1200px;
    /* border-radius: 10px; */
    margin: 0 auto;
}

header{
    border: 4px solid var(--colour-light-blue);
    min-height: 80px;
    width: 100%;
    display: grid;
    grid-template-columns: 100px 1fr;
    column-gap: 1.5rem;
}

#logo {
    margin: 0.7rem auto;
}

#logo img {
    max-width: 80px;
    height: auto;
}

h1 {
    font-size: 30px;
}

h2{
    font-size: 20px;
    margin-bottom: 5px;
}

h4 {
    color: var(--colour-bright-blue);
    padding-bottom: 5px;
}

h5 {
    font-size: 14px;
}

#content {
    margin-top: 30px;
    display: grid;
    grid-template-areas:    "main interact"
                            "emotion interact";
    grid-template-columns: 2.3fr 1fr;
    grid-template-rows: 1fr 92px;
    gap: 20px;
}

button {
    height: 40px;
    width: 120px;
    background-color: var(--colour-light-blue);
    border-color: var(--colour-light-blue);
    font-size: 20px;
    font-family: dico-code-one,mono;
    font-style: normal;
    font-weight: 700;
    border-radius: 5px;
    cursor: pointer;
}
/* Safari/IOS button fix */
/* select {
    -webkit-appearance: none;
} */

/* ******** Main Panel (Left) ******** */
#mainPanel {
    border: 4px solid var(--colour-light-blue);
    grid-area: main;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    
    background-color: var(--colour-light-grey);
    background-image: url(../img/background.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-position-y: bottom;
}
#characterHome {
    grid-column: 1/-1;
    grid-row: 1/-1;
}
object {
    margin-top: 150px;
    width: 650px;
    height: auto;
}
#orbotBox {
    grid-column: 1/-1;
    grid-row: 1/-1;
    z-index: 1;
    padding: 320px 0 0 560px;
    overflow: hidden;
}
#orbotBox img {
    width: 280px;
    height: auto;
}

.alertMsg {
    display: none;
    background-color: var(--colour-light-grey);
    border: 2px solid var(--colour-dark-grey);
    color: #000;
    width: 350px;
    height: 7rem;
    padding: 1rem;
    text-align: center;

    grid-column: 1/-1;
    grid-row: 1/-1;
    z-index: 99;
    margin: 150px auto;
}
.alertMsg p {
    text-align: left;
}
.msgRead {
    width: 4.5rem;
    height: 2.5rem;
    margin-top: 0.5em;
    font-size: 1em;
}

#menuIcon {
    height: 45px;
    width: 52px;
    grid-column: 1/-1;
    grid-row: 1/-1;
    z-index: 2;
    align-self: flex-start;
    justify-self: flex-end;
    margin-top: 15px;
    margin-right: 15px;
    padding-bottom: 2px;
    cursor: pointer;
}
#resetBtn {
    margin-bottom: 10px;
    margin-right: 10px;
    justify-self: end;
    visibility: hidden;
    background-color: #3fffed;
}

/* ******** Interaction Panel (Right) ******** */
#interactPanel {
    border: 4px solid var(--colour-light-blue);
    grid-area: interact;
    padding: 1rem 1em 2em 1em;
}
#petName {
    height: 37px;
    width: 186px;
    font-size: 18px;
    font-family: dico-code-one,mono;
    font-style: normal;
    padding-left: 0.8rem;
}
.initiate {
    background-color: var(--colour-bright-blue);
    border-color: var(--colour-bright-blue);
    font-size: 18px;
}
#instructions {
    color: var(--colour-grey);
    margin: 1rem 0;
    padding: 0.5rem 0;
    border-top: 1px solid var(--colour-grey);
    border-bottom: 1px solid var(--colour-grey);
}
ol {
    list-style-position: inside;
}
ol li {
    padding: 3px;
}
label {
    display: block;
    /* color: #fff; */
    margin-top: 2rem;
    margin-bottom: 0.5em;
    font-size: 18px;
    font-weight: 700;
}
select {
    height: 32px;
    width: 144px;
    font-size: 18px;
    font-family: dico-code-one,mono;
    font-style: normal;
    border-radius: 2px;
}
.chargeBtn {
    background-color: #00ff00;
    border-color: #00ff00;
    margin: 0 1rem;
}
#r-d-Btns {
    margin-top: 2rem;
    margin-bottom: 2em;
    display: flex;
    justify-content: space-between;
}
.kill {
    background-color: #ff1009;
    border-color: #ff1009;
    color: #fff;
    width: 155px;
}
#cautionTxt {
    display: block;
    border: 2px solid #ff1009;
    padding: 8px 1rem;
}
#closeArrow {
    cursor: pointer;
    margin-bottom: 5px;
}

/* ******** Emotions Panel (Bottom) ******** */
#emotionsPanel {
    border: 4px solid var(--colour-light-blue);
    width: 100%;
    grid-area: emotion;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
    row-gap: 15px;
}
.chargeBtn.show-for-small {
    margin: 0;
}

/* ******** SVG Elements - Initial States ******** */
#visor_charge, #visor_error, #eyes_open {
    visibility: hidden;
}
#charger, #deco1_right, #deco2_right, #deco1_left, #deco2_left {
    opacity: 0;
}
#mouth_smile, #mouth_line, #eyes_rage {
    opacity: 0;
}

/* ******** Responsiveness ******** */
.show-for-small, .show-for-medium {
    display: none;
}

@media screen and (max-width: 1199px) {
    .show-for-medium {
        display: block;
    }
    main {
        overflow-x: hidden;
        margin-left: 5px;
        margin-right: 5px;
    }
    #interactPanel {
        grid-area:unset;
        width: 355px;
        background-color: var(--colour-dark-grey);
        grid-column: 1/-1;
        grid-row: 1/-1;
        z-index: 4;
        justify-self: flex-end;
        /* opacity: 0; */
    }
    button {
        height: 36px;
        width: 102px;
        font-size: 18px;
    }
    label {
        margin-top: 1.2rem;
    }
    #r-d-Btns {
        margin-top: 1.5rem;
        margin-bottom: 1.5rem;
    }
    #petName {
        height: 36px;
    }
    #characterHome {
        min-width: 814px;
    }
}
@media screen and (max-width: 840px) {
    body {
        align-items: flex-start;
        padding-top: 5px;
    }
    #characterHome {
        min-width: 0;
    }
    #mainPanel, #emotionsPanel {
        grid-column: 1/-1;
    }
}
@media screen and (max-width: 498px){
    .hide-for-small {
        display: none;
    }
    .show-for-small {
        display: block;
    }
    object#orbot {
        width: 460px;
        margin-top: 200px;
        margin-bottom: 50px;
    }
    header{
        grid-template-columns: 70px 1fr;
        grid-template-rows: 50px 1fr;
        column-gap: 1rem;
        align-items: center;
    }
    #logo {
        margin-bottom: 0;
        margin-top: 0;
    }
    #logo img {
        width: 60px;
    }
    #site-info {
        grid-column: span 2;
    }
    #site-info h4 {
        font-size: 12px;
        padding-left: 5px;
    }
    #initBtnContainer {
        grid-column: 1/-1;
        grid-row: 1/-1;
        justify-self: flex-end;
        padding-top: 5px;
        padding-right: 5px;
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 8px;
    }
    #emotionsPanel {
        border-width: 0;
    }
}
