.line{
border-width: 6px;
border-style: solid;
border-color: black;
width: 100%;
}

body{
background-color:rgb(9, 33, 63);
}
.linklist{
    /* container for link items (unstyled list) */
    padding: 0;
    margin: 0;
    font-family: Arial, sans-serif;
}

/* Make each link appear as a separate boxed item */
.sidebar .linklist li{
    list-style: none;
    margin-bottom: 12px;
}
.sidebar .linklist a{
    display: block;
    background-color: white;
    color: #09213f;
    text-decoration: none;
    padding: 12px 14px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.sidebar .linklist a:hover{
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.12);
}
.img2{
    width: 800px;
    height: auto;
    border: 2px solid black;
    margin: 10px;
}
.ovningimg{
    width: 400px;
    height: auto;
    margin: 10px auto;
    display: block;
}
b{
    font-size: 20px;
}
#fragor{
    font-size: 16px;
    margin: 4px; 
    line-height: 40px;
}
#fragorlink{
    font-size: 26px;
    margin: 4px; 
}
#ovningarlink{
    font-size: 26px;
    margin: 4px; 
}
.linklist{
    font-size: 20px;
    margin: 4px;
}

/* Layout grid for pages with sidebar + main content */
.layout{
    display: grid;
    grid-template-columns: 2fr 8fr;
    gap: 20px;
    min-height: 100vh;
}
.sidebar{
    background: #f2f2f2;
    padding: 20px;
    box-sizing: border-box;
}
.content{
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.content > *{
    max-width: 900px;
    width: 100%;
}
.contentbox
{
    margin-bottom: 20px;
    background-color: white;
    padding: 20px;
    border-radius: 20px;
}
.bottom {
    padding: 20px;
    background-color: rgb(9, 33, 63);
    color: white;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    align-items: center;
}

.bottoml {
    text-align: left;
}

.bottoml h2 {
    margin: 0 0 10px 0;
}

.bottoml p {
    margin: 0;
}

.bottomr {
    text-align: right;
}

.bottomr a {
    color: white;
    text-decoration: none;
}

.bottomr a:hover {
    text-decoration: underline;
}

.arrow {
    margin-right: 5px;
}

@media screen and (max-width: 768px) {
    /* Stack sidebar and content vertically */
    .layout {
        grid-template-columns: 1fr;
    }
    .sidebar {
        grid-column: 1 / -1;
        order: 0;
        width: 100%;
        padding: 16px;
    }
    .content {
        grid-column: 1 / -1;
        padding: 12px;
        align-items: stretch;
    }
    .content > * {
        max-width: 100%;
    }

    /* Make images responsive and stack */
    .ovningimg, .img2 {
        width: 100%;
        max-width: 100%;
        height: auto;
        margin: 12px 0;
    }

    /* Sidebar link boxes full width */
    .sidebar .linklist a {
        text-align: center;
        width: 100%;
    }

    /* Footer stack */
    .bottom {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .bottoml, .bottomr {
        margin: 0;
        text-align: center;
    }
}
