@import url('https://fonts.googleapis.com/css2?family=Source+Serif+Pro&display=swap');

/* clear/set defaults */
* {
    margin: 0;
    padding: 0;
    border: 0;
}

a {
    text-decoration: none;
    color: #3a3a3a;
}

a:hover{
    color: darkgoldenrod;
}

body {
    font-family: sans-serif, serif;
    color: #3a3a3a;
}

p {
    font-size: large;
}

h2, h3{
    font-family: 'Source Serif Pro',sans-serif;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: #252525;
    text-align: center;
    margin-bottom: 2px;
    text-decoration: underline;
}




/* header, h1 and logo */
#main-nav {
    display: flex;
    flex-direction: column;
  }

#logo{
    float: left;
    margin: 30px 0 0 20px;
    background: url(../images/irish-flag.jpeg) no-repeat  center /cover;
}

h1 {
    font-family: 'Source Serif Pro',sans-serif;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: #252525;
    text-align: center;
    margin: 120px 0 50px 0;
}

/*header navigation menu*/
#menu {
    margin: 0 100px 0 100px;
    display: flex;
    justify-content: space-evenly;
    height: 100px;
    background-color: aliceblue;   
    font-size: 110%;
    letter-spacing: 4px;
}

#menu a:hover {
    border-bottom: 2px solid darkgoldenrod;
}

#menu li {
    margin: auto 0 auto 0;
    list-style-type: none;
    font-size: larger;
    font-weight: bolder;
}

.active {
    border-bottom: 2px solid black;
}

/*table of contents header*/
#table-contents {
    display: flex;
    justify-content: space-evenly;
    margin: 100px 0 100px 0;
}

.table-of-contents-links {
    border: 1.5px solid black;
    width: 280px;
    height: 410px;
    padding-left: 20px;
}

.table-of-contents-links a:hover{
    border-bottom: 2px solid darkgoldenrod;
}

#table-contents h2{
    margin-top: 10px;
    text-decoration: underline;
    font-size: 120%
}

#table-contents ol {
    padding: 10px;
}

#table-contents li {
    margin: 5px;
}


#main-mc-img {
    height:500px;
    width: 500px;
    background: url("../images/michael-collins1.webp") no-repeat center /cover;
    border-radius: 50%;
}

#mc-fact {
    border: 1.5px solid black;
    width: 280px;
    padding: 10px;
}

#mc-fact p {
    padding: 10px;
}

/*timeline section*/
#timeline {
    display: flex;
    flex-direction: column;
    border: 1px solid black;
    margin: 50px 35px 20px 35px;
}

#timeline h2 {
    background-color: white;
    margin: -19px auto 0 auto;
    width: fit-content;
    text-decoration: none;
    font-size: xx-large;
}

.container-left, .container-right  {
    display: flex;
    justify-content: space-between;
    margin: 20px;
}

.container-right {
    flex-direction: row-reverse;
}

.container-left {
    flex-direction: row;
}

.container-left img, .container-right img {
    max-height: 280px;
    width: auto;
    margin: 0 50px 0 50px;
    border-radius: 5%;
    margin-bottom: 10px;
} 

#signature-img {
    width: auto;
    height: 31px;
}

.main-info-left {
   float: left;
}

.main-info-right {
    float: right;
}

.main-info-right, .main-info-left {
    width: 50%;
    padding: 20px;    
    border: 2px solid brown;   
    text-align: center;
}

.image-block { 
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.image-block figcaption {
    margin: 0 auto;
    max-width: 300px;
    text-align: center;
}

/*Gallery.html*/

  .gallery {
    max-width: 90%;
    margin:30px auto;
    border: 1px solid #252525;
  }

  .gallery .content {
    display: flex;
    justify-content: space-evenly;
    flex-wrap:  wrap;
    align-items: center;
    padding: 20px;
    gap: 5rem;
  }
 
  .content figure {
    text-align: center;
  }

  .content figcaption {
    max-width: 350px;
  }

  .gallery img {
    max-height: 200px;
    max-width: 320px;
    border-radius: 10%;
  }

  .gallery h2 {
    text-decoration: none;
    margin: -15px auto 0 auto;
    background-color: white;
    width: fit-content;
  }
  
  /*form on questions-add-info.html*/
  .form {
    display: flex;
    background: url("../images/mc-funeral.webp") no-repeat center /cover;
    height: 900px;
    margin-top: 50px;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.text-input {
    background: transparent;
    color: #fafafa;
    max-width: 100%;
    height: 25px;
    margin: 5px 0 20px 0;
    border: 1px solid #fafafa;
    border-radius: 2px;
}

.text-input:hover {
    border-color: #f16c6b;
}

.form-fields {
    display: flex;
    flex-direction: column;
    color: #fff;
    background-color: rgba(60, 60, 60, .98);
    max-width: 800px;
    max-height: 800px;
    padding: 30px;
}


.form-fields > h2 {
    color: #fafafa;
    margin-bottom: 40px;
    text-decoration: none;
}

.form-fields > p {
    color: #fafafa;
    margin-bottom: 40px;
}

.form-fields textarea {
    height: 100px;
    
}
::placeholder {
    padding: 4px;
    color: #fff;
}

.submit {
    margin-top: 20px;
    border-radius: 2px;
    padding: 15px 32px 15px 32px;
    text-align: center;
    font-size: 100%;
    background-color: #f15050;
    color: #fafafa;
}

.submit:hover {
    background-color: #fafafa;
    color: #f16c6b;
}

/*footer*/
footer {
    height: 100px;
    margin: 100px 10px;
}

hr {
    border-top: 1px solid #3a3a3a;
    width: 90%;
    margin: 50px auto;
}

.social-media-links {
    text-align: center;
}

.social-media-links li{
    display: inline;
    margin: 3%;
}

.social-media-links i{
    font-size: 150%;
}

.w3c-css-logo {
    text-align: center;
    margin-top: 50px;
}

.w3c-css-logo {
    margin: 40px auto 0 auto;
    border:0;
    width:88px;
    height:31px;
}

/* 404-page */

#center-text{
    text-align: center;
}

.return-to-home {
    margin-top: 20px;
}

.return-to-home a {
    font-size: 2rem;
}


/*reponsive design for devices 1200px and less*/
@media screen and (max-width: 1200px) {
 
    #table-contents {
        margin: 20px 0 20px 0;
        flex-direction: column-reverse;
        justify-content: center;
    }
    

    #main-mc-img {
        height:300px;
        width: 300px;
        margin: 30px auto 30px auto;
    }

    #mc-fact {
        width: 600px;
        padding: 10px;
        margin: 30px auto 30px auto;
    }

    .table-of-contents-links {
        width: 600px;
        height: fit-content;
        padding: 10px;
        margin: 30px auto 30px auto;
    }
   
    .container-left img, .container-right img {
        max-height: 260px;
        max-width: 400px;
    } 
} 

/*responsive design for device 900px and lesss*/
@media screen and (max-width: 900px) {
    #logo{
        position: absolute; 
        left: 0; 
        right: 0; 
        margin-left: auto; 
        margin-right: auto; 
        width: 159px;
        height: auto;
    }

    #menu {
        display: flex;
        flex-direction: column;
        height: 100px;
        width: 300px;
        text-align: center;
        letter-spacing: 2px;
        margin: auto  auto;
    }
    
    #menu li {
        margin: auto 0 auto 0;
        list-style-type: none;
        font-size: large;
        font-weight: bolder;
    }

    #table-contents {
        margin: 20px 10px 20px 10px;
        flex-direction: column-reverse;
        justify-content: center;
    }

    #main-mc-img {
        max-height:200px;
        max-width: 200px;
        margin: 30px auto 30px auto;
    }

    #mc-fact {
        width: fit-content;
        max-width: 600px;
        padding: 10px;
        margin: 30px auto 30px auto;
    }

    .table-of-contents-links {
        width: fit-content;
        max-width: 600px;
        height: fit-content;
        padding: 10px;
        margin: 30px auto 30px auto;
    }

    #timeline {
        display: flex;
        flex-direction: column;
        border: 1px solid black;
        margin: 50px 5px 20px 5px;
    }
    
    #timeline h2 {
        background-color: white;
        margin: -19px auto 0 auto;
        width: fit-content;
        text-decoration: none;
        font-size: xx-large;
    }
    
    .container-left img, .container-right img, .gallery img {
        max-height: 200px;
        max-width: 200px;
        margin: 30px auto ;
    } 
    .gallery iframe {
        max-width: 230px;
        max-height: 150px;
    }

    .container-left, .container-right  {
        display: flex;
        flex-direction: column;
    }

    .main-info-right, .main-info-left {
        width: 80%;
        margin: auto auto;
    }
    
} 