:root {
    --font-color: rgba(255, 255, 255, 0.75);
    --background-color: #13423a;
    --max-width: 800px;
}

html,
body {
    color: var(--font-color);
    font-family: Tahoma, Verdana, Geneva, sans-serif;
    padding: 0;
    margin: 0;
    background-color: var(--background-color);
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    flex: 1;
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    box-sizing: border-box;
    padding: 0 1rem;
}

.header {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.header-right {
    display: flex;
    justify-content: center;
    align-items: center;

}

.site-name {
    position: relative;
    padding: 1.5rem 0;
    font-style: italic;
    white-space: nowrap;
}

.tagline {
    font-weight: bold;
    font-size: 110%;
    font-style: italic;
    color: white;
}

.title {
    position: relative;
    font-size: 190%;
    font-weight: bold;
    padding: 1.5rem 0;
}

.editable:hover .editButton {
    background-color: rgb(119, 142, 189);
}

.section {
    position: relative;
    padding: 1rem 1rem 1rem 1rem;
    border-radius: 1rem;
    margin: 1rem 0;
}

.section-big-image {
    position: relative;
    padding: 0 1rem;
    margin: 0;
}

.section-wrap-square {
    position: relative;
    margin: 0;
}

.section-wrap-vertical {
    position: relative;
    margin: 0;
}

.section-wrap-square::after {
    content: "";
    display: table;
    clear: both;
}

.section-wrap-vertical::after {
    content: "";
    display: table;
    clear: both;
}

.section-background-on {
    background-color: rgba(0, 0, 0, 0.25);
}

.image_ {
    width: 100%;
    height: 10rem;
    border-radius: .5rem;
    object-fit: cover;
    object-position: center;
}

.image_section_wrap_square {
    width:10rem;
    height: 10rem;
    border-radius: 1rem;
    object-fit: cover;
    object-position: center;    
    float: left; 
    margin-right: 1rem;
    margin-top: 1rem;
}

.image_section_wrap_vertical {
    width:10rem;
    height: 30rem;
    border-radius: 1rem;
    object-fit: cover;
    object-position: center;    
    float: left; 
    margin-right: 1rem;
    margin-top: 1rem;
}

.image_section_big_image {
    position: relative;
    border-radius: 1rem;
    width: 100%;
}

.image-thumbnail {
    padding: .25rem;
    height: 3rem;
    border-radius: .65rem;
}

.image-thumbnail:hover {
  padding: 0; 
   border-top: .25rem solid rgba(255, 255, 255, 0.45);
   border-left: .25rem solid rgba(255, 255, 255, 0.45);
   border-right: .25rem solid rgba(0, 0, 0, 0.45);
   border-bottom: .25rem solid rgba(0, 0, 0, 0.45);
}

.section-column {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.section-yt {
    position: relative;
}

.yt-wrapper {
    width: 100%;
    margin: 0rem;
    aspect-ratio: 16 / 9; 
}

.hidable {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease;
}

.hidable.expanded {
    max-height: 100%;
}

.more {
    cursor: pointer;
    position:relative;
    right: 0;
    color: #aab036;
    text-align: right;
}

.date {
    font-size: 110%;
}

.intro {
    font-weight: bold;
    font-size: 120%;
}


.sections .revisions {
    height: auto;
}

.footer {
    width: 100%;
    background-color: rgb(13, 11, 17);
    text-align: center;
    padding: 1rem 0;
    box-sizing: border-box;
}

.section-date {
    padding-top: 1rem;
}

.editButton {
  position: absolute;
  top: -0.5rem;
  left: -1rem;
  z-index: 1;
  padding: 0.3rem !important;
}

.header .editButton {
    top: 0rem;
    left: 0rem;

}

.dialog {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 90%;
    background-color: rgb(53 51 64);
    border-radius: 1rem;
    box-shadow: 1rem 1rem 2rem rgba(0,0,0,0.5);
    padding: 1rem;
    margin: 1rem;
    z-index: 3;
}

.dialog.visible {
    display: block;
}

.dialog-close {
    position: absolute;
    top: 0.5rem;
    right: 0.75rem;
    cursor: pointer;
    font-size: 120%;
}

.overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 2;
    align-items: center;
    justify-content: center;
}

.overlay.visible { display: flex; }

.spinner {
  width: 3rem;
  height: 3rem;
  border: .5rem solid rgba(255, 255, 255, 0.2);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}


.dialogbuttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-top: 1rem;
}

.button {
    background-color: rgb(54, 64, 85);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    border-top: 3px solid rgb(255, 255, 255, .25);
    border-right: 3px solid rgb(0, 0, 0, .45);
    border-bottom: 3px solid rgb(0, 0, 0, .45);
    border-left: 3px solid rgb(255, 255, 255, .25);
    font-size: 1rem;
    cursor: pointer;
}

.button:hover {
    background-color: rgb(119, 142, 189);
}

.form {
    display:flex;
    flex-direction: column;
    gap: .5rem;
}

.form textarea {
    height: 10rem;
}

.form .row {
    display: flex;
    flex-direction: row;
    gap: 1rem;
}

.form .check {
    display: flex;
    flex-direction: row;
  }


  
.checkbox {
    width:25% !important;
    
}

.nav {
    position: absolute;
    top: 0;
    right: 0;
    padding: 0.5rem;
    display: none;
    flex-direction: column;
    z-index: 1;
}

.nav-button {
    display: flex;
    position: absolute;
    top: 1rem;
    right: 1rem;
    cursor: pointer;
    z-index: 2;
    font-size: 150%;
}
.nav-button:hover {
    color: white;
}


.nav-item {
    padding: 0.5rem;
    color: white;
    background-color: #0a2420;
    width: 10rem;
    font-size: 85%;
}

.nav-item:first-child {
     width: 1.1rem;
}

.nav-item a {
    text-decoration: none;
}
.nav-item:hover {
    background-color: #1f7a6c;
}

.home-content {
  display: flex;
  gap: 1rem;
  padding-bottom: 1rem;
}

.home-content-left {
    width: 14rem;
}

.home-content-left .image_ {
    height: auto;
}

.home-content-right {
    background-color: rgba(0, 0, 0, 0.25);
    width: 100%;
    border-radius: .5rem;
    padding: 1rem;
}

.cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}


@media (min-width: 400px) {
    .cards { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 700px) {
    .cards { grid-template-columns: repeat(3, 1fr); }
}


.card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: 20rem;
    color: white;
    text-shadow: 0 0 .5rem black;
    background-color: rgba(0, 0, 0, 0.25);
    border-radius: .5rem;
  }
  
  .card:hover {
    background-color: #1f7a6c;
    box-shadow: .1rem .1rem 1rem black;
}

.card-top {
  display: flex;
  flex-direction: column;
  padding: 1rem;
}

.card-bottom {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 14rem;

}

.card-title {
    font-weight: bold;
    font-size: 130%;
}

.card-intro {
   font-weight: normal;
}

.card-bottom .image_ {
    height: 14rem;
    margin: 0;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.add-page {
    display: none;
}

.add-section {
    display: none;
}

.publish {
    display: none;
}

.images {
    display: none;
}

.export {
    display: none;
}

.revisions {
    display: none;
}

li {
    padding-bottom: .75rem;
}
input, select, textarea {
    background-color: rgb(251, 245, 161);
    color: rgb(0, 0, 0, .85);
    padding: 0.25rem;
    border-radius: 0.25rem;
    width: 95%;
    font-size: 110%;
}

select{
     width: 99%;
}

textarea {
    height: 5rem;
    resize: vertical;
}

iframe {
    border-radius: 1rem;
}

a {
    color: #aab036;
    text-decoration: none;
    font-weight: bold;
}
a:hover {
    color: white;
    text-decoration: underline;
}

.rounded {
    border-radius: 1rem;
}

.logo {
    height: 8rem;
    padding-top: 1rem;
}

.home-header {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.home-header-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.home-logo {
    height: 8rem;
}

.home-tagline {
  padding-bottom: 2rem;
}

.edit-image-form input, select {
  width: auto;

}

/* Tablet and up */
@media (min-width: 725px) {

    .header {
        flex-direction: row;
    }

    .header-right {
        position: relative;
        top: -2rem;
        height: 7rem;
        width: 100%;
        background-image: url('image/_brand_spiral_001.png');
        background-repeat: no-repeat;
        background-position: 100% 100%;
    }

    .logo {
        height: 6rem;
    }

    .home-logo {
        height: 15rem;
        padding-top: 1rem;
    }

    .home-header {
      flex-direction: row;
    }

    .home-tagline {
      width: 6rem;
    }

    .nav {
        display: flex;
        flex-direction: row;
        gap: 0.2rem;
        position: relative;
        padding: 0;
    }

    .nav-button {
        display: none;
    }

    .nav-item {
        padding: 0.5rem;
        background-color: rgb(0, 0, 0, .45);
        border-radius: .5rem;
        width: 6.5rem;
        font-size: 85%;
    }

    .tagline {
      text-shadow: 0 0 .25rem black;
    }

    .image_section_wrap_square {
        width:13rem;
        height: 13rem;
    }

    .image_section_wrap_vertical {
        width:13rem;
        height: 39rem;
    }

}



