img, div, table {
  max-width: 100%;
  box-sizing: border-box; /* Ensures padding doesn't add to width */
}

body {
  background-color: white;
  overflow-x: clip;
}
#sponsors {
 height: auto;
 display: grid;
grid-template-columns: auto auto auto auto;
grid-template-rows: auto auto;
place-items: center;
}
#sponsor_logo{
  width: 15vw;
  height: auto;
  padding:5vh;
}
#sponsor_hold {
width: 95vw;
position: relative;
bottom: 20%;
display: flex;
justify-content: center;
padding: 10%;
align-content: center;
}

#sponsor_container {
border-radius: 5%;
border-width: 15%;
border-style: solid;
border-color: #ffb74d;
margin: auto;
padding-left: 5%;
padding-right: 5%
}
.gal-button-mobile {
  display:none;
}

#description {
    display: flex;
    align-items: center;
    background-color: #030d1a;
    color: #ffb74d;
    width: 100vw;
    height: 100vh;
}
#description_phone {
    display: none;
}
#f1 {
margin-right: 10%;
margin-left: 5%;
}

#mascot {
    width: 35vw;
    height: 35vh;
    margin-right: 5%;
}

h1 {
    font-family: "Bungee", sans-serif;
    font-size: 400%;
}
h2 {
     font-family: "Ropa Sans", sans-serif;
}
p {
    font-family: "Ropa Sans", sans-serif;
    font-size: 150%;
}
#title_page1 {
    margin-top: -5%;
}

.sec_title {
    position: relative;
    top:-45px;
    left:0px;
    width: 100vw;
    height: fit-content;
    display: flex;
    align-items: center;
    background-image: url(https://i.pinimg.com/originals/4d/1e/75/4d1e755cfeb7839d27dd97b255029cc3.gif) ;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    color: #ffb74d;
    padding-left: 5%;
}

.app {
max-width: 200px;
max-height: 200px;
transition-duration: 0.5s;
transition-timing-function: ease;
transition-property: all;
margin-left: 10%;
opacity: 0.5;
}
.app:hover {
rotate: 15deg;
opacity: 1;
}

#socials {
    position: relative;
    top:-85px;
    display: flex;
    width: 100vw;
    height: 45vh;
    align-items: center;
    justify-content: center;
}
.app img {
max-width: 200px;
max-height: 200px;
opacity: 0.5;
}
#tm {
max-width: 100vw;
width: 100vw;
background-color: #030d1a;
color: #ffb74d;
position: relative;
top:-90px;
padding-top: 1%;
padding-left: 5%;
padding-bottom: 1%
}
.outreach {
  display: grid;
  grid-template-columns: auto auto auto auto ;
  grid:
'title title date date'
'desc desc img img'
'desc desc img img'
'altimg altimg img img'
  ;
}
#tm_dc {
word-wrap; break-word;
overflow: auto;
padding-right: 10%;
}
#title_tm {
grid-area: title;
}
#date_tm {
grid-area: date;
margin-right: 20%;
}
#desc_tm {
grid-area: desc;
max-width: 70vw;
} 
.outreach span {
 max-width: 70vw;
padding-left: 5%;
padding-right: 5%; 
}
#img_tm {
grid-area: img;
height: 25vh;
width: 25vh;
}
#altimg_tm {
grid-area: altimg;
display: flex;
align-items: center;
justify-content: center;
}
.altimg_tm {
opacity: 0.5;
width: 20vh;
height: 20vh;    
filter: blur(2px);
transition-duration: 0.5s;
margin-left: 5%;
}
.altimg_tm:hover {
opacity: 1;
filter: blur(0px);

}

#elfsight {
display: flex;
align-items: center;
justify-content: center;
}

#photos_title {
    position: relative;
    top: -135px;
}
#photos {
    position: relative;
    top: -100px;
}
/* WELCOME TO THE PHONEGROUND, ENTER IF YE DARE MWAHAHAHAHAHAHA */

@media only screen and (max-width: 800px) {
  
  body, html {
  margin: 0;
  padding: 0;
}
.site-wrapper {
  overflow-x: hidden; /* Or overflow-x: clip; for newer browsers */
  position: relative; /* May be needed for the wrapper */
}
  
  
#img-container {
 height: 50vh ;
 width:  70vw ;
   justify-content: center; /* Centers items horizontally */
  align-items: center;     /* Centers items vertically */
  max-width: 100%;
}
  
#tringle-button {
  width: 90px;
  height: 90px;
}
#l-button{
  display: none;
}
#r-button{
  display:none;
  }
  
  .gal-button {
   display: none; 
  }
  .gal-button-mobile {
    display: inline-block;
    width: 200px;
    height: 200px;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    background: transparent;
    border: none;
  }
  .l-button-mobile {
    transform: rotate(270deg);
    width: 150px;
    height: 150px;
  }
  .r-button-mobile {
    transform: rotate(90deg);
    width: 150px;
    height: 150px;
  }
  
#description {
    display: none;
}
#description_phone {
    background-color: #030d1a;
    color: #ffb74d;
    width: 100vw;
    height: 100vh;
    display: grid;
    grid-template-rows: auto auto auto;
    grid-template-columns: 10% 10% 80%;
    grid:
'masc num num'
'td td td'
'desc desc desc'
    ;
}
#mascot {
    width: 20vw;
    height: 20vh;
    filter: invert(100%);
    margin-right: 5%;
    margin-left: 5%;
    grid-area: masc;
}
#title_page1 {
    grid-area: td;
    margin-left: 5%;
}
#desc_p {
    grid-area: desc;
    max-width: 70vw;
    font-size: 150%;
    margin-left: 5%;
}
#team_n {
    grid-area: num;
    margin-right: 5% ;
}
#f1 {
margin-right: 0%;
margin-left: 5%;
}
#title_page1 {
    margin-top: 0%;
    font-size: 190%;
}
.sec_title {
    position: relative;
    max-width: 100vw;
    width: 100vw;
    height: fit-content;
    display: flex;
    align-items: center;
    background-image: url(https://i.pinimg.com/originals/4d/1e/75/4d1e755cfeb7839d27dd97b255029cc3.gif) ;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    color: #ffb74d;
    padding-left: 5%;
    font-size: 190%;
    z-index: 2;
}
.outreach {
  display: grid;
  grid-template-columns: auto auto auto auto ;
  grid:
'title title date date'
'desc desc desc desc'
' altimg altimg img img'
'altimg altimg img img'
  ;
}
#img_tm {
grid-area: img;
height: 20vh;
width: 20vw;
}
.altimg_tm {
opacity: 1;
width: 10vw;
height: 10vh;    
filter: blur(0px);
transition-duration: 0s;
margin-left: 5%;
margin-top: 5%;
}
#tm {
    padding-top: 5%;
    padding-bottom: 5%;
}
#sponsor_logo{
  width: 20vw;
  height: auto;
  padding:5%;
}
}

/** Gallery */

.img-container{
    width: 50vw;
    height: 45vh;
    object-fit: fill;
}
.mySlides{
    display: none;
    width: 70vw;
    height: 55vh;
    animation-timing-function: ease-out ;
    animation-duration: 0.5s;
    animation-name: FadeIn;
}
@keyframes FadeIn {
0% {opacity: 5%;}
100% { opacity: 100%;}
}
#vis {
    display: flex;
}

.slideshow-container {
    display: flex;
    margin: auto;
    align-content: center;
    flex-direction: column;
    width: fit-content;
    height: fit-content;
    justify-content: center;
}

.gal-button-container {
    background-color: transparent;
    border: none;
    display: flex;
    margin: auto;
    align-content: center;
    flex-direction: row;
    width: 100vw;
    height: fit-content;
    justify-content: center;
}
.gal-button{
     background-color: transparent;
    border: none; 
    height: 10vw;
    width: 10vw
}
