nav {
    background-color: seagreen;
    color: seashell;
    padding: 1vh 4vw 2vh;
    display: flex;
    justify-content: space-between;
    height: 120px;
}

nav ul {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin: auto 0;
}

nav li {
    list-style: none;
}

nav li a {
    color: seashell;
    text-decoration: none;
    font-weight: bold;
    padding: 5px 8px;
    margin-right: 6px;
}

nav li a,
nav li .btn {
    font-size: 1.2rem;
}
nav li a:hover:not(.btn) {
    color: black;
    text-decoration: none;
    font-weight: bolder;
}

thead tr {
    background-color: seagreen;
    color: seashell;
}

tbody a {
    text-decoration: none;
    font-weight: bold;
}

.roverStatus {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
}

.activityStatus {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
}

.head-title-logo img {
    width: auto;
    max-width: 100%;
    max-height: 93px;
}

.box {
    margin: 8px;
    border-radius: 15px;
    background-color: #272822;
    text-align: center;
}

.box>a {
    padding: 12px;
    border-radius: 15px;
    display: block;
    text-decoration: none;
    color: seashell;
}

.overlay img {
    filter: opacity(30%);
    width: auto;
    max-width: 100%;
    max-height: 100%;
}

.admin-container {
    overflow-x: auto;
}

.small.form-label {
    margin-bottom: 0;
}

.small.form-control {
    padding: .25rem;
    margin-bottom: 0.1rem;
    line-height: 1.25;
}

.map .ol-overviewmap { bottom: 3.5rem; }

.info-icon,
.info-icon-tooltip {
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url('../images/Info-Icon.svg');
    background-size: contain;
    background-repeat: no-repeat;
    margin: 6px 4px 2px;
    cursor: pointer;
    position: relative;
}

.alert-icon {
    display: inline-block;
    width: 24px;
    height: 24px;
    background-image: url('../images/alert.svg');
    background-size: contain;
    background-repeat: no-repeat;
    margin: auto 0 6px 12px;
    cursor: pointer;
    position: relative;
}

.info-icon:hover::after,
.info-icon:focus::after,
.alert-icon:hover::after,
.alert-icon:focus::after  {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: white;
    padding: 5px;
    border-radius: 5px;
    white-space: nowrap;
    font-size: 12px;
    z-index: 10;
}

.info-icon:focus,
.alert-icon:focus {
    outline: none;
}

.info-icon-tooltip {
    position: relative;
    cursor: pointer;
}

.custom-tooltip {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: white;
    padding: 8px;
    border-radius: 6px;
    font-size: 12px;
    width: 250px;
    z-index: 10;
    white-space: normal;
    text-align: left;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.custom-tooltip-below {
    display: none;
    position: absolute;
    top: 120%;
    left: 50%;
    transform: translateX(-26%);
    background-color: #333;
    color: white;
    padding: 8px;
    border-radius: 6px;
    font-size: 12px;
    width: 250px;
    z-index: 10;
    white-space: normal;
    text-align: left;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.info-icon-tooltip:hover .custom-tooltip,
.info-icon-tooltip:focus .custom-tooltip,
.info-icon-tooltip:hover .custom-tooltip-below,
.info-icon-tooltip:focus .custom-tooltip-below {
    display: block;
}


.invert-white {
    filter: invert(1);
}

.button-icon {
    height: 20px; 
    width: auto;
}

/* IOS date input padding fix */
input[type="date"] {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  appearance: none;
}

.input-label-info {
    font-size: 0.75rem; 
    color: #6c757d; 
    font-style: italic;
    white-space: nowrap;
}

input:invalid,
input:focus:invalid {
  border: red solid 3px;
  background-color: #ffe6e6;
}

.farm-definition-selector {
    padding: 0.25rem;
}

/* IOS select text color fix */
select {
    color: black;
}

@media only screen and (max-width: 800px) {
    .activity-container {
        padding-top: 2%;
        margin-right: auto;
        margin-left: auto;
        width: 90vw;
        justify-content: center;
    }

    .fcs-login-container {
        padding-top: 5%;
        margin-right: auto;
        margin-left: auto;
        width: 80vw;
        justify-content: center;
    }

    .fcs-register-container {
        padding-top: 5%;
        margin-right: auto;
        margin-left: auto;
        width: 80vw;
        justify-content: center;
    }

    .container-fcs {
        display: grid;
        padding-top: 2%;
        margin-right: auto;
        margin-left: auto;
        width: 90vw;
        gap: 2px;
    }

    .activityStatusContainer {
        padding-top: 2%;
        margin-right: auto;
        margin-left: auto;
        width: 100vw;
        justify-content: center;
    }

    .inner-management-container {
        display: flex;
        flex-direction: column;
        width: 98vw;
        padding: 0 1vw;
        margin: 0 auto;
    }

    .definition-container{
        display: flex;
        flex-direction: column;
        width: 98vw;
        padding: 0 1vw;
        margin: 0 auto;
    }
    
    .definition-form-container{
        border: 1px solid lightgray;
        border-radius: 4px;
        margin: 1vh 0 2vh;
        padding: 8px;
    }
    
    .definition-map-container{
        width: 100%;
        padding: 0 1vw;
    }
    
    .selector-container {
        flex-direction: column;
        margin: 2.5vh 1vw;
        padding: 2.5vh 2.5vw;
    }
    .selector-option {
        margin: 1vh 0;
    } 
    
    .points-container {
        display: flex;
        flex-direction: column;
    }

    .button-container {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 6px;
        margin: 8px;
    }
    .button-container button {
        width: 100%;
    }

    .map {
        width: 100%;
        height: 45vh;
        margin-bottom: 2vh;
    }
}

@media only screen and (min-width: 800px) {
    .activity-container {
        padding-top: 2%;
        margin-right: auto;
        margin-left: auto;
        /* width: 70vw; */
        justify-content: center;
    }

    .fcs-login-container {
        padding-top: 5%;
        margin-right: auto;
        margin-left: auto;
        width: 40vw;
        justify-content: center;
    }

    .fcs-register-container {
        padding-top: 5%;
        margin-right: auto;
        margin-left: auto;
        width: 40vw;
        justify-content: center;
    }

    .container-fcs {
        padding-top: 2.5vh;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin-right: auto;
        margin-left: auto;
        width: 80vw;
    }

    .activityStatusContainer {
        padding-top: 2%;
        margin-right: auto;
        margin-left: auto;
        min-width: 65vw;
        max-width: 80vw;
        justify-content: center;
    }

    .inner-management-container {
        display: grid;
        grid-template-columns: 3fr 7fr;
        padding: 0 1vw;
    }
    
    .definition-container{
        display: grid;
        grid-template-columns: 7fr 3fr;
        padding: 0 1vw;
    }

    .definition-form-container{
        border: 1px solid lightgray;
        border-radius: 4px;
        padding: 12px;
    }

    .points-container {
        display: grid;
        grid-template-columns: 7fr 3fr;
    }
    
    .button-container.small {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 4px;
        margin: 4px 0;
    }

    .button-container {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 8px;
    }

    .button-container button {
        width: 100%;
        margin: 0;
    }

    .definition-map-container .map {
        width: 100%;
        height: 100%;
        min-height: 70vh;
    }

    .map {
        width: 100%;
        height: 70vh;
        max-height: 78vh;
    }
    
    #plot_creation_map {
        height: 75vh;
    }
}

.btnBig {
    width: 200px;
    height: 200px;
}

.top1 {
    margin-top: 1px;
}

.top2 {
    margin-top: 2px;
}

.top5 {
    margin-top: 5px;
}

.top7 {
    margin-top: 7px;
}

.top10 {
    margin-top: 10px;
}

.top15 {
    margin-top: 15px;
}

.top17 {
    margin-top: 17px;
}

.top30 {
    margin-top: 30px;
}

.top40 {
    margin-top: 45px;
}

.ol-download-map {
    left: 0.5em; 
    top: 8em;
}

.breadcrumbs {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}
.breadcrumbs .breadcrumb-item {
    margin-right: 0;
}
.breadcrumbs .breadcrumb-item a {
    color: #6c757d;
}
.breadcrumbs .breadcrumb-separator {
    color: #6c757d;
}
.breadcrumb-item .active {
    font-weight: bold;
    color: #343a40;
}

.action-buttons {
    display: flex;
    flex-direction: row;
    gap: 8px;
}

@media screen and (min-width: 800px) and (max-width: 1100px) {
    .action-buttons {
        flex-direction: column;
        gap: 4px;
    }
    .action-buttons button {
        width: 100%;
    }
}
