* {

    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
}

body {
    background-color: rgb(3, 28, 36);
    color: MediumSeaGreen;
    overflow-x: hidden;
}

html {

    scroll-behavior: smooth;
}


html {
    background-color: rgb(3, 28, 36);
    text-align: center;
    margin: 0 25px 25px 25px;
}

#title-hr {
    margin: 0 25px;
}

main {
    align-items: flex-start;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
}

/* any section which is a child of main */
main>section {
    border: solid 1px;
    margin-left: 25px;
    margin-right: 25px;
    max-width: 50vw;
    max-height: 55vh;
    overflow: scroll;
    padding: 0 25px 25px 25px;
}

#description-of-the-algorithm {
    text-align: left;
    margin: 25px;
}

#input-section {

    position: sticky;
    top: 0;

}

#n-queens-visualizer-section {
    align-content: center;
    align-items: center;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
}

table {
    border: solid 1px;
    border-collapse: collapse;
    margin: 25px;
}

tr {
    border: solid 1px;
}

td {
    border: solid 1px;
    height: 88px;
    text-align: center;
    width: 88px;
}

/* even rows odd columns */
tr:nth-of-type(2n)>td:nth-of-type(2n+1) {
    background-color: rgba(100, 104, 107, 0.719);
}

/* odd rows even columns */
tr:nth-of-type(2n+1)>td:nth-of-type(2n) {
    background-color: rgba(100, 104, 107, 0.719);
}

td.blue-background {
    background-color: blue !important;
}

td.red-background {
    background-color: red !important;
}

/* paragraphs which do not have a class blue-background  and are inside a section of id log-section*/
#log-section p:not(p.blue-background) {
    margin-top: 5px;
    margin-bottom: 5px;
}

p.blue-background {
    background-color: rgb(150, 150, 255);
    color: white;
    margin-top: 35px;
    margin-bottom: 5px;
}

p.blue-background.normal-margin {
    margin-top: 5px;
    margin-bottom: 5px;
}

p.red-background {
    background-color: rgb(255, 147, 97);
    color: white;
}

p.green-background {
    background-color: rgba(0, 196, 98, 0.8);
    color: white;
}

/* first paragraph inside a section of id log-section */
#log-section p:first-of-type {
    background-color: white;
    position: sticky;
    top: 0;
    /*  -webkit-box-shadow: 0px 5px 5px -5px black;
      -moz-box-shadow: 0px 5px 5px -5px black;
      box-shadow: 0px 5px 5px -5px black;*/
}

/* any anchor tag that is a child of the footer tag */
footer>a {
    text-decoration-line: none;
}

/* any hr tag that is a child of the footer tag */
footer>hr {
    margin: 25px;
    /* margin-left: 25px;
      margin-right: 25px; */
}

@media (max-width: 1180px) {
    main {
        justify-content: center;
    }

    #log-section {
        margin-top: 25px;
    }
}

button {
    margin-left: 20px;
    border-radius: 10px;
    background-color: transparent;
    border-color: mediumseagreen;
    color: mediumseagreen;
    padding: 8px 16px 8px 16px;
}

button:hover {
    background-color: mediumseagreen;

    color: white;

}