@import url('https://fonts.googleapis.com/css2?family=Inconsolata:wdth,wght@50..200,200..900&family=Rock+Salt&display=swap');

@view-transition{
    navigation: auto;
}

/*padding syntax*/
/* padding = AApx ->                   AA on all sides*/
/* padding = AApx, BBpx ->             AA top & bottom, BB right & left*/
/* padding = AApx, BBpx, CCpx, DDpx -> AA top, BB right, CC bottom, DD left*/

*{
    margin: 0px;
    padding: 0px; /*all sides*/
    font-family: Inconsolata, Courier, monospace;
    /*border: 1px solid red; for test only*/
    box-sizing: border-box;
}

h1{
    font-family: Rock Salt;
    font-size: 32px;
    text-align: center;
    padding: 12px;
    color: white;
    white-space: nowrap;
}

h1.font-effect-outline{
    background-color: #333;
}

h2, h3, h4, h5, h6 {
    font-size: 24px;
    padding: 12px;
    color: black;
}

.row {
    display: flex;
    flex-wrap: wrap;
    /*background-color: beige;*/
    border: 2px solid #333;
}

.column {
    flex: 50%;
    max-width: 50%;
    padding: 12px;
}

.column a {
    display: contents;
}

.column a p:hover {
    background-color: lightcyan;
}

.column img {
    width: 100%;
}

.recipe-title {
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    margin-bottom: 24px;
}

p {
    font-size: 15px;
    padding: 12px;
}

.indented{
    padding: 12px, 0px;
    margin-left: 12px;
}

ul {
    font-size: 15px;
    padding: 12px;
    margin-left: 12px;
}

ol {
    font-size: 15px;
    padding: 12px;
    margin-left: 24px;
}

nav, nav div {
    display: flex;
    background-color: dimgrey;
    position: sticky;
    top: 0;
}

nav div{
    flex: 1;
    text-align: center;
}

nav a, nav div a{
    flex: 1;
    text-align: center;
    padding: 12px 12px;
    font-size: 20px;
    color: whitesmoke;
    text-decoration: none;
    /*max-height: 50px;*/
    overflow: clip;
    white-space: nowrap;
    border-style: solid;
    border-color: #fff;
    border-width: 1px;
}

.dropdown{
    position: relative;
    display: flex;
}

.dropdown:hover .dropdown-content {
    display: inline-flex;
    flex-direction: column;
    
}

.dropdown-content{
    display: none;
    position: absolute;
    background-color: dimgrey;
    min-width: 100%;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 0;
    right:0;
}

nav a:hover{
    background-color: lightgrey;
    color: black;
}

nav a.active{
    background-color: maroon;
    color: white;
}

nav a.short-name{
    display: none;
}

footer div{
    display: flex;
}

footer div p{
    flex: 1;
    justify-content: space-between;
    padding: 6px;
}

footer div p.copy{
    text-align: left;
}

footer div p.lastmod{
    text-align: right;
}

@media screen and (max-width: 680px) {

    h1{
        padding: 6px 2px;
        font-size: 26px;
    }
    
    nav a, nav div a{
        padding: 6px 6px;
        font-size: 18px;
    }
    
    nav a.short-name{
        display: inline;
    }

    nav a.long-name{
        display: none;
    }

    .column {
        flex: 100%;
        max-width: 100%;
    }

}

figure.gallery {
  margin: 5px;
  border: 1px solid lightgray;
  float: left;
  width: 220px;
}

figure.gallery img {
  width: 100%;
  height: auto;
}

div.desc {
  padding: 15px;
  text-align: center;
}

form{
    width: 600px;
    border: 3px solid darkgray;
    padding: 15px;
    border-radius: 20px;
    margin: 50px auto;
    box-shadow: 2px 2px 15px gray;
}

#submit_button{
    display: block;
    width: 100%;
    border: none;
    font-size: 25px;
    font-weight: bold;
    border-radius: 8px;
    margin-top: 15px;
    cursor: pointer;
}

#submit_button:hover{
    background-color: lightblue;
}

form h3{
    text-align: center;
}

fieldset{
    margin: 10px 0px;
    padding: 10px;
}

.form-input{
    margin: 8px 0px;
    display: flex;
    align-items: center;
    gap: 10px;
}

form input, form select, form textarea{
    font-size: 20px;
    flex: 1;
    padding: 4px;
    outline: none;
}

form textarea{
    width: 100%;
    resize: vertical;
    field-sizing: content;
}

table {
    margin-bottom: 16px;
}

th, td {
    border: 2px solid #333;
    padding: 6px;
    margin: 16px 0px;
}

.compressed {
    padding: 0px;
}

.size1 {
    width: 1150;
    height: 2048;
}

.size2 {
    width: 1504;
    height: 2016;
}

.QX {
    width: 10%;
    background-color:lightgray;
}

.S-US {
    width: 15%;
    text-align: center;
}