/* General body styling */
body {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #7e7e7e;
    font-family: "Poppins", sans-serif;
    font-style: italic;
}

/* Header styling */
.ad-header {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 95%;
    max-width: 4000px;
    margin-bottom: 10px;
    gap: 20px;
}

.title-container h1 {
    font-size: 2rem;
    font-weight: bold;
    color: #ffffff;
    margin: 0;
    text-transform: uppercase; /* Optional: make it look more like a title */
    text-align: center;
}

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

/* Toolbar styling */
.toolbar {
    display: flex;
    justify-content: space-between;
    width: 95%;
    max-width: 4000px;
    margin-bottom: 10px;
    padding: 10px;
    background-color: #282c24;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    color: #ffffff;
}

.selection-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.button {
    padding: 10px 20px;
    background-color: #e0f7fa;
    color: #004d40;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.button:hover {
    background-color: #b2ebf2;
}

.button.selected {
    background-color: #26a69a;
    color: white;
    border: 2px solid #00796b;
}

/* Container styling */
.container {
    display: flex;
    flex-wrap: wrap;
    width: 95%;
    max-width: 4000px;
    height: 80vh;
    border: 1px solid #ccc;
    border-radius: 0px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background-color: #000000;
}

.image-wrapper {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-wrapper.half {
    flex: 1 1 50%;
    height: 100%;
}

.image-wrapper.third {
    flex: 1 1 33.33%;
    height: 100%;
}

.image-wrapper.quarter {
    flex: 1 1 50%;
    height: 50%;
}

.image-wrapper img {
    position: absolute;
    max-width: 100%;
    max-height: 100%;
    cursor: move;
    border-radius: 0px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.dropzone {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 1.5rem; /* フォントサイズを少し大きく */
    color: #ffffff; /* 文字色を白にしてコントラストを強調 */
    background-color: rgba(100, 100, 100, 0.9); /* 背景色を少し明るく調整 */
    border: 2px solid #cccccc; /* ボーダーを追加 */
    border-radius: 0px;
    transition: background-color 0.2s ease, border-color 0.2s ease; /* ホバー時の変化を滑らかに */
    cursor: pointer;
}

.dropzone:hover {
    background-color: rgba(150, 150, 150, 0.9); /* ホバー時に背景色を明るく */
    color: #f3f3f3; /* ホバー時の文字色を調整 */
    border-color: #a7a7a7; /* ホバー時のボーダー色を濃く */
}

/* Disclaimer link styling */
.toolbar a.small-button {
    padding: 5px 10px;
    font-size: 12px;
    background-color: #444;
    color: #fff;
    border-radius: 3px;
    text-decoration: none;
    transition: background-color 0.2s;
}

.toolbar a.small-button:hover {
    background-color: #666;
}

/* Main content styling */
main {
    max-width: 800px;
    margin: 20px auto;
    padding: 10px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

section {
    margin-bottom: 20px;
}

h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

p {
    font-size: 1rem;
    line-height: 1.5;
}

footer p a {
    color: #00796b;
    text-decoration: none;
}

footer p a:hover {
    text-decoration: underline;
}
