@media (max-width: 991px) {
    html {
        font-size: 55%;
    }

    section {
        padding: 4rem 5%;
    }

    .home {
        flex-direction: column-reverse;
        gap: 2rem;
    }

    .home-img {
        display: block;
        margin: 0 auto;
        width: 100%;
        max-width: 400px;
        height: auto;
    }

    .home .content h1 {
        font-size: 4.5rem;
        text-align: center;
    }

    .content h3 {
        font-size: 3rem;
        text-align: center;
    }

    nav a {
        margin-left: 1.5rem;
    }

    .warning_container {
        padding: 2.5rem 2rem;
    }
    .error_content {
        padding: 3rem 2rem;
        max-width: 98vw;
    }
    .error_content h1,
    .warning_container .error_content h1 {
        font-size: 5rem !important;
    }
    .warning_logo {
        width: 80rem;
        max-width: 98vw;
        margin-left: auto;
        margin-right: auto;
    }
    .warning_logo img {
        width: 100%;
    }
    .warning_text p {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .nav_logo {
        position: fixed;
        top: 0;
        bottom: auto;
        width: 100%;
        padding: 1rem 5%;
        background-color: rgba(0, 0, 128, 0.9);
        z-index: 1000;
    }

    .nav_logo nav {
        display: flex;
        justify-content: space-around;
        align-items: center;
    }

    .nav_logo {
        display: block;
    }

    body {
        padding-top: 25px;
    }

    nav a {
        font-size: 1.6rem;
    }

    .home-img {
        width: 90%;
        max-width: 300px;
        height: auto;
    }

    .blog-headings-large,
    .blog-headings-medium,
    .blog-headings-small {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .img-content-1,
    .img-content-2,
    .img-content-3,
    .video-content,
    .yt-embed {
        display: block;
        margin: 0 auto;
        width: 90%;
        max-width: 280px;
        height: auto;
    }

    .video-content video{
        width: 100%;
        max-width: 280px;
        height: auto; 
    }

    .music-content {
        display: block;
        margin: 0 auto;
        width: 90%;
        max-width: 280px;
    }

    .anim-container {
        flex-direction: column;
        gap: 1.5rem; 
    }

    .anim-project {
        max-width: 100%;
        margin: 0 auto;
    }

    .coding-container {
        flex-direction: column;
        gap: 1.5rem; 
    }

    .error_content h1,
    .warning_container .error_content h1 {
        font-size: 4rem !important;
    }
    .warning_logo {
        width: 50rem;
        max-width: 98vw;
        margin-left: auto;
        margin-right: auto;
    }
    .warning_text p {
        font-size: 2rem;
    }
}

@media (max-width: 600px) {
    html {
        font-size: 50%;
    }

    nav a {
        margin-left: 1rem;
        font-size: 1.4rem;
    }

    .home .content h1 {
        font-size: 4rem;
        text-align: center;
    }

    .content h3 {
        font-size: 2.5rem;
        text-align: center;
    }

    .contacts a {
        margin: 1.5rem 1rem;
    }

    .navagation-bar {
        position: fixed;
        top: 0;
        bottom: auto;
        width: 100%;
        padding: 1rem 3%;
        background-color: rgba(0, 0, 128, 0.9);
    }

    .navagation-bar nav {
        width: 100%;
        display: flex;
        justify-content: space-around;
        align-items: center;
    }

    .navagation-bar .nav_logo {
        display: none;
    }

    nav a {
        margin-left: 0;
    }

    .blog-headings {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .img-content-1,
    .img-content-2,
    .img-content-3,
    .video-content,
    .yt-embed {
        width: 100%;
        max-width: 240px;
        height: auto;
    }

    .video-content video,
    .music-content audio {
        width: 100%;
        max-width: 240px;
        height: auto;
    }

    .home-img {
        width: 95%;
        max-width: 240px;
        height: auto;
    }

    .error_content h1,
    .warning_container .error_content h1 {
        font-size: 25rem;
    }
    .warning_logo {
        width: 52rem;
        max-width: 98vw;
        margin-left: auto;
        margin-right: auto;
    }
    .warning_text p {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 45%;
    }

    nav a {
        font-size: 1.3rem;
    }

    .home-img img {
        width: 95%;
        max-width: 200px;
        height: auto;
    }

    .anim-container {
        gap: 5px;
        margin-top: 5px;
    }

    .anim-project {
        flex: 1 1 150px;
        max-width: 250px;
        margin-bottom: 5px;
    }
    
    .coding-container {
        gap: 5px;
        margin-top: 5px;
    }
    
    .blog-headings {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .img-content-1,
    .img-content-2,
    .img-content-3,
    .video-content,
    .yt-embed {
        width: 100%;
        max-width: 200px;
        height: auto;
    }

    .video-content video,
    .music-content audio {
        width: 100%;
        max-width: 200px;
        height: auto;
    }

    .home-img {
        width: 90%;
        max-width: 200px;
        height: auto;
    }

    .warning_container {
        padding: 2.5rem 1rem;
    }
    .error_content {
        padding: 2rem 0.5rem;
        max-width: 99vw;
    }
    .error_content h1 {
        font-size: 10rem;
        text-align: center;
    }
    .warning_logo {
        width: 80rem;
        max-width: 105vw;
        margin-left: auto;
        margin-right: auto;
    }
    .warning_text p {
        font-size: 1.8rem;
    }
    .copyright {
        font-size: 1.2rem;
    }
}

@media (max-width: 365px) {
    html {
        font-size: 40%;
    }

    nav a {
        font-size: 1.2rem;
    }

    .blog-headings {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .img-content-1,
    .img-content-2,
    .img-content-3,
    .video-content,
    .yt-embed {
        width: 100%;
        max-width: 180px;
        height: auto;
    }

    .video-content video,
    .music-content audio {
        width: 100%;
        max-width: 180px;
        height: auto;
    }

    .home-img {
        width: 100%;
        max-width: 180px;
        height: auto;
    }

    .error_content h1,
    .warning_container .error_content h1 {
        font-size: 2rem;
    }
    .warning_logo {
        width: 52rem;
        max-width: 150vw;
        margin-left: auto;
        margin-right: auto;
    }
    .warning_text p {
        font-size: 2rem;
    }
}