@import url('https://fonts.googleapis.com/css2?family=Exo+2:wght@400;700&family=Ubuntu:wght@400;700&display=swap');

body {
    background: linear-gradient(to bottom, #690000, #000069);
    font-family: 'Ubuntu', sans-serif;
    max-width: 950px;
    margin: 0 auto;
    padding: 60px 20px;
    line-height: 1.6;
}

.footer {
   position: static;
   left: 0;
   bottom: 0;
   width: 100%;
   background-color: transparent;
   color: whitesmoke;
   text-align: center;
}

h1 {
    font-family: 'Exo 2', sans-serif;
    margin-top: 80px;
    color: #ff3333;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 2px solid rgba(255, 0, 0, 0.3);
    padding-bottom: 10px;
}

h1:first-of-type {
    font-size: 3.5rem;
    text-align: center;
    background: linear-gradient(135deg, #ff0000 0%, #660000 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    border: none;
    margin-top: 20px;
    filter: drop-shadow(0 0 10px rgba(255, 0, 0, 0.2));
}

@media (max-width: 900px) {
    h1:first-of-type {
        font-size: 3rem;
    }
}

@media (max-width: 600px) {
    h1:first-of-type {
        font-size: 2.2rem;
    }
}

h2 {
    color: #bbbbbb;
    font-size: 1.3rem;
    font-weight: 300;
    margin-bottom: 20px;
}

h3 {
    font-weight: 400;
    color: #999999;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

ul {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 0;
    list-style: none;
    margin: 25px 0 50px 0;
}

li {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 0, 0, 0.15);
    padding: 10px 18px;
    border-radius: 4px;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

li a {
    color: #ff4d4d;
    text-decoration: none;
    font-weight: bold;
    font-family: 'Exo 2', sans-serif;
}

li:hover {
    background: rgba(255, 0, 0, 0.1);
    border-color: #ff0000;
    transform: translateY(-4px);
    box-shadow: 0 5px 15px rgba(255, 0, 0, 0.3);
}

h1:has(p) {
    display: block;
    background: #1a1c22;
    border: 1px solid #333;
    border-left: 5px solid #5865F2;
    padding: 50px 30px;
    border-radius: 8px;
    text-align: center;
    margin: 80px 0;
}

h1 p {
    margin: 0;
    font-family: 'Ubuntu', sans-serif;
    text-transform: none;
    letter-spacing: normal;
    font-size: 1.2rem;
    color: #ccc;
    line-height: 1.8;
    -webkit-text-fill-color: initial;
}

h1 p a {
    display: inline-block;
    background: #5865F2;
    color: white ;
    padding: 12px 28px;
    border-radius: 4px;
    text-decoration: none ;
    font-weight: bold;
    margin: 15px 5px;
    transition: 0.2s;
    box-shadow: 0 4px 14px rgba(88, 101, 242, 0.4);
}

h1 p a:hover {
    background: #4752C4;
    transform: scale(1.05);
}

li:has(iframe) {
    flex: 1 1 100%;
    background: transparent;
    border: none;
    padding: 0;
}

iframe {
    width: 100%;
    border-radius: 12px;
    border: 1px solid #222;
    margin-top: 15px;
    filter: brightness(0.9) contrast(1.1);
    transition: 0.3s;
}

iframe:hover {
    filter: brightness(1);
    border-color: #ff0000;
}

img[src="/neocities.png"],
img[src="/credit.png"] {
    display: block;
    margin: 80px auto 20px;
    filter: opacity(0.5) grayscale(1);
    transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

img[src="/neocities.png"]:hover,
img[src="/credit.png"]:hover {
    filter: opacity(1) grayscale(0);
}

img[src="/credit.png"]:hover {
    border: 1px solid #ff0000;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.4);
    transform: scale(1.05);
    border-radius: 4px;
}

a:has(img) {
    text-decoration: none;
    border: none;
    display: block;
}

a img[alt="Dubby"],
a img[alt="Fortnite"],
a img[alt="GroveLogo"],
a img[alt="HJCELogo"],
a img[alt="Minecraft"],
a img[alt="VanSpi"] {
    display: inline-block;
    width: 80%;
    min-width: 300px;
    margin: 10px 1%;
    border-radius: 12px;
    border: 1px solid rgba(255, 0, 0, 0.2);
    filter: brightness(0.8) saturate(0.8);
    transition: all 0.3s ease;
}

a img[alt="Dubby"]:hover,
a img[alt="Fortnite"]:hover,
a img[alt="GroveLogo"]:hover, 
a img[alt="HJCELogo"]:hover,
a img[alt="Minecraft"]:hover,
a img[alt="VanSpi"]:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.5);
    border-color: #ff0000;
    filter: brightness(1.1) saturate(1.2);
}

@media (max-width: 700px) {
    a img[alt="Dubby"],
    a img[alt="Fortnite"],
    a img[alt="GroveLogo"],
    a img[alr="HJCELogo"],
    a img[alt="Minecraft"],
    a img[alt="VanSpi"] {
        width: 100%;
        margin: 10px 0;
        display: block;
    }
}

@media (max-width: 600px) {
    body { padding: 40px 15px; }
    h1:first-of-type { font-size: 2.2rem; }
    h1:has(p) { padding: 30px 15px; }
}

.navbar {
  display: flex;
  flex-direction: column; 
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 20px;
  background: transparent; 
}

#navlogo {
  height: 250px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.nav-item {
  text-decoration: none;
  color: #ff3333;
  border: 1px solid #730014; 
  padding: 16px 32px;
  border-radius: 4px;
  background-color: transparent;
  font-size: 24px;
  transition: all 0.2s ease-in-out;
}

.nav-item:hover {
  background-color: transparent;
  color: #ff5555;
  border-color: #ff0000;
  cursor: pointer;
  box-shadow: 0 0 10px #ff0000; 
}

.button-link{
  text-decoration: none;
  color: #ff3333;
  border: 1px solid #730014; 
  padding: auto 20px;
  border-radius: 4px;
  background-color: #000069;
  font-size: 20px;
  transition: all 0.2s ease-in-out;
}

.button-link:hover {
  background-color: transparent;
  color: #ff5555;
  border-color: #ff0000;
  cursor: pointer;
  box-shadow: 0 0 10px #ff0000; 
}

.social{
    gap: 10px;
    display: flex;
    flex-direction: row;
}

.socialimg{
    width: 60px;
}

.socialimg:hover{
    size: 20%;
    transform: translateY(-5px) scale(1.02);
    transition: all 0.2s ease-in-out;
}

@font-face {
  font-family: mcFont;
  src: url(Minecraft.ttf);
}

.MCF {
    font-family: mcFont;
    color: whitesmoke;
    font-size: 40px;
}

.MCBG{

   background-image: url('MinecraftPromoBG.png');
   background-repeat:no-repeat;
   background-size: cover;
   background-attachment: fixed;
}

.MCImg {
    width: 100%;
}

.creditmain {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 20px;
}