html{
    display: flex;
    justify-content: center;
}
h1, h2, h3, h4, b{
    font-family: 'Caveat', cursive;
}
body{
    font-family: Arial, Helvetica, sans-serif;
    border: 2px solid black;
    height: 1250px;
    width: 800px;
    display: flex;
    flex-direction: column;
}
header{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
}
.head1{
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
}
.head1 .name{
    display: flex;
    flex-direction: row;
    justify-self: start;
    align-items: center;
    padding: 0px 20px;
    gap: 10px;
}
.head1 .name p{
    margin-top: 15px;
}
.head1 .bar{
    justify-self: flex-end;
    padding: 20px;
    margin-left: auto;
}
.head1 a{
    text-decoration: none;
    color : black;
}
.head2{
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 30px;
    padding-bottom: 70px;
}
.head2 p{
    margin-top: 0px;
    color: gray;
}
main{
    display: flex;
    flex-direction: column;
}
.main1{
    display: flex;
    flex-direction: row;
}
.main1 a{
    text-decoration: none;
    color: black;
}
.sec1{
    flex: 30;
    border: 2px solid black;
    border-left: none;
}
.sec1 div{
    display: flex;
    border-top: 2px solid black;
    max-width: 100%;
    max-height: 0px;
    padding: 20px;
    align-items: center;
}
.sec1 .link1{
    border: none;
}
.sec2{
    flex: 40;
    border: 2px solid black;
    border-left: none;
}
.sec2 div{
    padding: 0px 20px;

}
.sec2 .work1{
    margin-top: 30px;
    border-bottom: 2px solid black;
}
.sec2 .work1 p{
    line-height: 1.5;
}
.sec2 .work2 p{
    margin-top: -10px;
    margin-bottom: 5px;
}
.sec2 a{
    text-decoration: none;
    color: rgb(0, 67, 235);
}
.sec3{
    flex: 40;
    border: 2px solid black;
    border-left: none;
    border-right: none;
}
.sec3 p{
    padding: 0 20px;
}
.main2{
    display: flex;
    flex-direction: column;
}
.main2 div{
    display: flex;
    flex-direction: row;
    justify-content: left;
    gap: 20px;
    padding-left: 5%;
    padding-right: 8%;
    max-width: 100%;
}
.main2 div section {
    display: flex;
    max-width: 40%;
    border: 2px solid black;
    border-radius: 15%;
    padding: 15px;
}
.main2 h3 {
    margin-top: 30px;
}
.main2 span{
    color: lightgray;
}
footer{
    display: flex;
    justify-content: center;
    width: 100%;
    padding-top: 100px;
}
h3{
    margin-left: 20px;
}
img{
    width: 30px;
    height: 30px;
}

@media (max-width: 700px) {
    body{
        width: 100%;
        max-width: 450px;
        height: 1430px;
    }
    img{
        margin-top: 20px;
        margin-bottom: -10px;
    }
    h1{
        font-size: 25px;
    }
    header{
        margin-bottom: -10px;
    }
    .head1{
        flex-direction: column;
    }
    .head1 .name{
        flex-direction: column;
        padding: 0px;
    }
    .head1 .bar{
        padding: 0px;
        margin-left: 0px;
    }
    .head2{
        padding-top: 10px;
        padding-bottom: 20px;
    }
    .main1{
        flex-direction: column;
        max-width: 100%;
    }
    .sec1{
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        border-top: 2px solid black;
        border-right: none;
        max-width: 600px;
    }
    .sec1 h3{
        margin-left: 0px;
    }
    .sec1 div {
        display: flex;
        text-align: center;
        justify-content: center;
        width: 100%; 
        box-sizing: border-box; 
        background-color: rgb(234, 234, 234);
    }
    .sec1 .link1 {
        border-top: 2px solid black;
    }
    .sec2{
        border: none;

    }
    .sec2 h3{
        padding: 0;
        margin: 0;
        margin-top: 10px;
        margin-bottom: -5px;
        text-align: center;
    }
    .sec2 div{
    }
    .sec2 .work1{
        margin-top: 20px;
        border-top: 2px solid black;
        background-color: rgb(234, 234, 234);
    }
    .sec2 .work2 {
        overflow: hidden;
        padding-bottom: 20px;
        background-color: rgb(234, 234, 234);
    }
    .sec3 h3{
        padding-left: 25%;
        padding-bottom: 20px;
    }
    .sec3 p{ 
        margin-top: -8px;
    }
    .main2 div{
        flex-direction: column;
    }
    .main2 h3{
        padding-bottom: 10px;
    }
    .main2 div section {
        align-self: center;
        max-width: 80%;
        border-radius: 30px;
    }
    .main2 .review2{
        display: none;
    }
    .main2 .review3{
        display: none;
    }
    footer{
        padding-top: 20px;
    }
}

:root {
    --bg-light: rgb(234, 234, 234);
    --bg-dark: rgb(50, 50, 50);
    --border-light: black;
    --border-dark: white;
    --text-light: black;
    --text-dark: white;
}

body {
    background-color: var(--bg-light);
    color: var(--text-light);
    border-color: 2px solid var(--border-dark);
}

body.dark-mode {
    background-color: var(--bg-dark);
    color: var(--text-dark);
}

body.dark-mode .header,
body.dark-mode .sec1,
body.dark-mode .sec2,
body.dark-mode .sec2 .work1,
body.dark-mode .sec2 .work2,
body.dark-mode .sec3,
body.dark-mode .sec1 div,
body.dark-mode .main2 section {
    background-color: var(--bg-dark);
    border-color: 2px solid var(--border-dark);
}
body.dark-mode .nav {
    background-color: #333 !important;
}
body.dark-mode .nav-link {
    color: white !important;
}
body.dark-mode .nav-link.active {
    background-color: #666 !important;
}
body.dark-mode .link1 a,
body.dark-mode .link2 a,
body.dark-mode .link3 a,
body.dark-mode .link4 a,
body.dark-mode .link5 a {
    color: white !important;
}