/* Jan Kaltenegger - Project 2 */
* {
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #f8f8f8;
    color: #333;
}

header {
    background-color: #333;
    color: #fff;
    padding: 20px;
    text-align: center;
}

.photo {
    position: absolute;
    top: 20px;
    right: 20px;
}

.photo img {
    height: auto;
    border-radius: 50%;
}

h1 {
    margin-bottom: 10px;
    font-size: 2.5em;
}

.container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 20px auto;
    max-width: 1200px;
}

.link-column,
.main-column,
.misc-column {
    background-color: #fff;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
}

.link-column {
    flex: 0 0 20%;
    max-width: 20%;
}

.main-column,
.misc-column {
    flex: 1;
    max-width: calc(40% - 20px);
}

footer {
    text-align: center;
    margin-top: 20px;
}

hr {
    border: 0;
    border-top: 1px solid #333;
    margin-bottom: 20px;
}
a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #0056b3;
}

td {
    vertical-align: top;
}

.home-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    position: absolute;
    top: 20px;
    left: 20px;
}

.home-btn:hover {
    background-color: #0056b3;
    color: #fff;
}

@media (min-width: 769px) and (max-width: 1024px) {
    .link-column {
        flex: 0 0 20%;
        max-width: 20%;
    }

    .main-column {
        flex-basis: 80%;
        max-width: 80%;
    }
    .misc-column {
        flex-basis: 100%;
        max-width: 100%;
    }

    .photo img {
        width: 100px;
    }
}

@media (max-width: 768px) {
    .link-column,
    .main-column,
    .misc-column {
        flex-basis: 100%;
        max-width: 100%;
    }

    .photo img {
        width: 60px;
    }

}

@media (min-width: 1025px) {
    .link-column {
        flex: 0 0 20%;
        max-width: 20%;
    }
    
    .main-column,
    .misc-column {
        flex: 1;
        max-width: calc(40% - 20px);
    }

    .photo img {
        width: 150px;
    }
}