
body {
    margin: 0;
    font-family: sans-serif;
    color: #303235;
    background-color: #f3efeb;
    background-image: url(img/europeana-0wFshPu52Uk-unsplash.jpg) ;
    background-blend-mode: soft-light;     /* 混合模式：例如正片疊底 */
    background-size: auto;
    
}

/*整體和字體*/
main {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px 40px;
    margin: 30px 20% 30px 20%;
    align-items: center;
    justify-content: center;
}

h2 {
    margin: 10px 10px 0px 10px;
}

p {
    font-family:Arial ;
    margin: 10px 0px 10px 0px;
    letter-spacing: 0.5px;
    line-height: 25px;
    font-size: 15px;
    color: #303235;
}

b {
    white-space: nowrap;
}

li {
    margin: 10px 30px 10px 30px;
    letter-spacing: 0.5px;
    line-height: 23px;
    font-size: 15px;
}

i {
    font-size: 14px;
    color: #7e7e7e;
    display: flex;
    justify-content: space-between;
}

img{
    border:solid 1px #f5f5f5;
    background-color: white;
    padding: 0px;
    border-radius: 5px;
    box-shadow: 1px 1px 5px 1px rgba(170, 159, 143, 0.5);
}

hr {
  border: none;
  border-top: 1px solid #e0e0e0;
}

.pin {
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
    align-items: center;
    
}

.pin a{
    font-size: 12px;
}

.pin p {
    
    margin: 5px 0px 10px 0px;
    
}

.pin img {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px) saturate(120%);
    -webkit-backdrop-filter: blur(10px) saturate(120%);
    transition: 0.3s ease;
}

.pin img:hover {
    background: rgba(255, 255, 255, 0.8);
    width: 90px;
}

.link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}
.link img {
    padding: 8px;
    opacity: 70%;
    transition: 0.3s ease;
    width: 25px;
}
.link img:hover{
    background-color: #ffffff;
    opacity: 100%;
    width: 25px;
}

/* 收合欄 */



.content {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 10px;
    width: 100%;
}

.flip {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding:10px;
    border-radius: 10px;
    
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px) saturate(120%);
    -webkit-backdrop-filter: blur(10px) saturate(120%);
    cursor: pointer;
    box-shadow: 2px 2px 5px 1px rgba(170, 159, 143, 0.2);
    transition: 0.3s ease-in;
}

.flip img{
    background-color:#f3f3f300;
    border: none;
    padding-right:8px ;
    box-shadow: none;
}
.flip:hover{
     background: rgba(255, 255, 255, 0.8);
}

.panel {
    display: none;
    background:none;
    padding: 20px 5px 10px 5px;
    align-items: center;
}

.pan{
    
    margin: 0 25px 0 25px;
}

.panel a {
    justify-self: start;
}

.panel p {
    padding:0 0 0 15px;
    margin: 10px 0px 10px 0 ;
    line-height: 28px;
}

.close-text {
    display: none;
    align-items: center;
    margin-left: 10px;
    
}

.open-text{
    display: flex;
    align-items: center;
    margin-left: 10px;
    
}

.arrow {
  border: solid rgb(132, 132, 132);
  border-width: 0 3px 3px 0;
  display: inline-block;
  padding: 3px;
  margin-right: 10px;
}
.down {
  transform: rotate(45deg);
  -webkit-transform: rotate(45deg);
}

a:link,a:visited {
  color: #424242;          /* 文字顏色 */
  text-decoration: none;   /* 移除底線 */
  line-height: 20px;
  display: flex;
  flex-direction: column;
  
  align-items: center;

}

/* 滑鼠移入或鍵盤聚焦 */
a:hover,a:focus {
  color: #3f996d;
  text-decoration: underline;
  text-underline-offset: 4px; 
  
}


@media (max-width: 768px) {
    .pan,main,.content{
        grid-template-columns: 1fr;
    }
}









