html,
body {
    height: 100%;
}

body {
    background-color: white;
    margin: 0;
}
h1 {
  color: rgb(0, 0, 100);
}
h2 {
  color: rgb(0, 0, 100);
    text-align: center;
}

p {
  color: rgb(0, 0, 100);
    text-align: center;
}
a {
    color: rgb(215, 42, 42);
}

.topp {
    width:  100%;
    height: 20px;
}

.container {
    display: flex;
    height: calc(100% - 20px);
    gap: 20px;
    padding: 0 20px 20px;
    box-sizing: border-box;
}

.meny {
    width: 50px;
    flex-shrink: 0;
}

.iframe-container {
    display: grid;
    grid-template-columns: repeat(3, 200px);
    grid-template-rows: repeat(3, 200px);
    gap: 0;
    width: 300px;
    height: 00px;
    flex: 0 0 00px;
}

.iframe-container iframe {
    display: block;
    width: 200px;
    height: 200px;
    border: 1;
    background-color: white;
    box-sizing: border-box;
}

/* Hele forhåndsvisningen er en lenke til elevsiden */
.elev-link {
    position: relative;
    display: block;
    width: 200px;
    height: 200px;
}

.elev-link iframe {
    pointer-events: none;
}

/* Gjennomsiktig lag over iframen som fanger klikket */
.elev-link::after {
    content: "";
    position: absolute;
    inset: 0;
    cursor: pointer;
}

/* 2ITA: forhåndsvisningene scroller, stor visning til høyre */
.elev-oversikt {
    width: max-content;
    height: auto;
    flex: 0 0 auto;
    grid-template-rows: none;
    grid-auto-rows: 200px;
    overflow-y: auto;
}

.visning {
    flex: 1;
    min-width: 0;
    height: 100%;
    border: 1px solid rgb(0, 0, 100);
    background-color: white;
    box-sizing: border-box;
}

.elev-link:hover::after {
    outline: 3px solid rgb(215, 42, 42);
    outline-offset: -3px;
}


.profilbilde {
    display: block;
    width: 360px;
    max-width: 100%;
    max-height: 45vh;
    height: auto;
    margin-top: 16px;
}

.bilde {
    display: block;
    width: 600px;
    max-width: 100%;
    max-height: 90%;
    height: auto;
    margin-top: 16px;
}

.meny ul {
    list-style-type: none;
    padding: 0;
}

.meny li {
    margin-bottom: 10px;
}

.meny a {
    color: rgb(0, 0, 150);
    text-decoration: none;
    font-size: 1.1em;
}

.meny a:hover {
    text-decoration: underline;
}
