@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

@font-face {
    font-family: grotesque;
    src: url(../assets/fonts/galano-grotesque-bold.otf);
}

body {
    /* font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif; */
    font-family: "Poppins";
    margin: 0;
    padding: 0;
    line-height: 1.4rem;

    min-height: 100vh;
    box-sizing: border-box;

    display: flex;
    flex-direction: column;

    overflow-x: hidden;
    scroll-behavior: smooth;

    color: rgb(27, 27, 27);

    --accent: rgb(31, 113, 126);
}

header {
    width: 100vw;
    height: 70px;

    padding: 5px 10px 5px 10px;
    margin-bottom: 10px;
    
    box-sizing: border-box;

    color: black;

    /* display: grid;
    grid-template-columns: repeat(3, 1fr); */
    
    display: flex;
    align-items: center;
    justify-content: space-between;

    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.315);
}

header > * {
    width: 100%;
}

h1, h2, h3, h4, h5, h6 {
    color: black;
}

.header-profile-container {
    display: flex;
    justify-content: flex-end;
}

.user-logo {
    width: 50px;
    height: 50px;
}

.site-title {
    font-family: grotesque;
    font-size: 1.5rem;
}

header details {
    position: relative;
}

header summary {
    display: flex;
    align-items: center;

    cursor: pointer;
}

header details > ul {
    position: absolute;
    width: 150px;

    list-style: none;
    margin: 0;
    padding: 0;

    top: calc(100% + 10px);
    right: 0;

    /* background-color: rgba(0, 0, 0, 0.2); */
    background-color: white;

    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.37);
}

nav {
    display: flex;
    flex-direction: row;

    column-gap: 30px;
}

nav > ul {
    width: 100%;

    display: flex;
    justify-content: space-evenly;

    list-style: none;  
    padding: 0;  
}

nav > ul a {
    color: inherit;
    text-decoration: none;
}

nav > ul a:hover {
    text-decoration: underline;
}

header details li a {
    display: flex;

    justify-content: space-evenly;
    align-items: center;

    cursor: pointer;
    color: inherit;
    text-decoration: none;

    text-align: center;

    box-sizing: border-box;

    padding: 20px 10px 20px 10px;
}

header details img {
    width: 30px;
    height: 30px;

    margin-left: 5px;

    vertical-align: middle;
}

header details li a:hover > img {
    filter: invert(100%);
}

header details li a:hover {
    background-color: var(--accent);
    color: white;
}

/* input {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;

    border: 0;
    outline: 0;

    border-radius: 4px;
    border-bottom: 1px solid rgba(175, 188, 202, 0.336);
} */

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0
}

input[type=number] {
    -moz-appearance:textfield; /* Firefox */
}

.view-controls a {
    color: inherit;
    text-decoration: none;
}

.view-controls a:hover {
    text-decoration: underline;
}

#page-input {
    width: 50px;
    text-align: center;
}

.page-selector {
    display: flex;
    column-gap: 10px;
}

table {
    border-collapse: collapse;
    border-spacing: 0;

    width: 100%;
}

td, th {
    padding: 10px;
    /* text-align: left; */
    border: 1px solid white;
}

table tbody tr {
    background-color: rgba(199, 212, 226, 0.336);
}

table tbody tr:nth-last-of-type(odd) {
    background-color: rgba(14, 116, 233, 0.336);
}

.search-container {
    width: 100vw;
    height: 60px;

    margin-bottom: 10px;

    box-sizing: border-box;
    
    display: flex;

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

#search-bar {
    width: 70vw;
    max-width: 860px;

    box-sizing: border-box;

    display: flex;
    justify-content: space-between;
}

#search-bar input {
    height: 40px;

    border: none;
    outline: none;

    background-color: rgb(241, 244, 248);
    border: 1px solid rgb(230, 235, 235);
}

#search-bar input[type="text"] {
    width: 100%;
    margin-right: 3px;

    border-radius: 4rem 0 0 4rem;
    box-sizing: border-box;

    padding: 0 20px 0 20px;

    font-size: 1rem;
}

#search-bar input[type="submit"] {
    width: 50px;

    border-radius: 0 4rem 4rem 0;
    box-sizing: border-box;

    cursor: pointer;
}

table input {
    width: 100%;
    height: 100%;

    box-sizing: border-box;
}

.view-controls {
    display: flex;
    flex-direction: column;

    gap: 10px;


    width: 100%;
    padding: 10px;
}

footer {
    width: 100vw;
    padding: 10px;
    box-shadow: 0 -10px 10px rgba(0, 0, 0, 0.116);

    box-sizing: border-box;

    margin-top: auto;

    align-self: center;
}

.notice {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;
    
    width: 100vw;
    height: 60px;

    color: white;
    /* background-color: #b074fc; */
    background-color: rgba(14, 116, 233, 0.673);;
    font-weight: bold;

    text-align: center;
}

.notice > .close {
    position: absolute;
    /* content: "\2716"; */

    cursor: pointer;

    right: 20px;
    top: 50%;

    transform: translateY(-50%);
}

@media only screen and (max-width: 500px) {
    #search-bar {
        width: 90vw;
    }
}