﻿@font-face {
    font-family: OpenSans;
    src: url(/idp/fonts/OpenSans-CondBold.ttf);
}

#sign-in,
#save-type {
    min-width: 100px;
}

#warning, #alert, #noscript-alert {
    width: 100%;
    margin: 16px 0;
    text-align: center;
}

#type-select {
    min-width: 190px;
}

.logo-container {
    position: relative;
    height: 200px;
}
.logo-container.no-content {
    height: 120px;
}

.logo-image {
    max-width: 160px;
    margin-top: -85px;
    margin-left: -80px;
}

.challenge,
.logo-type {
    position: absolute;
    top: 50%;
    left: 50%;
}

.grid-image {
    width: 200px;
    height: 200px;
    margin-left: -100px;
    margin-top: -100px;
}

.grid-size-4 .grid-image {
    width: 140px;
    height: 140px;
    margin-left: -70px;
    margin-top: -70px;
}

.token-text {
    width: 250px;
    margin-top: -50px;
    margin-left: -125px;
    font-weight: 700;
}

#help-link {
    font-size:12px;
}

.external-container hr {
    margin:0;
}

#login-grid {
    margin-left: -95px;
    margin-top: -98px;
}

.grid-size-4 #login-grid {
    margin-left: -85px;
    margin-top: -70px;
}

.grid-clickable #login-grid {
    margin-left: -88px;
    margin-top: -88px;
}

.page-hidden {
    visibility: hidden;
}

header {
    position: relative;
    color: rgb(115, 115, 115);
    padding: 10px 20px;
    display: flex;
    -ms-flex-direction: row;
    -webkit-flex-direction: row;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
}

.search-container {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 40%;
}

.search-container input[type="text"] {
      width: 100%;
      padding: 8px 12px;
      border: 1px solid #ccc;
      border-radius: 4px;
      font-size: 14px;
    }

.username-dropdown {
    position: relative;
    display: inline-block;
}

.username {
    cursor: default;
    padding: 8px;
    border-radius: 4px;
}

.dropdown-content {
    opacity: 0;
    top: 100%;
    position: absolute;
    right: 0;
    background-color: white;
    color: black;
    min-width: 120px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 4px;
    transform: translateY(-5px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}

.username-dropdown:hover .dropdown-content {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.header-name {
    margin: 0 2px;
}

.btn-light {
    color: rgb(115, 115, 115);
    background-color: #f8f9fa;
    border-color: rgb(115, 115, 115);
}

    .btn-light:hover {
        background-color: #e2e6ea;
    }

.link-btn {
    width: 100%;
    text-align: left;
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    display: inline;
    font: inherit;
    margin: 0;
    padding: 10px 12px;
}

.link-btn:hover {
    background-color: #f1f1f1;
}

.access-list {
    display: flex;
    list-style: none;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    margin: auto;
    margin-top: 40px;
    padding: 0;
    transition: all 0.3s ease;
    max-width: 720px;
}
.access-list li {
    transition: transform 300ms ease, opacity 0.3s ease;
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}
    .access-list li.tile-hidden {
        opacity: 0;
        pointer-events: none;
        display: none;
    }
.access-list li a {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 180px;
    height: 130px;
    border-radius: 10px;
    color: unset;
    text-align: center;
    text-decoration: none;
}
.access-list li a[href]:hover {
    transition: background-color .2s;
    background-color: rgba(173, 184, 194, 0.2);
}
.tile-icon, .tile-icon-disabled {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(119, 136, 153, 0.2);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    margin-top: 16px;
}
.tile-icon-disabled {
    border-color: rgba(255, 0, 0, 0.5);
    border-style: solid;
    border-width: 5px;
}
.tile-icon-disabled-overlay {
    background-color: rgba(255, 0, 0, 0.5);
    position: relative;
    top: 43px;
    width: 38px;
    height: 5px;
    transform: rotate(-45deg);
    z-index: 999;
}
.tile-title {
    display: flex;
    justify-content: center;
    height: 32px;
    width: 180px;
    margin-top: 20px;
    padding: 0 8px;
}
.tile-title span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.pg-matrix {
    font-family: OpenSans;
}

@media only screen and (max-width: 768px) {
    .search-container {
        position: initial;
        -moz-transform: inherit;
        -ms-transform: inherit;
        -o-transform: inherit;
        -webkit-transform: inherit;
        transform: inherit;
        width: 200px;
        flex: 1;
        display: flex;
        justify-content: center;
        padding-right: 15px;
    }

    .search-container input[type="text"] {
        width: 100%;
    }
}