
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    font-family: Arial, sans-serif;
}
:root {
    --bg--color: #84D1E0;
    --second-bg-color: #99DEBC;
    --third-bg-color: #E0A087;
    --text-color: #445C61;
    --sub-text-color: #ffffff;
    --third-text-color: #000000;
    --main-color: #1A613E;
}

body {
    min-height: 100vh;
    margin: 0;
    padding: 0;
}
.skip-link {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.skip-link:focus {
    position: static;
    width: auto;
    height: auto;
}
nav {
    background: var(--second-bg-color);
    box-shadow: 3px 3px 5px var(--text-color);
}
nav ul {
    width: 100%;
    height: auto;
    list-style: none;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}
nav li {
    height: 60px;
    font-weight: 600;
}
nav a {
    height: 100%;
    padding: 0 30px;
    display: flex;
    align-items: center;
    color: var(--main-color);
}
nav a:hover {
    background: var(--bg--color);
    color: var(--text-color);
}
nav li:first-child {
    margin-right: auto;
    font-size: 1.7rem;
}
nav i {
    font-size: 2rem;
}
.sidebar {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 250px;
    z-index: 999;
    background-color: rgba(255,255,255,0.4);
    backdrop-filter: blur(10px);
    box-shadow: 10px 0 10px var(--text-color);
    display: none;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
}
.sidebar li {
    width: 100%;
}
.sidebar a {
    width: 100%;
    color: var(--third-text-color)
}

.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

nav button#show-sidebar {
    background: none;
    border: none;
    padding: 0 30px;
    height: 60px;
    color: var(--main-color);
    font-weight: 600;
    font-size: 1.5rem;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    outline-offset: 2px;
}

nav button#show-sidebar:hover,
nav button#show-sidebar:focus {
    background: var(--bg--color);
    color: var(--text-color);
}


/* --- main --- */
/* ----- Home Section Style ----- */
section {
    min-height: 100vh;
}
.home-top {
    background-image: url(/img/homeimg3.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: .1rem .1rem 1rem #445C61;

    display: flex;
    justify-content: center;
    align-items: center;
}
.home-top .home-top-container {
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.home-top-container h1 {
    width: 100vw;
    font-size: 2.5rem;
    padding: 10px 20px;
    background-color: rgba(0, 0, 0, 0.6); /* 半透明の黒で全体カバー */
    color: #ffffff; /* 白文字 */
    /* border-radius: 0.5rem; */
    text-align: center;
}


.home-content .top {
    margin: 6rem;
}
.home-content .top h2 {
    margin-bottom: 3rem;
    font-size: 1.8rem;
    text-align: center;
    color: var(--main-color);
}
.top p {
    margin: 0 auto;
    font-size: 1.2rem;
    width: 80%;
    height: auto;
    color: var(--text-color);
}
.home-content .content {
    margin: 0 auto;
}
.nature-in-Kyushu,
.culture-in-Kyushu,
.cuisine-in-Kyushu {
    margin: 6rem 2rem;
}
.nature-in-Kyushu h3,
.culture-in-Kyushu h3,
.cuisine-in-Kyushu h3 {
    font-size: 2rem;
    text-align: center;
    margin: 1rem;
    /* background-color: #F29F05; */
    color: var(--main-color);
}
.nature-in-Kyushu p,
.culture-in-Kyushu p,
.cuisine-in-Kyushu p {
    margin: 2rem auto;
    width: 70%;
    height: auto;
    font-size: 1.2rem;
    color: var(--text-color);
}
.triggers {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}
.img-wrapper {
    position: relative;
    display: inline-block;
    cursor: pointer;
}
.img-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    box-shadow: 0.1rem 0.1rem 0.5rem var(--text-color);
}
.label {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;  
    height: 100%;  
    transform: translate(-50%, -50%); 
    background: rgba(0,0,0,0.5);
    color: white;
    padding: 20px 40px;
    font-size: 2rem;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.3s;
    text-align: center;
    pointer-events: none;

    display: flex;
    justify-content: center;
    align-items: center;
}
.img-wrapper:hover .label {
    opacity: 1;
}
/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 100;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 50%;
    max-width: 800px; 
    max-height: 650px;
    box-shadow: 0.1rem 0.1rem 1rem var(--text-color);
    overflow: auto;
    padding: 2rem;
    background-color: var(--sub-text-color);
}
.modal-header, 
.modal-body, 
.modal-footer {
    padding: 0.5rem;
    width: 100%; 
    height: auto;
    text-align: center; 
}
.modal-header h4 {
    color: var(--main-color);
    font-size: 1.5rem;
}
.modal-body img {
    width: auto;
    height: auto;
    box-shadow: 0.1rem 0.1rem 1rem var(--text-color);
}
.modal-footer a {
    width: 80%;
    background: var(--main-color);
    padding: 0.5rem 1rem;
    font-size: 1.2rem;
    text-align: center;
    margin-top: 1rem;
    border: none;
    border-radius: 1rem;
    text-decoration: none;
    color: var(--sub-text-color);
}
.modal-footer a:hover {
    color: var(--main-color);
    background: var(--second-bg-color);
}
.close {
    float: right;
    font-size: 24px;
    cursor: pointer;
}

.travel-chart-wrapper {
    overflow-x: auto; 
    -webkit-overflow-scrolling: touch; 
    margin: 5rem 1rem 1rem 1rem;
}
.travel-chart-wrapper h4 {
    color: var(--text-color);
    border-bottom: 2px solid var(--second-bg-color);
    text-align: center;
    font-size: 2.5rem;
    margin: 1rem;
}
.home-article h2 {
    margin: 6rem 0 2rem 0;
    font-size: 1.8rem;
    text-align: center;
    color: var(--main-color);
}
.home-article h3 {
    margin: 4rem 4rem 1.5rem 4rem;
    font-size: 1.8rem;
    text-align: center;
    color: var(--main-color);
}
.home-article p {
    margin: 0 auto;
    font-size: 1.2rem;
    width: 60%;
    height: auto;
    color: var(--text-color);
}
table {
    width: 100%; 
    border-collapse: collapse; 
    text-align: center;
}
table caption {
    margin-bottom: .5rem;
}
thead {
    background-color: #f4f4f4; 
    font-weight: bold;
}

th,td {
    font-family: serif;
    padding: 12px 15px;
    border: 1px solid #ddd;
}
tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}


/* ----- Nature Page ----- */
.nature-page {
    min-height: 100vh;
}
.nature-page .nature-page-header {
    width: 100%;
    min-height: 500px;
    background: url(/img/hotspring-background.jpg);
    background-repeat: no-repeat;
    background-size: cover;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.nature-page .nature-page-header h1 {
    text-align: center;
    width: 50%;
    height: auto;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--sub-text-color);
    background-color: var(--main-color);
    border-bottom: 2px solid var(--second-bg-color);
    border-top: 2px solid var(--second-bg-color);
}
.nature-page .nature-page-header h2 {
    text-align: center;
    width: 100%;
    height: auto;
    font-size: 1.3rem;
    padding: 0.5rem 0;
    background-color: var(--sub-text-color);
    margin-bottom: 1rem;
    color: var(--main-color);
}
.nature-page-content {
    width: 100%;
    height: auto;
}
.hot-spring-header,
.hiking-header,
.marine-header {
    padding: 3rem;
}
.hot-spring-header h3,
.hiking-header h3,
.marine-header h3 {
    font-size: 3rem;
    padding-left: 1rem;
    border-bottom: 2px solid var(--second-bg-color);
}
.hot-spring-header p,
.hiking-header p,
.marine-header p {
    padding-top: 2rem;
    padding-left: 1rem;
    width: 80%;
    font-size: 1.2rem;
    color: var(--text-color);
}
.hot-spring-intro,
.hiking-intro,
.marine-intro {
    padding:  2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.hot-spring-content,
.hiking-content,
.marine-content {
    display: flex;
    flex-direction: row;
    justify-content: flex-start; /* !!!!!!!!!!!!!!! */
    align-items: center;
    gap: 1rem;
    padding-left: 2rem;
}
.hot-spring-content img,
.hiking-content img,
.marine-content img {
    box-shadow: 0.1rem 0.1rem 0.5rem var(--text-color);
    border-radius: 1rem;
}
.hot-spring-description,
.hiking-description,
.marine-description {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
}
.hot-spring-description h4,
.hiking-description h4,
.marine-description h4 {
    font-size: 2.5rem;
    border-bottom: 2px solid var(--second-bg-color);
}
.hot-spring-description p,
.hiking-description p,
.marine-description p {
    font-size: 1.2rem;
    color: var(--text-color);
    padding: 1rem;
}

/* ----- Culture Page ----- */
.culture-page-header {
    width: 100%;
    min-height: 500px;
    background: url(/img/culture-background.jpg);
    background-repeat: no-repeat;
    background-size: cover;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.culture-page .culture-page-header h1 {
    text-align: center;
    width: 50%;
    height: auto;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--sub-text-color);
    background-color: var(--main-color);
    border-bottom: 2px solid var(--second-bg-color);
    border-top: 2px solid var(--second-bg-color);
}
.culture-page .culture-page-header h2 {
    text-align: center;
    width: 100%;
    height: auto;
    font-size: 1.3rem;
    padding: 0.5rem 0;
    background-color: var(--sub-text-color);
    margin-bottom: 1rem;
    color: var(--main-color);
}
.culture-page-intro-content a:hover {
    font-weight: 600;
}
.heritage-header,
.festival-header,
.art-craft-header {
    padding: 3rem;
}
.heritage-header h3,
.festival-header h3,
.art-craft-header h3  {
    font-size: 3rem;
    padding-left: 1rem;
    border-bottom: 2px solid var(--second-bg-color);
}
.heritage-header p,
.festival-header p,
.art-craft-header p  {
    padding-top: 2rem;
    padding-left: 1rem;
    width: 80%;
    font-size: 1.2rem;
    color: var(--text-color);
}
.heritage-intro,
.festival-intro,
.art-craft-intro {
    padding:  2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.heritage-content,
.festival-content,
.art-craft-content {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding-left: 2rem;
}
.heritage-content img,
.festival-content img,
.art-craft-content img {
    box-shadow: 0.1rem 0.1rem 0.5rem var(--text-color);
    border-radius: 1rem;
}
.heritage-description,
.festival-description,
.art-craft-description {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
}
.heritage-description h4,
.festival-description h4,
.art-craft-description h4 {
    font-size: 2.5rem;
    border-bottom: 2px solid var(--second-bg-color);
}
.heritage-description p,
.festival-description p,
.art-craft-description p {
    font-size: 1.2rem;
    color: var(--text-color);
    padding: 1rem;
}
/* --- Cuisine Page --- */
.cuisine-page-header {
    width: 100%;
    min-height: 500px;
    background: url(/img/cuisine-background.jpg);
    background-repeat: no-repeat;
    background-size: cover;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.cuisine-page .cuisine-page-header h1 {
    text-align: center;
    width: 50%;
    height: auto;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--sub-text-color);
    background-color: var(--main-color);
    border-bottom: 2px solid var(--second-bg-color);
    border-top: 2px solid var(--second-bg-color);
}
.cuisine-page .cuisine-page-header h2 {
    text-align: center;
    width: 100%;
    height: auto;
    font-size: 1.3rem;
    padding: 0.5rem 0;
    background-color: var(--sub-text-color);
    margin-bottom: 1rem;
    color: var(--main-color);
}
.localfood-header,
.seafood-header,
.alcohol-header {
    padding: 3rem;
} 
.localfood-header h3,
.seafood-header h3,
.alcohol-header h3  {
    font-size: 3rem;
    padding-top: 2rem;
    padding-left: 1rem;
    border-bottom: 2px solid var(--second-bg-color);
}
.localfood-header p,
.seafood-header p,
.alcohol-header  p  {
    padding-top: 2rem;
    padding-left: 1rem;
    width: 80%;
    font-size: 1.2rem;
    color: var(--text-color);
}
.localfood-intro,
.seafood-intro,
.alcohol-intro {
    padding:  2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.localfood-content,
.seafood-content,
.alcohol-content {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding-left: 2rem;
}
.localfood-content img,
.seafood-content img,
.alcohol-content img {
    box-shadow: 0.1rem 0.1rem 0.5rem var(--text-color);
    border-radius: 1rem;
}
.localfood-description,
.seafood-description,
.alcohol-description {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
}
.localfood-description h4,
.seafood-description h4,
.alcohol-description h4 {
    font-size: 2.5rem;
    border-bottom: 2px solid var(--second-bg-color);
}
.localfood-description p,
.seafood-description p,
.alcohol-description p {
    font-size: 1.2rem;
    color: var(--text-color);
    padding: 1rem;
}
/* --- Contact Page --- */
.contact {
    margin: 1rem auto;
}
.contact .contact-container {
    margin: 0 auto;
    margin-bottom: 1.5rem;
    width: 80%;
    min-height: 200px;
    background-color: var(--second-bg-color);
    box-shadow: 0.1rem 0.1rem 0.8rem var(--text-color);
}
.contact-container h1 {
    text-align: center;
    font-size: 2rem;
    padding: 1rem;
}
.contact-container p {
    margin: 0 auto;
    padding: 1rem;
    width: 90%;
    height: auto;
    font-size: 1.1rem;
}
/* This is a form created as part of a JavaScript class assignment. */
form {
	width: 80%;
	background-color: #ffffff;

	margin:1% auto;
	padding: 1rem;
	border: solid 2px #88A61B;

	display: flex; 
    flex-direction: column;
    justify-content: center;
    align-items: center;

}
fieldset {
	width: 80%;
}
aside {
	clear: both;
	padding-top: 10px;
}
aside.two label {
	font-weight:bold;
	float: left;
	width: 20%;
	text-align: right;
	padding-right: 10px;
	position: relative;
}
aside.two input, div.two select{
	float: left;
	width: 150px;
	text-align: left;
}
aside.two select {
	width: 157px;
	
}
aside.one {
	text-align: center;
}
#submit{
	clear: both;
	width: 150px;
	height: 30px;
	background:#F29F05;
	text-align:center;
	line-height:20px;
	font-size:12px;
	font-weight:bold;
    margin-bottom: 20px;
}
.tooltip {
	display: block; 
	position: absolute; 
	visibility: hidden;
	left: 25em;
	top: 0; 
	width: 10em;
	padding: 0.5em;
	font-weight: normal;
	color: #FFF;
	background-color: #88A61B;
	border:solid 2px #0E3D59;
}
.error {
	color: #D92525;
}
span.error{
	padding-left: 10px;
}
.success {
	color: green;
}
#message {
    width: 60%;
    min-height: 100px;
}
.second-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    gap: 2rem;
}
.contact-infomation {
    border: 2px solid var(--bg--color);
    padding: .5rem 2rem;
}
iframe {
    width: 500px;
    height: 400px;  
}

.vcard .card-link{
    text-decoration: underline;
}


/* --- footer --- */
/* ----- footer ----- */
footer {
    background-color: var(--second-bg-color);
    width: 100%;
    padding: 10px 0;
}
.footer_title{
    max-width: 1320px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}
.footer_title h2 a{
    width: auto;
    display: flex;
    align-items: center;
    margin: 2% 0;
    color: var(--main-color);
}
.footer_menu {
    max-width: 980px;
    margin: auto;
    display: flex;
    justify-content: center;
    list-style-type: none;
}
.footer_menu li{
    text-align: center;
    width: calc(100%/7);
    transition: all  0.3s ease;
}
.footer_menu li:hover{
    background-color: var(--bg--color);
}
.footer_menu li a{
    display: block;
    padding: 1em 0;
    color: var(--main-color);
    text-decoration: none;
    font-weight: 600;
}
.footer_menu li a:hover {
    color: var(--main-color);
    font-size: 1.1rem;
}
.footer-bottom {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center; 
    padding: 2%;
}
#pc-link {
    color: #222;
    font-weight: bold;
    border-left: 4px solid #555;
    padding-left: 0.5em;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer; /* Optional, if it's clickable */
}

  /* Add hover effect */
#pc-link:hover {
    transform: translateX(4px); /* subtle motion */
    text-decoration: underline; /* not just color */
    color: #0055aa; /* contrast maintained */
}
/* error page */
.error-page {
    background: url(/img/error404.jpg);
    background-repeat: no-repeat;
    background-size: cover;
}





/* media query for tablets */
@media screen and (max-width: 880px) {
    .hide-on-mobile {
        display: none;
    }
    .home-top {
        min-height: 500px;
        background-image: url(/img/homeimg3-mb.jpg);
    }
    .home-top-container h1 {
        width: 100vw;
        height: auto;
        font-size: 1.5rem;
        border-radius: .3rem;
        margin-bottom: 1rem;
        color: var(--sub-text-color);
        text-shadow: .1rem .1rem 1rem var(--text-color);
    }
    .home-content .top {
        margin: 3rem;
    }
    .home-content .top h2 {
        margin-bottom: 2rem;
        font-size: 1.8rem;
    }
    .top p {
        font-size: 1.2rem;
        width: 90%;
    }
    .nature-in-Kyushu,
    .culture-in-Kyushu,
    .cuisine-in-Kyushu {
        margin: 4rem 2rem;
    }
    .nature-in-Kyushu h3,
    .culture-in-Kyushu h3,
    .cuisine-in-Kyushu h3 {
        font-size: 1.7rem;
        margin: 1rem;
    }
    .nature-in-Kyushu p,
    .culture-in-Kyushu p,
    .cuisine-in-Kyushu p {
        margin: 1rem auto;
        width: 80%;
        height: auto;
        font-size: 1.2rem;
    }
    .triggers {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 1rem;
    }
    .img-wrapper img {
        margin: 0 auto;
        width: 90%;
        height: auto;
        display: block;
        box-shadow: 0.1rem 0.1rem 0.5rem var(--text-color);
    }
    .label {
        width: 90%;  
        height: 100%;  
        margin: 0 auto;
    }
    .modal {
        width: 80%;
        padding: 1.5rem;
        max-height: 90vh;
    }
    
    .modal-body img {
        max-width: 100%;
        height: auto;
    }
    
    .modal-footer a {
        width: 90%;
        font-size: 1.1rem;
        padding: 0.5rem 1rem;
    }
    .home-article h2 {
        margin-bottom: 2rem;
        font-size: 1.8rem;
    }
    .home-article h3 {
        font-size: 1.7rem;
        margin: 1rem;
    }
    .home-article p {
        margin: 1rem auto;
        width: 80%;
        height: auto;
        font-size: 1.2rem
    }
    .travel-chart-wrapper h4 {
        font-size: 1.5rem;
        margin: 1rem;
    }
    th, td {
        padding: 10px; 
        font-size: 0.9rem; 
    }
    
    caption {
        font-size: 1rem;
        text-align: center; 
    }
    /* ----- Nature Page ----- */
    .nature-page .nature-page-header {
        min-height: 300px;
    }
    .nature-page .nature-page-header h1 {
        width: 50%;
        font-size: 2rem;
    }
    .nature-page .nature-page-header h2 {
        font-size: 1rem;
    }
    .hot-spring-header h3,
    .hiking-header h3,
    .marine-header h3 {
    font-size: 2rem;
    }
    .hot-spring-content,
    .hiking-content,
    .marine-content {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 1rem;
        padding: 0;
    }
    .hot-spring-content img,
    .hiking-content img,
    .marine-content img {
        width: 90%;
        height: auto ;
        box-shadow: 0.1rem 0.1rem 0.5rem var(--text-color);
        border-radius: 1rem;
    }
    .hot-spring-description h4,
    .hiking-description h4,
    .marine-description h4 {
        font-size: 2rem;
    }

    /* --- Culture Page --- */
    .culture-page-header {
        min-height: 300px;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .culture-page .culture-page-header h1 {
        width: 50%;
        font-size: 2rem;
    }
    .culture-page .culture-page-header h2 {
        font-size: 1rem;
    }
    .heritage-header h3,
    .festival-header h3,
    .art-craft-header h3 {
    font-size: 2rem;
    }
    .heritage-content,
    .festival-content,
    .art-craft-content {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 1rem;
        padding: 0;
    }
    .heritage-content img,
    .festival-content img,
    .art-craft-content img {
        width: 90%;
        height: auto ;
        box-shadow: 0.1rem 0.1rem 0.5rem var(--text-color);
        border-radius: 1rem;
    }
    .heritage-description h4,
    .festival-description h4,
    .art-craft-description h4 {
        font-size: 2rem;
    }

    /* --- Cuisine Page --- */
    .cuisine-page-header {
        min-height: 300px;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .cuisine-page .cuisine-page-header h1 {
        width: 50%;
        font-size: 2rem;
    }
    .cuisine-page .cuisine-page-header h2 {
        font-size: 1rem;
    }
    .localfood-header h3,
    .seafood-header h3,
    .alcohol-header h3 {
    font-size: 2rem;
    }
    .localfood-content,
    .seafood-content,
    .alcohol-content {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 1rem;
        padding: 0;
    }
    .localfood-content img,
    .seafood-content img,
    .alcohol-content img {
        width: 90%;
        height: auto ;
        box-shadow: 0.1rem 0.1rem 0.5rem var(--text-color);
        border-radius: 1rem;
    }
    .localfood-description h4,
    .seafood-description h4,
    .alcohol-description h4 {
        font-size: 2rem;
    }

    /* --- Contact Page --- */
    .contact .contact-container {
        min-height: 150px;
    }
    .contact-container h1 {
        font-size: 1.7rem;
    }
    .contact-container p {
        font-size: 1rem;
    }
    .second-container {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    .contact-infomation {
        width: 60%;
        place-items: center;
    }
    /* ----- footer ----- */
    .footer_title {
        width: auto;
    }
    .footer_title h2 span {
        font-size: 0.6em;
    }
    .footer_menu {
        width: auto;
        flex-direction: column; 
        align-items: center;
    }
    .footer_menu li {
        width: 50%; 
        height: 30px; 
        border-left: none; 
        border-right: none;
    }
    .footer_menu li a {
        text-align: center; 
        line-height: 30px;
        padding: 0;
    }
    #bottom {
        padding: 5%;
    }
}

/* media query for mobiles */
@media screen and (max-width: 640px) {
    .sidebar {
        width: 100%;
    }
    iframe {
        width: 400px;
    }
    .home {
        min-height: 400px;
    }
    .home-top {
        min-height: 300px;
        background-image: url(/img/homeimg3-mb2.jpg);
    }
    .modal {
        width: 90%;
        padding: 1rem;
        max-height: 90vh;
    }
    
    .modal-body img {
        max-width: 100%;
        height: auto;
    }
    
    .modal-footer a {
        width: 100%;
        font-size: 1rem;
        padding: 0.5rem;
    }
}
    