* {
    box-sizing: border-box;
}
/* Start Body editing here */
html, body{
margin: 0 auto;
padding: 0 auto;
text-align: center;
background-repeat: no-repeat;
background-color: black;
display: flex;
flex-direction: column;
width: 100%;
overflow-x: hidden;
min-height: 100vh;
background-image: url(Yoshiwp.jpg);
background-attachment: fixed;
}
#body2{
background-image: url(PS3\ wallpaper.jpg);
}
/* End Body editing here */
/* Start Header editing here */
header a{
text-decoration: none;
}
header{
 background-color: #0073e6;
 text-align: center;
 width: 100%;
 height: 65px;
 margin: 0%;
 position: relative;
}
nav a{
text-transform: uppercase;
font-weight: bold;
font-family: arial;
text-align: center;
}
nav ul{
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 15px;
  margin: 0;
  padding: 0;
  list-style: none;
}
nav ul a{
text-shadow: 1px 1px black;
background-color: #0073e6;
transition: 0.5s;
}
nav ul a:hover{
    color: white;
}
a{
    color: #cfb991
}
/* End Header editing here */
/* Start Main editing here */
main{
    flex: 1;
    display: flex;
    flex-direction: column;
}
.container{
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    height: auto;
    margin-top: 20px;
    margin-bottom: 20px;
    font-family: "Archivo Black", sans-serif;
    gap: 20px;
    padding: 0 20px;
}
#Main1, #Main2, #Main3{
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 15px;
}
#Main1 {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: black;
    color: white;
    border: solid 5px blue;
    /* Lock the height to exactly what you want */
    height: 900px; 
    
    /* Allow scrolling only within this box */
    overflow-y: auto; 
    
    /* Optional: Hide horizontal scroll if it appears */
    overflow-x: hidden; 
}
#Main2{
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #b6a47d;
    color: black;
    height: 900px;
    border: solid 5px red;
    overflow-y: auto;
    overflow-x: hidden;
}
#Main3{
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: black;
    color: white;
    height: 900px; 
    overflow-y: auto; 
    overflow-x: hidden; 
    border: solid 5px green;
}
#container2{

}
#Main4{

}
.V1{
    width: 100%;
    height: auto;
    object-fit: cover;
}
.divheader{
background-color: rgba(0, 0, 0, 0.75);
color: gold;
padding-top: 20px;
font-size: 25px;
flex-shrink: 0;
}
.SD1{
    padding: 10px;
    color: white;
}
.certs{
    height: 100%;
    width: 100%;
}
#mainform{
flex-direction: column;
}
/* End Main editing here */
/* Start Form editing here */
#formh1, #formp1, label, input, .copyright{
 font-family: "Archivo Black", sans-serif;
}
#formh1, #formp1{
    color: white;
}
.copyright{
    color: white;
}
form{
    background-color: #0073e6;
    max-width: 400px;
    border-radius: 10%;
    aspect-ratio: 1/1;
    padding: 20px;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    border: 5px solid black;
}
.formbtn{
    background-color: #b6a47d;
    border-radius: 5%;
    padding: 5px;
    transition: 0.5s;
}
.formbtn:hover{
    color: white;
}
.infobox{
    border-radius: 10%;
}
.labeltext{
    color: white;
}
/* End Form editing here */
/* Start Footer editing here */
footer{
background-color: #0073e6;
 text-align: center;
 width: 100%;
 height: 65px;
 margin: 0%;
 position: sticky;
 bottom: 0;
 flex-shrink: 0;
}
/* End Footer editing here */
/* Start Media Query editing here */
/* Tablet and Mobile Styles */
@media screen and (max-width: 768px) {
    .container {
        flex-direction: column; /* Stacks the three main sections vertically */
    }

    #Main1, #Main2, #Main3 {
        width: 100%; /* Ensures they take up the full screen width */
        height: auto; /* IMPORTANT: Removes the 900px limit so content doesn't cut off */
        max-height: none; 
        border-width: 5px; /* Thinner borders look better on small screens */
    }
    
    /* Make the navigation links easier to tap */
    nav ul {
        gap: 20px;
    }
}
@media screen and (max-width: 768px) {
    /* ... previous code ... */

    form {
        max-width: 90%; /* Let the form shrink to fit the screen */
        aspect-ratio: auto; /* Allow the form to grow vertically as needed */
        border-radius: 20px; /* Softer corners for mobile */
    }

    .infobox {
        width: 100%; /* Make inputs full width for easier typing */
        margin-bottom: 10px;
    }
}
@media screen and (max-width: 768px) {
    /* ... previous code ... */

    img, video {
        max-width: 100%;
        height: auto; /* Keeps the aspect ratio perfect */
    }
}
/* End Media Query editing here */