html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
}

body {
    overflow: hidden;
}








/**
 * Main-Page-Layout 組件
*/
#main-page-layout {
    display: flex;
    justify-content: center;
    align-items: center;

    background-image: url("main/bg.png");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
}

.inner {
    height: 80%;
    width: 100%;
}


/**
 * Header 組件
*/
.head-section {
    height: 72%;
    width: 100%;
    position: relative;
    display: block;
}

#school-title {
    font-family: 'Oswald', sans-serif;
    font-size: 5em;
    left: 10%;
    position: absolute;
    animation: 
        fade2left 1s ease,
        fadeout 5s ease;
}

#student-number {
    font-family: 'Oswald', sans-serif;
    font-size: 5em;
    right: 10%;
    top: 30%;
    position: absolute;
    animation: 
        fade2right 1s ease,
        fadeout 5s ease;
}


/**
 * Description 組件
*/
.description-section {
    font-size: 2.5em;
    border-right: .1rem solid black; 
    overflow: hidden;
    white-space: nowrap;
    font-family: 'cwTeXFangSong', DFKai-sb, serif;
    animation: 
		typing 1s steps(7, end),
		blink-caret .5s step-end infinite;
}


/**
 * 語言選擇組鍵
*/
#language-select {
    margin: 20px;
}

#language-select a {
    padding: 8px 15px;
    margin: 0 10px;
    border-style: solid;
    border-radius: 5px;
    border-width: .1px;
    background-color: rgb(13, 114, 114);
    color: white;
    cursor: pointer;
    box-shadow: 5px 5px 5px 1px rgba(0, 0, 0, 0.2);
    display: inline-block;
}

#language-select a:active {
    color: black;
    transform: translate(3px, 3px);
}

/**
 * github mark 組件
*/
.githubmark-container {
    display: flex;
    justify-content: center;
    align-items: center;
}







/**
 * 資料可視化 layout
*/
#vis2021s-layout {
    position: relative;
    
}

/**
 * vis2021s d3 force
*/
.force {
    padding: 0;
    margin: 0;
    opacity: 0.3;
    animation: fadeinMid 2s ease;

    background-image: url("vis/bg.png");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
}

#vis-head {
    display: flex;
    justify-content: center;
    align-items: center;
    height:30%;
}

#vis-title {
    font-size: 4.5em;
    font-family: 'cwTeXFangSong', DFKai-sb, serif;
    animation: 
        fade2right 1s ease,
        fadeout 5s ease;
    margin-bottom: 10px;
}

#vis-content{
    height: 70%;
}

#vis-subtitle {
    font-size: 1.5em;
    font-family: 'cwTeXFangSong', DFKai-sb, serif;
    text-decoration: underline;
}

#vis-description {
    font-size: 1.8em;
    height: 5%;
}

#vis-main-content {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 95%;
    
}

.vis-project-demo {
    border-style: solid;
    height: 80%;
    width: 30%;
    margin: 0 30px;
    border-radius: 10px;
    opacity: .5;
    cursor:pointer;
}

.vis-project-demo:hover {
    opacity: 1;
    transition: opacity .5s; 
}

.vis-project-demo span {
    font-size: 1.5em;
}

.vis-project-demo img {
    width: 100%;
    height: 90%;
    object-fit: cover;
}


/**
 * Ca2021s 組件
*/

#three-animation {
    padding: 0;
    margin: 0;
    opacity: 0.6;

    width: 100%;
    height: 100%;
}

#progress-bar-container {
    
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: -100;
    opacity: 0.4;
    background-image: url("ca/bg.jpg");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
}

#progress-bar-outer {
    border-style: solid;
    border-width: .1px;
    border-radius: 10px;
}

#progress-bar-outer span {
    font-family: 'cwTeXFangSong', DFKai-sb, serif;
}

#progress-bar {
    border-radius: 10px;
    background-color: green;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#ca-content {
    font-family: 'cwTeXFangSong', DFKai-sb, serif;
    height: 72%;
}

#ca-description {
    font-size: 1.5em;
    height: 5%;
}

#ca-main-content {
    height: 95%;
}

#ca-head {
    display: flex;
    justify-content: center;
    align-items: center;
    height:28%;
}


.ca-main-description {
    height: 100%;
}

.ca-img-outer {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 95%;
}

.ca-img-container {
    height: 85%;
    width: 30%;
    margin: 0 30px;
    font-size: 1.3em;
    border-radius: 10px;
    border-width: .1px;
    border-style: solid;
    opacity: .1;
}

.ca-img-container:hover {
    opacity: 1;
    transition: opacity .5s; 
}

.ca-img-container img {
    width: 100%;
    height: 90%;
    object-fit: contain;
}



#ca-title {
    font-size: 4.5em;
    font-family: 'cwTeXFangSong', DFKai-sb, serif;
    animation: 
        fade2right 1s ease,
        fadeout 5s ease;
    margin-bottom: 10px;
}

#ca-subtitle {
    font-size: 1.5em;
    font-family: 'cwTeXFangSong', DFKai-sb, serif;
    text-decoration: underline;
}







/**
 * 主要的Layout
*/

.layout {
    height: 100%;
    width: 100%;
}

.center {
    text-align: center;
}


.main-section {
    height: 100%;
    width: 100%;
    position: relative;
}

.main-page-bottom-container {
    height: 3%;
    width: 100%;
    position: absolute;
    bottom: 1%;
    z-index: 100;
}

.main-page-bottom {
    width: 5%;
    display: inline-block;
}

.page-id-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-id {
    display: inline;
    width: 10px;
    height: 10px;
    margin: 0 2px;
    border-style: solid;
    border-width: .1px;
    border-radius: 50%;
    cursor: pointer;
}

.page-activate {
    background-color: rgba(151, 101, 7, 0.575);
}












/**
 * 全域組件
*/
#app {
    height: 100%;
    width: 100%;
    text-align: center;
}

.tilde::after {
    content: "~";
}
.tilde::before {
    content: "~";
}

.upper-layer {
    z-index: 99;
    position:absolute;
}

.bottom-layer {
    z-index: -99;
    position:absolute;
}

/**
 * 動畫效果
*/
@keyframes fade2right {
    from {
        transform: translateX(-10000px);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes fade2left {
    from {
        transform: translateX(10000px);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes fadeout {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}


@keyframes fadeinMid {
    from {
        opacity: 1;
    }
    to {
        opacity: 0.3;
    }
}

@keyframes typing {
	from { width: 0 }
	to { width: 100% }
}

@keyframes blink-caret {
  from, to { border-color: transparent }
  50% { border-color: black; }
}

@keyframes scale-out {
    0% {
      opacity: 1;
      transform: scale(1);
    }
    100% {
      opacity: 0;
      transform: scale(2);
    }
  }

@keyframes scale-in {
    0% {
      opacity: 0;
      transform: scale(0.1);
    }
    100% {
      opacity: 1;
      transform: scale(1);
    }
  }











/**
 * Vue 漸變效果
*/
.fade-enter-active, .fade-leave-active {
    transition: opacity .5s;
}
.fade-enter, .fade-leave-to {
    opacity: 0;
}

.scale-enter-active {
    animation: scale-in .5s;
}

.scale-leave-active {
    animation: scale-out .5s;
}