@font-face {
  src: url(Raleway-Regular.ttf);
  font-family: 'Raleway';
}

ul{
    list-style-type: none;
}
a{
    color: white;
    text-decoration: none;
}
.menu {
	list-style: none;
	margin: 0;
	padding-left: 0;
}
.menu li{
  font-size: 16px;
  padding: 15px 5px;
  display: block;
  transition-duration: 0.5s;
  float: left;
  position: relative;
  text-decoration: none;
  transition-duration: 0.5s;
}
.menu li a{
    /* display: block; */
    color: #fff;
}

.menu li:hover {
  cursor: pointer;
}

.menu li ul {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  transition: all 0.5s ease;
  margin-top: 1rem;
  left: 0;
  display: none;
}

.menu li:hover > ul,
.menu li ul:hover {
  visibility: visible;
  opacity: 1;
  display: block;
}

.menu li ul li {
  clear: both;
  width: 100%;
}
.logo a{
    font-size: 20px;
}
.button{
    border-bottom: 1px #444 solid;
}

 
 


/* skrift */

body{
    font-family: Raleway;
}

p {
  font-weight: 400;
  font-size: 16px;
}

h1, h2, h3, h4, h5, h6, p {
  font-family: 'Roboto', sans-serif;
  color: #111;
  line-height: 24px;
}

h1 {
  font-weight: 600;
  font-size: 32px;
  padding: 20px 0;
  text-align: center;
}

h2 {
  font-weight: 500;
  font-size: 24px;
  padding: 20px 0;
  text-align: center;
}

h3 {
  font-weight: 500;
  font-size: 16px;
}

/*Denne siden er utviklet av Umeer Cheema siste gang endret 30.05.21*/
/*Denne siden er kontrollert av Petter Honningsvåg, siste gang 30.05.21*/


figure, image {
  margin: 0; /*Removes default margin*/
}


*{
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

main{
    max-width: 1000px;
    margin: auto;
    padding: 80px;
}

main a{
    color: black;
}

section {
  background-color: #fff;
  width: 94%;
  padding: 20px 3%;
}

/* index intro i section på default */

.index-intro p {
    text-align: center;
}

.index-categories-list {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.index-categories-list div {
  width: 24%;
  height: 200px;
  background-color: #ccc;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* registrer skjema */

.signup-form-form {
  display: flex;
  justify-content: center;
}

.signup-form p {
  text-align: center;
  padding-bottom: 40px;
  color: #007ecc;
}

.signup-form form {
  width: 100%;
  max-width: 600px;
}

.signup-form form input {
  width: calc(100% - 16px);
  padding: 6px;
  margin-bottom: 4px;
}

.signup-form form button {
  display: block;
  padding: 10px 20px;
  margin: 10px auto;
  cursor: pointer;
}

/*Nominasjons skjema*/

.nominasjon-form-form {
  display: flex;
  justify-content: center;
}

.nominasjon-form p {
  text-align: center;
  padding-bottom: 40px;
  color: #007ecc;
}

.nominasjon-form form {
  width: 100%;
  max-width: 600px;
}

.nominasjon-form form input {
  width: calc(100% - 16px);
  padding: 6px;
  margin-bottom: 4px;
}

.nominasjon-form button {
  display: block;
  padding: 10px 20px;
  margin: 10px auto;
  cursor: pointer;
}


/*meny i mobile view */

.header {
  background-color: #505050;
  box-shadow: 1px 1px 4px 0 rgba(0,0,0,.1);
  width: 100%;
  margin-bottom: 20px;
  z-index: 2;
  position: absolute;

}

.header ul {
  margin: 0;
  padding: 0;
  list-style: none;
  overflow: hidden;
  background-color: #505050;
}

.header li a {
  display: block;
  padding: 20px 20px;

  text-decoration: none;
  text-align: center
}

.header li a:hover,
.header .menu-btn:hover {
  background-color: #474747;
}

.header .logo {
  display: block;
  float: left;
  font-size: 2em;
  padding: 10px 20px;
  text-decoration: none;
}

/* meny */

.header .menu {
  clear: both;
  max-height: 0;
  transition: max-height .2s ease-out;
}

/* menyikon */

.header .menu-icon {
  cursor: pointer;
  float: right;
  padding: 45px 45px;
  position: relative;
  user-select: none;
}

.header .menu-icon .nav-icon {
  background: white;
  display: block;
  height: 2px;
  position: relative;
  transition: background .2s ease-out;
  width: 18px;
}

.header .menu-icon .nav-icon:before,
.header .menu-icon .nav-icon:after {
  background: white;
  content: '';
  display: block;
  height: 100%;
  position: absolute;
  transition: all .2s ease-out;
  width: 100%;
}

.header .menu-icon .nav-icon:before {
  top: 9px;
}

.header .menu-icon .nav-icon:after {
  top: -9px;
}

/* menyknapp */

.header .menu-btn {
  display: none;
}

.header .menu-btn:checked ~ .menu {
  max-height: 500px;
}

.header .menu-btn:checked ~ .menu-icon .nav-icon {
  background: transparent;
}

.header .menu-btn:checked ~ .menu-icon .nav-icon:before {
  transform: rotate(-45deg);
  top:0;
}

.header .menu-btn:checked ~ .menu-icon .nav-icon:after {
  transform: rotate(45deg);
  top:0;
}

table {
  font-family: arial, sans-serif;
  border-collapse: collapse;
  width: 100%;
}

td, th {
  border: 1px solid #dddddd;
  text-align: left;
  padding: 8px;
}

tr:nth-child(even) {
  background-color: #dddddd;
}


/* Desktop versjon */
@media all and (min-width: 850px){
  

  
  .header a:hover{
    text-decoration: underline;
}
  
  .header li {
    float: left;
  }
  .header li a {
    padding: 20px 30px;
  }
  .header .menu {
    clear: none;
    float: right;
    max-height: none;
  }
  .header .menu-icon {
    display: none;
  }
  .header ul a {
  border-right: 0px; 

  }
}


