*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    background:#080530;
    color:#DCE5EE;
    font-family:Arial,sans-serif;

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-y:auto;
}

header{
    border-bottom:4px solid #6C6969;
    padding:20px 0;
}

nav{
    display:flex;
    justify-content:space-evenly;
    align-items:center;
}

nav a{
    color:white;
    text-decoration:none;
    font-size:26px;
    font-family:'Lalezar', cursive;
}

.active{
    background:#87DFDF;
    padding:5px 40px;
    border-radius:10px;
}

main{
    padding:40px 55px;
}

.top-row{
    display:grid;
    grid-template-columns:520px 300px 330px;
    column-gap:40px;
    align-items:start;
}

.otto-project{
    display:flex;
    gap:20px;
    align-items:flex-start;
}

.otto-project img{
    width:190px;
    height:270px;
    object-fit:cover;
}

.otto-project .text{
    width:420px;
}

.otto-project h2{
    font-family:'Lalezar', cursive;
    font-size:18px;
    margin-bottom:5px;
    color:#F8FAFC;
    font-weight:400;
}

.otto-project p{
    font-size:15px;
    line-height:1.45;
    color:#DCE5EE;
    font-weight:400;
}

.project.vertical img{
    width:100%;
    height:224px;
    object-fit:cover;
}

.project.vertical h2{
    font-family:'Lalezar', cursive;
    font-size:20px;
    margin-top:5px;
    color:#F8FAFC;
    font-weight:400;
}

.project.vertical p{
    font-size:14px;
    line-height:1.4;
    color:#DCE5EE;
    font-weight:400;
}

.project img{
    display:block;
    object-fit:cover;
}

.esp32 img{
    width:300px;
    height:224px;
}

.arduino img{
    width:331px;
    height:224px;
}

.bottom-row{
    margin-top:50px;
    display:grid;
    grid-template-columns:
    250px 250px 170px 170px;
    column-gap:50px;
    align-items:start;
}

.project-card img{
    width:100%;
    height:238px;
    object-fit:cover;
}

.project-card h2{
    font-family:'Lalezar', cursive;
    font-size:18px;
    margin-top:5px;
    color:#F8FAFC;
    font-weight:400;
}

.project-card p{
    font-size:14px;
    line-height:1.3;
    color:#DCE5EE;
    font-weight:400;
}

.video-project video{
    width:162px;
    height:291px;
    object-fit:cover;
}

.video-project{
    margin-left:100px;
}