/* MENUS */

.navcontainer {
  background-color: #ff9142;
  clip-path: polygon(0 0, 97% 0, 100% 100%, 3% 100%);
  padding: 5px;
}

header {
	background: linear-gradient(rgba(0,0,0,0.5) 50%,black 100%), url(/mainpages/m-images/planetary.png);
  background-blend-mode: normal;
  text-align: center;
  padding: 20px;
  clip-path: polygon(0 0, 97% 0, 100% 100%, 3% 100%);
}

.headhead {
  border: 2px solid transparent;
  content: url(/mainpages/m-images/nuhead.png);
}

.headhead:hover {
  border:2px solid white;
}

nav {
  padding-top:20px;
  padding-bottom:20px;
  display: flex;
  justify-content: space-evenly;
}

#navskip {
  color:white;
  background:black;
  padding:2px;
}

.navlink {
  display:inline-block;
  color: white;
  border: 5px solid #ff9142;
	padding: 10px;
  font-family: 'goudy';
	font-size: 1.2em;
  font-weight:normal;
  text-decoration:none;
  width:fit-content;
}

.navlink:hover {
  color:white;
  background-color:#532ae6;
  transform:rotate(355deg);
}

.navlink:visited {
  color:white;
}

.navlink:visited:hover {
  color:white;
}

.navlink:nth-of-type(even):hover {
  background-color:#A20187;
  transform:rotate(5deg);
}

footer {
  position:absolute;
  left:0;
  margin-top:30px;
  background:black;
  color:white;
  text-align: center;
  width:100%;
  border-top: 5px solid #ff9142;
}

footer a, footer a:visited {
  color:white;
}

/* PAGE STRUCTURE */

body {
  background: black url(/mainpages/m-images/planetful.png);
  background-size:contain;
	letter-spacing: 1px;
  padding-top: 3%;
  padding-right:20%;
  padding-left:20%;
  padding-bottom: 3%;
  font-family: 'Arial Narrow', sans-serif;
}

.grid {
  display: grid;
  gap:20px;
  grid-template-columns: auto auto auto auto;
  grid-template-rows: auto auto auto auto;
}

section {
  background-color: #9999FF;
  padding: 20px;
  overflow:scroll;
}

.gridbox_big {
  grid-column-start: 1; grid-column-end: 5;
}

.grid_sm {
  background: #ff9142;
  padding:30px;
}

.grid_sm:nth-of-type(3), .grid_sm:nth-of-type(4) {
  background: #A20187;
  color:white;
}

.grid_sm:nth-of-type(3) a, .grid_sm:nth-of-type(4) a {
  color:white;
}

.gridsmalt {
  background: black;
  padding:30px;
  border: 10px double #ff9142;
  color:white;
}

.gridsmalt a, .gridsmalt a:visited {
  color:white;
}

hr {
  border:none;
  margin-left:-20px;
  margin-right:-20px;
  background: linear-gradient(-45deg, #000000 16px, transparent 0), linear-gradient(45deg, #000000 16px, transparent 0);
  background-repeat: repeat-x;
  background-size: 32px 32px;
  height: 32px;
  margin-bottom:-20px;
}

.hrt {
  border:none;
  margin-left:-20px;
  margin-right:-20px;
  background: linear-gradient(-45deg, #000000 16px, transparent 0), linear-gradient(45deg, #000000 16px, transparent 0);
  background-repeat: repeat-x;
  background-size: 32px 32px;
  height: 32px;
  margin-top:-20px;
  transform:rotate(180deg);
}

/* TEXT */

@font-face {
  font-family: 'goudy';
  src: url(/mainpages/m-fonts/goudy.TTF);
}

h1 {
	font-family: 'Bernard MT';
	font-size: 2em;
  font-weight: normal;
}

h2 {
  font-family: 'Bernard MT';
  font-size:1.5em;
  font-weight: normal;
}

h3 {
  font-family: 'Bernard MT';
  font-size:1.3em;
  font-weight: normal;
}

.caps {
  text-transform: uppercase;
}

p {
	font-size: 1.2em;
}

ul {
	list-style-type: "★ ";
	font-size: 1.2em;
}

li {
  margin: 8px;
}

a {
  color:black;
  font-weight: bold;
}

section a:hover, footer a:hover {
  display:inline-block;
  transform: translateY(-2px);
}

a:visited {
	color: black;
}

.specil {
  filter: invert(1);
}

/* UI */
	
button {
	background-color: #201f2a;
	border: 1px solid #999999;
	color: white;
	display: block;
}

button:hover {
  background-color: #999999;
}

fieldset {
  border: none;
}

.month {
  width:220px;
}

/* IMAGES */
#datez {
  height:200px;
  border-image-source: url(/mainpages/m-images/starbutter.png);
  border-image-slice: 556 560 568 560;
  border-image-width: 40px 40px 40px 40px;
  border-image-repeat: stretch; 
  padding: 20px;
  overflow:hidden;
}

#pic:hover {
  transform:rotate(355deg);
}

#indexa {
  height:300px;
  margin-top:20px;
}

/* ACCESSIBILITY */
@media only screen and (max-width: 1250px) {
  body {
    padding: 3%;
    background: black url(/mainpages/m-images/planetop.png);
    background-repeat:repeat-x;
  }

  .headhead {
    height:5px;
  }

  nav {
    flex-wrap: wrap;
  }

  .navlink {
    margin-bottom:5px;
  }
  
  .navcontainer {
    margin-top: 150px;
  }

  .grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
  }

  section {
    overflow:auto;
  }
  
  .grid_sm {
    width:100%;
    height: auto;
    overflow:auto;
  }

  .grid_sm:nth-of-type(4) {
    background: #ff9142;
    color:black;
  }
  .grid_sm:nth-of-type(4) a {
    color:black;
  }
  .grid_sm:nth-of-type(5) {
    background: #A20187;
    color:white;
  }
  .grid_sm:nth-of-type(5) a {
    color:white;
  }
}

@media only screen and (max-width: 600px)  { 
  .grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
  }

  section {
    overflow:auto;
  }
  
  .grid_sm {
    width:100%;
    height: auto;
    overflow:auto;
  }

  #indexa {
    height:150px;
  }
}

.donty {
  animation: drop 1 2s;
  animation-fill-mode: forwards;
}

.notber {
  display:none;
}

.neighbor {
  display:inline;
}

@keyframes drop {
  0% {
    position:absolute;
  }
  10% {
    transform: rotate(-10deg);
  }
  50% {
    transform: translatey(200px);
  }
  100% {
    display:none;
  }
}