*{ 
    box-sizing: border-box;
    margin: 0;
    padding:0;
}
header{
    background-color:rgb(222, 222, 222);
}
header h1{
    margin:0;
    display: flex;
    text-align: center;
    align-items: center;
    justify-content: center;
}
main{
    font-family:'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    font-size:large;
    text-align: center;
    padding-left: 8rem;
    padding-right: 8rem;
    padding-top: 20px;
    background-color:rgb(222, 222, 222);
}
h1{
    margin-top: 20px;
    text-align: center;
    font-weight: bold;
    text-decoration: solid;
    font-family:Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    padding:5px;
    border: 4px solid black;
    padding: 30px;
    margin:5px;
}
hr{
    margin-top: 20px;
    margin-bottom: 20px;
}
nav{
    grid-template-columns: 2 / 3;
    grid-template-rows: 2 / -2;
    font-weight:bold;
    font-size:x-large;
    position: sticky;
    font-family:'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
}
nav ul{
    list-style: none;
    padding:0px;
    margin:0px;
    display:flex;
    flex-flow: wrap nowrap
}
nav ul li{
    width: 100%;
}
nav a{
    text-decoration: none;
    color:white;
    background-color:darkred;
    padding: 1rem 0rem;
    display:block;
    text-align: center;
}
nav a:hover {
    background-color:black;
  }

#Home{
    background-image: url(Home.jpg);
    height: 100vh; 
    background-size: contain;
    background-size: cover; 
    background-position: center; 
    background-repeat: no-repeat; 
    width: 100%;
}
#teaching{
    background-image: url(teaching.jpg);
    height: 100vh; 
    background-size: contain;
    background-size: cover; 
    background-position: center; 
    background-repeat: no-repeat; 
    width: 100%;
}
#Me{
    background-image: url(bryce.jpg);
    height: 100vh; 
    background-size: cover; 
    background-position: center center; 
    background-repeat: no-repeat; 
    width: 100%; 
}
#MV{
    background-image: url(MV.jpg);
    height: 100vh; 
    background-size: cover; 
    background-position: center center; 
    background-repeat: no-repeat; 
    width: 100%; 
}
#Language{
    background-image: url(language.jpg);
    height: 100vh; 
    background-size: cover; 
    background-position: center center; 
    background-repeat: no-repeat; 
    width: 100%; 
}

#logo{
    background-image: url(Logo.png);
    background-size: cover; 
    background-position: center; 
    background-repeat: no-repeat; 
    width:138px;
    height: 121px;
    margin-right:20px;
    display: flex;
    align-items: center;
    justify-content: center;
}
#wrapper{
    display:grid;
    align-items: center;
    grid-template-columns: 1fr;
    grid-template-rows:(0px,auto); 
}
.top-left {
    position: absolute;
    padding:100px;
    font-family:cursive;
    font: bold;
    font-size: 80px;
    color: white;
} 
.social{
    color:red;
    font-size: 5rem;
    margin-left: 10px;
    text-decoration: none;
    display: inline-block;
    transition: color 0.3s ease, transform 0.3s ease;
}
.social2{
    color:#007bff;
    font-size: 5rem;
    margin-left: 10px;
    text-decoration: none;
    display: inline-block;
    transition: color 0.3s ease, transform 0.3s ease;
}
.social:hover {
    color: darkred; 
    transform: scale(1.2); 
}
.social2:hover {
    color:#007bff ; 
    transform: scale(1.2); 
}
footer{
    text-align: center;
    background-color: rgb(222, 222, 222);
}
.column {
    float: left;
    width: 30.30%;
    padding: 5px;
}

.row:after {
    content: "";
    clear: both;
    display: table;
}
caption{
    text-align: center;
    font-size: 14px;
    margin-top:5px;
}
form {
    background-color: rgb(232, 232, 232);
    border-radius: 8px; 
    padding: 10px; 
    max-width: 300px; 
    margin: 0 auto; 
}
form {
    background-color: #f9f9f9; 
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 20px auto;
    display: flex;
    flex-direction: column;
    gap: 20px; 
}

label {
    font-weight: bold;
    font-size: 1.1em;
    color: #333;
    margin-bottom: 5px;
}

input, textarea {
    font-size: 1.1em;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    margin-bottom: 15px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

input:focus, textarea:focus {
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

button {
    background-color: #007bff;
    color: white;
    padding: 14px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.2em;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-top: 10px;
    width: 100%; 
}

button:hover {
    background-color: #0056b3;
    transform: translateY(-2px); 
}

button:active {
    background-color: #004085;
    transform: translateY(0);
}

input[type="email"], input[type="tel"], input[type="date"] {
    padding-left: 10px;
}
label {
    display: block; 
    padding: 10px 0;
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    font-weight: bold;
    text-align: left; 
    margin-bottom: 5px;  
}

input[type="email"] {
    width: 100%; 
    padding: 10px;
    margin-bottom: 15px;  
    border: 1px solid #fdfdfd;  
    border-radius: 4px; 
    font-size: 1rem; 
    box-sizing: border-box; 
}
    
#mySubmit {
    width: 10rem;
    padding: 10px;
    background-color: #4CAF50; 
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer; 
    font-size: 1rem; 
}
    
#mySubmit:hover {
    background-color: #45a049;
}
@media only screen and (max-width: 1100px) {
    #wrapper {
        display: grid;
        grid-template-columns: repeat(0, 1fr) minmax(0, 150px) repeat(0, 1fr);  
    }
    
    #MV,
    #teaching,
    #Me, 
    #Home,
    #Language{
        height: 500px; 
    }
    header {
        text-align: center;
    }
    nav {
        font-size: large;
    }
    .column {
        width: 48%;
        display:flex;
        align-items: center;
        flex-direction: column;
        justify-content: flex-start;
    }
    .column img{
        max-width: 100%;
        height:auto;
        margin-right: 10px;
    }
    .column caption {
        flex-grow: 14px;
        text-align: center;
        padding:0 10px;
    }
}
@media screen and (max-width: 900px) {
    #wrapper{
        grid-column: repeat(2, 1fr);
    }
    #logo {
        width: 120px;  
        height: 105px;
        margin-right:10px;
    }
    main {
        padding-left: 2rem;
        padding-right: 2rem;
        font-size: 1rem;
        grid-column: 1 / -2;
    }
    nav{
        position: static;
    }
    nav ul {
        flex-direction: column; 
    }
    #MV,
    #teaching,
    #Me, 
    #Home,
    #Language{
        height: 400px; 
    }
    .top-left {
        padding: 50px;
        font-size: 50px;
        text-align: center;
    }

    .column {
        width: 48%; 
        display:flex;
        align-items: center;
        flex-direction: column;
    }
    .column img{
        max-width: 50%;
        height:auto;
        margin-right: 10px;
    }
    .column{
        font-size: 12px; 
        text-align: center;
        padding: 0 10px;
        margin-top: 5px; 
    }
    footer {
        padding: 10px 0;
    }
}
@media screen and (max-width: 800px){
    #logo{
        width: 100px;
        height: 85px;
        margin-right: 10px;
    }
}
@media (max-width: 600px) {
     #logo{
        width: 100px;
        height: 66px;
        margin-right: 10px;
    }
    #MV,
    #teaching,
    #Me, 
    #Home,
    #Language{
        height: 300px; 
    }
    header h1 {
        font-size: 1.5em;
        text-align: center;
    }
    nav{
        position: static;
        width:100%;
    }
    nav ul li {
        width: 100%; 
        padding: 0; 
        margin: 0; 
    }
    nav ul {
        background-color:darkred;
        display: flex; 
        flex-direction: column !important; 
        padding: 0;
        margin: 0;
        width: 100%; 
        list-style: none;
    }
    nav a {
        padding: 0.8rem;
        display: block; 
        width: 100%; 
    }
    main {
        padding-left: 1rem;
        padding-right: 1rem;
        font-size:1rem;
    }
    footer {
        text-align: center;
        padding: 5px;
    }
    .top-left {
        position: relative;
        padding: 20px;
        font-size: 30px; 
        text-align: center; 
    }
    .column {
        width: 100%; 
        height:100%;
        display: flex;
        align-items: center;
        flex-direction: column;
    }
    .column img{
        width: 100%;
    }
    .column, caption {
        flex-grow: 1;
        text-align: left;
    }
    #Hogan {
        height: 250px; 
    }
    footer {
        text-align: center;
        padding: 5px;
    }
    #mySubmit {
        width: 100%;
    }
}
@media screen and (max-width: 500px){
    #logo{
        display: none;
    }
}