/**
 * NC4 Framework (https://github.com/NC-4/NC4)
 * © NC4 Project.
 *
 * Licensed under The FreeBSD License
 * For full copyright and license information, please see the LICENSE.txt
 * Redistributions of files must retain the above copyright notice.
 *
 * @author  　　一般社団法人 教育のための科学研究所 <https://www.s4e.jp/>
 * @author  　　国立研究開発法人 科学技術振興機構 <https://www.jst.go.jp/>
 * @author  　　リーディング・スキル・テスト株式会社 <https://www.rstest.co.jp/>
 * @copyright  NC4 Project
 * @since      4.0.0
 * @license    https://opensource.org/licenses/BSD-2-Clause FreeBSD License
 */

.em-ads {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    max-height: 300px;
    min-height: 280px;
    padding: 0;
}
.em-ads-label {
    background-color: #fff;
    border-bottom-right-radius: 2px;
    font-size: 76%;
    left: 2px;
    padding: 0 2px;
    position: absolute;
    top: 2px;
}
.em-ads-link {
    display: block;
    text-align: center;
}
.em-ads-link > img {
    max-height: 230px;
}
.em-ads .btn-close {
    display: none;
}

#popup-edumap-ads .em-ads {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    max-height: 100%;
    max-width: 100%;
    padding: 6px;
}
#popup-edumap-ads .em-ads-label {
    background-color: #fff;
    border-bottom-left-radius: 2px;
    font-size: 76%;
    left: 2px;
    padding: 0 2px;
    text-align: center;
    top: 2px;
    width: 40px;
}
#popup-edumap-ads .em-ads-link {
    display: block;
    margin: 2px;
    text-align: center;
}
#popup-edumap-ads .em-ads .btn-close {
    background-color: #fff;
    display: block;
    height: 1.2em;
    position: absolute;
    right: 2px;
    top: 2px;
    width: 1.2em;

    --bs-btn-close-opacity: 1;
    --bs-btn-close-hover-opacity: 1;
}
