@media screen and (max-width: 768px) {
    @import url('https://fonts.googleapis.com/css2?family=Chivo+Mono:ital,wght@0,100..900;1,100..900&family=Noto+Sans+Tangsa:wght@400..700&display=swap');
    * {
        font-family: Noto Sans Tangsa;
    }
    header {
        position: sticky;
        top: 0;
        z-index: 100;
        background-color: #2a2a2a;
    }

    header nav {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        background-color: #2a2a2a;
        font-weight: bold;
        border-radius: 5px;
        width: 100%;
        box-shadow: 0 2px 4px 0 rgba(0,0,0,.2);
    }

    header nav ul {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: auto;
        background-color: #2a2a2a;
        list-style-type: none;
        position: fixed;
        border-radius: 5px;
        transition: right 0.5s ease-in-out;
        top: 30px;
        right: -100%;
        box-shadow: 0 2px 4px 0 #00000033;
        z-index: 99;
    }
    header nav ul a {
        color: #aaa;
        text-decoration: none;
        width: 100%;
    }

    #log {
        display:none;
    }
    
    #login-logout{
        display: block;
    }

    #dropdownButton {
        display: inline;
        margin: 5px;
        padding: 0;
        width: 20px;
        height: 20px;
        outline: none;
        border: none;
        border-radius: 0;
        background-color: #2a2a2a;
    }

    h3 {
        color: #f1f1f1;
        font-weight: bold;
        margin-left: 10px;
    }
    .bold {
        font-weight: bold;
    }
    .inline {
        font-weight: bold;
    }
    p {
        color: #f1f1f1;
    }
    body {
        background-color: #1a1a1a;
    }
    button {
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 5% auto;
        width: 200px;
        height: 50px;
        border-radius: 25px;
        background-color: #1a1a1a;
        color: #f1f1f1;
        font-size: 16px;
        transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
    }
    
    
    button:hover {
        background-color: #6d8ba7;
    }
    img {
        width: 100%;
        height: auto;
    }
    h1 {
        color: #f1f1f1;
        text-align: center;
        font-size: 2.4em;
        margin-top: 50px;
    }

    .collapsible{
        justify-content: space-between;
        align-items: center;
        width: auto;
        margin: 10px;
        padding: 5px;
        border: none;
        outline: none;
        background-color: #2a2a2a;
        color: #f1f1f1;
        border-radius: 5px;
        transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
    }
    
    .collapsible:after {
        content: "";
        display: inline-block;
        width: 0;
        height: 0;
        border-top: 5px solid transparent;
        border-bottom: 5px solid transparent;
        border-left: 8px solid #f1f1f1; /* Right-facing arrow */
        margin-left: 5px;
    }
    
    .active:after {
        border-left: 5px solid transparent;
        border-right: 5px solid transparent;
        border-top: 8px solid #f1f1f1;
        margin-left: 5px;
    }
      
    
    .content{
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.2s ease-out;
        width: 80%;
        margin: 0 auto;
        background-color: #2a2a2a;
        border-radius: 5px;
    }
    .content ul{
        list-style-type: none;
        padding-left: 20px;
        margin: 0;
    }

    .addButtons{
        display: flex;
        flex-direction: column;
        background-color: transparent;
        justify-content: center;
        align-items: center;
        width: auto;
    }
    .addButtons button{
        margin: 10px;
    }

    #index {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
        width: 80%;
        margin: 0 auto;
        background-color: #1a1a1a;
        border-radius: 5px;
    }
    
    #navigateButton {
        height: 150px;
        width: 200px;
        background-color: #1a1a1a;
        border-radius: 10px;
        outline: none;
        border: none;
        color: #f1f1f1;
        font-size: 24px;
        font-weight: bold;
        transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
    }
    
    #navigateButton:hover {
        background-color: #6d8ba7;
        color: #1a1a1a;
    }
    

    .aboutMe{
        display: flex;
        flex-direction: column;
    }
    .aboutMe article {
        width: auto;
    }
    .experience,.education {
        display: flex;
        flex-direction: column;
        margin: 20px auto;
        padding: 10px;
    }
    .education article {
        background-color: #2a2a2a;
        border-radius: 5px;
        width: auto;
    }
    .education article ul{
        display: inline;
        padding-left: 20px;
        margin: 0;
    }

    .experience article {
        background-color: #2a2a2a;
        border-radius: 5px;
        justify-content: center;
        align-items: center;
        width: auto;
    }
    .experience article .bold{
        text-align: center;
    }


    .skills {
        display: grid;
        grid-template-columns: 1fr;
        margin: 20px auto;
        padding: 10px;
    }
    .contact {
        display: flex;
        flex-direction: column;
        justify-content: center;
        margin: 20px auto;
        padding: 10px;
        background-color: #333;
        border-radius: 5px;
    }
    .contact article {
        background-color: #2a2a2a;
        width: auto;
        border-radius: 5px;
    }

    figcaption {
        color: #f1f1f1;
        font-size: x-small;
        text-align: center;
    }
    .post {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        margin: 20px;
        padding: 10px;
        background-color: #2a2a2a;
        border-radius: 5px;
    }
    .post a{
        color: inherit;
    }
    
    #viewPostSection {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        margin: 20px;
        gap: 20px;
        padding: 10px;
        background-color: #2a2a2a;
        border-radius: 5px;
    }
    
    #viewPostSectionNoImage {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        margin: 20px;
        gap: 20px;
        padding: 10px;
        background-color: #2a2a2a;
        border-radius: 5px;
    }

    #viewPostImageContainer{
        display: flex;
        position: relative;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .viewPostImage{
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .prev, .next {
        cursor: pointer;
        position: absolute;
        width: auto;
        padding: 16px;
        color: white;
        font-weight: bold;
        font-size: 18px;
        transition: 0.6s ease;
        user-select: none;
        background-color: #6d8ba727;
      }
    
    .prev:hover, .next:hover{
        background-color: #6d8ba7cc;
    }
    .prev {
        left: 0;
        border-radius: 0 3px 3px 0;
    }
    .next {
        right: 0;
        border-radius: 3px 0 0 3px;
      }
    
    .dot{
        cursor: pointer;
        height: 15px;
        width: 15px;
        margin: 10px 0 0 5px    ;
        background-color: #555;
        border-radius: 50%;
        display: inline-block;
        transition: background-color 0.6s ease;
    }
    
    .selected, .dot:hover {
        background-color: #6d8ba7;
      }
    
    
    #date{
        color: #848ca5;
    }
    
    #error-message{
        color: #d40606;
        font-weight: bold;
    }
    .error {
        border: 1px solid #d40606;
      }
    
    #icon{
        height: 13px;
        width: auto;
    }
    
    #menu{
        height: 20px;
        width: auto;
        filter: brightness(0) invert(1);
    }

    section {
        display: flex;
        flex-direction: column;
        margin: 20px;
        padding: 10px;
        background-color: #333;
        border-radius: 5px;
    }
    
    article {
        display: flex;
        flex-direction: column;
        margin: 20px;
        padding: 10px;
        width: 50%;
    }
    figure {
        margin: 0 auto;
    }
    footer {
        display: flex;
        justify-content: center;
        align-items: center;
        background-color: #1a1a1a;
        color: #f1f1f1;
        font-weight: bold;
        height: 100px;
    }
    
    form {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 95%;
        margin: 0 auto;
        border-radius: 10px;
        background-color: #2a2a2a;
        padding: 20px;
    }
    

    #editDeleteButtons{
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 30%;
        flex-wrap: wrap;
        margin: 0 auto;
    
    }
    
    #deleteButton:hover{
        background-color: #d40606;
        color: #1a1a1a;
        border: #d40606 solid 1px;
    }
    
    #preview1, #preview2, #preview3{
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        max-width: 300px;
        height: auto;
        margin: 10px auto;
        border-radius: 10px;
        background-color: #b4cfe7;
        padding: 20px;
    }

    input[type="file"] {
        display: none;
    }
    
    label.file-upload {
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 5% auto;
        width: 100px;
        height: 25px;
        border-radius: 5px;
        background-color: #b4cfe7;
        color:#f1f1f1;
        font-size: 12px;
    }
    
    label.file-upload:hover {
        background-color: #6d8ba7;
    }
    
    label.file-upload input[type="file"] {
        display: none;
    }

    input[type="email"],
    input[type="password"],
    input[type="text"] {
        width: 100%;
        margin-bottom: 10px;
        height: 40px;
    }

    form textarea {
        width: 100%;
        margin-bottom: 10px;
        height: 100px;
    }

    input[type="date"]{
        width: 100%;
        margin-bottom: 10px;
        height: 40px;
        border-radius: 5px;
        background-color: #1a1a1a;
        border: none;
        outline: none;
        border: 1px solid #1a1a1a;
    }

    input[type="submit"],
    input[type="reset"] {
        width: 100%;
        padding: 10px;
        border-radius: 5px;
        background-color: #1a1a1a;
        color: #2a2a2a;
        font-size: 16px;
        cursor: pointer;
    }
    input[type="submit"]:hover {
        background-color: #6d8ba7;
    }
    .dieshot {
        width: 275px; /* Set appropriate size */
        height: 182px; /* Set appropriate size */
        background-image: url('../images/Intel\ Core\ i7\ 6700\ CPU\ Die\ Shot\ Low-Res.jpg');
        background-size: cover;
        outline: none;
        border-radius: 5px;
        margin: 0 auto;
    }
    
    .dieshot:hover {
        outline: 3px solid #6d8ba7;
        border-radius: 5px;
    }

    .musicSection{
        width: 90%;
        font-size: small;
    }

}