body {
    background-color: black;
    color: snow;
    word-wrap: break-word;
    font-size: 12pt;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
}

h1 {
    font-size: 20pt;
}

h2 {
    font-size: 16pt;
    max-width: 100%;
    height: auto;
}

h4 {
    font-size: 8pt;
}

#maincontainer {
    display: grid;
    height: 100vh;
}

#redmaincontainer {
    position: relative;
    height: 100vh;
}

#top {
    display: grid;
    grid-template-columns: 650px 1fr;
    grid-template-areas:
        "logo dropdown";   
    padding: 4px;
}

::-webkit-scrollbar {
    width: 2px;
}

#subredditbuttons {
    grid-area: dropdown;
    text-align: center;
    margin: auto;
}

.dropbtn {
    background-color: orangered;
    color: white;
    padding: 16px;

    font-size: 16px;
    border: none;
    border-radius: 10px;
}

.dropdown {
    position: relative;
    display: inline-block;
    padding: 1px;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #065394;
    min-width: 200px;
    border-radius: 10px;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown:hover .dropbtn {
    background-color: midnightblue;
}

.thesubredditbutton {
    font-size: 12pt;
    border-radius: 5px;
    background-color: red;
    color: white;
}

#redbuttons {
    display: grid;
    grid-template-columns: 1fr 3fr;
    text-align: left;
    grid-area: logo;
    margin: 3px;
}

#searchbarcont {
    position: relative;
    display: grid;
    vertical-align: middle;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
        "redsearch radbutcont"
        "bingsearch radbutcont";
}

#redditsubsearch {
    text-align: right;
    display: inline-block;
    grid-area: redsearch;
    position: absolute;
    bottom: 0;
    right: 0;
}

#redditsearchbar, #bingsearchbar {
    background-color: black;
    color: white;
    letter-spacing: 2px;
    box-shadow: 2px 2px 2px #2bff32;
    border-radius: 5px;
}

#redditbutton, #bingsearchbutton {
    background-color: black;
    color: lime;
    box-shadow: 2px 2px 2px #2bff32;
    border-radius: 5px;
}

#radiobuttoncont {
    text-align: left;
    grid-area: radbutcont;
    margin: auto;
}

.myradiobuttons {
    text-align: left;
    display: inline-block;
}

#bingsearch {
    display: inline-block;
    text-align: right;
    grid-area: bingsearch;
}

::placeholder {
    color: lime;
}

#linksdiv {
    display: inline-block;
    text-align: center;
    margin: auto;
    grid-area: links;
}

.linkscontclass {
    display: inline-block;
    margin: 6px;
}

.alinkbutton {
    background-color: black;
    color: white;
    text-decoration: none;
    font-size: 16pt;
    padding: 4px;
    border-radius: 5px;
}

#redcontainer {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-height: 100%;
    -ms-overflow-style: none;
    scrollbar-width: none;
    overflow-y: auto;
    text-align: center;
}

#redcontainer::-webkit-scrollbar {
    display: none;
}

#divicont1, #divicont2, #divicont3, #divicont4, #divicont5 {
    display: block;
    padding-bottom: 15em;
}

.divcards {
    display: grid;
    background-color: snow;
    color: black;
    margin: 5px;
    padding: 10px;
    overflow-wrap: break-word;
    word-break: break-word;
    align-self: stretch;
    border-radius: 5px;
}

.redbutcont {}

#redbutcont2 {
    display: block;
    text-align: left;  
}

.redditbuttons {
    border-radius: 5px;
    background-color: red;
    color: white;
}

.imagesforpost {
    display: grid;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.images1 {
    max-height: 100%;
    max-width: 100%;
    margin: auto;
}

#iframeme {
    justify-self: stretch;
    align-self: stretch;
    max-height: 100%;
}

#linkgoogle {
    background-color: blue;
}

#linkmsn {
    background-color: lightgreen;
    color: black;
}

#linkfacebook {
    background-color: brown;
}

#linktwitter {
    background-color: orange;
    color: black;
}

#linkinstagram {
    background-color:green;
}

#linkreddit {
    background-color: red;
}

#linkyoutube {
    background-color: yellow;
    color: black;
}

#linkpinterest {
    background-color:violet;
    color: black;
}

#linkyahoo {
    background-color:purple;
}

#linkamazon {
    background-color: gold;
    color: black;
}

#linknetflix {
    background-color: #f51b29;
}

#linktwitch {
    background-color: lightblue;
    color: black;
}

#linkwalmart {
    background-color: #f55a42;
}

#linkebay {
    background-color: lime;
    color: black;
}

#linkzillow {
    background-color: #0777E8;
}

#linkdemons {
    background-color: #37078e;   
}

#linkmore {
    background-color: #545454;
    box-shadow: 2px 2px 2px white;
}

@media (min-width: 1420px) {
    #redcontainer {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    height: 80vh;
    width: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
    overflow-y: auto;
    bottom: 20pt;
    padding: 5pt;
    text-align: center;
}}

@media (min-width: 1750px) {
    #redcontainer {
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        height: 100vh;
        width: auto;
        -ms-overflow-style: none;
        scrollbar-width: none;
        overflow-y: auto;
        padding: 5pt;
        text-align: center;
    }
}
  
@media only screen and (hover: none) and (pointer: coarse){

/* Regular CSS rules here*/
    
    .divcards {
        width: auto;
        height: auto;
        word-wrap: break-word;
    }
    
    img {
        max-width: 100%;
        height: auto;
    }
    
    html, body {
        margin: 0;
        padding: 0;
    }
    
    #maincontainer {
        display: block;
        width: 100%;
        height: webkit-fill-available;
    }
    
    #margin-creator {
    }
    
    .thesubredditbutton {
        font-size: 20pt;
        margin: 3px;
    }
    
    .alinkbutton {
        font-size: 20pt;
    }
    
    .linkscontclass {
        margin: 10px;
    }
    
    #redbuttons {
        position: relative;
        margin: auto;
    }
    
    .images1 {
        height: 100pt;
    }
    
    #redcontainer {
        margin-bottom: 50pt;
    }
    
    #top {
        display: inline-block;
    }
    
    .imagesforpost {
        max-width: 100%;
        height: auto;
    }
    
    #divicont1, #divicont2, #divicont3 {
        max-width: 100%;
        height: auto;
        margin-bottom: 15em;
    }
    
    h1, h2, h4 {
        max-width: 100%;
        height: auto;
    }
}
