@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@100..900&display=swap');

* {
    font-family: Lexend;
    transition: 0.15s;
}

body {
    margin: 0px;
    color: white;
}

:root {
    --very-pale-yellow:rgb(255, 255, 200);
    --pale-yellow:rgb(255, 240, 175);
    --dark-yellow: rgb(255, 215, 90);
}

h2 {
    text-align: center;
    padding: 10px;
    border-radius: 5px;
    margin: 25px;
    transition: background-color .4s ease, color .4s ease;
}

section {
    padding: 25px;
    transition: .4s ease background-color;
}

section.dark {
    background-color: rgb(20, 20, 20);
}

section.light {
    background-color: white;
}

h2.dark {
    color: white;
    background-color: black;
}

h2.light {
    color: black;
    background-color: var(--pale-yellow);
}

#header.dark {
    background-color: black;
}

#header.light {
    background-color: rgb(33, 33, 33);
}

#submitinput.dark {
    background-color: rgb(10, 10, 10);
}

#submitinput.light {
    background-color: rgb(33, 33, 33);
}

#footer.dark {
    background-color: black;
}

#footer.light {
    background-color: rgb(22, 22, 22);
}


/* header */

#header {
    background-color: black;
    transition: .4s ease background-color;
}

#headertop {
    display: flex;
}

#headertop h1 {
    color: rgb(255, 255, 200);
}

.mushyimg1 {
    position: absolute;
    top: 40px;
    left: 250px;
    width: 50px;
}

#header a {
    font-size: 1.8rem;
    margin: 10px;
    color: white;
    text-decoration: none;
}

#header a:hover {
    color: var(--pale-yellow);
    text-decoration: underline;
}

#nav {
    top: 45px;
    right: 25px;
    position: absolute;
    text-align: right;
    margin: 5px;
}

.soc {
    text-align: right;
    margin: 5px;
}


/* dark/light mode switch, https://www.w3schools.com/howto/howto_css_switch.asp for the switch template*/

.dark-light-mode {
    position: absolute;
    width: 187px;
    padding: 5px;
    border: 2px solid rgb(15, 15, 15);
    border-radius: 5px;
    display: flex;
    box-shadow: 3px 3px rgb(11, 11, 11);
}

.dark-light-mode .mode {
    margin: auto 10px;
}

.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  border-radius: 34px;
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #171730;
  -webkit-transition: .4s;
  transition: .4s;
}

.slider:before {
  border-radius: 50%;
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: rgb(255, 246, 168);
  -webkit-transition: .4s;
  transition: .4s;
}

input:checked + .slider {
  background-color: #c9e7ff;
}

input:checked + .slider:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}

/* intro */

#intro {
    display: flex;
}

#intro img {
    margin: auto 0;
	height: 250px;
    border-radius: 5px;
}

#intro p {
    margin: 5px;
    color: black;
}

#subcounter {
    padding: 15px;
    margin: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    border-radius: 5px;
}

#subcounter.light {
    background-color: rgb(255, 246, 168);
}

#livecounts {
	width: 100%;
	height: 100%;
    border-radius: 5px;
}

/* newest */

#newest {
    display: grid;
    text-align: center;
    color: white;
}

#newest a {
    color: white;
    text-decoration: none;
    transition: 0.1s ease;
}

#newest iframe {
    aspect-ratio: 16 / 9;
    width: 100%;
}

#newest.dark a:hover {
    color: var(--very-pale-yellow);
    text-decoration: underline;
}

#newest.light a:hover {
    color: var(--dark-yellow);
    text-decoration: underline;
}

.news-grid {
    gap: 50px 0px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
}

.news-item {
    width: 80%;
    border-radius: 25px;
    padding: 10px;
    padding-bottom: 20px;
  transition: .4s;
    height: max-content;
}

.news-item.dark {
    border: 2px black solid;
    background-color: rgb(11, 11, 11);

}

.news-item.light {
    border: 2px var(--pale-yellow) solid;
    background-color: rgb(33, 33, 33);
}

.news-item img {
    width: 100%;
    border-radius: 25px;
    margin-bottom: 10px;
}

.news-item iframe {
    width: 100%;
    border: 0;
    border-radius: 25px;
}

.newest-desc {
    color: var(--pale-yellow);
}

/* submit */

#submit {
    text-align: center;
}

#submitinput {
    width: 50%;
    padding: 25px;
    border-radius: 10px;
    margin: 0 auto;
    transition: .4s ease background-color;
}

#submitinput a {
    background-color: black;
    color: white;
    text-decoration: none;
    padding: 10px;
    border-radius: 5px;
    transition: .2s ease;
}

#submitinput a:hover {
    color: var(--pale-yellow);
    text-decoration: underline;
    transition: .4s ease background-color;
}

#submitinput.dark a:hover {
    background-color: rgb(33, 33, 33);
}

#submitinput.light a:hover {
    background-color: rgb(22, 22, 22);
}

.warn {
    color: rgb(255, 75, 75);
}

/* gallery */

#gallery {
    display: grid;
    text-align: center;
}

.art-grid {
    gap: 50px 0px;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.art img {
    max-height: 750px;
    width: auto;
    max-width: 80%;
    border: 3px black solid;
    border-radius: 3px;
}

/* ppg easter egg */

#ppg {
    height: 60px;
    position: relative;
}

#ppgimgA {
    position: absolute;
    height: 100px;
    bottom: -10px;
    left: 100px;
    transition: 0s;
    z-index: 2;
}
#ppgimgA:hover {
    cursor: pointer;
}

#ppgimgB {
    display: none;
    position: absolute;
    height: 125px;
    bottom: -23px;
    left: -60px;
    transition: 0s;
}

/* footer */

#footer {
    background-image: url(imgs/);
    background-color: black;
    transition: .4s ease background-color;
}
 
#credit {
    font-size: 0.75rem;
    color: pink;
}



@media screen and (max-width: 768px) {

    #header {
    }

    #headertop {
        display: flex;
    }

    #headertop h1 {
    }

    .mushyimg1 {
        position: absolute;
        top: 40px;
        left: 250px;
        width: 15%;
    }

    #header a {
        font-size: 1.8rem;
        margin: 10px;
    }

    #header a:hover {
    }

    #nav {
        display: none;
    }

    .soc {
        text-align: right;
        margin: 5px;
    }

    /* newest */
    
    .news-grid {
        grid-template-columns: 1fr;
    }

    .news-item {
        margin: 0 auto;
    }

}