@charset "Shift_JIS";

#app {
    width: 100%;
}

body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #f0f0f0;
    height: 100vh;
}

h1{
  margin: 0;
  padding: 0;
  font-size : large;
  background-color : blue;
  text-align : center;
  line-height : 2em;
  color : white;
}

.header {
    width: 100%;
    text-align: center;
}

.content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    flex: 1;
    padding: 5px;
    box-sizing: border-box; /* パディングを含めて高さを計算 */
}

.loading-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8); /* 背景を半透明にする */
    position: absolute;
    top: 0;
    left: 0;
}

.spinner {
    width: 80px;
    height: 80px;
    border: 5px solid rgba(0, 0, 0, 0.1);
    border-top: 5px solid #333;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    margin-top: 20px;
    font-size: 1.2em;
    color: #333;
}

.title_logo {
    margin: 20px 0;
}

.title_logo img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.dropdown {
    position: fixed; /* ドロップダウンを固定 */
    bottom: 270px; /* take-picture ボタンの上に配置 */
    left: 50%;
    transform: translateX(-50%);
}

.dropdown select {
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.take-picture {
    position: fixed; /* ボタンを固定 */
    bottom: 120px; /* フッターの上に配置 */
    left: 50%;
    transform: translateX(-50%);
}

.take-picture button {
    background-color: #999;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 250px;
    height: 120px;
}

.take-picture button img {
    width: 80%;
    height: 80%;
    object-fit: contain;
    margin-bottom: 5px;
}

.take-picture label {
    background-color: #999;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 250px;
    height: 120px;
}

.take-picture label img {
    width: 80%;
    height: 80%;
    object-fit: contain;
    margin-bottom: 5px;
}

.footer {
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 100%;
    background-color: #ddd;
    padding: 10px 0;
    position: fixed; /* フッターを固定 */
    bottom: 0; /* 画面の下に配置 */
    left: 0;
    box-sizing: border-box; /* パディングを含めて幅を計算 */
}

.footer-button-container {
    display: flex;
    justify-content: space-around;
    width: 100%;
}

.footer-button {
    flex: 1;
    display: flex;
    justify-content: center;
}

.footer-button button {
    background-color: #999;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 80%;
    height: 80px;
}

.footer-button button img {
    width: 50%;
    height: 50%;
    object-fit: contain;
    margin-bottom: 5px;
}



.history-item {
    background-color: white;
    border: 1px solid #ccc;
    margin-bottom: 10px;
    border-radius: 5px;
    overflow: hidden;
    width: 100%; /* 幅を100%に設定 */
}

.history-header {
    background-color: #ddd;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%; /* 幅を100%に設定 */
    box-sizing: border-box; /* パディングを含めて幅を計算 */
}

.history-body {
    display: flex;
    flex-wrap: wrap; /* 内容が折り返されるように設定 */
    padding: 10px;
    box-sizing: border-box; /* パディングを含めて幅を計算 */
    width: 100%; /* 幅を100%に設定 */
}

.history-details {
    flex: 2;
}

.history-prompt {
	font-weight: bold;
	color: blue;
	border-width: 0px 0px 1px;
	border-style: solid;
	border-color: #cccccc;
}

.history-thumbnail {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.history-thumbnail img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}


.history-image {
    width: 100%; /* 画像を横幅いっぱいに表示 */
    overflow: hidden;
}

.history-image img {
    width: 100%; /* 画像を横幅いっぱいに表示 */
    height: auto;
    border-radius: 0 0 5px 5px; /* 下部の角を丸める */
}
.description p {
    margin: 5px 0;
}



.prompt-item {
    background-color: white;
    border: 1px solid #ccc;
    margin-bottom: 10px;
    border-radius: 5px;
    overflow: hidden;
    width: 100%; /* 幅を100%に設定 */
}

.prompt-header {
    background-color: #ddd;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%; /* 幅を100%に設定 */
    box-sizing: border-box; /* パディングを含めて幅を計算 */
}

.prompt-body {
    padding: 10px;
    box-sizing: border-box; /* パディングを含めて幅を計算 */
    width: 100%; /* 幅を100%に設定 */
}

.add-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.add-button button {
    background-color: #999;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.add-button button img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.add-button button span {
    margin-top: 5px;
    font-size: 0.75em;
}


.prompt-section {
    margin-bottom: 10px;
}

.prompt-section label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.prompt-section input,
.prompt-section textarea,
.prompt-section select {
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.footer-buttons {
    display: flex;
    justify-content: space-around;
    padding: 10px;
    position: fixed;
    bottom: 20px;
    width: 100%;
    box-sizing: border-box;
}

.footer-buttons button {
    background-color: #999;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.footer-buttons button img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.footer-buttons button span {
    margin-top: 5px;
    font-size: 0.75em;
}

.setting-item {
    background-color: white;
    border: 1px solid #ccc;
    margin-bottom: 10px;
    border-radius: 5px;
    overflow: hidden;
    width: 100%; /* 幅を100%に設定 */
}

.setting-header {
    padding: 10px;
    display: flex;
    flex-direction: column;
    width: 100%; /* 幅を100%に設定 */
    box-sizing: border-box; /* パディングを含めて幅を計算 */
}

.setting-header label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.setting-header input,
.setting-header select {
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.size-details {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

.size-detail {
    background-color: #ddd;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    flex: 1;
    text-align: center;
    margin-right: 10px;
}

.size-detail:last-child {
    margin-right: 0;
}