﻿.searchresult:hover {
    border: 1px solid #ccc !important;
    background-image: url('../../Images/view-registry.png');
    background-repeat: no-repeat !important;
    background-position: right;
    background-position-y: center !important;
    cursor: pointer !important;
}

#findwrapper {
    margin-top: 15%;
    width: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: 50px;
}

#search {
    display: inline-block;
    width: 50%;
    float: left;
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    padding-right: 1em;
}

#search > form, .searchresult {
    padding: 1em 1em 1.5em 1.5em;
    border-radius: 5px;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    background-color: white;
    box-shadow: 0px 0px 5px #ccc;
    -moz-box-shadow: 0px 0px 5px #ccc;
    -webkit-box-shadow: 0px 0px 5px #ccc;
}

.searchresult {
    padding: 1em 1em 1em 1em;
    margin-top: 30px;
    text-align: left;
    border: 1px solid #fff;
    overflow: hidden;
}

.searchresult:hover {
    border: 1px solid #ccc;
}

.resultphotoarea {
    display: inline-block;
    width: 20%;
}

.resultphoto {
    min-width: 75px;
    max-width: 75px;
    min-height: 75px;
    max-height: 75px;
    border: 1px solid #ccc;
}

.resultinfoarea {
    padding-right: 45px;
    display: block !important;
    float: right;
    text-align: left;
    width: 65%;
}

.title > a {
    color: var(--mt-blue);
    text-decoration: none;
    font-size: 17px;
    font-weight: bold;
}

    .title > A:hover {
        text-decoration: underline !important;
    }

.members {
    font-size: 80%;
}

.registry {
    color: #989898;
    font-size: 80%;
}

#fieldList {
    text-align: left;
    margin: 0;
    padding: 0;
    list-style-type: none;
    font-family: "Nobile", Arial, sans-serif;
}

/* 5px from label to field, 13px from field to the next label (same as every stacked form) */
#fieldList > li {
    margin-bottom: 13px;
}

#fieldList > li > label {
    display: block;
    margin-bottom: 5px;
}

/* Padding, colours and height come from the shared field rule in site.css */
#fieldList > li > input {
    box-sizing: border-box;
    width: 100%;
    height: 25px;
}

#fieldList > li > input:focus {
    outline: none;
    border-color: var(--mt-blue);
    box-shadow: inset 0px 2px 3px rgba(0,0,0,0.2), 0 0 0 2px rgba(70,154,189,0.3);
}

/* Splits "search by name" from "search by registry number" */
#fieldList > li.or-divider {
    display: flex;
    align-items: center;
    gap: 0.75em;
    margin: 0.5em 0;
    color: var(--mt-blue-dark);
    font: normal 24px BlackJackRegular, Georgia, cursive;
    line-height: 1;
}

#fieldList > li.or-divider::before, #fieldList > li.or-divider::after {
    content: "";
    flex: 1;
    border-top: 1px solid #dcd8cf;
}

#search > form > h1 {
    text-align: left;
}

/* Html.ReturnAlert box - site.css zeroes paragraph margins, which leaves the text on the border */
#search .ui-state-error > p {
    padding: 0.6em 0;
}

#photoarea {
    position: relative;
    vertical-align: top;
    float: right;
    width: 50%;
    bottom: 10%;
}

#frame {
    position: relative;
    top: -5px;
    left: 0px;
    z-index: 5;
    transform: rotate(2deg);
    -moz-transform: rotate(2deg);
    -webkit-transform: rotate(2deg);
    -ms-transform: rotate(2deg);
}

#photo {
    position: absolute;
    top: 32px;
    left: 44px;
    z-index: 6;
    transform: rotate(2.25deg);
    -moz-transform: rotate(2.25deg);
    -webkit-transform: rotate(2.25deg);
    -ms-transform: rotate(2.25deg);
}

@media screen and (max-width: 930px) {
    #findwrapper {
        margin-top: 1em !important;
    }

    .resultinfoarea {
        text-align: left;
        width: 65%;
        vertical-align: middle;
    }

    #photoarea {
        position: relative;
        vertical-align: top;
        float: right;
        width: 40%;
        bottom: 10%;
    }

    #photo {
        position: absolute;
    }

    #search {
        width: 60%;
    }

    #frame {
        float: left;
        width: 80%;
    }

    #photo {
        position: absolute;
        top: 15px;
        left: 7.5%;
        width: 64%;
    }
}

#captcha {
    border-top: 1px solid #eae9e6;
    margin-top: 1.25em;
    padding-top: 1em;
}

    /* Same 20px gap above the Search button as the other forms' buttons */
    #fieldList > #captcha {
        margin-bottom: 20px;
    }

@media screen and (max-width: 850px) {
    .resultinfoarea {
        width: 62% !important;
    }
}

@media screen and (max-width: 770px) {
    .resultinfoarea {
        width: 58% !important;
    }
}

@media screen and (max-width: 710px) {
    #photo {
        top: 11px;
    }

    .resultinfoarea {
        width: 54% !important;
    }
}

@media screen and (max-width: 600px) {
    .searchresult:hover {
        background-image: none;
    }

    #photoarea, #photo, #frame {
        visibility: hidden !important;
        display: none !important;
        float: left !important;
        width: 0%;
        margin: 0em !important;
    }

    #search {
        display: inline-block;
        width: 100%;
        float: left;
        box-sizing: border-box;
        -webkit-box-sizing: border-box;
        -moz-box-sizing: border-box;
        padding-right: 0;
    }

    #search > form {
        padding: 1em 1.25em 1.25em;
    }

    #headernav {
        float: left;
        clear: left;
    }

    #headernav > ul > li {
        text-align: left !important;
    }

    .resultinfoarea {
        text-align: left;
        width: 100% !important;
    }

    .searchresult {
        height: 100% !important;
    }

    .searchresult > * {
        display: block !important;
        width: 100% !important;
        float: none !important;
    }

    .resultphoto {
        min-width: 100% !important;
        max-width: 100% !important;
        min-height: initial !important;
        max-height: 100% !important;
    }
}
