html, body {
    height: 100%;
}

body {
    background-color: #161617;
    font-family: 'Ubuntu', sans-serif;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Mobile banner */

.mobile-banner {
    display: none;
    width: 100%;
    text-align: center;
    color: white;
}

.overlay {
    display: flex;
    background-color: rgba(0, 0, 0, 0.7);
    position: absolute;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    justify-content: center;
    align-items: center;
}

.some-box {
    background-color: #19191D;
    max-width: 84%;
    padding: 4% 5%;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.some-box .code-line span {
    font-size: 12px;
}

.close-btn {
    background-color: #20202E;
    color: white;
    border-radius: 10px;
    padding: 12px 45px;
}

.algorithm-mobile {
    display: none;
    width: 327px;
    margin: 0  auto;
    background-color: #161617;
}

/* Style the top navigation bar */
.navbar {
    background-color: rgba(32, 32, 46, 0.5); /* Dark background color */
    height: 72px;
    padding: 0 10%;
    color: white;
    min-height: 51px;
}

/* Style the navigation bar links */
.navbar a {
    float: left; /* Make sure that the links stay side-by-side */
    display: block; /* Change the display to block, for responsive reasons (see below) */
    color: white; /* White text color */
    font-size: 14px;
    text-align: center; /* Center the text */
    padding: 28px 20px 28px 20px; /* Add some padding */
    text-decoration: none; /* Remove underline */
    border-bottom: 2px solid transparent;
    width: 122px;
}

/* Right-aligned link */
.navbar a.right {
    font-size: 16px;
    float: right; /* Float a link to the right */
    width: 220px;
    padding-bottom: 26px;
}

.navbar a.right:hover {
    color: white;
    border-bottom: 2px solid transparent;
}


/* Change color on hover/mouse-over */
.navbar a:hover {
    color: #F7931A; /* Black text color */
    border-bottom: 2px solid #F7931A;
}


/* The dropdown container */
.dropdown {
    float: left;
    overflow: hidden;
}

.dropdown:hover .dropdown-content {
    display: block;
}


/* Dropdown content (hidden by default) */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #20202E;
    min-width: 320px;
    box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2);
    z-index: 1;
    top: 72px;
    border-radius: 0 0 20px 20px;
}


/* Links inside the dropdown */
.dropdown-content a {
    font-family: 'Ubuntu', sans-serif;
    float: none;
    color: white;
    padding: 20px 10px;
    text-decoration: none;
    display: flex;
    align-items: center;
    text-align: left;
    width: auto;
    border: none;
}

.dropdown-content .bullet {
    font-size: 25px;
}

.dropdown-content a span {
    color: #F7931A;
    padding: 0 10px;
}

.navbar a:hover, .dropdown:hover .dropbtn {
    color: #F7931A;
    border-bottom: 2px solid #F7931A;
}

.dropdown-content a:hover {
    color: white;
    border: none;
}


/* Main section */

.main {
    display: flex;
    align-items: center;
    margin: 0 auto;
    width: 80%;
    background-color: #161617;
    padding-top: 10px;
}


/* Left part */
.code-container {
    flex: 1 1 auto;
    padding-right: 32px;
}

.code-line {
    display: flex;
    padding: 5px 0;
}
.code-number {
    flex: 1 1 auto;
}


.line-number {
    font-family: sans-serif;
    color: #3E3E5A;
    padding-right: 20px;
}
.line-comment {
    font-family: 'Ubuntu', sans-serif;
    font-style: italic;
    color: #F8F8F1;
}

/* Right part*/
.algorithm-container {
    background: url("../images/circle.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 584px 584px;
    width: 810px;
    display: flex;
}
.algorithm-side {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 260px;
}

.algorithm-middle {
    flex: 260px;
    margin: 0 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.algorithm-step {
    width: 220px;
    height: 72px;
    text-align: center;
    background: #20202E;
    color: #F8F8F1;
    border-radius: 20px;
    padding:  20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dummy-div {
    width: 260px;
    height: 120px;
}

.bitcoin {
    background-image: url("../images/bitcoin.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
    text-align: center;
    width: 132px;
    height: 132px;
    margin: 147px auto;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(247, 147, 26, 1);
    transform: scale(1);
    animation: pulse 3s 21;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(247, 147, 26, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 25px rgba(247, 147, 26, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(247, 147, 26, 0);
    }
}

/*   Footer   */
.footer {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 26px;
    padding: 20px 10%; /* Some padding */
    font-size: 14px;
    background: #161617; /* Grey background */
}

.footer span {
    padding: 0 6px;
    color: #F8F8F1;
}

/* Responsive */

@media screen and (max-width: 1800px) {
    .main {
        width: 82%;
    }
    .navbar {
        padding: 0 9%;
    }


    .algorithm-container {
        background-size: 511px 511px;
        background-position: center;
        width: 710px;
    }
    .algorithm-side {
        flex: 192px;
    }

    .algorithm-middle {
        flex: 192px;
        margin: 0 14px;
    }

    .algorithm-step {
        font-size: 16px;
        width: 192px;
        height: 63px;
        border-radius: 20px;
        padding:  17px;
    }

    .dummy-div {
        width: 227px;
        height: 105px;
    }

    .bitcoin {
        width: 115px;
        height: 115px;
        margin: 129px auto;
    }


}

@media screen and (max-width: 1650px) {

    .line-number {
        font-size: 15px;
    }
    .line-comment {
        font-size: 15px;
    }

    .algorithm-container {

        background-size: 444px 444px;
        background-position: center;
        width: 615px;
    }
    .algorithm-side {
        flex: 168px;
    }

    .algorithm-middle {
        flex: 168px;
        margin: 0 13px;
    }

    .algorithm-step {
        font-size: 15px;
        width: 168px;
        height: 55px;
        padding:  15px;
    }

    .dummy-div {
        width: 168px;
        height: 91px;
    }

    .bitcoin {
        width: 100px;
        height: 100px;
        margin: 114px auto;
    }


}

@media screen and (max-width: 1475px) {

    .navbar {
        height: 60px;
    }

    .navbar a {
        font-size: 12px;
        padding: 23px 20px 23px 20px; /* Add some padding */
        width: 105px;
    }

    .navbar a.right {
        font-size: 14px;
        width: 210px;
        padding-bottom: 21px;
        padding-top: 22px;
    }

    .dropdown-content {
        min-width: 280px;
        top: 60px;
    }

    .dropdown-content a {
        padding: 20px 10px;
        width: auto;
    }

    .dropdown-content .material-icons {
        font-size: 11px;
    }

    main {
        width: 84%;
    }

    .navbar {
        padding: 0 8%;
    }

    .line-number {
        font-size: 14px;
    }
    .line-comment {
        font-size: 14px;
    }

    .algorithm-container {
        background-size: 397px 397px;
        width: 550px;
    }
    .algorithm-side {
        flex: 150px;
    }

    .algorithm-middle {
        flex: 150px;
        margin: 0 12px;
    }

    .algorithm-step {
        font-size: 14px;
        width: 150px;
        height: 49px;
        padding:  13px;
    }

    .dummy-div {
        width: 150px;
        height: 82px;
    }

    .bitcoin {
        width: 90px;
        height: 90px;
        margin: 101px auto;
    }


    .footer {
        height: 22px;
        padding: 17px 10% 20px 10%; /* Some padding */
        font-size: 12px;
    }



}

@media screen and (max-width: 1392px) {
    main {
        width: 86%;
    }
    .navbar {
        padding: 0 7%;
    }

    .algorithm-container {
        background-size: 368px 368px;
        width: 510px;
    }
    .algorithm-side {
        flex: 138px;
    }

    .algorithm-middle {
        flex: 138px;
        margin: 0 11px;
    }

    .algorithm-step {
        font-size: 13px;
        width: 138px;
        height: 45px;
        padding:  12px;
    }

    .dummy-div {
        width: 138px;
        height: 75px;
    }

    .bitcoin {
        width: 83px;
        height: 83px;
        margin: 77px auto;
    }

}

@media screen and (max-width: 1392px) {
    main {
        width: 88%;
    }
    .navbar {
        padding: 0 6%;
    }

    .algorithm-container {
        background-size: 368px 368px;
        width: 510px;
    }
    .algorithm-side {
        flex: 138px;
    }

    .algorithm-middle {
        flex: 138px;
        margin: 0 11px;
    }

    .algorithm-step {
        font-size: 12px;
        width: 138px;
        height: 45px;
        padding:  12px;
    }

    .dummy-div {
        width: 138px;
        height: 75px;
    }

    .bitcoin {
        width: 83px;
        height: 83px;
        margin: 94px auto;
    }

}

@media screen and (max-width: 1300px) {
    .navbar {
        height: 60px;
    }

    .navbar a {
        font-size: 12px;
        padding: 23px 20px 23px 20px; /* Add some padding */
        width: 80px;
    }

    .navbar a.right {
        font-size: 15px;
        width: 160px;
        padding-bottom: 21px;
        padding-top: 22px;
    }

    .dropdown-content {
        min-width: 280px;
        top: 60px;
    }

    .dropdown-content a {
        padding: 20px 10px;
        width: auto;
    }

    .dropdown-content .material-icons {
        font-size: 11px;
    }

    main {
        width: 90%;
    }
    .navbar {
        padding: 0 5%;
    }
    .line-number {
        font-size: 13px;
    }
    .line-comment {
        font-size: 13px;
    }

    .algorithm-container {
        background-size: 292px 292px;
        width: 405px;
    }
    .algorithm-side {
        flex: 110px;
    }

    .algorithm-middle {
        flex: 110px;
        margin: 0 10px;
    }

    .algorithm-step {
        font-size: 11px;
        width: 110px;
        height: 36px;
        padding:  10px;
    }

    .dummy-div {
        width: 110px;
        height: 60px;
    }

    .bitcoin {
        width: 66px;
        height: 66px;
        margin: 76px auto;
    }

    @keyframes pulse {
        0% {
            transform: scale(0.95);
            box-shadow: 0 0 0 0 rgba(247, 147, 26, 0.7);
        }

        70% {
            transform: scale(1);
            box-shadow: 0 0 0 17px rgba(247, 147, 26, 0);
        }

        100% {
            transform: scale(0.95);
            box-shadow: 0 0 0 0 rgba(247, 147, 26, 0);
        }
    }


    .footer {
        height: 22px;
        padding: 17px 10% 20px 10%; /* Some padding */
        font-size: 12px;
    }



}

@media screen and (max-width: 1150px) {
    .navbar {
        height: 51px;
    }

    .navbar a {
        font-size: 11px;
        padding: 19px 20px 19px 20px; /* Add some padding */
        width: 105px;
    }

    .navbar a.right {
        font-size: 13px;
        width: 210px;
        padding-bottom: 18px;
        padding-top: 18px;
    }

    .dropdown-content {
        min-width: 240px;
        top: 51px;
    }

    .dropdown-content a {
        padding: 20px 10px;
        width: auto;
    }

    .dropdown-content .material-icons {
        font-size: 11px;
    }

    .line-number {
        font-size: 11px;
    }
    .line-comment {
        font-size: 11px;
    }

    .footer {
        height: 18px;
        padding: 15px 10% 20px 10%; /* Some padding */
        font-size: 11px;
    }

    .footer .material-icons {
        font-size: 20px;
    }


}

@media screen and (max-width: 1024px) {
    .mobile-banner{
        display: block;
        padding: 90px 0 40px 0;
        font-size: 20px;
    }

    .navbar {
        background-color: #20202E; /* Dark background color */
        display: flex;
        justify-content: space-evenly;
    }

    .dropdown-content {
        top: 201px;
        background-color: #1F1F2C;
    }

    .navbar a.right {
        display: none;
    }

    .code-container{
        display: none;
    }

    .main {
        width: 100%;
        justify-content: center;
        flex: 1 0 auto;
    }

    body {
        justify-content: normal !important;
    }

    .algorithm-container {
        background-size: 511px 511px;
        background-position: center;
        width: 710px;
    }
    .algorithm-side {
        flex: 192px;
    }

    .algorithm-middle {
        flex: 192px;
        margin: 0 14px;
    }

    .algorithm-step {
        font-size: 16px;
        width: 192px;
        height: 63px;
        border-radius: 20px;
        padding:  17px;
    }

    .dummy-div {
        width: 227px;
        height: 105px;
    }

    .bitcoin {
        width: 115px;
        height: 115px;
        margin: 129px auto;
    }

    @keyframes pulse {
        0% {
            transform: scale(0.95);
            box-shadow: 0 0 0 0 rgba(247, 147, 26, 0.7);
        }

        70% {
            transform: scale(1);
            box-shadow: 0 0 0 20px rgba(247, 147, 26, 0);
        }

        100% {
            transform: scale(0.95);
            box-shadow: 0 0 0 0 rgba(247, 147, 26, 0);
        }
    }

    .footer {
        flex-shrink: 0;
    }
}

@media screen and (min-width: 600px) and (max-width: 767px) {
    .dropdown {
        overflow: visible;
        position: relative;
    }

    .container-3 {
        right: 0;
    }

}

@media screen and (max-width: 767px) {
    .algorithm-container {
        display: none;
    }

    .mobile-banner {
        font-size: 14px;
        padding: 62px 0 28px 0;
    }

    .some-box .code-line span {
        font-size: 14px;
    }

    .dropdown-content {
        top: 51px;
    }


    .algorithm-mobile {
        background: url("../images/rectangle.png");
        background-repeat: no-repeat;
        background-position: center;
        background-size: 312px 506px;
        display: block;
        height: 572px;
        width: 360px;
    }

    .row-center {
        display: flex;
        justify-content: center;
    }
    .row-split {
        display: flex;
        justify-content: space-between;
        margin: 22px 0;
    }

    .algorithm-step {
        height: 77px;
        width: 140px;
        font-size: 13px;
        padding: 0 0;
    }
    .outer {
        width: 151px;
        padding: 0 12px;
    }

    .bitcoin {
        width: 118px;
        height: 118px;
        margin: 26px 0 ;
    }

    @keyframes pulse {
        0% {
            transform: scale(0.95);
            box-shadow: 0 0 0 0 rgba(247, 147, 26, 0.7);
        }

        70% {
            transform: scale(1);
            box-shadow: 0 0 0 17px rgba(247, 147, 26, 0);
        }

        100% {
            transform: scale(0.95);
            box-shadow: 0 0 0 0 rgba(247, 147, 26, 0);
        }
    }
}


@media screen and (max-width: 599px) {


    .some-box .code-line span {
        font-size: 12px;
    }

    .navbar {
        width: 100%;
        padding: 0;

    }
    .dropdown{
        width: 33%;
    }

    .dropbtn {
        width: 100% !important;
    }
    .dropdown-content {
        width: 100%;
        border-radius: 0;
        left: 0;
    }

    .dropdown-content a {
        width: 100% !important;
        font-size: 16px;
    }

    .dropdown-content span {

    }

    .navbar a {
        width: 33%;
        padding-left: 0;
        padding-right: 0;
    }


    .mobile-banner {
        font-size: 14px;
        padding: 62px 0 28px 0;
    }

    .dropdown-content {
        top: 155px;
    }

    .algorithm-mobile {
        background: url("../images/rectangle.png");
        background-repeat: no-repeat;
        background-position: center;
        background-size: 284px 460px;
        display: block;
        height: 520px;
        width: 327px;
    }

    .row-center {
        display: flex;
        justify-content: center;
    }
    .row-split {
        display: flex;
        justify-content: space-between;
        margin: 20px 0;
    }

    .algorithm-step {
        height: 70px;
        width: 128px;
        font-size: 12px;
        padding: 0 0;
    }
    .outer {
        width: 138px;
        padding: 0 11px;
    }

    .bitcoin {
        width: 108px;
        height: 108px;
        margin: 26px 0 ;
    }
}


@media screen and (max-width: 374px) {
    .mobile-banner {
        padding: 45px 0 20px 0;
    }

    .dropdown-content {
        top: 130px;
    }

    .algorithm-mobile {
        background-position: center;
        background-size: 284px 440px;
        display: block;
        height: 500px;
        width: 310px;
    }

    .algorithm-step {
        height: 70px;
        width: 120px;
        font-size: 12px;
        padding: 0 0;
    }
    .outer {
        width: 130px;
        padding: 0 11px;
    }

    .bitcoin {
        width: 100px;
        height: 100px;
        margin: 20px 0 ;
    }
}


/* layout change on  320 - 688 */
