@charset "UTF-8";

* {
    box-sizing:border-box;
    margin: 0;
    padding: 0;
    list-style: none;
}

.container {
    width: 1200px;
    margin: 0 auto;
}

a {
    text-decoration-line: none;
}

.advertisement {
    text-align:center;
}

.mobile {
    display:none; 
}

/* head-contents */

header {
    background-color:white;
}

.topLogo {
    display: flex;
    justify-content: center;
}

.pc {
    background-color:rgb(157, 224, 160);
}

nav ul {
    display: flex;
}

nav li {
    padding: 10px 30px;
    font-size: 30px;
 
}

nav li a {
    color: white;
}

/* main-contents */

main {
    background-color:antiquewhite;
}

main .container {
    display:flex;
}

.articles {
    width: 70%;
}

.article {
    height: 250px;
    margin: 20px;
    padding: 10px;
    background-color: white;
    box-shadow: 5px 5px 10px rgba(0,0,0,0.5);
    display: grid;
    grid-template-columns: auto auto;
    grid-template-rows: auto auto auto;
}

.article img {
    width: 300px;
    height: 230px;
    object-fit: cover;
    vertical-align: bottom;
    grid-column: 1;
    grid-row: 1/ 3;
}

main .article a {
    color:rgb(157, 224, 160);
    font-size: 24px;
    display: block;
    padding: 30px 10px 10px 10px;
    height: 180px;
    width: 380px;
    grid-column: 2;
    grid-row: 1; 
}

main a:hover {
    text-decoration-line: underline;
}

.article p {
    font-size: 18px;
    grid-column: 2;
    grid-row: 2;
    width: 360px;
    padding-left: 10px;
    color:rgb(160, 160, 160)
}

.profiles {
    width: 30%;

}

.profile {
    background-color: white;
    margin: 20px;
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction:column;
    border-radius: 5px;
    box-shadow: 5px 5px 10px rgba(0,0,0,0.5);

}

.profile img {
    border-radius: 50%;
    vertical-align: bottom;
    
}

.profile p {
    padding:20px;
}

.twitterSummary {
    margin: 20px;
    height: 500px;
    border-radius: 5px;
    box-shadow: 5px 5px 10px rgba(0,0,0,0.5);;

}

.previousNext {
    font-size: 24px;
    color:forestgreen;
    margin: 0 20px 20px 20px;
}

.ContactForm {
    background-color: white;
    margin: 20px;
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction:column;
    border-radius: 5px;
    box-shadow: 5px 5px 10px rgba(0,0,0,0.5);

}

.advertisement {
    background-color: white;
}

/* footer-contents */

footer {
    background-color:rgb(145, 145, 145);
    padding-top: 50px;
    padding-bottom: 100px;

}

.footerTitle {
    font-size: 20px;

}

footer a {
    color: rgb(224, 224, 224);
    text-decoration-line: underline;
}

footer p {
    margin-top: 30px;
}

@media screen and (max-width: 670px) {

        
    .container {
        width: 100%;
        margin: 0 auto;
    }
    
    a {
        text-decoration-line: none;
    }
    
    .advertisement {
        text-align:center;
    }

    .pc {
        display: none;
    }

    .mobile {
        display: block;
        
    }
    
    /* head-contents */
    .mobile nav ul {
        display: block;
    }

    .mobile nav ul a {
        font-size: 15px;
    }

    #hmenu {
        background-color: rgb(157, 224, 160);
        padding: 12px;
    }

    #hcheck, #hclose {display: none;    }

    #hopen {
        display: block;
        width: 58px;
        cursor: pointer;
    }

    #hopen img { display: block; }

    #hclose, nav {
        position: fixed;
        left: 0;
        top: 0;
        height: 100%;
    }

    #hclose {
        z-index: 2;
        width: 100%;
        background-color: black;
        opacity: 0.5;
        transition: 0.5s;
    }

    nav {
        z-index: 3;
        width: 200px;
        background-color: rgba(157, 224, 160, 0.8);
        transition: 0.5s;
        transform: translateX(-100%);
    }

    #hcheck:checked ~ #hclose { display: block;}

    #hcheck:checked ~ nav {
        transform: translateX(0);
        box-shadow: 4px 0 12px rgba(0,0,0,0.4); 
    }

    header {
        background-color:white;
    }
    
    .topLogo {
        display: flex;
        justify-content: center;
    }

    .topLogo img {
        width: 250px;
        object-fit: contain;
    }
    
  
    
    /* main-contents */
    
    main {
        background-color:antiquewhite;
    }
    
    main .container {
        display:block;
    }
    
    .articles {
        width: 360px;
        margin: 0 auto;
        padding-top: 5px;
    }
    
    .article {
        height: 150px;
        margin: 0 5px 5px 5px;
        padding: 10px;
        background-color: white;
        box-shadow: 3px 3px 3px rgba(0,0,0,0.5);
        display: grid;
        grid-template-columns: auto auto auto;
        grid-template-rows: auto auto auto;
    }
    
    .article img {
        width: 150px;
        height: 115px;
        object-fit: cover;
        vertical-align: bottom;
        grid-column: 1;
        grid-row: 1/ 3;
    }
    
   main .article a {
        color:rgb(157, 224, 160);
        font-size: 15px;
        display: block;
        padding: 30px 10px 10px 10px;
        height: 100px;
        width: 180px;
        grid-column: 2;
        grid-row: 1;
    } 
    
    main a:hover {
        text-decoration-line: underline;
    }
    
    .article p {
        font-size: 10px;
        grid-column: 2;
        grid-row: 2;
        width: 180px;
        padding-left: 10px;
        color:rgb(160, 160, 160)
    }
    
    .previousNext {
        font-size: 15px;
        color:forestgreen;
        margin: 0 20px 20px 20px;
    }

    .profiles {
        width: 80%;
        margin: 0 auto;
    
    }
    
    .profile {
        background-color: white;
        margin: 20px 5px 5px 2px;
        padding: 10px;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction:column;
        border-radius: 5px;
        box-shadow: 5px 5px 10px rgba(0,0,0,0.5);
    
    }
    
    .profile img {
        border-radius: 50%;
        vertical-align: bottom;
        
    }
    
    .profile p {
        padding:20px;
    }
    
    .twitterSummary {
        margin: 20px;
        height: 500px;
        border-radius: 5px;
        box-shadow: 5px 5px 10px rgba(0,0,0,0.5);
    
    }

    .ContactForm {
        background-color: white;
        margin: 20px 5px 5px 2px;
        padding: 10px;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction:column;
        border-radius: 5px;
        box-shadow: 5px 5px 10px rgba(0,0,0,0.5);

    }

    
    /* footer-contents */
    
    footer {
        background-color:rgb(145, 145, 145);
        padding-top: 50px;
        padding-bottom: 100px;
    
    }
    
    .footerTitle {
        font-size: 20px;
    
    }
    
    footer a {
        color: rgb(224, 224, 224);
        text-decoration-line: underline;
    }
    
    footer p {
        margin-top: 30px;
    }

    
}