/* Basic css stuff */
html {
    height: 100%;
}
::-webkit-scrollbar {
    display: none;
}
body {
    font-family: 'Roboto';
    background-color: #c4dfe6;
    min-height: 100%;
    margin: 0;
}

.navContainer {
    position: fixed;
    display: none;
    top: 11px;
    height: 58px;
    width: 60px;
    right: 10px;
    border-radius: 10px;
    z-index: 9;
}
.menuIcon {
    background: #153c6f;
    width: 100%;
    height: 100%;
    border-radius: 25%;
    transition: 0.5s;
}

.hamburger {
    position: absolute;
    right: 8px;
    width: 44px;
    height: 9px;
    bottom: 10px;
    background-color: #66A5Ad;
    transition: 0.5s;
}

.hamburger2 {
    position: absolute;
    right: 8px;
    width: 44px;
    height: 9px;
    bottom: 25px;
    background-color: #66A5Ad;
    transition: 0.5s;
}

.hamburger3 {
    position: absolute;
    right: 8px;
    width: 44px;
    height: 9px;
    bottom: 40px;
    background-color: #66A5Ad;
    transition: 0.5s;
}

.menuIcon:hover {
    background-color: #000000;
    cursor: pointer;
}

.navContainer:hover .hamburger {
    background-color: rgb(207, 207, 207);
    cursor: pointer;
}

.navContainer:hover .hamburger2 {
    background-color: rgb(207, 207, 207);
    cursor: pointer;
}

.navContainer:hover .hamburger3 {
    background-color: rgb(207, 207, 207);
    cursor: pointer;
}

.navContainer:hover .menuIcon {
    background-color: #70b1c2;
    cursor: pointer;
}

.navBar {
    display: none;
    flex-direction: column;
    z-index: 10;
    overflow-x: hidden;
    top: 80px;
    right: 0;
    position: fixed;
    height: 100%;
    background: #7eb6c4;
    opacity: 0.99;
    transition: 0.5s;
    padding-top: 2.1rem;
    font-family: 'Oswald';
}

.navBar.closedNav {
  width: 0%;
}

.navBar.openNav {
  width: 100%

}

.navBar a {
    color: #363636;
    transition: 0.3s;
    text-decoration: none;
}


h1 {
    color: #153c6f;
}

h2 {
    color: #153c6f;
}

h3 {
    color: #153c6f;
}

p {
    color: #153c6f;
}

a:visited {
    color: #153c6f;
}

a:hover {
    color: #153c6f;
    transition: 0.5s;
}

a {
    color: #153c6f;
}

.container {
    width: 1150px;
    margin: auto;
    margin-bottom: 20px;
}

.code {
    background-color: #d5e8ee;
    border-radius: 25px;
    font-size: 15px;
}

.divPostsDisplay {
    display: block;
}

.highlight {
    background-color: #52d1d6;
    padding: 3px;
    border-radius: 5px;
    color: #1263c6;
    font-weight: 500;
}

hr {
    background-color: #c4dfe6;
    border-color: #c4dfe6;
}


.contest {
    background-color: #e7fffe;
    border-color: #1b655e;
    border-style: solid;
    /* border-radius: 25px; */
    height: 200px;
    
}

table {
    /* border-collapse: collapse; */
    width: 100%;
}

.contestOutter {
    overflow: hidden;
    overflow-x: scroll;
}

td,
th {
    border: 1px solid #153c6f;
    text-align: left;
    padding: 8px;
}

th {
    background-color:rgb(184, 255, 243);
}

img {
    width: 100%;
    height: auto;
}


/* Navigation bar stuff */


header {
    background-color: #66A5Ad;
    /*background-image: linear-gradient(to right, #cdcdc036 10%, #dccdad, #cdcdc036 70%);*/
    width: 100%;
    position: fixed;
    height: 80px;
    top: 0;
    margin: 0;
    z-index: 5;
    padding: 0;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

@media print {
    /* In case people want to print our site we'll remove the headers on each page cause it wastes space and destroyed content. */
    header{
        display: none;
    }
}

.navHeader {
    display: inline-block;
    margin: auto;
    margin-top: 16px;
    /* centered using cheese strat */
    text-align: center;
    font-family: 'Oswald';
    margin-left: 20px;
}

.nav {
    list-style-type: none;
    overflow: hidden;
    list-style: none;
    float: right;
    width: 68%;
    font-size: 20px;
    vertical-align: middle;
    margin: auto;
    margin-top: 12px;
    margin-right: 20px;
}

.navLink {
    text-decoration: none;
    padding-left: 15px;
    padding-right: 15px;
    padding-top: 5px;
    padding-bottom: 5px;
    /* padding-top: 10px;
    padding-bottom: 10px;
    border-radius: 10px; */
}

.navLink:hover {
    background-color: #c4dfe6;
    box-shadow: 0px 5px #153c6f;
}

.nav-item {
    font-family: 'Oswald';
    display: inline-block;
    float: right;
    text-align: center;
    padding-top: 15px;
    padding-bottom: 15px;
    border-radius: 10px;
}

.nav-item a[href]:not(:hover) {
    text-decoration: none;
}

.nav-item-active {
    font-weight: 700;
}

.tableDiv {
    overflow-x: auto;
    overflow-y: auto;
    background-color: rgb(118, 173, 255);
}

.tableContest {
    white-space: nowrap;
    width: 100%;
    border-collapse: separate;
}

.tableContest tr {
    border-radius: 5px;
}

.tableContest th, td {
    width: auto !important;
    border-radius: 2px;
}

.tableContest th {
    background-color: #3fb9ff;
    padding: 12px;
}

.tableContest td {
    background-color: rgb(184, 232, 255);
}


/* Column stuff */


.column {
    float: left;
    width: 44.4%;
}

.tags {
    float: right;
    width: 32.5%;
    height: 100%;
}

.tag {
    text-decoration: none;
    margin-left: 5%;
    padding-top: 5px;
    padding-bottom: 5px;
    padding-right: 10px;
    padding-left: 10px;
    background-color: #31aaae;
    border-radius: 10px;
    line-height: 40px;
    white-space: nowrap;
}

.tagWithSmallerMargin {
    text-decoration: none;
    margin: 0.4%;
    padding-top: 3px;
    padding-bottom: 3px;
    padding-right: 7px;
    padding-left: 7px;
    background-color: #31aaae;
    border-radius: 8px;
    line-height: 40px;
    white-space: nowrap;
}

.tag:hover {
    color: white;
    background-color: #3176ae;
}

.tagWithSmallerMargin:hover {
    color: white;
    background-color: #3176ae;
}

.writeups {
    float: left;
    width: 62.5%;
    height: 100%;
}

.writeupTitle {
    font-size: 25px;
    text-decoration: none;
}

.writeupTitle:hover {
    text-decoration: underline;
}

.mainWriteup {
    margin: 2px;
    padding-top: 1px;
    padding-left: 3px;
    padding-right: 3px;
    color: #153c6f;

}

.mainWriteup p {
    font-size: 18px;
    line-height: 2;
    margin: 10px 3px 8px 3px;
    padding: 2px 2px 7px 2px;
}

.memberName {
    margin-left: 20px;
    margin-right: 20px;
    color: #202934;
}

.memberDescription {
    margin-left: 20px;
    margin-right: 20px;
}

.memberBlock {
    height: 200px;
    margin-top: 30px;
    margin-left: 2.5%;
    margin-right: 2.5%;
    border-radius: 25px;
    border-style: solid;
    border-color: #1b655e;
    background-color: #e7fffe;
}

/* Clear floats after the columns */
.row:after {
    content: "";
    display: table;
    clear: both;
}

/* Home Page Stuff */
.home header{
    animation: transitionnav 2s;
}
.home .hometitles {
    animation: transitionin 1.5s;
}
.home .homecontainer {
    animation: transitioncontainer 3s;
}

.homeh1 {
    text-align: center;
    background-color: #e7fffe;
    /* font-family: 'Alegreya Sans SC'; */
    font-size: 90px;
    box-shadow: 10px 10px;
    transition: 1s;
}
.homeh1:hover {
    transform: translate(5px, 5px);
    box-shadow: 5px 5px;
}
.homeh3 {
    text-align: center;
    /* font-family: 'Alegreya Sans SC'; */
    font-size: 30px;
    background-color: #e7fffe;
    padding: 1% 1%;
    box-shadow: 10px 10px;
    transition: 1s;
    
}
.homeh3:hover{
    transform: translate(5px, 5px);
    box-shadow: 5px 5px;
}

.homecontainer {
    display: flex;
    flex-direction: center;
    justify-content: space-evenly;
    align-items: center;
    text-align: center;
    min-height: 45vh;

}

.homebtn {
    /* font-family: 'Alegreya Sans SC'; */
    font-size: 30px;
    width: 300px;
    height: 100px;
    border: none;
    color: #153c6f;
    background-color: #e7fffe;
    border-radius: 4px;
    box-shadow: inset 0 0 0 0 #3fb9ff, 10px 10px rgba(89,87,87,0.85);
    transition: ease-out 0.25s;
    font-size: 2rem;
    outline: none;
    cursor: pointer;
}

.homebtn:hover {
    box-shadow: inset 150px 0 0 150px #3fb9ff, 5px 5px rgba(89,87,87,0.85);
    color:#153c6f;
    cursor: pointer;
    transform: translate(5px, 5px);
}

.homebtn:active {
    transform: translate(10px, 10px);
    box-shadow: inset 150px 0 0 150px #153c6f, 0px 0px rgba(89,87,87,0.85);
    color:#153c6f;
    transition: ease-in 0.1s;
}

#showAll {
    padding: 7px;
    border: 0px;
    border-radius: 9px;
    background-color: rgb(0, 172, 181);
    font-size: 16px;
    font-family: 'Alegreya Sans SC';
}

#showAll:hover {
    background-color: rgb(24, 120, 255);
    color: white;
    cursor: pointer;
    transition: ease-in 0.3s;
}

.flag {
    margin-right: 20px;
    overflow-wrap: break-word;
}

@keyframes transitionin {
    0% {
        transform: translateY(100%);
        opacity: 0;
        pointer-events: none;

    }
    50% {
        opacity: 1;
        transform: translateY(50%);
        pointer-events: none;

    }
    100% {
        transform: translateY(0%);
        opacity: 1;
        pointer-events: none;

    }
}

@keyframes transitionnav {
    0% {
        transform: translateY(-100%);
        opacity:0;
        pointer-events: none;

    }
    50% {
        transform: translateY(-100%);
        pointer-events: none;

    }
    
    100% {
        transform: translateY(0%);
        opacity: 1;
        pointer-events: none;

    }
}

@keyframes transitioncontainer {
    0% {
        transform: translateY(-100%);
        opacity:0;
        pointer-events: none;
    }
    80% {
        transform: translateY(-40%);
        opacity: 0;
        pointer-events: none;
    }
    100% {
        transform: translateY(0%);
        opacity: 1;
        pointer-events: none;

    }
}

/* Footer Stuff */


footer {
    background-color: #153c6f;
    /*background-image: linear-gradient(to right, #cdcdc036 10%, #dccdad, #cdcdc036 70%);*/
    width: 100%;
    text-align: center;
    z-index: 5;
    margin-top: auto;
    padding: 8px 0;
    font-family: 'Oswald';
    position: sticky;
    top: 100%;
    height: 60px;
}

.copyright {
    text-decoration: none;
    display: block;
    margin-top: 20px;
}

.copyright:hover {
    text-decoration: underline;
}


@media only screen and (max-width: 1200px) {
    .container {
        width: 900px;
    }
    .nav {
        width: 60%;
    }
    .navContainer {
        display: none;
    }
    .navBar {
        display: none;
    }
    .homebtn {
        width: 220px;
    }
}

@media(max-width: 992px) {
    .container {
        width: 700px;
    }
    .column {
        width: 100%;
        margin: 0;
        margin-top: 30px;
    }
    .nav {
        width: 50%;
    }
    .navContainer {
        display: none;
    }
    .navBar {
        display: none;
    }
    .homeh1 {
        font-size: 70px;
    }
    .homebtn {
        width: 180px;
    }
}

@media(max-width: 768px) {
    .container {
        width: 90%;
        margin-left: 20px;
        margin-right: 20px;
    }

    .nav-item {
        margin-right: 2vw;
    }
    .nav {
        display: none;
    }
    .navContainer {
        display: block;
    }
    .navBar {
        display: flex;
    }
    .homeh1 {
        font-size: 10vw;
    }
   

    
    .homebtn {
        width: 25vw;
        font-size: 4vw;
        height: 15vw;
    }
    .tags {
        width: 100%;
    }
    .writeups {
        width: 100%;
    }
    .column {
        width: 100%;
        margin: 0;
        margin-top: 30px;
    }
}

/*
System that allows url parameters to control image styles
*/

img[src*="bg=black"] {
    background-color: black;
}

img[src*="bg=grey"] {
    background-color: grey;
}

img[src*="bg=darkgrey"] {
    background-color: darkgrey;
}

img[src*="bg=darkslategrey"] {
    background-color: darkslategrey;
}

img[src*="rounded=1"] {
    border-radius: 8px;
}

blockquote {
    color: #24292e;
    background: #d5e8ee;
    border-radius: 25px;
    padding: 1.5rem
}