.PhotoBooth_Container {
    width: 100%;
    height: 100%;
    position: relative;
}

.Portrait_Container {
    width: fit-content;
    height: 100%;
    margin: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.Layer_Container {
    /* padding: 1em 1em; */
}

.PhotoBooth_Layer {
    width: 100%;
    height: 100%;
}
.PhotoBooth_Layer.Hide {
    display: none;
}

.MenuLayer {
    display: flex;
    flex-wrap: wrap;
    gap: 2em;
    justify-content: center;
    align-items: center;
}
.MenuLayer .MenuCard {
    width: 250px;
    border-radius: 10px;
    background-color: #fff;
    padding: 1.5em;
    display: flex;
    flex-direction: column;
    gap: 2em;
    justify-content: center;
    align-items: center;
    font-size: 1em;
    color: #555;
}

.MenuLayer .MenuCard .MenuIcon {
    font-size: 3em;
    color: #555;
}

.CameraLayer {
    width: 100%;
    height: 100%;
    position: relative;
}

.Camera_Preview {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    overflow: hidden;
    /* 表示順序が適用されるように */
    position: relative;
}

.Camera_Guidelines {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.CameraControlsLayer {
    position: absolute;
    inset: 0;
}

.PhotoBooth_Layer .TopControlsBox {
    position: absolute;
    top: 0;
    right: 0;
    display: grid;
    gap: 2vmin;
    align-items: center;
    justify-items: center;
    background-color: rgba(0,0,0,0.5);
    padding: 10px;
    border-radius: 0 0 0 10px;
}

.PhotoBooth_Layer .BottomControlsBox {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: grid;
    width: 100%;
    background-color: rgba(0,0,0,0.5);
}
.PhotoBooth_Layer .ControlsBox .ControlButton {
    width: 100%;
    padding: 2vmin;
    display: grid;
    place-content: center;
}
.PhotoBooth_Layer .ControlsBox .ControlButton.BottomControlButton {
    padding: 3vmin;
}
.PhotoBooth_Layer .ControlsBox .ControlIcon {
    color: rgb(255,255,255,0.8);
    filter:drop-shadow(5px 5px 5px #555);
}
.PhotoBooth_Layer .ControlsBox .TopControlIcon {
    font-size: 5vmin;
}
.PhotoBooth_Layer .ControlsBox .BottomControlIcon {
    font-size: 6vmin;
}

.ResultControlsLayer {
    position: absolute;
    inset: 0;
}
.PhotoBooth_Layer .ResultControlsBox {
    display: flex;
    gap: 2em;
    justify-content: center;
    padding: 1em;
}
.ResultControlsBox .ResultControlButton {
    width: 250px;
    border-radius: 10px;
    padding: 1.3em;
    font-size: 1em;

    display: flex;
    gap: 1em;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.ResultControlsBox .ResultControlButton.Positive {
    background-color: #fff;
    color: #333;
    font-weight: bold;
}
.ResultControlsBox .ResultControlButton.Negative {
    background-color: transparent;
    color: #fff;
    border: 1px solid;
}

.ResultLayer {
    position: relative;
}

.PhotoPreview {
    width: 100%;
    height: 100%;
    aspect-ratio: 1/1;
    display: block;
}

.FaceDetectionPreview {
    width: 100%;
    height: 100%;
    aspect-ratio: 1/1;
    display: block;
    position: absolute;
    inset: 0;
}

.ModalLayer {
    position: absolute;
    inset: 0;

    display: grid;
    place-content: center;

    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(1px);
    /* Safari対策 */
    -webkit-backdrop-filter: blur(1px);

    font-size: 2em;
}