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

html, body {
    min-height: 100vh;
    width: 100vw;
    font-family: "Anton", serif;
    scroll-behavior: smooth;
    overflow-x: hidden;
    background-color: #1A1A1A;
}

nav {
    background-color: #e5e5e5;
    box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.1);
}

nav ul {
    list-style: none;
    width: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

nav li {
    height: 50px;
}

nav a {
    text-decoration: none;
    height: 100%;
    padding: 0 30px;
    display: flex;
    align-items: center;
    color: #1A1A1A;
}

nav a:hover{
    cursor: pointer;
    background-color: aliceblue;
}

nav li:first-child {
    margin-right: auto;
}

.sidebar {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 250px;
    z-index: 999;
    background-color: white;
    box-shadow: -10px 0 10px rgba(0, 0, 0, 0.1);
    display: none;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
}

.sidebar li{
    width: 100%;
}

.sidebar a {
    width: 100%;
}

.menu-button {
    display: none;
}

@media(max-width: 800px){
    .hideOnMobile {
        display: none;
    }
    .menu-button {
        display: block;
    }
}

.header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 2em;
    height: 100%;
    margin-bottom: 40px;
}

.header .h1 {
    position: relative;
    font-family: "Anton", serif;
    color: #e5e5e5;
    font-size: 27vw;
    line-height: 1.525;
    padding-bottom: 8.1px;
}

.head-container {
    border-top: 0.5px solid #e5e5e5;
    display: flex;
}

.profile-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    flex-direction: row;           /* this was changed col to row*/
    gap: 100px;
    /*background-color: wheat;*/
    margin-top: 1rem;
    margin-left: 1rem;
    width: 100%;
    margin: 20px;
    height: 100%;
}

.profile-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 20px;                        /*gap was added*/
    margin-top: 0.1px;                /*this was changed -100 to 0.1*/
}

.profile-bio {
    display: flex;
    flex-wrap: wrap;
    
    justify-content: center;
    flex-direction: column;
    /*background-color: black;*/
    /*bottom: 12rem;
    position: relative;
    left: 5rem;*/
    width: 50%;
    height: 70%;    
}

.profile-bio h1 {
    font-family: "Anton", serif;
    color: #e5e5e5;
    font-weight: normal;
}

.profile-container h2 {
    font-family: "Anton", serif;
    color: #e5e5e5;
    font-size: 70px;
    line-height: 1.5;
    padding-bottom: 10px;         /*padding was added*/
    /*position: relative;
    right: 29.5rem;*/
}

#para1 {
    font-family: "Anton", serif;
    color: #e5e5e5;
    line-height: 1.5;
    font-size: 20px;
    padding: 15px;
}

#list {
    font-family: "Anton", serif;
    color: #e5e5e5;
    line-height: 1.5;
    font-size: 20px;
}

.profile-img {
    position: relative;
    /*right: 25.8rem;
    bottom: -2rem;*/
}

.avatar {
    max-width: 19.5rem;
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto;
    border: 4px solid #fff;
}

.container-links {
    border-top: 0.5px solid #e5e5e5;
    display: flex;
}

.links-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    /*background-color: wheat;*/
    margin-top: 1rem;
    margin-left: 1rem;
    width: 100%;
    margin: 20px;
}

@media(max-width: 880px) {
    #text3 {
        padding-left: 40rem;
    }
}

.links-wrap h2 {
    font-family: "Anton", serif;
    color: #e5e5e5;
    font-size: 70px;
    line-height: 1.5;
    padding-right: 50rem;
    /*position: relative;
    right: 29.5rem;*/
}

.links {
    /*background-color: wheat;*/
    height: 100%;
    width: 90%;
    margin: 30px;
}

@media(max-width: 720px) {
    .links {
        width: calc(90% - 10%);
    }
}

#btn1 {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 0.2rem;
    padding: 20px;
    cursor: pointer;
    border-top: 1px solid #e5e5e5;
    background-color: #1A1A1A;
    color: #e5e5e5;
    text-decoration: none;
    font-family: "Anton", serif;
    color: #e5e5e5;
    font-size: 25px;
    line-height: 1.5;
}

#btn2 {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 0.2rem;
    padding: 20px;
    cursor: pointer;
    border-top: 1px solid #e5e5e5;
    background-color: #1A1A1A;
    text-decoration: none;
    font-family: "Anton", serif;
    color: #e5e5e5;
    font-size: 25px;
    line-height: 1.5;
}

#btn3 {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 0.2rem;
    padding: 20px;
    cursor: pointer;
    border-top: 1px solid #e5e5e5;
    background-color: #1A1A1A;
    text-decoration: none;
    font-family: "Anton", serif;
    color: #e5e5e5;
    font-size: 25px;
    line-height: 1.5;
    position: relative;
}

@keyframes spacing {
    from {
        letter-spacing: 0px;
    }

    to {
        letter-spacing: 5px;
    }
}

@keyframes spacing2 {
    from {
        padding-left: 20px;
    }
    to {
        padding-left: 70px;
    }
}

#text:hover {
    text-decoration: underline;
    animation-name: spacing;
    animation-duration: 0.5s;
}

#text2:hover {
    text-decoration: underline;
    animation-name: spacing;
    animation-duration: 0.5s;
}

#text3:hover {
    text-decoration: underline;
    animation-name: spacing;
    animation-duration: 0.5s;
}

#btn1:hover {
    background-color: #e5e5e5;
    color: #1A1A1A;
    font-size: 30px;
    font-style: italic;
    text-decoration: underline;
    animation-name: spacing2;
    animation-duration: 1s;
}

#btn2:hover {
    background-color: #e5e5e5;
    color: #1A1A1A;
    font-size: 30px;
    font-style: italic;
    text-decoration: underline;
    animation-name: spacing2;
    animation-duration: 1s;
}

#btn3:hover {
    background-color: #e5e5e5;
    color: #1A1A1A;
    font-size: 30px;
    font-style: italic;
    text-decoration: underline;
    animation-name: spacing2;
    animation-duration: 1s;
}

/* .slider-wrapper {
    width: 1300px;
    max-width: 100vw;
    height: 700px;
    margin: auto;
    position: relative;
}

.slider-container {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    display: flex;
    width: max-content;
}

.slider-container img {
    width: 1300px;
    max-width: 100vw;
    height: 100%;
    object-fit: cover;
}

.buttons {
    position: absolute;
    top: 320%;
    left: 5%;
    width: 90%;
    display: flex;
    justify-content: space-between;
}

.buttons button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-family: "Anton", serif;
    font-weight: bold;
    border: none;
}

.dots {
    position: absolute;
    bottom: 10px;
    color: yellow;
} */

/*.slider-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    border-top: 0.5px solid #e5e5e5;
}

.slider-container {
    /*position: relative;
    max-width: 48rem;
    margin: 0 auto;
    width: 800px;
    height: 500px;
    overflow: hidden;
}

.list {
    display: flex;
    /*justify-content: center;
    align-items: center;
    flex-direction: row;
    /*background-color: wheat;
    margin-top: 1rem;
    margin-left: 1rem;
    width: 100%;
    margin: 20px;
    background-color: white;
}

.slide {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-wrapper h2 {
    font-family: "Anton", serif;
    color: #e5e5e5;
    font-size: 70px;
    line-height: 1.5;
    padding-bottom: 10px;         /*padding was added*/
    /*position: relative;
    right: 29.5rem;
    margin-left: 80px;
    margin-bottom: auto;
}*/

/* .list img:not(img:first-child){
    display: none;
} */

#main {
    width: 250px;
    /*height: 250px;*/
    margin: 20px auto;
    /* margin-top: 20px;
    margin-bottom: 20px; */
    border: 2px solid #e5e5e5;
}

#main img {
    width: 100%;
    /* height: 100%; */
    object-fit: contain;  /* can use both contain and cover */
}

.thumbs {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
}

.thumbs img {
    width: 100px;
    height: 70px;
    border: 2px solid #e5e5e5;
    cursor: pointer;
    object-fit: cover;
    transition: border 0.3s;
}

.thumbs img:hover {
    border: 2px solid black;
    cursor: pointer;
}

.form-container {
    /* background-color: aqua; */
    /* margin: 10px auto; */
    padding: 40px;
    width: 100%;
    /* height: 50rem; */
}

.form-wrapper {
    background-color: #e5e5e5;
    margin: 20px auto;
    /* padding: 40px; */
    /* border: 2px solid white; */
    border-radius: 50px;
    width: 50%;
    height: 50%;
    /* position: fixed; */
}

form {
    max-width: 550px;
    width: 90%;
    margin: 17vh auto 0 auto;
    border-radius: 3px;
    box-sizing: border-box;
    /* background: #1A1A1A; */
    padding: 50px 0;
}

#head {
    margin: 0;
    text-align: center;
}

label {
    display: block;
    margin: 20px 0;
}

input, textarea {
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
    outline: none;
    resize: none;
    border: none;
    border-bottom: 1px solid #1A1A1A;
    background: #e5e5e5;
}

input[type="text"]:focus, textarea:focus {
    border-bottom: 1px solid aquamarine;
}

textarea::-webkit-scrollbar {
    width: 4px;
}

textarea::-webkit-scrollbar-thumb {
    background-color: rgb(255, 0, 106);
}

.center {
    text-align: center;
}

input[type="submit"] {
    margin-top: 30px;
    width: 90%;
    max-width: 200px;
    background: linear-gradient(to right, rgb(255, 0, 106), rgb(255, 67, 61));
    color: white;
    font-size: 17px;
    cursor: pointer;
    border-radius: 3px;
}

.error{
    color: red;
}

.error-border {
    border-bottom: 1px solid red;
}

#success {
    color: green;
}

.parent-wrapper {
    width: 100%;
    /* background-color: red; */
    display: flex;
    justify-content: center;
    align-items: center;
}

.content {
    border: 2px solid white;
    border-radius: 20px;
    width: 80%;
    text-align: center;
    margin: 4rem 0;
    padding: 3rem 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(5, 1fr);
    gap: 8px;
}

.content h1 {
    border-bottom: 2px solid white;
    color: white;
    grid-column: span 2 / span 2;
}

.todo-wrapper {
    grid-row: span 4 / span 4;
    grid-row-start: 2;
    background-color: pink;
    border: 2px solid white;
    margin-left: 0.2rem;
}

.calc-wrapper {
    grid-row: span 4 / span 4;
    grid-row-start: 2;
    background-color: red;
    margin-right: 0.2rem;
    border: 2px solid white;
}

.todo-wrapper .todo {
    background-color: #e5e5e5;
    height: 100%;
}

.calc-wrapper .calc {
    background-color: #e5e5e5;
    height: 100%;
}

.todo-wrapper .todo a {
    background-color: red;
    display: inline-block;
    width: 100%;
    height: 80%;
}

.todo-wrapper .todo a img {
    background-color: green;
    display: inline-block; 
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.todo-wrapper .todo h3 {
    padding-top: 0.8rem;
    border-top: 2px solid black;
    margin-top: 0;
}

.todo-wrapper .todo img:hover {
    cursor: pointer;
}

.calc-wrapper .calc a {
    background-color: red;
    display: inline-block;
    width: 100%;
    height: 80%;
}

.calc-wrapper .calc a img{
    background-color: pink;
    display: inline-block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.calc-wrapper .calc h3 {
    /* padding-top: 0.5rem; */
    border-top: 2px solid black;
    padding-top: 0.8rem;
}

/* @media (max-width: 665px){
    .todo-wrapper .todo h3 {
        padding-top: 0.5rem;
    }
} */

.calc-wrapper .calc a:hover {
    cursor: pointer;
}

.calc-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    /* background-color: red; */
    width: 100vw;
    height: 100vh;
    padding: 20px;
}

.calc-container h3 {
    border-bottom: 2px solid white;
    width: 60%;
    text-align: center;
    margin: 1rem;
    color: #e5e5e5;
}

.calc-content {
    background-color: #e5e5e5;
    width: 50%;
    height: 90%;
    border: 2px solid white;
    margin-bottom: 2rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(6, 1fr);
    gap: 8px;
    border-radius: 10px;
    padding: 10px;
}

.display {
    grid-column: span 4 / span 4;
    background-color: pink;
    border: 2px solid #1A1A1A;
    border-radius: 10px;
    /* text-align: center; */
    /* padding-top: 20px;
    padding-left: 500px; */
}

.display .screen {
    background-color: pink;
    border-radius: 10px;
    font-size: 34px;
    overflow: auto;
    text-align: right;
    padding: 10px;
}

.AC {
    grid-row-start: 2;
    background-color: cornsilk;
    border: 1px solid #1A1A1A;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 2px 2px #1A1A1A;
    text-align: center;
    padding-top: 20px;
}

.percent {
    grid-row-start: 2;
    background-color: cornsilk;
    border: 1px solid #1A1A1A;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 2px 2px #1A1A1A;
    text-align: center;
    padding-top: 20px;
}

.del {
    grid-row-start: 2;
    background-color: cornsilk;
    border: 1px solid #1A1A1A;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 2px 2px #1A1A1A;
    text-align: center;
    padding-top: 20px;
}

.divide {
    grid-row-start: 2;
    background-color: cornsilk;
    border: 1px solid #1A1A1A;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 1px 2px #1A1A1A;
    text-align: center;
    padding-top: 20px;
}

.seven {
    grid-row-start: 3;
    background-color: cornsilk;
    border: 1px solid #1A1A1A;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 2px 2px #1A1A1A;
    text-align: center;
    padding-top: 20px;
}

.eight {
    grid-row-start: 3;
    background-color: cornsilk;
    border: 1px solid #1A1A1A;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 2px 2px #1A1A1A;
    text-align: center;
    padding-top: 20px;
}

.nine {
    grid-row-start: 3;
    background-color: cornsilk;
    border: 1px solid #1A1A1A;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 2px 2px #1A1A1A;
    text-align: center;
    padding-top: 20px;
}

.multi {
    grid-row-start: 3;
    background-color: cornsilk;
    border: 1px solid #1A1A1A;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 1px 2px #1A1A1A;
    text-align: center;
    padding-top: 20px;
}

.four {
    grid-row-start: 4;
    background-color: cornsilk;
    border: 1px solid #1A1A1A;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 2px 2px #1A1A1A;
    text-align: center;
    padding-top: 20px;
}

.five {
    grid-row-start: 4;
    background-color: cornsilk;
    border: 1px solid #1A1A1A;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 2px 2px #1A1A1A;
    text-align: center;
    padding-top: 20px;
}

.six {
    grid-row-start: 4;
    background-color: crimson;
    border: 1px solid #1A1A1A;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 2px 2px #1A1A1A;
    text-align: center;
    padding-top: 20px;
}

.sub {
    grid-row-start: 4;
    background-color: crimson;
    border: 1px solid #1A1A1A;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 1px 2px #1A1A1A;
    text-align: center;
    padding-top: 20px;
}

.one {
    grid-row-start: 5;
    background-color: crimson;
    border: 1px solid #1A1A1A;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 2px 2px #1A1A1A;
    text-align: center;
    padding-top: 20px;
}

.two {
    grid-row-start: 5;
    background-color: crimson;
    border: 1px solid #1A1A1A;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 2px 2px #1A1A1A;
    text-align: center;
    padding-top: 20px;
}

.three {
    grid-row-start: 5;
    background-color: crimson;
    border: 1px solid #1A1A1A;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 2px 2px #1A1A1A;
    text-align: center;
    padding-top: 20px;
}

.add {
    grid-row-start: 5;
    background-color: crimson;
    border: 1px solid #1A1A1A;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 1px 2px #1A1A1A;
    text-align: center;
    padding-top: 20px;
}

.zeroes {
    grid-row-start: 6;
    background-color: crimson;
    border: 1px solid #1A1A1A;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 2px 2px #1A1A1A;
    margin-bottom: 0.1rem;
    text-align: center;
    padding-top: 20px;
}

.zero {
    grid-row-start: 6;
    background-color: crimson;
    border: 1px solid #1A1A1A;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 2px 2px #1A1A1A;
    margin-bottom: 0.1rem;
    text-align: center;
    padding-top: 20px;
}

.period {
    grid-row-start: 6;
    background-color: crimson;
    border: 1px solid #1A1A1A;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 2px 2px #1A1A1A;
    margin-bottom: 0.1rem;
    text-align: center;
    padding-top: 15px;
}

.equals {
    grid-row-start: 6;
    background-color: crimson;
    border: 1px solid #1A1A1A;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 1px 2px #1A1A1A;
    margin-bottom: 0.1rem;
    text-align: center;
    padding-top: 15px;
}

.calc-content div:not(:first-child):hover {
    cursor: pointer;
    box-shadow: 1px 2px inset #1A1A1A;
}

.main-container {
    background-color: #1A1A1A;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    /* background: #f0f4f8; */
}

.to-do {
    background: #fff;
    padding: 20px 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
}

.to-do h1 {
    text-align: center;
    color: #333;
}

.input-sec {
    display: flex;
    margin-bottom: 20px;
}

#task-input {
    padding: 10px;
    font-size: 16px;
    border-radius: 5px 0 0 5px;
    outline: none;
    border: 1px solid #ccc;
    flex: 1;
}

#addBtn {
    padding: 10px 15px;
    border: none;
    background: #007BFF;
    color: white;
    font-size: 16px;
    cursor: pointer;
    border-radius: 0 5px 5px 0;
    transition: background 0.3s;
}

#addBtn:hover {
    background: #0056b3;
}

#taskList {
    list-style: none;
    padding: 0;
    margin: 0;
}

.task-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.task-item.completed span {
    text-decoration: line-through;
    color: #888;
}

.task-buttons button {
    margin-left: 5px;
    padding: 5px 10px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    font-size: 14px;
}

.complete-btn {
    background: #28a745;
    color: white;
}

.delete-btn {
    background: #dc3545;
    color: white;
}

@media (max-width: 500px) {
    #taskInput, #addBtn {
      font-size: 14px;
      padding: 8px;
    }
    .task-buttons button {
      padding: 4px 8px;
      font-size: 12px;
    }
  }