/* siden utviklet av alle 16.oktober 2020 */

html {
    font-size: 16px;
    font-family: 'Times New Roman', Times, serif;
}

body {
  background-color: white;
}

nav {
    background-color: rgba(89, 158, 175, 1);
    position: fixed;
    top: 0px;
    display: grid;
    grid-template-columns: auto auto 130px max-content 3%; /* ekstra kollone til logg inn/ut knapp*/
    grid-template-rows: 50px auto;
    grid-column-gap: 2px;
    width: 99%;
    /* stop menuitems diplaying on next row after logginn btn added */
    grid-auto-flow: column;
}

nav li>a:focus, nav li>a:hover {
  background-color: #95B0B7;

}

#hamburgermeny { /*endret fra nav button TILL #hamburgermeny */
    text-decoration: overline underline line-through solid white;
    color: rgba(89, 158, 175, 1);
    background-color: #599eaf;
    border-radius: 10%;
    border: none;
    padding: 3px 1px;
    grid-column-end: -2;
}

.logginnBtn { /* new in sprint 2 */
    color: white;
    background-color: #6e5a7e;
    /* background-color: #3c5c7d; */
    text-align: center;
    text-decoration: none;
    padding: 1px;
    border-radius: 10%;
    grid-column-start: 3;
}

#menuitems {
    display: none;
    position: relative;
    grid-column-end: -2;
    list-style-type: none;
}

ul#menuitems  li {
    line-height: 1.75em;
}

ul#menuitems li a {
    color: #000000;
    text-decoration: none;
}

main {
    width: 99%;
    margin-top: 50px;
    margin-bottom: 70px;
}

footer {
    background-color: #324A51; /*#3c5c7d*/
    bottom: 0px;
    position: fixed;
    color: white;
    width: 99%;
    font-size: 0.75em;
    height: 60px;
}

footer h3 {
    font-size: 1.2em;
}

.copy {
    float: right;
}

.dtpics {
  display: none;
}

p#nominasjon, p.phpmelding{
    /* display message via cookie on return to page */
    background-color: yellow;
    font-weight:  600;
    text-transform: uppercase;
    text-align: center;
}

.fremheve { /* legge vekt på når siden er annerleders pga forretningsregler  f.eks ikke redigere inof under valget */
    background-color: yellow;
    font-weight: 600;
}

details { /* i kontrollere_avsteming.php */
    margin: 0.8rem 0;
}

details ol {
    margin-top: 0,25rem;
    margin-left: 2rem;
    background: #eeeff0;
    width: max-content;
}

details ol li {
    font-family: Arial, Helvetica, sans-serif;
}

section#kandidatene, section section { /* kandidat_info.php */
  margin: auto;
  width: 50%;
}

section h1 {
  text-decoration: underline;
}

section h2 {
  font-style: oblique;
  font-variant: small-caps;
}

label + a {
  margin-left: 0.5rem;
}

  
/* Nettbrett */
@media only screen and (min-width: 868px) {

  .dtpics {
    display: inline;
  }

    #choicepick {
        display: none;
    }
    
    nav {
        background-color: rgba(89, 158, 175, 1);
        grid-template-rows: 100px; /* auto; */
        grid-auto-flow: column;
    }
    
    #hamburgermeny {
        display: none;
    }
    
    .logginBtn {
        grid-column-start: 3;
        grid-row: 1;
    }
    
    #menuitems {
        display: inline;
        grid-column: 2 / -4;
        grid-row: 1;
        margin-top: 1.5em;
    }
    
    ul#menuitems li + li {
        display: inline;
        margin-right: 1.667em;
        letter-spacing: 1px;
        text-align: center;
        font-size: 1.1em;
    }
    
    #home {
        display:none;
    }
    
    main {
        margin-top: 140px;
    }
    
}

/* Desktop */
@media only screen and (min-width: 1050px) {

  #choicepick {
      display: inline;
      float: right;
  }
}

@media print {

  header {
    display: none;
  }

}
